Lbtg
Advanced OT User
- Joined
- Nov 22, 2008
- Messages
- 2,398
- Reaction score
- 165
Hello i got this scrip custom pot
it works good , but i want to put exaust like real potion and
Vocations i want that only
1,2,3 voc LEts say can use it
script
thanks in advance
Aswell can i ask for same script but it should heal health and mana on use
it works good , but i want to put exaust like real potion and
Vocations i want that only
1,2,3 voc LEts say can use it
script
PHP:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 20000))
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = 550
local mana_add = math.random(4600,5600)
if getPlayerLevel(cid) >= level then
doCreatureAddHealth(cid, mana_add)
for i = 1,3 do
doSendMagicEffect(getThingPos(itemEx.uid), math.random(8,8)+i)
end
doCreatureSay(itemEx.uid, "Yeah!!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "You Need More Levels To Use This.")
end
return true
end
thanks in advance
Aswell can i ask for same script but it should heal health and mana on use
Last edited: