kimokimo
Kimo
i need item when you click it give you random monster outfit.
local monsters = {"orc warrior", "pirate cutthroat", "dworc voodoomaster", "dwarf guard", "minotaur mage"}
local duration = 18000 -- the time - how many seconds the outfit stay at character
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 11788 then
doSetMonsterOutfit(cid,monsters[math.random(#monsters)],duration*1000)
doCreatureSay(cid, "I got fuckin monster outfit! Bitch!", TALKTYPE_ORANGE_1)
end
doRemoveItem(item.uid,1)
doSendMagicEffect(fromPosition,CONST_ME_MAGIC_BLUE)
return TRUE
end