whats the line on globalevents.xml ?
there you'll find the interval that executes it.
<globalevent name="save" interval="1799" script="save.lua"/>
interval="900"Code:<globalevent name="save" interval="1799" script="save.lua"/>
How script should look?interval="900"
900 = 15 minutes
15 * 60 = 900
<globalevent name="save" interval="900" script="save.lua"/>How script should look?
I mean save.lua and I want to broadcast msg that server is saving.<globalevent name="save" interval="900" script="save.lua"/>
function onThink(interval, lastExecution)
doBroadcastMessage("Server is being saved, next save in 15 minutes.")
saveServer()
return TRUE
end
<globalevent name="save" interval="900" script="save.lua"/>
10800000 I think.In OTX2, 3Hours is?.
save.lua
Code:function onThink(interval, lastExecution) doBroadcastMessage("Server is being saved, next save in 15 minutes.") saveServer() return TRUE end
globalevents.xml
Code:<globalevent name="save" interval="900" script="save.lua"/>
make the interval 1 minute before it should saveCan you make notification one minute before save?
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.4, -20, 0.6, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end