Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   gani scripted wierd? (https://forums.graalonline.com/forums/showthread.php?t=63058)

excaliber7388 12-29-2005 03:50 AM

gani scripted wierd?
 
1 Attachment(s)
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;
}


ApothiX 12-29-2005 09:18 AM

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)

excaliber7388 12-30-2005 12:29 AM

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 x_x

Lance 12-30-2005 07:34 AM

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 x_x

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.

excaliber7388 12-30-2005 06:06 PM

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)

ZeLpH_MyStiK 12-30-2005 08:52 PM

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.

excaliber7388 01-02-2006 04:38 AM

1 Attachment(s)
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.


All times are GMT +2. The time now is 06:55 PM.

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