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 04-12-2002, 05:39 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Dumb script that won't work

NPC Code:

if (created) {
setimg door.png;
setshape 1,32,32;
mine.onea=0;
}
if (playerchats&&strequals(#c,rent mine 1)&&playergralat<5&&mine.onea=0){
playergralat-=5;
tokenize #a;
mine.onea=1;
say2 You have mine 1 for 30 minutes;
timeout=1800;
}
if (playerchats&&strequals(#c,rent mine 1)&&mine.onea=1){
say2 That mine is rented already;
}
if (playerchats&&strequals(#c,rent mine 1)&&playergralat<5&&mine.onea=0){
say2 You need 5g to rent a mine!;
}
if (playertouchsme&&(#a,#t)&&mine.onea=1){
setlevel2 rentmine2.nw,6,7;
}



I keep getting the "this mine is already rented" message.
__________________
Reply With Quote
 

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 03:11 PM.


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