Ir para conteúdo

Featured Replies

Postado

Então Galerinha esta dando este erro no Distro

Mostrar conteúdo oculto 1z4eoow.png

Quando Cria um Char não começa com nem um item,ou seja começa limpo

Eu migrei de 0.3 para 0.4 e acredito que o script do firstitem bugou

Alguem poderia me ajudar? +REP

Aqui o script do firstItems !

Mostrar conteúdo oculto

local commonItems = {


-- ITEMS ALL VOCS RECEIVE
{itemid=2120, count=1}, -- rope
{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=5801, count=1}, -- key ring
}

local firstItems = {
{ -- SORC ITEMS
{itemid=2323, count=1}, -- hat of the mad
{itemid=8871, count=1}, -- focus cape
{itemid=7730, count=1}, -- blue legs
{itemid=3982, count=1}, -- crocodile boots
{itemid=8902, count=1}, -- spellbook of mind control
{itemid=2187, count=1}, -- wand of inferno

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7590, count=1}, -- gmp
{itemid=2293, count=1}, -- mw
{itemid=7589, count=1}, -- strong
{itemid=7620, count=1}, -- mp
},
{ -- DRUID ITEMS
{itemid=2323, count=1}, -- hat of the mad
{itemid=8871, count=1}, -- focus cape
{itemid=7730, count=1}, -- blue legs
{itemid=3982, count=1}, -- crocodile boots
{itemid=8902, count=1}, -- spellbook of mind control
{itemid=2181, count=1}, -- terra 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
{itemid=7589, count=1}, -- strong
{itemid=7620, count=1}, -- mp
},
{ -- PALADIN ITEMS
{itemid=2493, count=1}, -- demon helmet
{itemid=8891, count=1}, -- paladin armor
{itemid=7730, count=1}, -- blue legs
{itemid=3982, count=1}, -- crocodile boots
{itemid=2514, count=1}, -- mastermind shield
{itemid=7368, count=10}, -- assassin stars

{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
{itemid=7620, count=1}, -- mp
{itemid=7618, count=1}, -- hp
},
{ -- KNIGHT ITEMS
{itemid=2493, count=1}, -- demon helmet
{itemid=2472, count=1}, -- magic plate armor
{itemid=2470, count=1}, -- golden legs
{itemid=3982, count=1}, -- crocodile boots
{itemid=2514, count=1}, -- mastermind shield
{itemid=2400, count=1}, -- magic sword

{itemid=7620, count=1}, -- mp
{itemid=7591, count=1}, -- ghp
{itemid=7618, count=1}, -- hp
{itemid=2293, count=1}, -- mw
{itemid=7588, count=1}, -- strong Health
}
}

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 equipment")
setPlayerStorageValue(cid, 67708, 1)
end
end
end
return TRUE
end

e outra nao da erro no script so da este erro no vocation mais nao vem os itens iniciais

aqui o script do vocations.xml

Mostrar conteúdo oculto

www.4shared.com/document/S4Mwcy52ce/vocations.html

VENHAM JOGAR O MELHOR BAIAK JÁ CRIADO DE 2022!!

 

CRIE SUA CONTA AGORA MESMO!

 

www.baiakudo.com

Postado

Posta seu vocations aqui também como você postou o firstItems

>>> Baiak Slayer <<<

 

Baiak Slayer 24h PVP 8.6

Site e IP: baiakslayer.org

 

Informações:

 

» 24 Horas Online

» Mapa próprio da equipe Slayer (Spawns próprias)

» Vocações balanceadas

» Use o Cliente Baiak Slayer

» 40+ Raids Automáticas

» Grupo de Tutores Competentes

» Excelente Suporte In-Game

» 10.173+ Spawns

» War System full

» Sem Corrupção

» Task Completa

 

» EXP Rate: 250x Inicial (Estagiada)

» Skill Rate: 30 x

» Magic Rate: 15 x

» Loot Rate: Própria do Servidor (Eventos Double Loot)

 

Não perca mais tempo!

 

Entre e divirta-se!!

 

  Citar

 

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.6k

Informação Importante

Confirmação de Termo