Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Olha Criei Novas vocations , Agora Ta dando error Adicionei elas no acc Manager agr PArece que tenho que adicionar First Itens para Elas então.

 

como Eu faço isso Pq e no Creaturescripts /script/Firstitems.lua 

 

 

Esse eo meu Firstitems.lua Agora quero coloca para adicionar Set para as 2 novas vocations 

 

local firstItems = {}

firstItems[0] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2460,
2478,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2460,
2478,
2643
}
firstItems[3] =
{
2173,
2525,
2389,
2124,
2460,
2478,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2460,
2478,
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, 2465, 1)
else
doPlayerAddItem(cid, 2465, 1)
end
local bag = doPlayerAddItem(cid, 10518, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
doAddContainerItem(bag, 2383, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
 
 
++++ Rep Quem ajuda Aeee

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1) O error Parece Que Esta nessa Parte Pq criei novas vocations Ai n sei oq eu tenho que fazer dhahahashash
Link para o post
Compartilhar em outros sites

UPPPPPPPPPPPPPP 

 

 

 

local firstItems = {}
firstItems[0] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
firstItems[1] =
{
2173,
2525,
2190,
2124,
2460,
2478,
2643
}
firstItems[2] =
{
2173,
2525,
2182,
2124,
2460,
2478,
2643
}
firstItems[3] =
{
2173,
2525,
2389,
2124,
2460,
2478,
2643
}
firstItems[4] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
firstItems[5] =
{
2173,
2525,
2428,
2124,
2460,
2478,
2643
}
firstItems[6] =
{
2173,
2525,
2428,
2124,
2460,
2478,
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, 2465, 1)
else
doPlayerAddItem(cid, 2465, 1)
end
local bag = doPlayerAddItem(cid, 10518, 1)
doAddContainerItem(bag, 2160, 1)
doAddContainerItem(bag, 2554, 1)
doAddContainerItem(bag, 2120, 1)
doAddContainerItem(bag, 7618, 1)
doAddContainerItem(bag, 2383, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
 
Tentei adicionar Mais coisas ali mas não deu Oque eu faço ajuda Ai Meu deus TIBIAKING Alguém AI pra pode me ajuda + rep aff ta foda EMMMMMMMMMMMMMMMMMMMMMM Eu Criei 2 vocation novas Policial E Ladrao no acc manager Crio a conta e tal Dai quando vo entra com O policial ou ladrao Da error Bem na Pasta do fisrtitem.lua
Link para o post
Compartilhar em outros sites
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 
 
a Parte do error e meio que nessa Parte Mas não sei muito bem se e aqui mesmo 

UPP Por favor Alguém me ajuda Ai não sei o que vo fazer mais ... to tentando Resolver sozin mas não ta dando pow 

Link para o post
Compartilhar em outros sites

doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1) <<<<<< Ta faltando um colchete aqui, vou deixar você tentar achar '-'

Link para o post
Compartilhar em outros sites
 
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1) <<<<<<<<<<<<<<
 
Esse 

Meu vocation.xml

 

 

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="100" soulmax="100" gainsoulticks="150" fromvoc="0" attackable="no">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Master Sorcerer" description="a Master Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="400" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Elder Druid" description="a Elder Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="400" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="3" name="Royal Paladin" description="a  Royal Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="400" gainmanaticks="3" gainmanaamount="250" manamultiplier="1.4" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="3">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="4" name="Elite Knight" description="a Elite Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="420" gainmanaticks="3" gainmanaamount="200" manamultiplier="3.0" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="5" name="Supremmy Sorcerer" description="a Supremmy Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="200" gainmanaticks="2" gainmanaamount="450" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="6" name=" Supremmy Druid" description="a Supremmy Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="200" gainmanaticks="2" gainmanaamount="450" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="7" name="Supremmy Paladin" description="a Supremmy Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="420" gainmanaticks="2" gainmanaamount="260" manamultiplier="1.4" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="8" name="Supremmy Knight" description="a Supremmy Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="460" gainmanaticks="3" gainmanaamount="245" manamultiplier="3.0" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
 
<vocation id="9" name="Glorious Master Sorcerer" description="a Glorious Master Sorcerer" needpremium="2" gaincap="20" gainhp="10" gainmana="36" gainhpticks="3" gainhpamount="500" gainmanaticks="2" gainmanaamount="950" manamultiplier="1.1" attackspeed="130" soulmax="300" gainsoulticks="15" fromvoc="5" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.2" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.5"/>
</vocation>
<vocation id="10" name="Glorious Elder Druid" description="a Glorious Elder Druid" needpremium="2" gaincap="20" gainhp="10" gainmana="35" gainhpticks="3" gainhpamount="600" gainmanaticks="2" gainmanaamount="950" manamultiplier="1.1" attackspeed="130" soulmax="300" gainsoulticks="15" fromvoc="6" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.2" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.2" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.5"/>
</vocation>
<vocation id="11" name="Glorious Royal Paladin" description="a Glorious Royal Paladin" needpremium="2" gaincap="20" gainhp="20" gainmana="20" gainhpticks="2" gainhpamount="720" gainmanaticks="2" gainmanaamount="560" manamultiplier="1.4" attackspeed="130" soulmax="300" gainsoulticks="15" fromvoc="7" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.2" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.2" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.5"/>
</vocation>
<vocation id="12" name="Glorious Elite Knight" description="a Glorious Elite Knight" needpremium="2" gaincap="25" gainhp="23" gainmana="10" gainhpticks="2" gainhpamount="960" gainmanaticks="3" gainmanaamount="345" manamultiplier="3.0" attackspeed="130" soulmax="300" gainsoulticks="15" fromvoc="8" lessloss="30">
<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.2" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.5"/>
                  </vocation>
                  <vocation id="14" name="Ladrao" description="Ladrao" needpremium="0" gaincap="25" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="400" gainmanaticks="2" gainmanaamount="300" manamultiplier="1.4"                                     attackspeed="140" soulmax="200" gainsoulticks="10" fromvoc="14" lessloss="50">
                                    <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.3"/>
                                    <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
                  </vocation>
                  <vocation id="15" name="Policial" description="Policial" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="450" gainmanaticks="3" gainmanaamount="250" manamultiplier="3.0"                                     attackspeed="140" soulmax="200" gainsoulticks="10" fromvoc="15" lessloss="50">
                                   <formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
                                   <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.4" fishing="1.1" experience="1.0"/>
                  </vocation>
 
</vocations>

Powww AJudaaaaaa to sem Tempo por Favorrr Tedo +rep por uma semana Pls rapido to sem tmepo MNwww


for = 1, table.maxn(firstItems[getPlayerVocation(cid)] ) do <<<<<<<<<< so pode ser aqui ne pow


Tipo ficando assim

 

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for = 1, table.maxn(firstItems[getPlayerVocation(cid)], 1) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)

end

 

? ficaria assim UPP plss 


Upppppppp


Gbdias 

 

 

vai fica assim Olha ve se ta certo fazendo favor poxa 

 

 

function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for = 1, table.maxn(firstItems[getPlayerVocation(cid)], 1) do
doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)
end

Deculpa + Rep pro Gbdias VLwwww ae mnw por me ajuda


Topico Fechado U

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo