Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-31-2004, 04:51 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Flag problems?

Ok, here's my problem, there is osbviously something wrong with how i set up the flag in the following script, but i cant figure out what (I know it's the flag because i ran several tests to check for the problem). It only does this once, even if the player has a lot of the string, acting like i have it set as if, instead of while. changing it to a for loop didnt help either.
NPC Code:


while (strtofloat(#s(clientr.#t(1)))>=1) {
freezeplayer .75;
setcharani ek_mine,;
setstring clientr.#t(1)dust,#v(strtofloat(#s(clientr.#t(1)du st))+1);
setstring clientr.#t(1),#v(strtofloat(#s(clientr.#t(1)))-1);
message #s(clientr.#t(1));
sleep .75;
setcharani idle,;
}



I have tried figuring it out myself, and i only put in part of the script, so i dont expect this thread to be closed/deleted before i solve this prob.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:41 AM.


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