View Single Post
  #17  
Old 01-06-2005, 10:52 AM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
First off, make it easy for people to read.
Second off... Do not put statements without commands.
Third... If you have a string that contains differant possibility, use "else if"
Fourth... Be lazy, It helps.
Fifth... Why the sleep?

Basically, I would've done it like this:
PHP Code:
// NPC made by ZicklePop
if (createdsetshape 1,2,2;
if (
actionplayerwarp){
  
setlevel2 zercha-start-#p(0).nw,30,32.5;
}
//#CLIENTSIDE
if (playerenters){
  if (
strequals(#s(client.statsgender),girl)
      
|| strequals(#s(client.statsgender),guy))
   
triggeraction x+1,y+1,playerwarp,#s(client.statsgender);

Now you're good to rule the world!

Hrm... Perhaps this violates the Forum Rule "Do not ask full scripts". Ohwell, it was quite short regardless.
Reply With Quote