• 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 Addons by quest

povedijah

Member
Joined
Jan 11, 2010
Messages
93
Reaction score
6
Hello dear players.

I have this server in my computer long time ago, i opened for long time and now its open
azuroth.sytes.net
i used addons by quest action i don't renember who create's it bad if you know him tell me this name for credits.
here is the script.

Put this in actions /folder and call it outifts.lua

PHP:
  function onUse(cid, item, frompos, item2, topos)

         if item.uid == 12001 then
             if (getPlayerStorageValue(cid,12010) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Hunter Outfit!")
                doPlayerAddOutfitId(cid,2,3)
                setPlayerStorageValue(cid,12010,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Hunter Outfit.")
end

       elseif item.uid == 12002 then
              if (getPlayerStorageValue(cid,12011) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Mage Outfit!")
                doPlayerAddOutfitId(cid,3,3)
                setPlayerStorageValue(cid,12011,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Mage Outfit.")
end

       elseif item.uid == 12003 then
              if (getPlayerStorageValue(cid,12012) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Knight Outfit!")
                doPlayerAddOutfitId(cid,4,3)
                setPlayerStorageValue(cid,12012,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Knight Outfit.")
        end


    elseif item.uid == 12004 then
           if (getPlayerStorageValue(cid,12013) == -1) and getPlayerSex(cid) == 1 then
                doPlayerSendTextMessage(cid,21,"You now have the Nobleman Outfit!")
                doPlayerAddOutfitId(cid,5,3)
                setPlayerStorageValue(cid,12013,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
                else if(getPlayerStorageValue(cid,12013) == -1) and getPlayerSex(cid) == 0 then
                doPlayerSendTextMessage(cid,21,"You now have the Noblewoman Outfit!")
                doPlayerAddOutfitId(cid,5,3)
                setPlayerStorageValue(cid,12013,1)
        else
                doPlayerSendTextMessage(cid,25,"You Already have this outfit.")        
        end
           end

   
   elseif item.uid == 12005 then
        if (getPlayerStorageValue(cid,12014) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Summoner Outfit!")
                doPlayerAddOutfitId(cid,6,3)
                setPlayerStorageValue(cid,12014,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Summoner Outfit.")
        end

   elseif item.uid == 12006 then
          if (getPlayerStorageValue(cid,12015) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Warrior Outfit!")
                doPlayerAddOutfitId(cid,7,3)
                setPlayerStorageValue(cid,12015,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Warrior Outfit.")
        end

   elseif item.uid == 12007 then
          if (getPlayerStorageValue(cid,12016) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Barbarian Outfit!")
                doPlayerAddOutfitId(cid,8,3)
                setPlayerStorageValue(cid,12016,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Barbarian Outfit.")
        end

   elseif item.uid == 12008 then
          if (getPlayerStorageValue(cid,12017) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Druid Outfit!")
                doPlayerAddOutfitId(cid,9,3)
                setPlayerStorageValue(cid,12017,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Druid Outfit.")
        end

   elseif item.uid == 12009 then
          if (getPlayerStorageValue(cid,12018) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Wizard Outfit!")
                doPlayerAddOutfitId(cid,10,3)
                setPlayerStorageValue(cid,12018,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Wizard Outfit.")
        end

   elseif item.uid == 12010 then
          if (getPlayerStorageValue(cid,12019) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Oriental Outfit!")
                doPlayerAddOutfitId(cid,11,3)
                setPlayerStorageValue(cid,12019,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Oriental Outfit.")
        end

   elseif item.uid == 12011 then
          if (getPlayerStorageValue(cid,12020) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Pirate Outfit!")
                doPlayerAddOutfitId(cid,12,3)
                setPlayerStorageValue(cid,12020,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Pirate Outfit.")
        end

   elseif item.uid == 12012 then
          if (getPlayerStorageValue(cid,12021) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Assassin Outfit!")
                doPlayerAddOutfitId(cid,13,3)
                setPlayerStorageValue(cid,12021,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Assassin Outfit.")
        end

   elseif item.uid == 12013 then
          if (getPlayerStorageValue(cid,12022) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Beggar Outfit!")
                doPlayerAddOutfitId(cid,14,3)
                setPlayerStorageValue(cid,12022,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Beggar Outfit.")
        end

   elseif item.uid == 12014 then
          if (getPlayerStorageValue(cid,12023) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Shaman Outfit!")
                doPlayerAddOutfitId(cid,15,3)
                setPlayerStorageValue(cid,12023,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Shaman Outfit.")
        end

   elseif item.uid == 12015 then
           if (getPlayerStorageValue(cid,12024) == -1) and getPlayerSex(cid) == 1 then
                doPlayerSendTextMessage(cid,21,"You now have the Norseman Addons!")
                doPlayerAddOutfitId(cid,16,3)
                setPlayerStorageValue(cid,12024,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
                else if(getPlayerStorageValue(cid,12024) == -1) and getPlayerSex(cid) == 0 then
                doPlayerSendTextMessage(cid,21,"You now have the Norsewoman Addons!")
                doPlayerAddOutfitId(cid,16,3)
                setPlayerStorageValue(cid,12024,1)
        else
                doPlayerSendTextMessage(cid,25,"You Already have this outfit.")        
          end
           end


   elseif item.uid == 12016 then
          if (getPlayerStorageValue(cid,12025) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Nightmare Outfit!")
                doPlayerAddOutfitId(cid,17,3)
                setPlayerStorageValue(cid,12025,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Nightmare Outfit.")
        end

   elseif item.uid == 12017 then
          if (getPlayerStorageValue(cid,12026) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Jester Outfit!")
                doPlayerAddOutfitId(cid,18,3)
                setPlayerStorageValue(cid,12026,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Jester Outfit.")
        end

   elseif item.uid == 12018 then
          if (getPlayerStorageValue(cid,12027) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Brotherhood Outfit!")
                doPlayerAddOutfitId(cid,19,3)
                setPlayerStorageValue(cid,12027,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Brotherhood Outfit.")
        end

   elseif item.uid == 12019 then
          if (getPlayerStorageValue(cid,12028) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Demonhunter Outfit!")
                doPlayerAddOutfitId(cid,20,3)
                setPlayerStorageValue(cid,12028,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Demonhunter Outfit.")
        end

   elseif item.uid == 12020 then
          if (getPlayerStorageValue(cid,12029) == -1) then
                doPlayerSendTextMessage(cid,21,"You now have the Yalahari Outfit!")
                doPlayerAddOutfitId(cid,21,3)
                setPlayerStorageValue(cid,12029,1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the Yalahari Outfit.")
        end

    end
        return TRUE
end

Now go actions.xml and put this:
PHP:
<action uniqueid="12001" event="script" value="outfits.lua"/>  -- Hunter 
<action uniqueid="12002" event="script" value="outfits.lua"/>  -- Mage  
<action uniqueid="12003" event="script" value="outfits.lua"/>  -- Knight 
<action uniqueid="12005" event="script" value="outfits.lua"/>  -- Summoner 
<action uniqueid="12006" event="script" value="outfits.lua"/>  -- Warrior 
<action uniqueid="12007" event="script" value="outfits.lua"/>  -- Barbarian 
<action uniqueid="12008" event="script" value="outfits.lua"/>  -- Druid 
<action uniqueid="12009" event="script" value="outfits.lua"/>  -- Wizard  
<action uniqueid="12010" event="script" value="outfits.lua"/>  -- Oriental 
<action uniqueid="12011" event="script" value="outfits.lua"/>  -- Pirate 
<action uniqueid="12012" event="script" value="outfits.lua"/>  -- Assassin 
<action uniqueid="12013" event="script" value="outfits.lua"/>  -- Beggar 
<action uniqueid="12014" event="script" value="outfits.lua"/>  -- Shaman 
<action uniqueid="12015" event="script" value="outfits.lua"/>  -- Norseman 
<action uniqueid="12016" event="script" value="outfits.lua"/>  -- Knightmare 
<action uniqueid="12017" event="script" value="outfits.lua"/>  -- Jester 
<action uniqueid="12018" event="script" value="outfits.lua"/>  -- Brotherhood 
<action uniqueid="12020" event="script" value="outfits.lua"/>  -- Yalahari

Now you only need go chest and put unique id!

If i helped you coment!

Credits for: i don't know!
 
Profit?
Lua:
local t = {
[12001] = {12010,Hunter,2},
[12002] = {12011,Mage,3},
[12003] = {12012,Knight,4},
[12004] = {12013,Nobleman,5},
[12005] = {12014,Summoner,6},
[12006] = {12015,Warrior,7},
[12007] = {12016,Barbarian,8},
[12008] = {12017,Druid,9},
[12009] = {12018,Wizard,10},
[12010] = {12019,Oriental,11},
[12011] = {12020,Pirate,12},
[12012] = {12021,Assassin,13},
[12013] = {12022,Beggar,14},
[12014] = {12023,Shaman,15},
[12015] = {12024,Norse,16},
[12016] = {12025,Nightmare,17},
[12017] = {12026,Jester,18},
[12018] = {12027,Brotherhood,19},
[12019] = {12028,Demonhunter,20},
[12020] = {12029,Yalahri,21}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = t[item.uid]
      if v then
          if getPlayerStorageValue(cid,v[1]) == -1 then
                doPlayerSendTextMessage(cid,21,"You now have the " .. v[2] .. " Outfit!")
                doPlayerAddOutfitId(cid,v[3],3)
                setPlayerStorageValue(cid,v[1],1)
                doSendMagicEffect(getCreaturePosition(cid), math.random(1, 67))
        else
                doPlayerSendTextMessage(cid,25,"You Already have the " .. v[2] .. " Outfit.")
        end
      end
return true
end

XML:
<action uniqueid="12001-12020" event="script" value="outfits.lua"/>
 
Nubs.
Lua:
local t = {
	[12001] = 'Citizen',
	[12002] = 'Hunter',
	[12003] = 'Mage',
	[12004] = 'Knight',
	[12005] = 'Nobleman',
	[12006] = 'Summoner',
	[12007] = 'Warrior',
	[12008] = 'Barbarian',
	[12009] = 'Druid',
	[12010] = 'Wizard',
	[12011] = 'Oriental',
	[12012] = 'Pirate',
	[12013] = 'Assassin',
	[12014] = 'Beggar',
	[12015] = 'Shaman',
	[12016] = 'Norse',
	[12017] = 'Nightmare',
	[12018] = 'Jester',
	[12019] = 'Brotherhood',
	[12020] = 'Demonhunter',
	[12021] = 'Yalaharian',
	[12022] = 'Warmaster'
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not canPlayerWearOutfitId(cid, item.uid - 12000, 3) then
		doCreatureSay(cid, 'You now have the ' ..t[item.uid] .. ' Addons!', TALKTYPE_ORANGE_1)
		doPlayerAddOutfitId(cid, item.uid - 12000, 3)
		doSendMagicEffect(getThingPos(cid), math.random(67))
	else
		doCreatureSay(cid, 'You already have the ' .. t[item.uid] .. ' Addons!', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end
 
[31/12/2010 19:20:47] Lua Script Error: [Action Interface]
[31/12/2010 19:20:47] data/actions/scripts/addon.lua:eek:nUse
[31/12/2010 19:20:47] data/actions/scripts/addon.lua:27: attempt to call global 'canPlayerWearOutfitId' (a nil value)
[31/12/2010 19:20:47] stack traceback:
[31/12/2010 19:20:47] [C]: in function 'canPlayerWearOutfitId'
[31/12/2010 19:20:47] data/actions/scripts/addon.lua:27: in function <data/actions/scripts/addon.lua:26>
 
Back
Top