Someone can help me to a system? I need check if player is hunting (gain exp)
I tryng to make a system to ADD stamina if players training around map (i dont have training monks, just player sumoning monks)
I want online and no hunting = add stamina
Someone know help me?
my base 0.4:
<globalevent name="addstamina" interval="180000" event="script" value="addstamina.lua"/>
I tryng to make a system to ADD stamina if players training around map (i dont have training monks, just player sumoning monks)
I want online and no hunting = add stamina
Someone know help me?
my base 0.4:
<globalevent name="addstamina" interval="180000" event="script" value="addstamina.lua"/>
Code:
function onThink(interval, lastExecution)
for _, pid in ipairs(getPlayersOnline()) do
doPlayerAddStamina(pid, 1)
end
return true
end