Kimimaru Posted July 17, 2009 Author Share Posted July 17, 2009 Hello! I'm making two very simple scripted tiles, and I don't see why they're not working. I believe I have all of the commands right and everything. Here's my Scripted Tile Sub:```' Executes when a player steps onto a scripted tile.Sub ScriptedTile(Index, Script) Select Case Script ' Level Block Tile Case 0 If GetPlayerLevel(index) < 50 Then Call PlayerMsg(Index, "You must be at least level 50 to pass!", GREEN) Call BlockPlayer(index) End If Exit Sub' Reduce HP to 1 Tile Case 1 Call SetPlayerHP(Index, 1) Call SendStats(Index) ' Warps player and gives them an item Tile Case 2 Call setplayerinvitemnum(index, 20, 2) Call PlayerWarp(Index, 1, 5, 10) Case Else Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End SelectEnd Sub```My Case 0 script works perfectly fine. The odd thing is that after I add the Case 1 and Case 2 scripts, it stops working. Also, the Case 1 and Case 2 scripts aren't working, either. Any help would be appreciated. Link to comment Share on other sites More sharing options...
Bobosk Posted July 17, 2009 Share Posted July 17, 2009 remove the indent inbetween call and setplayhp Link to comment Share on other sites More sharing options...
Kimimaru Posted July 17, 2009 Author Share Posted July 17, 2009 I'm not sure what you mean. In my Main.txt, there is no indent there. Am I doing something wrong with the "Exit Subs" or anything? Link to comment Share on other sites More sharing options...
Bobosk Posted July 17, 2009 Share Posted July 17, 2009 Did you add anything else to your main.txt before putting in case 1/2? because unless there's something syntaxingly wrong with case1/2, which there isn't, they wouldn't cause the whole sub to stop working Link to comment Share on other sites More sharing options...
Kimimaru Posted July 17, 2009 Author Share Posted July 17, 2009 Oh, I found out the problem. Even though I was restarting the server, the scripts weren't reloading. I turned the scripts off and then on and then reloaded them, and now they work perfectly. Thanks! 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