Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   question concerning a script (https://forums.graalonline.com/forums/showthread.php?t=31477)

darkriders_p2p 06-13-2002 01:15 AM

question concerning a script
 
K would this work online?
I'm making it for a blacksmith, when you say you want a shovel crafted it would set server.busy to shovel.I programmed this to wait 300 seconds (or 5 minutes) then he would go to the market (when he hides) and when he comes back it deletes the string.
I can't test it offline because timevar for some reason is always equal to 80 000 or something.
NPC Code:

if (!strequals(#s(server.busy),)) {
setstring server.crafttime,timevar+(strtofloat(300));
setcharprop #c,I'm making a #s(server.busy);
}
if (timevar>=strtofloat(#s(server.crafttime))) {
setstring server.busy,market;
}
while (strequals(#s(server.busy),market)) {
hide;
sleep 200;
show;
deletestring server.crafttime,;
deletestring server.busy,;
}


Logo 06-13-2002 01:37 AM

maybe :p

darkriders_p2p 06-13-2002 01:38 AM

Quote:

Originally posted by Logo
maybe :p
I don't think it would :(
if someone would like to help, please do so :(


All times are GMT +2. The time now is 08:24 AM.

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