• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Items Drop On Floor When Character Leaves Rook!

Zaggyzigzig

plx itens menz
Joined
Aug 25, 2014
Messages
386
Reaction score
50
Location
Canada Ontario
Most of the equiptment is droped on the floor when a player has chosen their volcation and is teleported to the temple, It is all on the ground under them


using Avesta
Heres my script!

Code:
local vocitems = {
  [1] = { -- sorcerer
  container = {
  {id = 2160, count = 1},
  {id = 2160, count = 1},
  {id = 2160, count = 1}
  },
  eq = {
  {id = 2656, count = 1},
  {id = 2647, count = 1},
  {id = 2160, count = 1},
  {id = 2160, count = 1},
  {id = 2647, count = 1},
  {id = 2643, count = 1}
  }
  },
  [2] = { -- druid
  container = {
  {id = 2120, count = 1},
  {id = 2554, count = 1},
  {id = 2674, count = 1}
  },
  eq = {
  {id = 2525, count = 1},
  {id = 2182, count = 1},
  {id = 2457, count = 1},
  {id = 2463, count = 1},
  {id = 2647, count = 1},
  {id = 2643, count = 1}
  }
  },
  [3] = { -- paladin
  container = {
  {id = 2120, count = 1},
  {id = 2554, count = 1},
  {id = 2674, count = 1}
  },
  eq = {
  {id = 2525, count = 1},
  {id = 2389, count = 5},
  {id = 2457, count = 1},
  {id = 2463, count = 1},
  {id = 2647, count = 1},
  {id = 2643, count = 1}
  }
  },
  [0] = { -- no vocation
  container = {
  {id = 2162, count = 1},
  {id = 2389, count = 5},
  {id = 3976, count = 20},
  {id = 2580, count = 1}
  },
  eq = {
  {id = 2402, count = 1},
  {id = 2050, count = 1},
  {id = 2467, count = 1},
  {id = 2512, count = 1}
  }
  },
  [4] = { -- knight
  container = {
  {id = 2120, count = 1},
  {id = 2554, count = 1},
  {id = 2674, count = 1}
  },
  eq = {
  {id = 2525, count = 1},
  {id = 2409, count = 1},
  {id = 2457, count = 1},
  {id = 2463, count = 1},
  {id = 2647, count = 1},
  {id = 2643, count = 1}
  }
  }
}
function onLogin(cid)
  if getPlayerStorageValue(cid, 20933) == -1 then
  setPlayerStorageValue(cid, 20933, 1)
  local x = vocitems[getPlayerVocation(cid)]
  if x then
  for e = 1, #x.eq do
  doPlayerAddItem(cid, x.eq[e].id, x.eq[e].count)
  end
  local bag = doPlayerAddItem(cid, 2000, 1)
  for c = 1, #x.container do
  doAddContainerItem(bag, x.container[c].id, x.container[c].count)
  end
  end
  end
  return TRUE
end
 
Last edited by a moderator:
Back
Top