Ecstacy
Mothafuckaaa
Hey, I can't get this to work :blink:.
Could anyone tell me whats wrong with it?
Could anyone tell me whats wrong with it?
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions') - 100)
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level, maglevel = getPlayerLevel(cid), getPlayerMagLevel(cid)
local mana_minimum = level * 8 + maglevel * 1.0
local mana_maximum = level * 11 + maglevel * 1.0
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) <= 2 then
doPlayerAddMana(cid, math.random(mana_minimum, mana_maximum))
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
elseif getPlayerVocation(cid) >= 3 then
if level > 10 and level < 3000 then
doPlayerAddHealth(cid, 5000)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah... Health!", TALKTYPE_ORANGE_1)
elseif level > 3000 and level < 6000 then
doPlayerAddHealth(cid, 10000)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah... Health!", TALKTYPE_ORANGE_1)
elseif level > 6000 and level < 12000 then
doPlayerAddHealth(cid, 15000)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah... Health!", TALKTYPE_ORANGE_1)
elseif level > 12000 then
doPlayerAddHealth(cid, 20000)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah... Health!", TALKTYPE_ORANGE_1)
end
end
return TRUE
end
end
Last edited: