Thread: Stand help....
View Single Post
  #3  
Old 09-28-2001, 06:30 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Stand help....

Quote:
Originally posted by joseyisleet
Okay I've been trying to make a selling stand like there is on 2001. I'm having problems taking the persons item and putting it in front of them. I deleted my old script on trying to do it because there was way to many errors. Here's what I've done so far.

// NPC made by Josey Hunt
if (playerenters&&this.bought=0){message Buy this stand for 100 gralat and sell your items!;}
if (playerenters&&this.bought=1){message #s(server.standowner) owns this stand.;}
if (playerchats&&strequals(#c,Buy stand)&&this.bought=0&&100>itemprice&&playerrupees >=99&&!playerrupees<=99){
playerrupees-=100;this.bought=1;setstring server.standowner,#n;message #s(server.standowner) owns this stand.;}
if (playerchats&&strequals(#c,Buy stand)&&this.bought=1){
message #s(server.standowner) already owns this stand!;}




Not much I know, but could someone give me a push in the righ direction?
first of all:
NPC Code:

if (playerchats&&strequals(#c,Buy stand) && this.bought=0 && playerrupees>=100&&) {
playerrupees-=100;
this.bought=1;
setstring server.standowner,#n;
message #s(server.standowner) owns this stand.;
}
There was no need for that '!playerrupees<=99'
if (playerchats && strequals(#c,Buy stand) && this.bought=1){
message #s(server.standowner) already owns this stand!;
}
That may work just add the two together ..

Reply With Quote