axei esse do jeito que vc ker...
creditos no final do post
cria 1 arquivo .lua e poe iso dentro
w = {
[1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE},
[2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE},
[3] = {ef = 47, sh = 38, dmg = COMBAT_POISONDAMAGE},
[4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE},
[5] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE},
[6] = {ef = 36, sh = 31, dmg = COMBAT_PHYSICALDAMAGE},
[7] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE}
}
function onUseWeapon(cid, var)
min, max = 300, 300 -- dano minimo e maximo
target = getCreatureTarget(cid)
if target ~= 0 then
wx = w[math.random(1, #w)]
doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh)
addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef)
end
return true
end
agr só adicionar o script da wand em weapons
vc sabe fazer né?
poe esa tag em weapons.xml
<wand id="xxx" level="50" mana="13" min="0" max="0" type="earth" event="script" value="wand.lua"> <!-- Enforced Wand -->
<vocation id="1"/>
<vocation id="2"/>
e em itens.xml
<item id="xxx" article="the" name="nome da sua wand">
<attribute key="description" value="a melhor wand." />
<attribute key="weight" value="2300" />
<attribute key="weaponType" value="wand" />
<attribute key="shootType" value="holy" />
<attribute key="range" value="8" />
Creditos : Soldoran,Miler. e eu por procurar
Te ajudei? rep+ :]




info
Grupo: Campones
Registrado: 02/02/11
Posts: 53
Reputação: 0
Gênero: Masculino
Gostario de saber , como se coloca pra uma Wand / Rod , para soltar varias skill
Tais assim :
Fire , Earth , Ice , Death , Holy
Se alguem me ajudar
Agradeço muito e dou Rep ++
xD