Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

My First (well second) script


samdeath
 Share

Recommended Posts

Well here it is.
```
Case 0
If GetPlayerLevel(index= < 5)
Then
Call Playermsg(index, "You seem to be too low level to pass through here come back when your a little stronger.", 12)
If GetPlayerLevel(index= > 5)
Then
End If
End If
Call Playermsg(index, "Right you seem strong enough to pass. The toll is a Go if you wish...", 12)
Call Prompt(index, "Are you sure you want to go?", 12)
If Yes=
Call Playermsg("Ok, dont say I didnt warn you.", 12)
Call SetPlayerMap(index, 11)
If No=
Call playermsg(index, "Ok you dont have to go if you dont want to, I know i wouldnt", 12)
End If
End If

```Its basically a scripted guard for the first area if you aren't level 5 you cant go to the next area if you are above 5, you get prompted and then if yes you pay the toll and get warped to the next area.Can someone tell me what the command is to remove an item from a players inventory please so i can use it properly,
I would guess its Call RemovePlayerInvItemNum but i doubt it is
Also If there are any errors can you tell me please and then i will know for future reference, I'm pretty sure this one will work as its fairly simple compared to my last one.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...