Ir para conteúdo

Posts Recomendados

Tipo do script: Action?!

Protocolo (versão do Tibia): 8.54 - 8.57

Servidor utilizado: TFS (Enforced-War)

Nível de experiência: Média

Adicionais/Informações:

 

fala galera,

 

alguem podia me ajuda com uma quest que desse Skills e Magic level pro player?

e cada vocação ganharia tanto de skill e ML.

 

ou um teleport que qndo ele entra-se ele ganha-se o skill e magic level e volta-se pro tile do templo.

 

espero ajuda :thumbsupsmiley:

Editado por felipedorgas
Link para o comentário
https://xtibia.com/forum/topic/135614-pedido-quest-ou-teleport-que-da-skills-e-magic-level/
Compartilhar em outros sites

use:

 

if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
doPlayerAddMagLevel(cid, 1) -- magic level
doPlayerAddSkill(cid,5,1) -- skill shield
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de magic e shield")
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 6 then
doPlayerAddMagLevel(cid, 1) -- magic level
doPlayerAddSkill(cid,5,1) -- skill shield
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de magic e shield")
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
doPlayerAddSkill(cid,4,1) -- skill distance
doPlayerAddSkill(cid,5,1) -- skill shield
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de Distance e shield")
end
if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
doPlayerAddSkill(cid,2,1) -- skill sword
doPlayerAddSkill(cid,3,1) -- skill axe
doPlayerSendTextMessage(cid,22,"Voce Ganhou Pontos Em Skills de sword e axe")
end

 

explicação:

 

doPlayerAddMagLevel(cid, 1) -- magic level

vermelho: quanto de skill que vai subir

 

doPlayerAddSkill(cid,2,1)

 

azul: Numero da skill

vermelho: quanto de skill Msgic level que vai subir

 

 

lista de skill:

 

0, Fist.

1, Club.

2, Sword.

3, Axe.

4, Distance.

5, Shielding.

6, Fishing.

Editado por Vodkart

vo testa aqui, se der certo, te falo aqui

 

cara, não deu bug aqui ;x

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

 

[23/06/2010 19:15:17] [Error - Action Interface]

[23/06/2010 19:15:17] data/actions/scripts/quests/giveskills.lua

[23/06/2010 19:15:17] Description:

[23/06/2010 19:15:17] (internalGetPlayerInfo) Player not found when requesting player info #6

Editado por felipedorgas
×
×
  • Criar Novo...