Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 02:20 PM.


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