View Single Post
  #2  
Old 04-12-2002, 06:07 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
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)&&playergralats=>5&&mine.onea=0){
playergralats-=5;
setstring this.oneaowner,#a;
mine.onea=1;
say2 You have mine 1 for 30 minutes;
timeout=1800;
} else if (playerchats&&strequals(#c,rent mine 1)&&playergralats<5&&mine.onea=0){
say2 You need 5g to rent a mine!;
} else if (playerchats&&strequals(#c,rent mine 1)&&mine.onea=1){
say2 That mine is rented already;
}
if (playertouchsme&&(#s(this.oneaowner),#a)&&mine.one a=1){
setlevel2 rentmine2.nw,6,7;
}

Reply With Quote