• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Summon exhaust

DedicatedOT

New Member
Joined
Jun 13, 2009
Messages
977
Reaction score
4
Location
USA
How do you make a lever that summons but with an exhaust of 10 seconds?

I got:

Lua:
addEvent(doSummonCreature("Metal Guardian",{x=getPlayerPosition(cid).x,y=getPlayerPosition(cid).y,z=getPlayerPosition(cid).z}),10000,cid)

It doesn't seem to work... Says
Code:
[20/07/2009 18:30:08] luaAddEvent(). callback parameter should be a function.
 
Code:
local exhausttime = 1 * 60 * 1000 -- 1 minute
local exhaust = createConditionObject(4096)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, exhausttime)

if getCreatureCondition(cid, CONDITION_EXHAUST) == TRUE then
doPlayerSendTextMessage(cid, 21, "Your Exausted. Sad Face no summon for you")
else
summon monster?
 
Back
Top