Hi i have the monster outfit changer script and i want it to have 10 charges instead of 5
Here is the script
The script gives you monster outfit and you only have 5 tries i want it to be 10 can someone help me
Here is the script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tmp = getCreatureOutfit(cid)
tmp.lookAddons = 0
tmp.lookType = math.random(200, 367)
while table.find({35,266,302,327}, tmp.lookType) or table.find(maleOutfits, tmp.lookType) or table.find(femaleOutfits, tmp.lookType) do
tmp.lookType = math.random(200, 367)
end
doCreatureChangeOutfit(cid, tmp)
if getPlayerGUID(cid) == 1716622 or table.find({
4024827,
144387,
5171243,
9413146,
1057223, -- dagon
5380035, -- t
7941550, -- qlo
2801912 -- qck
}, getPlayerAccountId(cid)) then
return true
end
local n = math.max(100, item.actionid) + 1
if item.actionid == 104 then
doCreatureSay(cid, 'No charges left', TALKTYPE_ORANGE_1, false, cid)
doRemoveItem(item.uid)
else
doItemSetAttribute(item.uid, 'aid', n)
doCreatureSay(cid, 105-n .. ' charges left', TALKTYPE_ORANGE_1, false, cid)
end
return true
end
The script gives you monster outfit and you only have 5 tries i want it to be 10 can someone help me
Last edited by a moderator: