If int(GetPlayerSprite(Index)) <> 79 ThenCall SetPlayerSprite(Index, 79)Call PlayerMsg(index, "You begin to set sail.", 2)Call SendPlayerData(index)End If
Case 2 If int(GetPlayerSprite(index)) <> 79 Then Call PutVar("accounts\" & GetPlayerLogin(index) &".ini", "CHAR" & GetPlayerCharNum(index), "noboat", GetPlayerSprite(index)) Call SetPlayerSprite(index, 79) Call PlayerMsg(index, "You begin to set sail.", 2) Call SendPlayerData(index) End IfCase 3 Dim Sprite Sprite = int(GetVar("accounts\" & GetPlayerLogin(index) &".ini", "CHAR" & GetPlayerCharNum(index), "noboat")) If int(GetPlayerSprite(index)) = 79 Then Call SetPlayerSprite(index, Sprite) Call PlayerMsg(index, "You have docked.", 2) Call SendPlayerData(index) Else Call PlayerMsg(index, "Step onto the water to begin sailing", 2) End If
id take barons word for it if I were u...hes one of the best scriptors I know
Case SCRIPTEDTILEX'DIM THESE:'sprite'onMsg'offMsgonMsg = PUT_GET_ON_MESSAGE_HEREoffmsg = PUT_GET_OFF_MESSAGE_HEREsprite = PUT_SPRITE_NUMBER_HERECall Boatchange(index, sprite, onMsg, offMsg)
'************************** '************************** 'BOAT SCRIPT BY BARONY 'Last Edited Jan 31st 2006 'www.barony.deviantart.com '************************** '************************** Sub Boatchange(index,sprite,onMsg,offMsg) On Error Resume Next Dim enterboat Dim leaveboatDim boat '*********** Boat = 0 + GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "boat")If boat = 1 Then leaveboat = 0 + GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "offboat") Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "boat", "0") Call Setplayersprite(index, leaveboat)Call SendPlayerData(index) Call PlayerMsg (index, OffMsg, 4)End If '****************enterboat = 0 + (GetPlayerSprite(index))Call PlayerMsg (index, "sprite = " & enterboat, 4) If boat <> 1 Then Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "boat", "1")Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(index), "offboat", 0 + enterboat ) Call Setplayersprite(index, sprite)Call SendPlayerData(index)Call PlayerMsg (index, onMsg, 4)End If End Sub '************************** 'End Of Boat Script 'Place Scripted Tile calling this script where ever you want players to change from their current sprite to boat or vice versa. 'Do not delete the On Error Resume Next for this script, this is needed to create the .ini check logic. '**************************
' ********************************************' * Base Script By: Dram // Script By: Cruzn *' ********************************************Sub BoatDock(index, sprite, message, color) If GetPlayerSprite(index) = sprite Then Call BlockPlayer(index) Call PlayerMsg(index, "Sorry, this is the entrance.", 1) Else Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini " , "CHAR" & GetPlayerCharNum(Index) , "TempSprite" , 0) Call PutVar("accounts\" & GetPlayerLogin(index) & ".ini " , "CHAR" & GetPlayerCharNum(Index) , "TempSprite" , GetPlayerSprite(index)) Call SetPlayerSprite(index, sprite) Call PlayerMsg(index, message, color) Call SendPlayerData(index) End IfEnd Sub' ********************************************' * Base Script By: Dram // Script By: Cruzn *' ********************************************Sub BoatExit(index, sprite, message, color) If GetPlayerSprite(index) <> sprite Then Call BlockPlayer(index) Call PlayerMsg(index, "Sorry, this is the exit.", 1) Else Call SetPlayerSprite(index, GetVar("accounts\" & GetPlayerLogin(index) & ".ini", "CHAR" & GetPlayerCharNum(Index), "TempSprite")) Call PlayerMsg(index, message, color) Call SendPlayerData(index) End IfEnd Sub
Case 2 Call BoatDock(index, 31, "You set sail across the smooth seas.", 1) Case 3 Call BoatExit(index, 31, "Your boat docks safely, and you walk off.", 1)
Call BoatDock(index, sprite, "message", color)
dude, admin, I can get away with this shit
you need to have to docks one getting on the boat with scripted tile "1" and another with dock to get off boat with scripted tile "2"wat happened to avatar baron !!!!! its all pirated!!!! hehehepirates dig the booty :wink: