collect loot floor to bp...bro any please =) <3
@Lucas Terra
Can you add this ID for fishing function? It's from Zao Steppe river when it's flooded, to fish sandfish;
13988 fish / 13989 no-fish
Hi Lucas,
I know its not the time to talk about it but i have to inform you that you don't need ( depositerbank with witdraw ) anymore in this winter update tibia able facc to trade with bank transfer system.
Code Edited :
didn't check edited by code onlyPHP Code:
function depositerbank(supplycategory, extragold, logoutifnocash)
extragold = extragold or 0
local npccount = 0
foreach creature m 'ns' do
if m.dist <= 3 then
npccount = npccount + 1
end
end
if npccount == 0 then
printerror('Unable to find a NPC close to you')
return
end
local currentnpcmsg = $lastnpcmsg
local tries = 0
local maxtries = math.random(3, 5)
if not ischannel('NPCs') then
say('hi')
else
npcsay('hi')
end
local t = $timems
while $timems - t <= 2500 and currentnpcmsg == $lastnpcmsg do wait(100) end
-- deposits money
npcsay('deposit all') wait(500,1000)
npcsay('yes') wait(500,1000)
-- check balance
repeat
npcsay('balance')
until waitmessage('', 'Your account balance is %d+', 2000, true, MSG_NPC)
-- withdraw needed money
local towithdraw = moneytowithdraw(supplycategory) + extragold
if towithdraw == 0 then
return
end
repeat
if $balance >= towithdraw then
else
if (logoutifnocash) then
printerror('Your character has logged out because you don\'t have enough money in bank.')
xlog(true)
setcavebot('off')
return
end
playsoundflash('monster.wav') wait(1000)
end
end
Regards
how depotaction() works? looked at the code but i still have no clue...
@Cisco thanks! rep++