PB3LL
Member
- Joined
- Oct 30, 2015
- Messages
- 78
- Reaction score
- 13
hello,
found a few old scripts for a drunk rune that lasts 3-5 seconds… but no luck getting it going with 1.5 nekiro 8.6. anyone could help? coffee on me
found a few old scripts for a drunk rune that lasts 3-5 seconds… but no luck getting it going with 1.5 nekiro 8.6. anyone could help? coffee on me
Post automatically merged:
LUA:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 5000)
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISON)
local condition = createConditionObject(CONDITION_DRUNK)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, condition)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not hasCondition(cid, CONDITION_EXHAUST) then
local target = getCreatureTarget(cid)
if target ~= 0 then
doAddCondition(cid, exhaust)
doCombat(cid, combat, numberToVariant(target))
doRemoveItem(item.uid, 1)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUCANONLYUSEITONCREATURES)
end
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
end
return true
end