• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action new outfit bouns

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,638
Solutions
35
Reaction score
352
first go to date/action/scripts
and make new lua addons
Code:
local t = {
--[ACTIONID] = {FEMALEID, MALEID, "OUTFITNAME"}
[8001] = {136, 128, "citizen"},
[8002] = {137, 129, "hunter"},
[8003] = {138, 130, "mage"},
[8004] = {139, 131, "knight"},
[8005] = {140, 132, "nobleman"},
[8006] = {141, 133, "summoner"},
[8007] = {142, 134, "warrior"},
[8008] = {147, 143, "barbarian"},
[8009] = {148, 144, "druid"},
[8010] = {149, 145, "wizard"},
[8011] = {150, 146, "oriental"},
[8012] = {155, 151, "pirate"},
[8013] = {156, 152, "assassin"},
[8014] = {157, 153, "beggar"},
[8015] = {158, 154, "shaman"},
[8016] = {252, 251, "norseman"},
[8017] = {269, 268, "nightmare"},
[8018] = {270, 273, "jester"},
[8019] = {279, 278, "brotherhood"},
[8020] = {288, 289, "demonhunter"},
[8021] = {324, 325, "yalaharian"},
[8022] = {336, 335, "warmaster"},
[8023] = {366, 367, "wayfarer"}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local v = t[item.actionid]
    local k = getPlayerSex(cid) == 0 and v[1] or v[2]
    local msg = {"You\'ve already obtained the "..v[3].." addons!", "You don't have any Bufary coins.", "Congratulations, you\'ve obtained the "..v[3].." addons!"}
    if canPlayerWearOutfit(cid, k, 3) then
        return doPlayerSendCancel(cid, msg[1]), doSendMagicEffect(getThingPos(cid), CONST_ME_POFF), false
    end
    if getPlayerItemCount(cid, 9970) < 15 then
        return doPlayerSendCancel(cid, msg[2]), doSendMagicEffect(getThingPos(cid), CONST_ME_POFF), false
    end
    doPlayerAddOutfit(cid, k, 3)
    doPlayerRemoveItem(cid, 9970, 15)
    doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
    return true
end
u can edite this line for any items and amount u need
Code:
(cid, 9970) < 15 then

and add this in action.xml
Code:
<!-- addons -->
     <action actionid="8001" event="script" value="addons.lua" />
      <action actionid="8002" event="script" value="addons.lua" />
       <action actionid="8003" event="script" value="addons.lua" />
        <action actionid="8004" event="script" value="addons.lua" />
         <action actionid="8005" event="script" value="addons.lua" />
          <action actionid="8006" event="script" value="addons.lua" />
           <action actionid="8007" event="script" value="addons.lua" />
            <action actionid="8008" event="script" value="addons.lua" />
             <action actionid="8009" event="script" value="addons.lua" />
              <action actionid="8010" event="script" value="addons.lua" />
               <action actionid="8011" event="script" value="addons.lua" />
                <action actionid="8012" event="script" value="addons.lua" />
                 <action actionid="8013" event="script" value="addons.lua" />
                  <action actionid="8014" event="script" value="addons.lua" />
                    <action actionid="8015" event="script" value="addons.lua" />
                     <action actionid="8016" event="script" value="addons.lua" />
                      <action actionid="8017" event="script" value="addons.lua" />
                       <action actionid="8018" event="script" value="addons.lua" />
                         <action actionid="8019" event="script" value="addons.lua" />
                         <action actionid="8020" event="script" value="addons.lua" />
                          <action actionid="8021" event="script" value="addons.lua" />
                           <action actionid="8022" event="script" value="addons.lua" />
                            <action actionid="8023" event="script" value="addons.lua" />
and change outfit.xml from xml folder
outfit.xml
and u can add it if u need

opem monster folder and make new folder call outfit and add download this files
and now opem monster.xml and add this
Code:
    <!-- outfit -->
        <monster name="Citizen" file="outfit/Citizen.xml"/>
        <monster name="Knight" file="outfit/knight.xml"/>
        <monster name="Hunter" file="outfit/hunter.xml"/>
        <monster name="Mage" file="outfit/mage.xml"/>
        <monster name="Barbarian" file="outfit/Barbarian.xml"/>
        <monster name="Druid" file="outfit/druid.xml"/>
        <monster name="Summoner" file="outfit/Summoner.xml"/>
        <monster name="Warrior" file="outfit/Warrior.xml"/>
        <monster name="Nobleman" file="outfit/Nobleman.xml"/>
        <monster name="Wizard" file="outfit/Wizard.xml"/>
        <monster name="Oriental" file="outfit/Oriental.xml"/>
        <monster name="Pirate" file="outfit/Pirate.xml"/>
        <monster name="Assassin" file="outfit/Assassin.xml"/>
        <monster name="Beggar" file="outfit/Beggar.xml"/>
        <monster name="Shaman" file="outfit/Shaman.xml"/>
        <monster name="Norseman" file="outfit/Norseman.xml"/>
        <monster name="Nightmare Outfit" file="outfit/Nightmare Outfit.xml"/>
        <monster name="Jester" file="outfit/Jester.xml"/>
        <monster name="Brotherhood" file="outfit/Brotherhood.xml"/>
        <monster name="Demonhunter" file="outfit/Demonhunter.xml"/>
        <monster name="Yalaharian" file="outfit/Yalaharian.xml"/>
        <monster name="Warmaster" file="outfit/Warmaster.xml"/>
        <monster name="Wayfarer" file="outfit/Wayfarer.xml"/>
jKhRHBCGJ.png

http://www.speedy*****malware.localhost/tMPA3/outfit.rar
u can make this script with monster outfit too
sorry for my bad english
 
Last edited:
if i want all of them in 1 lever and you get a random outfit

Can you reuplode it on mediafire please because iam leving in ksa and speedeshare is blocked here
 
Last edited by a moderator:
u can make outfit changer
action.xml
Code:
 <action actionid="9974" event="script" value="outfitmonster" />
and outfitmonster.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 9974 and (doPlayerRemoveItem(cid, 6527, 1) == TRUE) and getPlayerFreeCap(cid) >= 100 then  
doPlayerAddItem(cid, 2345, 1) ---- the item
doPlayerSendTextMessage(cid,21,"You bought Monster Outfit Changer!")
elseif item.itemid == 1946 and getPlayerFreeCap(cid) >= 85 then
doPlayerSendTextMessage(cid,21,"Please Try Again!")
doTransformItem(item.uid, item.itemid - 1)
else
doPlayerSendCancel(cid,"You don't got enought Token!")
end
return TRUE
end

action.xml
Code:
<action itemid="2345" event="script" value="other/outfita.lua"/>
outfit.lua
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 == 101 then
        doCreatureSay(cid, 'No charges left', TALKTYPE_ORANGE_1, false, cid)
        doRemoveItem(item.uid)
    else
        doItemSetAttribute(item.uid, 'aid', n)
        doCreatureSay(cid, 103-n .. ' charges left', TALKTYPE_ORANGE_1, false, cid)
    end
    return true
end

u can make it with 4 charge 5+++ just change if item.actionid == 101 then for 104 +
 
Hi can you please reuplode somthing for me because i cant downlode it in the contry iam living in it is blocked
http://www.speedy*****malware.localhost/tMPA3/outfit.rar reuplode it on mediafire
 
Hi can you please reuplode somthing for me because i cant downlode it in the contry iam living in it is blocked
http://www.speedy*****malware.localhost/tMPA3/outfit.rar reuplode it on mediafire
Scanned using VirusTotal. 0/42.
Downloaded and rehosted here. I have no idea what's inside. Download at your own risk.
 
Ok how to make this script like the one for the addon but random like when you use the lever you get a random monster outfit but you need token "6527"
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 == 101 then
        doCreatureSay(cid, 'No charges left', TALKTYPE_ORANGE_1, false, cid)
        doRemoveItem(item.uid)
    else
        doItemSetAttribute(item.uid, 'aid', n)
        doCreatureSay(cid, 103-n .. ' charges left', TALKTYPE_ORANGE_1, false, cid)
    end
    return true
end
 
Like the one in evolera.se the one that when you use you get a random monster outfit
 
so u need somthing like this?
Code:
--[[
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Addon System by Shawak (Maxi)
    Version v1.0
    ~~~ Rememeber ~~~~~~~~~~~~~~~
    This script set storagevalues
    to save the addons.
    Storage = 14000 + actionid of
    item.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]]--
local config = {
    [5001] = {
        name = "monster outfit", -- name
        addon_type = 1,               -- addon
        outfit = {235,235},           -- female / male
        cost = 5500000000,
        items = {},
    },
    [5002] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {232,232},
        cost = 5000000000,
        items = {},
    },
    [5003] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {231,231},
        cost = 4500000000,
        items = {},
    },
    [5004] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {312,312},
        cost = 4000000000,
        items = {},
    },
    [5005] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {234,234},
        cost = 3500000000,
        items = {},
    },
    [5006] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {246,246},
        cost = 3250000000,
        items = {},
    },
    [5007] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {233,233},
        cost = 3150000000,
        items = {},
    },
    [5008] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {256,256},
        cost = 3000000000,
        items = {},
    },
    [5009] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {236,236},
        cost = 2900000000,
        items = {},
    },
    [5010] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {102,102},
        cost = 2800000000,
        items = {},
    },
    [5011] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {92,92},
        cost = 2700000000,
        items = {},
    },
    [5012] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {291,291},
        cost = 2600000000,
        items = {},
    },
    [5013] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {243,243},
        cost = 2500000000,
        items = {},
    },
    [5014] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {326,326},
        cost = 2400000000,
        items = {},
    },
    [5015] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {308,308},
        cost = 2300000000,
        items = {},
    },
    [5016] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {322,322},
        cost = 2200000000,
        items = {},
    },
    [5017] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {244,244},
        cost = 2100000000,
        items = {},
    },
    [5018] = {
        name = "monster outfit",
        addon_type = 1,
        outfit = {317,317},
        cost = 2000000000,
        items = {},
    },
    [5019] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {295,295},
        cost = 15000000,
        items = {},
    },
    [5020] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {201,201},
        cost = 15000000,
        items = {},
    },
    [5021] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {290,290},
        cost = 15000000,
        items = {},
    },
    [5022] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {300,300},
        cost = 15000000,
        items = {},
    },
    [5023] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {12,12},
        cost = 15000000,
        items = {},
    },
    [5024] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {87,87},
        cost = 15000000,
        items = {},
    },
    [5025] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {90,90},
        cost = 15000000,
        items = {},
    },
    [5026] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {348,348},
        cost = 15000000,
        items = {},
    },
    [5027] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {351,351},
        cost = 15000000,
        items = {},
    },
    [5028] = {
        name = "a vip outfit",
        addon_type = 1,
        outfit = {344,344},
        cost = 15000000,
        items = {},
    },
} -------- config end -------
local storage = 16000
function onUse(cid, item, fromPosition, itemEx, toPosition)
        local addon, removeItems, removeMoney = config[item.actionid], 0, 0
         if getPlayerStorageValue(cid, storage + item.actionid) ~= 1 then
                if getPlayerMoney(cid) >= addon.cost then
                        removeMoney = 1
                end
                if #addon.items > 0 then
                        for i = 1, #addon.items do
                                if getPlayerItemCount(cid, addon.items[i][1]) >= addon.items[i][2] then
                                        removeItems = removeItems+1
                                end
                        end
                end
                if removeMoney == 1 and removeItems == #addon.items then
                        for i = 1, #addon.items do
                                doPlayerRemoveItem(cid, addon.items[i][1], addon.items[i][2])
                        end
                        doPlayerRemoveMoney(cid, addon.cost)
                        doPlayerAddOutfit(cid, addon.outfit[1], addon.addon_type)
                        doPlayerAddOutfit(cid, addon.outfit[2], addon.addon_type)
                        setPlayerStorageValue(cid, storage + item.actionid, 1)
                        doPlayerSendTextMessage(cid, 21, "Now you can use the "..addon.name..".")
                else
                        if addon.cost ~= 0 then
                                msg = "You need "..addon.cost.." gold coins and "
                        else
                                msg = "You need "
                        end
                        if #addon.items > 0 then
                                for i = 1, #addon.items do
                                        msg = msg..""..addon.items[i][2].."x "..getItemNameById(addon.items[i][1]).." "
                                end
                        end
                        doPlayerSendTextMessage(cid, 21, msg.."for the "..addon.name..".")
                end
        else
                doPlayerSendTextMessage(cid, 21, "You already have the "..addon.name..".")
        end
        return TRUE
end
Code:
     <action actionid="5001-5028" event="script" value="custom/monster outfits.lua"/>
 
How to make that you get all the addons when you use the lever
Code:
local t = {
--[ACTIONID] = {FEMALEID, MALEID, "OUTFITNAME"}
[8024] = {136, 128, "citizen"},
[8024] = {137, 129, "hunter"},
[8024] = {138, 130, "mage"},
[8024] = {139, 131, "knight"},
[8024] = {140, 132, "nobleman"},
[8024] = {141, 133, "summoner"},
[8024] = {142, 134, "warrior"},
[8024] = {147, 143, "barbarian"},
[8024] = {148, 144, "druid"},
[8024] = {149, 145, "wizard"},
[8024] = {150, 146, "oriental"},
[8024] = {155, 151, "pirate"},
[8024] = {156, 152, "assassin"},
[8024] = {157, 153, "beggar"},
[8024] = {158, 154, "shaman"},
[8024] = {252, 251, "norseman"},
[8024] = {269, 268, "nightmare"},
[8024] = {270, 273, "jester"},
[8024] = {279, 278, "brotherhood"},
[8024] = {288, 289, "demonhunter"},
[8024] = {324, 325, "yalaharian"},
[8024] = {336, 335, "warmaster"},
[8024] = {366, 367, "wayfarer"}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local v = t[item.actionid]
    local k = getPlayerSex(cid) == 0 and v[1] or v[2]
    local msg = {"You\'ve already obtained the "..v[3].." addons!", "You don't have any Tokens.", "Congratulations, you\'ve obtained the "..v[3].." addons!"}
    if canPlayerWearOutfit(cid, k, 3) then
        return doPlayerSendCancel(cid, msg[1]), doSendMagicEffect(getThingPos(cid), CONST_ME_POFF), false
    end
    if getPlayerItemCount(cid, 6527) < 40 then
        return doPlayerSendCancel(cid, msg[2]), doSendMagicEffect(getThingPos(cid), CONST_ME_POFF), false
    end
    doPlayerAddOutfit(cid, k, 3)
    doPlayerRemoveItem(cid, 6527, 40)
    doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
    return true
end
 
u need all addons in one lever ? if u need all in one lever do it by npc
 
ya but the problem is that there is no npc's in my server they dont work
 
that for outfit monster
Code:
local config = {
    cost = {6527, 4}
    }
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not doPlayerRemoveItem(cid, config.cost[1], config.cost[2]) then
    doCreatureSay(cid, "You need "..config.cost[2].." " .. getItemInfo(config.cost[1]).plural .. " to change your outfit ", TALKTYPE_ORANGE_1)
        doSendMagicEffect(getThingPos(cid), 2)
        return true
    end
local v, tmp = math.random(333), getCreatureOutfit(cid)
while isInArray({tmp.lookType, 75, 135, 266, 302}, v) == TRUE or v <= 1 or (v > 160 and v < 192) or v > 333 do
v = math.random(351)
end

tmp.lookType = v
doCreatureChangeOutfit(cid, tmp)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doCreatureSay(cid, 'Your outfit has been changed.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
return TRUE
end
Code:
<action actionid="5888" script="monsteroutfit.lua"/>
 
Back
Top