• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Monster outfit changer

Xraze

★★★Mapper★★★
Joined
Oct 31, 2014
Messages
76
Reaction score
14
Location
Lebanon
Hi i have the monster outfit changer script and i want it to have 10 charges instead of 5
Here is the script :D
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:
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 == 109 then
  doCreatureSay(cid, 'No charges left', TALKTYPE_ORANGE_1, false, cid)
  doRemoveItem(item.uid)
  else
  doItemSetAttribute(item.uid, 'aid', n)
  doCreatureSay(cid, 110-n .. ' charges left', TALKTYPE_ORANGE_1, false, cid)
  end
  return true
end
changed (if item.actionid == 104 then) to this (if item.actionid == 109 then)
 
Back
Top