Ir para conteúdo

Featured Replies

Postado

Aew Galera,

 

Eu estou montando um ot server mapa global 8.60 ja tem site e tals... o problema eh que o char nasce sem itens... como arrumar

 

Favor por passo a passo pq eu sou meio noob kkk

 

vlw

 

Att Wazus

Resolvido por wazus

Ir para solução
  • Respostas 6
  • Visualizações 1.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Bruno Minervino
    Bruno Minervino

    Use este MOD: <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes"> <config name="firstitems_c

  • Coloca na pasta mods do seu servidor.

Postado

Use este MOD:

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"> <![CDATA[
domodlib('firstitems_config')

function onLogin(cid)
local config = {
voc_items = {
{ -- SORC
{2190}, -- wand of vortex
{2175}, -- spellbook
{8820}, -- mage hat
{8819} -- mage robe
},
{ -- DRUID
{2182}, -- snakebite rod
{2175}, -- spellbook
{8820}, -- mage hat
{8819} -- mage robe
},
{ -- PALADIN
{2410}, -- throwing knife
{2530}, -- copper shield
{2480}, -- legion helmet
{2464} -- chain armor
},
{ -- KNIGHT
{2409}, -- serpent sword
{2530}, -- copper shield
{2480}, -- legion helmet
{2464} -- chain armor
}
},
all_items = {
{2468}, -- studded legs
{2643} -- leather boots
},
extra_items = {
{2789, 15},
{2120},
{5710}
},
knight_weapons = {
{2423}, -- clerical mace
{2429} -- barbarian axe
}
}
if getPlayerGroupId(cid) < 3 then
if getPlayerStorageValue(cid, storage) == -1 then
local common = config.voc_items[getPlayerVocation(cid)]
if common ~= nil then
for _, v in ipairs(common) do
doPlayerAddItem(cid, v[1], v[2] or 1)
end
end

local all = config.all_items
if all ~= nil then
for _, v in ipairs(all) do
doPlayerAddItem(cid, v[1], v[2] or 1)
end
end

local extra = config.extra_items
local bp = doPlayerAddItem(cid, 1988, 1)
if extra ~= nil then
for _, v in ipairs(extra) do
doAddContainerItem(bp, v[1], v[2] or 1)
end
end

local weapons = config.knight_weapons
if weapons ~= nil then
for _, w in ipairs(weapons) do
if isKnight(cid) then
doAddContainerItem(bp, w[1], w[2] or 1)
end
end
end

setPlayerStorageValue(cid, storage, 1)
end
end
return true
end
]]></event>
</mod>

Referência:

http://www.tibiaking.com/forum/topic/8817-mod-first-itens-por-vocacao/

Atenciosamente,

Bruno Minervino

Postado
  • Autor
  • Solução

Use este MOD:

<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"> <![CDATA[
domodlib('firstitems_config')

function onLogin(cid)
local config = {
voc_items = {
{ -- SORC
{2190}, -- wand of vortex
{2175}, -- spellbook
{8820}, -- mage hat
{8819} -- mage robe
},
{ -- DRUID
{2182}, -- snakebite rod
{2175}, -- spellbook
{8820}, -- mage hat
{8819} -- mage robe
},
{ -- PALADIN
{2410}, -- throwing knife
{2530}, -- copper shield
{2480}, -- legion helmet
{2464} -- chain armor
},
{ -- KNIGHT
{2409}, -- serpent sword
{2530}, -- copper shield
{2480}, -- legion helmet
{2464} -- chain armor
}
},
all_items = {
{2468}, -- studded legs
{2643} -- leather boots
},
extra_items = {
{2789, 15},
{2120},
{5710}
},
knight_weapons = {
{2423}, -- clerical mace
{2429} -- barbarian axe
}
}
if getPlayerGroupId(cid) < 3 then
if getPlayerStorageValue(cid, storage) == -1 then
local common = config.voc_items[getPlayerVocation(cid)]
if common ~= nil then
for _, v in ipairs(common) do
doPlayerAddItem(cid, v[1], v[2] or 1)
end
end

local all = config.all_items
if all ~= nil then
for _, v in ipairs(all) do
doPlayerAddItem(cid, v[1], v[2] or 1)
end
end

local extra = config.extra_items
local bp = doPlayerAddItem(cid, 1988, 1)
if extra ~= nil then
for _, v in ipairs(extra) do
doAddContainerItem(bp, v[1], v[2] or 1)
end
end

local weapons = config.knight_weapons
if weapons ~= nil then
for _, w in ipairs(weapons) do
if isKnight(cid) then
doAddContainerItem(bp, w[1], w[2] or 1)
end
end
end

setPlayerStorageValue(cid, storage, 1)
end
end
return true
end
]]></event>
</mod>

Referência:

http://www.tibiaking.com/forum/topic/8817-mod-first-itens-por-vocacao/

 

Meu caro e eu coloco isso aonde....

fala passo a passo onde eu coloco

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