pega o script que ta aque Data / Creaturescript / Script / Firstitems.lua
ae aonde ta
local firstItems = {}
firstItems[0] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2457,
2647,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2457,
2647,
2643
}
firstItems[3] =
{
2173,
2525,
2399,
2124,
2457,
2647,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2457,
2647,
2643
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2463, 1)
else
doPlayerAddItem(cid, 2463, 1)
end
local bag = doPlayerAddItem(cid, 11235, 1)
doAddContainerItem(bag, 2160, 2)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
doAddContainerItem(bag, 8602, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
se eu nao me ingano o , firstItems[1] é pros sorc, firstItems[2] pros druid, firstItems[3] para paladin, e firstItems[4] para knight.
2173, -- Amuleto
2525, -- shield
2428, -- Weapont
2124, -- ring
2457, -- helmet
2647, -- legs
2643 -- boots
____________________
doAddContainerItem(bag, 2160, 2) -- Dinheiro ( para todos)
doAddContainerItem(bag, 2554, 1) -- a pá
doAddContainerItem(bag, 2120, 1) -- corda
doAddContainerItem(bag, 7618, 1) -- health potion
doAddContainerItem(bag, 8602, 1) -- a sword
essa parte voce pode adicionar mais itens
___________________
local bag = doPlayerAddItem(cid, 11235, 1) -- id da backpack ou bag inicial
__________________
doPlayerAddItem(cid, 2463, 1) -- Armor (mude as duas com o msm id)
else
doPlayerAddItem(cid, 2463, 1) -- Armor (mude as duas com o msm id)
coloquei cores para melhor visualizaçao
obs:delete o mod







info
Grupo: Campones
Registrado: 02/07/11
Posts: 47
Reputação: 0
Bom dia Galera
eu estou tendo serios problemas com isso já tem mudar de todos os jeitos
me ajudem me explicando como eu mudo os items iniciais do account manager di acordo com as vocações
porke eu no meu ot global os chares criados vem com |Club| - |Jacket| - |toch| - |aple|
me ajuda a modificar esses items darei REP+
Eu sei que é besteira gente mais não concigo arrumar isso rs
Bom aki vou mostrar o arquivo que está no meu OTserver / Mods / Firstitems.xml
<?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="buffer"><![CDATA[
domodlib('firstitems_config')
if(getPlayerStorageValue(cid, config.storage) > 0) then
return
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>
E aki o da pasta Otserver / Data / Creaturescript / Script / Firstitems.lua
local firstItems = {}
firstItems[0] =
{
2173,
2525,
3965,
2124,
2457,
2647,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2457,
2647,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2457,
2647,
2643
}
firstItems[3] =
{
2173,
2525,
2399,
2124,
2457,
2647,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2457,
2647,
2643
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2463, 1)
else
doPlayerAddItem(cid, 2463, 1)
end
local bag = doPlayerAddItem(cid, 11235, 1)
doAddContainerItem(bag, 2160, 2)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
doAddContainerItem(bag, 8602, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
caso queram entrar no meu ot p/ me explicarem melhor tá ae -> zurlan.zapto.org
bom ja que estou akie vo aproveita pra falarr não sei se pode fazer qse 2 post em 1 topico só mais vamu lá
estou precisando de uma equipe pro meu global os interessados fassam suas incrições
Nome:"'
interesse""
oque sabe fazer pra ajudar""
OBS""
entre outras a +
me ajudem ae
Acho q vou parar de postar algo akie ninguem respondee =\
Ninguem ker meu REP+
Editado Setembro 18 por Felpx