Ir para conteúdo

Featured Replies

Postado

Toda vez que eu faço um persongem pelo site e vou entrar no ot

ele já vem como os items alguém poderia mim ajuda?


alguém?


alguém porfavor :D

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Resolvido por roriscrave

Ir para solução
  • Respostas 14
  • Visualizações 635
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado

Como o Luan disse, é em creaturescripts... Tenho um de de exemplo aqui, mas tem que mudar os itens...

firstitems.lua

Mostrar conteúdo oculto

 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
  {itemid=2160, count=5}, -- crystal
}
 
local firstItems = {
  { -- SORC ITEMS
    {itemid=9778, count=1}, -- 
    {itemid=8871, count=1}, -- focus cape
    {itemid=7894, count=1}, -- 
    {itemid=2195, count=1}, -- boots of haste
    {itemid=8918, count=1}, -- 
    {itemid=7958, count=1}, -- 
 
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=7590, count=1}, -- gmp
    {itemid=2293, count=1}, -- mw
  },
  { -- DRUID ITEMS
    {itemid=9778, count=1}, -- 
    {itemid=8871, count=1}, -- focus cape
    {itemid=7894, count=1}, -- 
    {itemid=2195, count=1}, -- boots of haste
    {itemid=8918, count=1}, -- 
    {itemid=7958, count=1}, -- hailstorm rod  
 
    {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
  },
  { -- PALADIN ITEMS
    {itemid=2343, count=1}, -- demon helmet
    {itemid=8888, count=1}, -- paladin armor
    {itemid=2495, count=1}, -- blue legs
    {itemid=2195, count=1}, -- boots of haste
    {itemid=8851, count=1}, -- 
    {itemid=6529, count=1}, -- 
 
    {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
  },
  { -- KNIGHT ITEMS
    {itemid=2493, count=1}, -- demon helmet
    {itemid=8882, count=1}, -- magic plate armor
    {itemid=2495, count=1}, -- golden legs
    {itemid=2195, count=1}, -- boots of haste
    {itemid=6391, count=1}, -- mastermind shield
    {itemid=2454, count=1}, -- war axe
    {itemid=2408, count=1}, -- war sword
    {itemid=8927, count=1}, -- war clube
 
    {itemid=7620, count=1}, -- mp
    {itemid=7591, count=1}, -- ghp
    {itemid=8473, count=1}, -- uhp
    {itemid=2313, count=1}, -- explosion
    {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, "Bem-Vindo ao Rebuke-War!.")
        setPlayerStorageValue(cid, 67708, 1)  
      end
    end
  end
  return TRUE
end



Em creaturescripts.xml coloque essa tag:

Mostrar conteúdo oculto

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



Ajudei? REP+

Postado
  • Autor
  Em 15/07/2014 em 00:36, luanluciano93 disse:

Creio que seja o script first items que dá os items inicias, fica em creaturescript/scripts/firstitems.lua

não tem nada disso no creaturescript

antes de eu instalar website não vinha esses items

 

  Em 15/07/2014 em 00:53, Leoo Zanin disse:

 

Como o Luan disse, é em creaturescripts... Tenho um de de exemplo aqui, mas tem que mudar os itens...

firstitems.lua

Mostrar conteúdo oculto

 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
  {itemid=2160, count=5}, -- crystal
}
 
local firstItems = {
  { -- SORC ITEMS
    {itemid=9778, count=1}, -- 
    {itemid=8871, count=1}, -- focus cape
    {itemid=7894, count=1}, -- 
    {itemid=2195, count=1}, -- boots of haste
    {itemid=8918, count=1}, -- 
    {itemid=7958, count=1}, -- 
 
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=7590, count=1}, -- gmp
    {itemid=2293, count=1}, -- mw
  },
  { -- DRUID ITEMS
    {itemid=9778, count=1}, -- 
    {itemid=8871, count=1}, -- focus cape
    {itemid=7894, count=1}, -- 
    {itemid=2195, count=1}, -- boots of haste
    {itemid=8918, count=1}, -- 
    {itemid=7958, count=1}, -- hailstorm rod  
 
    {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
  },
  { -- PALADIN ITEMS
    {itemid=2343, count=1}, -- demon helmet
    {itemid=8888, count=1}, -- paladin armor
    {itemid=2495, count=1}, -- blue legs
    {itemid=2195, count=1}, -- boots of haste
    {itemid=8851, count=1}, -- 
    {itemid=6529, count=1}, -- 
 
    {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
  },
  { -- KNIGHT ITEMS
    {itemid=2493, count=1}, -- demon helmet
    {itemid=8882, count=1}, -- magic plate armor
    {itemid=2495, count=1}, -- golden legs
    {itemid=2195, count=1}, -- boots of haste
    {itemid=6391, count=1}, -- mastermind shield
    {itemid=2454, count=1}, -- war axe
    {itemid=2408, count=1}, -- war sword
    {itemid=8927, count=1}, -- war clube
 
    {itemid=7620, count=1}, -- mp
    {itemid=7591, count=1}, -- ghp
    {itemid=8473, count=1}, -- uhp
    {itemid=2313, count=1}, -- explosion
    {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, "Bem-Vindo ao Rebuke-War!.")
        setPlayerStorageValue(cid, 67708, 1)  
      end
    end
  end
  return TRUE
end

Em creaturescripts.xml coloque essa tag:

Mostrar conteúdo oculto

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

Ajudei? REP+

 

não tem nada disso no creaturescript

antes de eu instalar website não vinha esses items

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

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