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

Did i do this right?


Jooshua6
 Share

Recommended Posts

ok
```
' Executes when a player steps onto a scripted tile.
Sub ScriptedTile(Index, Script)
  Select Case Script
      Case 0
        Call PlayerMsg(Index, "This scripted tile has no apparent use.", WHITE)
        Exit Sub
    Case 1
  Select Case GetPlayerClass(Index)
      Case 0
          Call PlayerMsg(Index, "Hello, young knight come forth.", YELLOW)
      Case 2
          Call PlayerMsg(Index, "HEllo, young archer come forth.", YELLOW)
      Case 3
          Call PlayerMsg(Index, "HEllo, young wizard come forth.", YELLOW)
      Case 4
          Call PlayerMsg(Index, "Hello, young shaman come forth.", YELLOW)
      Case 5
          Call PlayerMsg(Index, "HEllo, young summoner come forth.", YELLOW)
  End Select

      Case Else
        Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE)
        Exit Sub
  End Select
End Sub

```
Link to comment
Share on other sites

@Jooshua6:

> ok
> ```
> ' Executes when a player steps onto a scripted tile.
> Sub ScriptedTile(Index, Script)
>   Select Case Script
>       Case 0
>         Call PlayerMsg(Index, "This scripted tile has no apparent use.", WHITE)
>         Exit Sub
>     Case 1
>   Select Case GetPlayerClass(Index)
>       Case 0
>           Call PlayerMsg(Index, "Hello, young knight come forth.", YELLOW)
>       Case 2
>           Call PlayerMsg(Index, "HEllo, young archer come forth.", YELLOW)
>       Case 3
>           Call PlayerMsg(Index, "HEllo, young wizard come forth.", YELLOW)
>       Case 4
>           Call PlayerMsg(Index, "Hello, young shaman come forth.", YELLOW)
>       Case 5
>           Call PlayerMsg(Index, "HEllo, young summoner come forth.", YELLOW)
>   End Select
>
>       Case Else
>         Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE)
>         Exit Sub
>   End Select
> End Sub
>
> ```

Can you post one of your classes? I'd like to try it out and see if anything happens to me…
Link to comment
Share on other sites

@durama:

> lol this was 5 days ago he didn't post again so he probably already got it to work

Well, idk, if he did, then he should've edited one of his posts to say that it works for him now, so that anyone that thinks they could help would know…
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...