Sub Fishing(Index)' Maked by Raicon.Dim MapDim XDim YDim RandomDim Weapon NeededDim TileofWaterTileofWater = "Tile Set of Water"Weapon Needed = "Weapon Needed"Map= getplayermap(index)if Getvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status") = "1" thencall playermsg(index, "You can't fishing 2x", 0)elseif CheckItemSlot(index, Weapon Needed) = 1 thenIf getplayerdir(index) = 0 thenX= getplayerx(index)Y= getplayery(index) -1elseIf getplayerdir(index) = 1 thenX= getplayerx(index)Y= getplayery(index) +1elseIf getplayerdir(index) = 2 thenX= getplayerx(index) -1Y= getplayery(index) elseIf getplayerdir(index) = 3 thenX= getplayerx(index) +1Y= getplayery(index) end ifend ifend ifend ifRandom = rand( 1, 3)if GetTileSet( Map, x, y, 0) = TileofWater thenif Random = 2 thencall settimer("Fishtimer " & Index & ", " & 1, 30000)call playermsg(index, "Wait......", blue)call putvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status", "1")elseif Random = 1 thencall settimer("Fishtimer " & Index & ", " & 2, 45000)call playermsg(index, "Wait......", blue)call putvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status", "1")elseif Random = 3 thencall settimer("Fishtimer " & Index & ", " & 3, 50000)call playermsg(index, "Wait......", blue)call putvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status", "1")end ifend ifend ifend ifend ifend ifend subFunction CheckItemSlot(index, Item)' Maked by Raicon.CheckItemSlot=0if GetPlayerInvItemNum(index, getplayerweaponslot(index)) = Item ThenCheckItemSlot=1end ifend functionSub FishTimer(Index, Script)' Maked by Raicon.Dim MapDim XDim YDim WeaponNeededDim TileofWaterWeaponNeeded= "Weapon Needed ( Number )"TileofWater = "Tile Set of Water"If getplayerdir(index) = 0 thenX= getplayerx(index)Y= getplayery(index) -1elseIf getplayerdir(index) = 1 thenX= getplayerx(index)Y= getplayery(index) +1elseIf getplayerdir(index) = 2 thenX= getplayerx(index) -1Y= getplayery(index) elseIf getplayerdir(index) = 3 thenX= getplayerx(index) +1Y= getplayery(index) end ifend ifend ifend ifOn error resume nextSelect Case Script Case 1call removetimer("Fishtimer " & Index & ", " & 1)if GetTileSet( Map, x, y, 0) = TileofWater thenif CheckItemSlot(index, 179) = WeaponNeeded thencall playermsg(index, "You pickup fish.", 14)call putvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status", "0")call giveplayeritem(index, 180, 1, 1)end ifend if Case 2call removetimer("Fishtimer " & Index & ", " & 2)if GetTileSet( Map, x, y, 0) = TileofWater thenif CheckItemSlot(index, 179) = WeaponNeeded thencall playermsg(index, "You have losted that fish!.", 0)call putvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status", "0")end ifend if Case 3call removetimer("Fishtimer " & Index & ", " & 3)if GetTileSet( Map, x, y, 0) = TileofWater thenif CheckItemSlot(index, 179) = WeaponNeeded thencall putvar("CharStats\" & getplayername(index) & ".ini", "Fishing", "Status", "0")call fishing(index)end ifend ifEnd SelectEnd Sub
Weapon Needed = Item Number of WeaponTileofWater = Tile Set of water ( 1, 2, 3...)
How do I open a .rar file?
I quess it doesn't work. "Weapon needed" shouldn't have a space, because then the "needed" is not part of the same variable. It is fixed lower in the code (as "WeaponNeeded"), but I suggest you using something simpler, like "fishpole" or "rodID". Same goes for water: "TileofWater" -> "Water".The "tileset" thing might work, if you got ONLY water tiles in some tileset. Otherwise I'd suggest using Scripted tile.("'Maked by Raicon"... Typo there: "'Made by Raicon")Don't quote, what you need to do to customize the code. Put an example value and comment above, what does it mean and do you have to edit it somehow.
Well.. almost every college has a course on Eclipse Sad Script. So you could check at a local college.
Cool, I didn't know the program is spread through colleges. And Ty.
The only way to solve it is to light up.