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

Will this Work? (First ever script)


gaming ace
 Share

Recommended Posts

Hey, I'm new to scripting and I tried making this script where a wizard warps you off newbie island, and if ur a barbarian u go to map 20, if ur a Viking u go to map 40\. I **highly** doubt I did it right, or used valid commands/wording but I gave it a shot  :grin: Please tell me if i'd work or what I need to change:

```
Case 4
    MyVar = GetPlayerLevel(index)
If PlayerLevel(index)= <3
Then
Call Playermsg(index, "Hmmm, I can't warp you yet... come back when you're at least level 4, you're not quite ready for the real world", 13)
If PlayerLevel(index)= >3
Then
MyVar = GetPlayerClass(index)
If PlayerClass(index)= 1
Then
Call Playermsg(index, "I'm here to warp you off the newbie island, to become a real legend, there's no coming back...", 13)
    Call Prompt(index, "Do you want to leave the island?", 13)
If Yes=
Call Playermsg("Ok, here I go...", 13)
Call PlaySound(index, "magic2.wav")
Call SetPlayerMap(index, 20)
If No=
Call playermsg(index, "Suit yourself, Barbarian, when you're ready you know where I am!", 13)
If PlayerClass(index)= 2
Then
Call Playermsg(index, "I'm here to warp you off the newbie island, to become a real legend, there's no coming back...", 13)
    Call Prompt(index, "Do you want to leave the island?", 13)
If Yes=
Call Playermsg("Ok, here I go...", 13)
Call PlaySound(index, "magic2.wav")
Call SetPlayerMap(index, 40)
If No=
Call playermsg(index, "Suit yourself, Viking, when you're ready you know where I am!", 13)
End If
```
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...