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 02-05-2002, 08:37 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Trigger Action and Timevar Help Please

Please help:
// NPC made by Poogle
if (playerenters) {
setcharani licookie-normal,;
}
if (actionSprikels){
this.procent+=1;
message #v(this.procent) %;
}
if (this.procent=100){
playerrupees = playerrupees+1;
x = 33;
y = 18;
set donecookie;
this.procent=0;
}
while (donecookie) {
setcharani licookie-sprinkels,;
x = 26;
y = 25;
unset donecookie;
}

AND heres the weapon

toweapons Sprikels;
if (isweapon) {
set sprinkels;
sleep 1000000;
say2 You ran out of#bsprinkels!;
unset sprinkels;
destroy;
}
if(weaponfired){
triggeraction playerx,playery,Sprikels,;
}

Weapon like that for easy testing.
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 09:55 PM.


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