• 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!

[WAROT]Help needed

Toitsss

New Member
Joined
Sep 15, 2008
Messages
47
Reaction score
0
Hello, i need help to fix my Starting gear on a war ot, ive tried to fix it myself for the last hour now, im looking for help, seriously, lol.
Code:
local commonItems = {
  -- ITEMS ALL VOCS RECEIVE
  {itemid=2120, count=1}, -- rope
  {itemid=5710, count=1}, -- shovel
  {itemid=2420, count=1}, -- machete
  {itemid=2789, count=100}, -- brown mushrooms
  {itemid=2305, count=1}, -- fire bomb rune
  {itemid=2261, count=1}, -- destroy field rune
}

local firstItems = {
  { -- SORC ITEMS
    {itemid=2323, count=1}, -- hat of the mad
    {itemid=8871, count=1}, -- focus cape
    {itemid=8902, count=1}, -- spellbook of mind control
    {itemid=2187, count=1}, -- wand of inferno 
    {itemid=7730, count=1}, -- blue legs
    {itemid=2195, count=1}, -- boots of haste


    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=7590, count=1}, -- gmp
    {itemid=2293, count=1}, -- mw
    {itemid=7589, count=1}, -- smp
    {itemid=2274, count=1}, -- Avalanche

  },
  { -- DRUID ITEMS
    {itemid=2323, count=1}, -- hat of the mad
    {itemid=8871, count=1}, -- focus cape
    {itemid=8902, count=1}, -- spellbook of mind control
    {itemid=2183, count=1}, -- hailstorm rod  
    {itemid=7730, count=1}, -- blue legs
    {itemid=2195, count=1}, -- boots of haste



    {itemid=3940, count=1}, -- Backpack
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=7590, count=1}, -- gmp
    {itemid=2293, count=1}, -- mw
    {itemid=2269, count=1}, -- wg
    {itemid=2278, count=1}, -- para
    {itemid=7589, count=1}, -- smp
    {itemid=2274, count=1}, -- Avalanche

  },
  { -- PALADIN ITEMS
    {itemid=2493, count=1}, -- demon helmet
    {itemid=8891, count=1}, -- paladin armor
    {itemid=2514, count=1}, -- mastermind shield
    {itemid=7368, count=1}, -- assassin stars
    {itemid=7730, count=1}, -- blue legs
    {itemid=2195, count=1}, -- boots of haste

    {itemid=3940, count=1}, -- Backpack
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=8472, count=1}, -- gsp
    {itemid=7589, count=1}, -- smp
    {itemid=7588, count=1}, -- shp
    {itemid=2293, count=1}, -- mw
    {itemid=2274, count=1}, -- Avalanche

  },
  { -- KNIGHT ITEMS
    {itemid=2493, count=1}, -- demon helmet
    {itemid=2472, count=1}, -- magic plate armor
    {itemid=2514, count=1}, -- mastermind shield
    {itemid=2400, count=1}, -- magic sword
    {itemid=2470, count=1}, -- golden legs
    {itemid=2195, count=1}, -- boots of haste



    {itemid=1988, count=1}, -- Backpack
    {itemid=7620, count=1}, -- mp
    {itemid=7591, count=1}, -- ghp
    {itemid=8473, count=1}, -- uhp
    {itemid=2273, count=1}, -- uh
    {itemid=2293, count=1}, -- mw
  }
}

for _, items in ipairs(firstItems) do
  for _, item in ipairs(commonItems) do
    table.insert(items, item)
  end
end

function onLogin(cid)

  if getPlayerGroupId(cid) < 2 then
    local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)

    if hasReceivedFirstItems ~= 1 then
      --[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)

      local giveItems = firstItems[getPlayerVocation(cid)]

      if giveItems ~= nil then
        for _, v in ipairs(giveItems) do
          --doAddContainerItem(backpack, v.itemid, 1)
          doPlayerAddItem(cid, v.itemid, 1)
        end

        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved your first items!")
      end
      setPlayerStorageValue(cid, 67708, 1)
    end
  end
  return TRUE
end

What i would like to have is
*Every vocation

*BP with 5 Might ring, 5 Time ring, 5 Sword rings and 5 Energy rings
*BP with 20 Stone Skin amulets in it.

Mages to have all of the runes they have inside a different backpack.
I would appreciate your help.

EDIT :
2164 - Might Ring
2167 - Energy Ring
2207 - Sword Ring
2206 - Time Ring
2197 - Stone Skin Amulet


EDIT II :
If its possible, the armors and shields and etc at the right places, if theres a command which gives orders.
 
Last edited:
Do it as in the example, adding next items is analogic.
if hasReceivedFirstItems ~= 1 then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)

doAddContainerItem(backpack, id, count)
doAddContainerItem(backpack, id, count)
doAddContainerItem(backpack, id, count)
doAddContainerItem(backpack, id, count)
id - your id, count number of items
 
If you think everyone gonna fix it 4 u, i dont think you need to host a OT when your not spending so much time at it and learn more things in the BIG OT world, likte scripting for example!
Try it yourself, then you can ask people to help you :)
 
If you think everyone gonna fix it 4 u, i dont think you need to host a OT when your not spending so much time at it and learn more things in the BIG OT world, likte scripting for example!
Try it yourself, then you can ask people to help you :)

Could you read my second post, ?
ive tried it many times, it never works. All i get is the new backpack inside the main backpack and nothing in it.
 
Back
Top