View Single Post
  #12  
Old 02-01-2002, 01:44 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
ok first off, playersays is a very stupid command, strequals() actually has uses!!! also you did this playerrupees=playerrupees-2500 thats way to long try playerrupees-=2500 its a better operator for a better graal . like:
NPC Code:

playerrupees-=2500;
// is to
playerrupees=playerrupees-2500;

playerrupees+=2500;
// is to
playerrupees=playerrupees+2500;

playerrupees*=2500;
// is to
playerrupees=playerrupees*2500;

// also the more than or equal to and less than or equal to look like this;
if (this.i>=0) commands;
if (this.i<=0) commands;

// Better version:

if (playerchats&&strequals(#c,buy stonewand)&&playerrupees>=2500) {
playerrupees-=2500;
hidelocal;
}

// also the following tw things are the same (because it checks to see if its equal):
if (strequals(#c,buy stonewand)) commands;
if (strequals(buy stonewand,#c)) commands;

// just as these two are the same:
this.i = 1;
this.j = 1;
if (this.i==this.j) commands;
if (this.j==this.i) commands;
//

__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it