PE
dúvida

Potions E Itens

Por Pedrohost, 22 de nov. de 2012 em Scripts

5
1k
PedrohostP
22 de novembro de 2012 às 20:09

Para Evitar De Criar 2 Topicos Vou Criar Só Este Com 2 Perguntas

 

1ª Gostaria de saber qual os heals Normais das potions. Normal de kina etc ... Como podem ver o meu esta bem editado....

local POTIONS = {
    [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion
    [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion
    [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion
    [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion
    [8473] = {empty = 7635, splash = 2, health = {2200, 2800}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion
    [7620] = {empty = 7636, splash = 7, mana = {90, 170}}, -- mana potion
    [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion
    [7590] = {empty = 7635, splash = 7, mana = {1000, 1800}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion
    [8472] = {empty = 7635, splash = 3, health = {2000, 2800}, mana = {800, 1000}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion
}

 

2ª Pergunta, como transformar por exemplo um CLUB em Wand?

 

 

 

 

Obrigado pela resposta :)

SmiXS
22 de novembro de 2012 às 21:24

1ª na sua tabela a uma subtabela com o nome "health", ali você coloca o (minimo, maximo) de cada potion

 

2ª Vai em data/weapons abra weapons.xml e cole a seguinte linha:

<wand id="2182" level="7" mana="2" min="8" max="18" type="earth" event="function" value="default"> <!-- Snakebite Rod -->
<vocation id="2"/>
</wand>

 

Em "wand id" você coloca o id do club, em level vc já deve saber, em min coloca o dano minimo e maximo o dano maximo, type coloca se ele vai ser de fire ou ice etc e em vocation coloca a vocação especifica que vai poder usalo.

 

Logo depois va item.xml e procure pelo club e cole as seguintes linhas nele:

       <attribute key="weaponType" value="wand" />
       <attribute key="shootType" value="smallearth" />
       <attribute key="range" value="3" />        

 

shoottype será o tipo do tiro range não sei pra que serve...

 

Pronto só isso mesmo,..

Editado Novembro 23 por SmiX

PedrohostP
22 de novembro de 2012 às 23:32

Mano não apareceu os escritos nas linhas

SmiXS
23 de novembro de 2012 às 14:31

Foi mal, não sei qual foi o erro... !_!

 

Já corrigi!

PedrohostP
23 de novembro de 2012 às 19:50

Foi mal, não sei qual foi o erro... !_!

 

Já corrigi!

Responde meu outro topico tb ? :D Rep + Pra ti