VagosClubTM
Active Member
Hello friends I wanted to know if it is possible to make this rune work for the monsters to use on themselves, I want to create a creature called "transformer" which will change shape with this magic. Is it possible to use this same script to make the rune auto drop? or if you have any spells that will replace it much better from now on thank you very much I will leave the code here below.
ps the code was given to me by xinit
ps the code was given to me by xinit
Lua:
local outfitIds = {230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254}
local randomOutfit = Condition(CONDITION_OUTFIT)
randomOutfit:setTicks(60000)
local action = Action()
function action.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if not target:isPlayer() then
return false
end
randomOutfit:setOutfit({lookType = outfitIds[math.random(#outfitIds)]})
target:addCondition(randomOutfit)
item:remove(1)
return true
end
action:id(2295)
action:register()