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 06-13-2002, 01:15 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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,;
}

__________________
maximus_asinus
Reply With Quote
  #2  
Old 06-13-2002, 01:37 AM
Logo Logo is offline
Banned
Join Date: Nov 2001
Posts: 377
Logo is on a distinguished road
Send a message via AIM to Logo
maybe
Reply With Quote
  #3  
Old 06-13-2002, 01:38 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Quote:
Originally posted by Logo
maybe
I don't think it would
if someone would like to help, please do so
__________________
maximus_asinus
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 01:17 AM.


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