vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 47
Hi, i will try create random addon doll but idk how roll addons? I have it but its only for one addon
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local femaleOutfits = { ["insectoid"]={370} }
local maleOutfits = { ["insectoid"]={369} }
local msg = {"Congratulations! You get full random addon!"} --Text Use 'Simple Editing'
if(getPlayerItemCount(cid, 12707) > 0) then
doPlayerRemoveItem(cid, 12707, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
if(getPlayerSex(cid) == 0)then
doPlayerAddOutfit(cid, 370, 3)
else
doPlayerAddOutfit(cid, 369, 3)
end
end
end