
08-14-2002, 04:42 AM
|
|
Registered User
|
 |
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
|
|
Quote:
Originally posted by emortylone
X.X this is Projectshifter btw, my account is not working!
startswith would be used like if you want to make like a warpto script:NPC Code:
if (playerchats && startswith(#c,warp))
{ tokenize #c;
this.x=#t(1);
this.y=#t(2);
setstring client.level,#t(3);
freezeplayer 1;
sleep 1;
setlevel2 this.x,this.y,#s(client.level);
}
a bit of extra stuff, but it says that if the string starts with what you specify. Your string:NPC Code:
if (startswith(#L,level)){say2 You are in level-blah.graal;}
would make it so that if the level started with level then it would perform the action. #L needs to be capital, and it does the Level of the NPC, on an NPC Server you would want to use #F. You need to put a second end paranthese ')' to end the if statement not just the startswith.
---Shifter
|
i said that k? but u added extra hehe <3 |
__________________
^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
|
|
|
|