Well, hello guys!,
I do got this script,
It's an actionID in a leveler, what it does, is when you right-click it, it randomly changes your outfit, but theres a serious problem, when you got any outfit, with any random addon, and you just right-click as crazy the leveler, the outfit changes so fast, and i don't know why the players loose like 200 hitpoints, and that increases their Hitpoints so bad when they heal them, so they can bug their HP more than 33k,
I have been thinking if there's possible to add like exhaustion to the leveler? like 5 seconds, or I don't know if there's something wrong with it?
Hope anyone could help me to solve this out, thank you so much!
I do got this script,
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v, tmp = math.random(333), getCreatureOutfit(cid)
while isInArray({tmp.lookType, 75, 135, 266, 302}, v) == TRUE or v <= 1 or (v > 160 and v < 192) or v > 333 do
v = math.random(351)
end
tmp.lookType = v
doCreatureChangeOutfit(cid, tmp)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doCreatureSay(cid, 'Your outfit has been changed.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
return TRUE
end
It's an actionID in a leveler, what it does, is when you right-click it, it randomly changes your outfit, but theres a serious problem, when you got any outfit, with any random addon, and you just right-click as crazy the leveler, the outfit changes so fast, and i don't know why the players loose like 200 hitpoints, and that increases their Hitpoints so bad when they heal them, so they can bug their HP more than 33k,
I have been thinking if there's possible to add like exhaustion to the leveler? like 5 seconds, or I don't know if there's something wrong with it?
Hope anyone could help me to solve this out, thank you so much!