View Single Post
  #13  
Old 04-16-2002, 07:20 AM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight
Re: 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;
}



&&playergralat=>5;
< is less than
> is more than
Reply With Quote