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

First Items

lol94

Loler
Joined
Dec 23, 2008
Messages
764
Reaction score
55
Location
Mexico
Hey guys! im doing a war-pvpe server so.. i just got a problem... how the hell can i put the first items.. like diferents items for diferent vocation please helpme and i will REP++++!
 
lissent man do like this
Go to you phpmyadmin
And You Got 4 samples
Druid Sample
Knight Sample
Sorcerer Sample
Paladin Sample
And Just Log in on the samples place the eq and supplise on each character
than you logg out from char do a server save
And the war characters i guess thay will be based on the samples so than it works rep++ if i helped you
 
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