Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-29-2005, 03:50 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
gani scripted wierd?

Some one recently uploaded a flute to DR. I have no idea where the script or the gani came from, but it's not ours (im not sure the scripter who uploded it made it). Anyway, i think it may have caused a problem in other ganis (example in pic) i have included the flute script below, along with a pic of a screwed up gani (i even reloaded the gani, but nothing changed)
NPC Code:
//#CLIENTSIDE
if (created) {
flutecount = strtofloat(#s(flutecount))+1;
setstring flutecount,#v(flutecount);
setstring client.flutecount,#s(flutecount);
}
if (weaponfired) {
if (strtofloat(#s(client.flutecount))<=0)
destroy;
setplayerprop #P2,flute0.png;
setani playsax,;
while (!keydown(6)) {
for (i=0; i<4; i++) if (keydown(i)) {
if (keydown(4)) {
// if (i in {0,1})
// setani playsax2,flute#v(9+i).mid;
} else
setani playsax2,flute#v(1+i+(keydown(5)? 4:0)).wav;
}
freezeplayer 0.05;
sleep 0.05;
}
}
if (bomyweaponfired) {
if (strtofloat(#s(client.flutecount))<=0)
destroy;
setplayerprop #P2,flute0.png;
setani bomy_playsax,;
while (!keydown(6)) {
for (i=0; i<4; i++) if (keydown(i)) {
if (keydown(4)) {
// if (i in {0,1})
// setani bomy_playsax2,flute#v(9+i).mid;
} else
setani bomy_playsax2,flute#v(1+i+(keydown(5)? 4:0)).wav;
}
freezeplayer 0.05;
sleep 0.05;
}
}
if (playerhurted) {
timeout = 0;
}

Attached Thumbnails
Click image for larger version

Name:	strange.png
Views:	149
Size:	28.8 KB
ID:	34711  
Reply With Quote
  #2  
Old 12-29-2005, 09:18 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by excaliber7388
Some one recently uploaded a flute to DR. I have no idea where the script or the gani came from, but it's not ours (im not sure the scripter who uploded it made it)
Why exactly are you posting someone else's script then?

Anyways, by the looks of the script, it looks like it was intended for Graal2001 (bomyweaponfired)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 12-30-2005, 12:29 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
yeah thats what i thought anyways i was hoping to check if anyone would claim it, or explain why after it was up, flutes appeared beneith the meditate gani
Reply With Quote
  #4  
Old 12-30-2005, 07:34 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by excaliber7388
yeah thats what i thought anyways i was hoping to check if anyone would claim it, or explain why after it was up, flutes appeared beneith the meditate gani
That is Graal2001's. Unless you or the person who uploaded it received Stefan's permission to use that (you did not receive mine), you will need to remove it. I will contact you for more information about this.
Reply With Quote
  #5  
Old 12-30-2005, 06:06 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
thanks, i've replaced it, and when i get on it will be removed. I expected this scripter had been using scripts from other servers :| (fired already) anyway, whats with the flutes that now appear below the meditate gani, is that because on an edit he made or a typical error, and how would i fix it (i've already deleted the script in question)
Reply With Quote
  #6  
Old 12-30-2005, 08:52 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
If you simply skimmed through the script and took a look at your gani, you would understand. The problem is you have a flute image appearing under the meditate gani. If you look at the script, the only place where a flute image appears is:
NPC Code:
setplayerprop #P2,flute0.png;


I suppose your meditate gani makes use of #P2 for something (such as an aura and whatnot) thus if gani param 2 is not overwritten again, it will simply use the flute image in place of whatever it was.
__________________
Reply With Quote
  #7  
Old 01-02-2006, 04:38 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
this bug resurfaced recently as well, some characters appear to be flaoting, but all other ganis show up normal, i have a pic below. from what it seems, the person can't see it on themself, only other people.
Attached Thumbnails
Click image for larger version

Name:	float.png
Views:	128
Size:	41.7 KB
ID:	34760  
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.