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

Windows Gesior + Account Manager 1/1

crewneles

New Member
Joined
Mar 21, 2010
Messages
50
Reaction score
1
Good Gesior added the Account Manager and the famous 1 / 1, plus the characters created by the account manager with items are not coming, does anyone know what might be? and how to fix this bug?
 
lol, make a first item script, like this one.
first go to data/creature script/scripts
and make a lua whit the name >> Firstitems.lua
and put this

Code:
local commonItems = {
  -- ITEMS ALL VOCS RECEIVE          [COLOR="Lime"]-- all vocs will recive this items[/COLOR]
  {itemid=here the id of item, count=here how much items}, 
  {itemid=here the id of item, count=}here how much items, 
  {itemid=here the id of item, count=}here how much items, 
  {itemid=here the id of item, count=}here how much items, 
  {itemid=here the id of item, count=}here how much items, 
  {itemid=here the id of item, count=}here how much items, 
  {itemid=here the id of item, count=}here how much items, 
}

local firstItems = {
  { -- SORC ITEMS           [COLOR="Blue"]--sorc items[/COLOR]
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 

    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items},
  },
  { -- DRUID ITEMS              [COLOR="Blue"]--druid items[/COLOR]
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items},  

    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
  },
  { -- PALADIN ITEMS    [COLOR="Blue"]--pala items[/COLOR]
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 

    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
  },
  { -- KNIGHT ITEMS      [COLOR="Blue"]--knight items[/COLOR]
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 

    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
    {itemid=here the id of item, count=here how much items}, 
  }
}

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

function onLogin(cid)
  if getPlayerGroupId(cid) < 4 then
    local hasReceivedFirstItems = getPlayerStorageValue(cid, 6771408)

    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, v.count or 1)
          doPlayerAddItem(cid, v.itemid, v.count or 1)
        end

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


then go to data\creature scirpt \creature script.xml

and put this

<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>


hope I helped :thumbup:
 
Back
Top