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 03-19-2002, 09:52 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
NPC Code:
// NPC fix0red by Grim Squeaker
if (actionMined) {
if (strlen(#s(this.User))==0)
setstring this.User,#a;
this.Mine++;
message #v(this.Mine)% by #v(this.User);
}
if (created||timeout) {
if (strequals(#s(this.User),#a)) {
if (this.Mine==100) {
setimg bushgrape1.gif;
sleep 5;
}
}
timeout=0.1;
}

This is assuming it's a P2P script, otherwise it won't work. It also doesn't seem to actually do anything after it's completed but that's something you'll have to change yourself.
And the owner never actually changes, which is something which Googi would probably love but is rather weird.

Quote:
Originally posted by screen_name

they use this.whatever=#a in playerhouses i think
It doesn't work anywhere nor ever. It's always setstring, though there are rumours Stefan is working on changing the scripting engine so it is possible to set string in such a fashion.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
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 07:39 PM.


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