Diskmaster Posted July 2, 2009 Author Share Posted July 2, 2009 I was using all of these scripts just fine then SUDDENLY they stopped working :icon_crap: Here is the scripted section that is not working, NONE of the scripts on here work (that is, nothing happens when I step on them) could someone help!!________________________________________________________________________```' Executes when a player steps onto a scripted tile.Sub ScriptedTile(Index, Script) Select Case Script Case 0If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest1") = "Have" Then Call playermsg(index, "Empty", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest1", "Have") Call GiveCurrency(Index, 2, 1000)Call playermsg(index, "You found 1000 gold!", 14)Case 1If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest2") = "Have" Then Call playermsg(index, "Only Take 1", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest2", "Have") Call GiveItem(Index, 92, 1)Call playermsg(index, "In the chest sat a Rose of Returning", 14)Case 2If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest3") = "Have" Then Call playermsg(index, "Only Take 1", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest3", "Have") Call GiveItem(Index, 176, 1)Call playermsg(index, "Hey, in this chest is a Graveyard Key", 14)Case 3If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest4") = "Have" Then Call playermsg(index, "Only Take 1", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest4", "Have") Call GiveItem(Index, 177, 1)Call playermsg(index, "In this chest is a Noob Certifricate", 14)Case 4If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest5") = "Have" Then Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest5", "Have") Call GiveItem(Index, 21, 1)Call playermsg(index, "Suddenly a Sword appears in your hand", 14)Case 5If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest6") = "Have" Then Call playermsg(index, "Empty", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest6", "Have") Call GiveCurrency(Index, 2, 100)Call playermsg(index, "You found 100 gold, quest complete", 14)Case 6If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest7") = "Have" Then Call playermsg(index, "This chest is empty", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest7", "Have") Call GiveCurrency(Index, 2, 100)Call playermsg(index, "You found 100 gold, quest complete", 14)Case 7If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest8") = "Have" Then Call playermsg(index, "Please get this delivered, just use it on the door", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest8", "Have") Call GiveItem(Index, 261, 1)Call playermsg(index, "Could you take this to the room over there with the rug", 14)Case 8If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest9") = "Have" Then Call playermsg(index, "There was only 1...", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest9", "Have") Call GiveItem(Index, 220, 1)Call playermsg(index, "You find the RARE BLUE GEM OF THE SEA", 14)Case 9If GetFreeSlots(Index) = 0 Then Call PlayerMsg(Index, "You don't have enough slots!", RED) Exit SubEnd IfIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest10") = "Have" Then Call playermsg(index, "There was only 1...", 14) Exit SubEnd ifCall PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest10", "Have") Call GiveItem(Index, 221, 1)Call playermsg(index, "You find the RARE GEM OF THE SAND", 14)Case 10If CanTake(Index, 269, 0) Then Call TakeItem(Index, 269, 0) Call GiveItem(Index, 270, 1) Call playermsg(index, "You Cook the meat", 14) Exit SubEnd ifCall playermsg(index, "You have no meat to cook", 14)Case 11If GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest11") = "Have" Then Call playermsg(index, "You can only do this quest once", 14) Exit SubEnd ifIf CanTake(Index, 178, 0) Then Call GiveCurrency(Index, 2, 125) Call playermsg(index, "You hand Her your graveyard key, She then hands it back", 14) Call playermsg(index, "Thanks, I just never got to see one before!", 14) Call playermsg(index, "She hands you 125 Gold QUEST COMPLETE", 14)Call PutVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest11", "Have") Exit SubEnd if Call playermsg(index, "Oh... You don't have it...", 14)Case 12If GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest12") = "Have" Then Call playermsg(index, "Quest Progress for Bad Kid:", 14) Call playermsg(index, "Finished", 10) Exit SubEnd if If GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest14") = "Have" Then Call playermsg(index, "Quest Progress for Bad Kid:", 14) Call playermsg(index, "Started", 14) Exit SubEnd ifIf GetVar("Chest\" & GetPlayerName(index) & ".ini", "Chest", "Chest2") = "Have" Then Call playermsg(index, "Quest Progress for Bad Kid:", 14) Call playermsg(index, "Not Started, Location of Quest: Moonwell town", 4) Case Else Call PlayerMsg(Index, "No tile script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End SelectEnd Sub``` Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 2, 2009 Share Posted July 2, 2009 Case 12, you're missing an "End If" Link to comment Share on other sites More sharing options...
Diskmaster Posted July 3, 2009 Author Share Posted July 3, 2009 WOW… (boy do I feel stupid) thx 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