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

Whats wrong?


adamsharp
 Share

Recommended Posts

can someone please tell me whats wrong with this?
```
' Executes whenever a scripted NPC does an action.
Sub ScriptedNPC(Index, Script)
Select Case Script
Case 0
Call PlayerMsg(Index, "This scripted NPC has no apparent use.", WHITE)
Exit Sub

        Case 1             
        Call PlayerMsg(Index, "Howdy Partnet", WHITE)       
            Call PlayerMsg(Index, "I Bet You're Wondering Why That Tile Is Differant, Well Its A Portal.", WHITE)
            Call PlayerMsg(Index, "Portals Can Take You To Around The World Or In This Case Over A River.", WHITE)
        Exit Sub

        Case 2
Call PlayerMsg(Index, "To Read Signs Like That Gold One Over There Face Upwards At It Then Press Enter", WHITE)
Exit Sub

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

```Regards Adamsharp
Link to comment
Share on other sites

```
' Executes whenever a scripted NPC does an action.
Sub ScriptedNPC(Index, Script)
    Select Case Script
        Case 0
            Call PlayerMsg(Index, "This scripted NPC has no apparent use.", WHITE)

            Exit Sub

        Case 1           
            Call PlayerMsg(Index, "Howdy Partnet", WHITE)       
            Call PlayerMsg(Index, "I Bet You're Wondering Why That Tile Is Differant, Well Its A Portal.", WHITE)
            Call PlayerMsg(Index, "Portals Can Take You To Around The World Or In This Case Over A River.", WHITE)

            Exit Sub

        Case 2
            Call PlayerMsg(Index, "To Read Signs Like That Gold One Over There Face Upwards At It Then Press Enter", WHITE)

            Exit Sub

        Case Else
            Call PlayerMsg(Index, "No NPC script found. Please contact an admin to solve this problem.", WHITE)

            Exit Sub
    End Select
End Sub
```

Regards,
  Godlord.
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...