• 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!

Lua What command should i use to remove PZ??

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
For example i use the item and i lost pz ( i can access to to temple, dp)


doRemoveCondition??
 
Code:
-- Xerazx
function onUse(cid, item, fromPosition, itemEx, topos)
	if not exhaustion.check(cid, 123) then
		exhaustion.set(cid, 123, 20)
doRemoveCondition(cid, CONDITION_INFIGHT)
else
	doPlayerSendCancel(cid, 'you must wait ' .. exhaustion.get(cid, 123) .. ' seconds to use it again')
end
return true
end
you can add effect under doRemoveCondition
like
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_STUN)
also you can add
doRemoveItem(item.uid, 1)
 
Last edited:
Back
Top