adamsharp Posted August 22, 2009 Author Share Posted August 22, 2009 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 2Call 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 SubEnd Sub```Regards Adamsharp Link to comment Share on other sites More sharing options...
JayT Posted August 22, 2009 Share Posted August 22, 2009 try it without the 'Exit Sub' commands after each case Link to comment Share on other sites More sharing options...
balliztik1 Posted August 22, 2009 Share Posted August 22, 2009 You need an End Select before the End Sub. Link to comment Share on other sites More sharing options...
Godlord Posted August 23, 2009 Share Posted August 23, 2009 ```' 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 SelectEnd Sub```Regards, Godlord. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now