Thread: join problems
View Single Post
  #7  
Old 01-11-2005, 02:17 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Slash-P2P
That's what I'm using right now. It only joins the bed. I guess join isn't a normal command...
I think that it is joining both, but whatever commands are in the bed class are overriding those of the chair class. The join command will execute, regardless of if the if statement it is nested in is true. I think the joins are executed before the rest of the script is run. Therefore, the string is nothing, and it is looking for a class ph_ (in your case).

NPC Code:
if (playerchats){
if (strequals(#c,join)){
join someclass;
}
}


This should join before you say anything.
Reply With Quote