Ir para conteúdo

Featured Replies

Postado

@mikaelkelvin creio que ela vai ajuda seu problema !

                                   logo.png

 WhatsApp Suporte : 79 996473707

E-mail: suport@jservers.com.br

Atendimento via Live Chat:

http://jservers.com.br/

                                                       
 

                                                       

                                                  

  • Respostas 13
  • Visualizações 531
  • Created
  • Última resposta

Top Posters In This Topic

Posted Images

Postado
  • Autor
  Em 31/03/2018 em 04:57, Jobs disse:

firstitems.lua em creaturescript.

local commonItems = {
  -- ITEMS ALL VOCS RECEIVE
  {itemid=2120, count=1}, -- rope
  {itemid=5710, count=1}, -- shovel
  {itemid=2789, count=10}, -- brown mushrooms
  {itemid=2305, count=1}, -- fire bomb rune
  {itemid=2261, count=1}, -- destroy field rune
  {itemid=2274, count=1}, -- Avalanche
  {itemid=2273, count=1}, -- uh
}

local firstItems = {
  { -- SORC ITEMS
    {itemid=2323, count=1}, -- hat of the mad
    {itemid=8871, count=1}, -- focus cape
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=2191, count=1}, -- dragonbricz

    {itemid=2268, count=1}, -- sd
    {itemid=7620, count=1}, -- mp
    {itemid=2293, count=1}, -- mw
  },
  { -- DRUID ITEMS
    {itemid=2323, count=1}, -- hat of the mad
    {itemid=8871, count=1}, -- focus cape
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=2186, count=1}, --  monlajt rod

    {itemid=2268, count=1}, -- sd
    {itemid=2269, count=1}, -- krzaczek
    {itemid=2293, count=1}, -- mw
    {itemid=7620, count=1}, -- mp
  },
  { -- PALADIN ITEMS
    {itemid=2457, count=1}, -- steel helmet
    {itemid=8872, count=1}, -- belted cape
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=7368, count=1}, -- assassin stars

    {itemid=2268, count=1}, -- sd
    {itemid=8472, count=1}, -- gsp
    {itemid=7620, count=1}, -- mp
    {itemid=2293, count=1}, -- mw
  },
  { -- KNIGHT ITEMS
    {itemid=2457, count=1}, -- steel helmet
    {itemid=2463, count=1}, -- plate arm
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=2400, count=1}, -- magic sword

    {itemid=7620, count=1}, -- mp
    {itemid=7618, count=1}, -- hp
    {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, 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!")
      end
      setPlayerStorageValue(cid, 67708, 1)
    end
  end
  return TRUE
end

Postado
  Em 31/03/2018 em 05:04, mikaelkelvin disse:

local commonItems = {
  -- ITEMS ALL VOCS RECEIVE
  {itemid=2120, count=1}, -- rope
  {itemid=5710, count=1}, -- shovel
  {itemid=2789, count=10}, -- brown mushrooms
  {itemid=2305, count=1}, -- fire bomb rune
  {itemid=2261, count=1}, -- destroy field rune
  {itemid=2274, count=1}, -- Avalanche
  {itemid=2273, count=1}, -- uh
}

local firstItems = {
  { -- SORC ITEMS
    {itemid=2323, count=1}, -- hat of the mad
    {itemid=8871, count=1}, -- focus cape
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=2191, count=1}, -- dragonbricz

    {itemid=2268, count=1}, -- sd
    {itemid=7620, count=1}, -- mp
    {itemid=2293, count=1}, -- mw
  },
  { -- DRUID ITEMS
    {itemid=2323, count=1}, -- hat of the mad
    {itemid=8871, count=1}, -- focus cape
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=2186, count=1}, --  monlajt rod

    {itemid=2268, count=1}, -- sd
    {itemid=2269, count=1}, -- krzaczek
    {itemid=2293, count=1}, -- mw
    {itemid=7620, count=1}, -- mp
  },
  { -- PALADIN ITEMS
    {itemid=2457, count=1}, -- steel helmet
    {itemid=8872, count=1}, -- belted cape
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=7368, count=1}, -- assassin stars

    {itemid=2268, count=1}, -- sd
    {itemid=8472, count=1}, -- gsp
    {itemid=7620, count=1}, -- mp
    {itemid=2293, count=1}, -- mw
  },
  { -- KNIGHT ITEMS
    {itemid=2457, count=1}, -- steel helmet
    {itemid=2463, count=1}, -- plate arm
    {itemid=2647, count=1}, -- p legs
    {itemid=2643, count=1}, -- lejter buts
    {itemid=2525, count=1}, -- dfarfen szild
    {itemid=2400, count=1}, -- magic sword

    {itemid=7620, count=1}, -- mp
    {itemid=7618, count=1}, -- hp
    {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, 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!")
      end
      setPlayerStorageValue(cid, 67708, 1)
    end
  end
  return TRUE
end

qual id da bp que ta vindo?

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo