Ir para conteúdo
  • 0

Definir ataque da sword por script


kaizy536

Pergunta

Galera, eu queria saber se tem como definir o ataque dos items (sword/axe/club) por script, porque tipo, eu quero por eles pra hitarem de 500k-1kk, e fazendo isso mudando o ataque vai ficar tipo 100k de ataque, o que eu acho muito exagerado ao dar look.., entao eu queria uma arma que mostre tipo, 100 atk, porem ela hit de 500k 1kk,somente corpo-a-corpo.. Seria tipo wand, porem wand ataca a distancia e nao mostra "Ataque"

Teria como fazer isso? Se sim, alguem pode fazer pra min?

Link para o comentário
Compartilhar em outros sites

10 respostass a esta questão

Posts Recomendados

  • 0

Vá em data/weapons, verifique se tem o id da arma que voce está adicionando,se tiver apague e cole esta colocando o nome da arma no nome do script.

 

 

<melee id="id da arma" level="level necessário" unproperly="1" event="script" value="nomedaarma.lua"/>

Ai na pasta scripts,voce copie um arquivo,renomeia pro nome da arma e cole o script.

 

 

function onUseWeapon(cid)
local mindmg, maxdmg = 500000, 1000000
local target = getCreatureTarget(cid)

doTargetCombatHealth
(cid, target, COMBAT_PHYSICALDAMAGE, - mindmg, - maxdmg)
return true
end
Link para o comentário
Compartilhar em outros sites

  • 0

ei, no caso, se eu quiser que os hits sejam de acordo com o skill do cara, faz como? tipo, digamos que é um script pra simular o ataque de um axe de atk 50k, entao se um player tiver 50 de skill axe, ele claramente vai hitar menos que um de skill 200, como faz pra fazer isso?

Link para o comentário
Compartilhar em outros sites

  • 0

 

function onUseWeapon(cid)

local armaskill = 2
local mindmg, maxdmg = 500000, 1000000
local skill, level = getPlayerSkillLevel(cid, armaskill), getPlayerLevel(cid)
local damage = math.floor((skill * 4000 + level * 4000) )
local target = getCreatureTarget(cid)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, - (damage + mindmg), - (damage + maxdmg), 0)
return true
end
Link para o comentário
Compartilhar em outros sites

  • 0

to com um pequeno erro cara, eu fiz tudo certinho, adicionei o script a tag e editei do meu jeito, porem quando eu vou atacar o monstro o distro fecha na mesma hora dando error..

vo postar o script do meu weapons, ficou assim:

 

 

<?xml version="1.0" encoding="UTF-8"?>

<weapons>
<!-- Rods -->
<wand id="2182" level="7" mana="2" min="8" max="18" type="earth" event="function" value="default"> <!-- Snakebite Rod -->
<vocation id="2"/>
</wand>
<wand id="2186" level="13" mana="3" min="13" max="25" type="ice" event="function" value="default"> <!-- Moonlight Rod -->
<vocation id="2"/>
</wand>
<wand id="2185" level="19" mana="5" min="27" max="33" type="death" event="function" value="default"> <!-- Necrotic Rod -->
<vocation id="2"/>
</wand>
<wand id="8911" level="22" mana="5" min="27" max="33" type="ice" event="function" value="default"> <!-- Northwind Rod -->
<vocation id="2"/>
</wand>
<wand id="2181" level="26" mana="8" min="42" max="48" type="earth" event="function" value="default"> <!-- Terra Rod -->
<vocation id="2"/>
</wand>
<wand id="2183" level="33" mana="13" min="55" max="75" type="ice" event="function" value="default"> <!-- Hailstorm Rod -->
<vocation id="2"/>
</wand>
<wand id="8912" level="37" mana="13" min="55" max="75" type="earth" event="function" value="default"> <!-- Springsprout Rod -->
<vocation id="2"/>
</wand>
<wand id="8910" level="1" mana="2" min="55" max="75" type="death" event="function" value="default"> <!-- Underworld Rod -->
<vocation id="2"/>
</wand>
<!-- Wands -->
<wand id="2190" level="7" mana="2" min="8" max="18" type="energy" event="function" value="default"> <!-- Wand of Vortex -->
<vocation id="1"/>
</wand>
<wand id="2191" level="13" mana="3" min="13" max="25" type="fire" event="function" value="default"> <!-- Wand of Dragonbreath -->
<vocation id="1"/>
</wand>
<wand id="2188" level="19" mana="5" min="27" max="33" type="death" event="function" value="default"> <!-- Wand of Decay -->
<vocation id="1"/>
</wand>
<wand id="2189" level="26" mana="8" min="42" max="48" type="energy" event="function" value="default"> <!-- Wand of Cosmic Energy -->
<vocation id="1"/>
</wand>
<wand id="2187" level="33" mana="13" min="55" max="75" type="fire" event="function" value="default"> <!-- Wand of Inferno -->
<vocation id="1"/>
</wand>
<wand id="8920" level="1" mana="2" min="1000" max="1500" type="holy" event="function" value="default"> <!-- Wand of Starmstorm -->
<vocation id="1"/>
</wand>
<!-- Editadas -->
<wand id="8922" level="10" mana="40" min="100000" max="500000" type="holy" event="function" value="default"> <!-- Start Staff -->
<vocation id="2"/>
<vocation id="1"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="10"/>
<vocation id="11"/>
</wand>
<wand id="7424" level="10" mana="30" min="1000000" max="2000000" type="holy" event="function" value="default"> <!-- Magnus Staff -->
<vocation id="2"/>
<vocation id="1"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="10"/>
<vocation id="11"/>
</wand>
<wand id="7429" level="10" mana="30" min="2000000" max="3000000" type="holy" event="function" value="default"> <!-- Ultimate Magnus Staff -->
<vocation id="2"/>
<vocation id="1"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="10"/>
<vocation id="11"/>
</wand>
<wand id="12609" level="10" mana="20" min="3500000" max="5000000" type="holy" event="function" value="default"> <!-- Supreme Staff -->
<vocation id="2"/>
<vocation id="1"/>
<vocation id="5"/>
<vocation id="6"/>
<vocation id="10"/>
<vocation id="11"/>
</wand>
<!-- Axes, Clubs, Crossbows Editados -->
<melee id="8926" level="10" unproperly="1" event="script" value="start_weapon.lua">
<vocation id="4"/>
<vocation id="8"/>
<vocation id="13"/>
</melee>
<melee id="7423" level="10" unproperly="1" event="script" value="start_weapon.lua">
<vocation id="9"/>
<vocation id="14"/>
<vocation id="4"/>
<vocation id="8"/>
<vocation id="13"/>
<vocation id="16"/>
</melee>
<distance id="8851" level="10" unproperly="1" event="script" value="start_weapon.lua">
<vocation id="3"/>
<vocation id="7"/>
<vocation id="12"/>
</distance>
<melee id="8925" level="10" unproperly="1" event="script" value="magnus_weapon.lua">
<vocation id="4"/>
<vocation id="8"/>
<vocation id="13"/>
</melee>
<melee id="7415" level="10" unproperly="1" event="script" value="magnus_weapon.lua">
<vocation id="9"/>
<vocation id="14"/>
<vocation id="16"/>
<vocation id="4"/>
<vocation id="8"/>
<vocation id="13"/>
</melee>
<distance id="8849" level="10" unproperly="1" event="script" value="magnus_weapon.lua">
<vocation id="3"/>
<vocation id="7"/>
<vocation id="12"/>
</distance>
<melee id="7455" level="10" unproperly="1" event="script" value="ultimate_weapon.lua">
<vocation id="4"/>
<vocation id="8"/>
<vocation id="13"/>
</melee>
<melee id="7450" level="10" unproperly="1" event="script" value="ultimate_weapon.lua">
<vocation id="9"/>
<vocation id="14"/>
<vocation id="16"/>
<vocation id="4"/>
<vocation id="8"/>
<vocation id="13"/>
</melee>
<distance id="8852" level="10" unproperly="1" event="script" value="ultimate_weapon.lua">
<vocation id="3"/>
<vocation id="7"/>
<vocation id="12"/>
</distance>

 

<wand id="6534" level="8" mana="30" min="200" max="500" type="holy" event="function" value="default"> <!-- Wand of Voodoo -->
<vocation id="1"/> <vocation id="2"/>
</wand>
<wand id="7451" level="8" mana="30" min="200" max="500" type="holy" event="function" value="default"> <!-- Wand of Voodoo -->
<vocation id="1"/> <vocation id="2"/>
</wand>
<!-- Swords -->
<melee id="2413" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7385" level="20" unproperly="1" event="function" value="default"/>
<melee id="2377" level="20" unproperly="1" event="function" value="default"/>
<melee id="11303" level="20" unproperly="1" event="function" value="default"/>
<melee id="7408" level="25" unproperly="1" event="function" value="default"/>
<melee id="7449" level="25" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="2392" level="30" unproperly="1" event="function" value="default"/>
<melee id="2407" level="30" unproperly="1" event="function" value="default"/>
<melee id="2438" level="30" unproperly="1" event="function" value="default"/>
<melee id="7407" level="30" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7406" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="2451" level="35" unproperly="1" event="function" value="default"/>
<melee id="7404" level="40" unproperly="1" event="function" value="default"/>
<melee id="7386" level="40" unproperly="1" event="function" value="default"/>
<melee id="2446" level="45" unproperly="1" event="function" value="default"/>
<melee id="7402" level="45" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7383" level="50" unproperly="1" event="function" value="default"/>
<melee id="7391" level="50" unproperly="1" event="function" value="default"/>
<melee id="11300" level="50" unproperly="1" event="function" value="default"/>
<melee id="11301" level="55" unproperly="1" event="function" value="default"/>
<melee id="7416" level="55" unproperly="1" event="function" value="default"/>
<melee id="2393" level="55" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7384" level="60" unproperly="1" event="function" value="default"/>
<melee id="7382" level="60" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7403" level="8" unproperly="1" event="function" value="default">
</melee>
<melee id="7418" level="8" unproperly="1" event="function" value="default"/>
<melee id="7405" level="70" unproperly="1" event="function" value="default"/>
<melee id="7390" level="75" unproperly="1" event="function" value="default"/>
<melee id="6528" level="75" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="2400" level="80" unproperly="1" event="function" value="default"/>
<melee id="8930" level="100" unproperly="1" event="function" value="default"/>
<melee id="8932" level="100" unproperly="1" event="function" value="default"/>
<melee id="2408" level="120" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="8931" level="140" unproperly="1" event="function" value="default"/>
<melee id="2390" level="140" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<!-- Fire -->
<melee id="7745" level="50" unproperly="1" event="function" value="default"/>
<melee id="7746" level="60" unproperly="1" event="function" value="default"/>
<melee id="7747" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7748" level="45" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Ice -->
<melee id="7764" level="50" unproperly="1" event="function" value="default"/>
<melee id="7765" level="60" unproperly="1" event="function" value="default"/>
<melee id="7766" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7767" level="45" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Earth -->
<melee id="7855" level="50" unproperly="1" event="function" value="default"/>
<melee id="7856" level="60" unproperly="1" event="function" value="default"/>
<melee id="7857" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7858" level="45" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Energy -->
<melee id="7870" level="50" unproperly="1" event="function" value="default"/>
<melee id="7871" level="60" unproperly="1" event="function" value="default"/>
<melee id="7872" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7873" level="45" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Axes -->
<melee id="2429" level="20" unproperly="1" event="function" value="default"/>
<melee id="2435" level="20" unproperly="1" event="function" value="default"/>
<melee id="2425" level="20" unproperly="1" event="function" value="default"/>
<melee id="2430" level="25" unproperly="1" event="function" value="default"/>
<melee id="2387" level="25" unproperly="1" event="function" value="default"/>
<melee id="2381" level="25" unproperly="1" event="function" value="default"/>
<melee id="2440" level="25" unproperly="1" event="function" value="default"/>
<melee id="2426" level="25" unproperly="1" event="function" value="default"/>
<melee id="11317" level="25" unproperly="1" event="function" value="default"/>
<melee id="3962" level="30" unproperly="1" event="function" value="default"/>
<melee id="7454" level="30" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="2432" level="35" unproperly="1" event="function" value="default"/>
<melee id="7380" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7456" level="35" unproperly="1" event="function" value="default"/>
<melee id="7419" level="40" unproperly="1" event="function" value="default"/>
<melee id="7413" level="40" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7412" level="45" unproperly="1" event="function" value="default"/>
<melee id="7436" level="45" unproperly="1" event="function" value="default"/>
<melee id="7411" level="50" unproperly="1" event="function" value="default"/>
<melee id="2447" level="50" unproperly="1" event="function" value="default"/>
<melee id="7388" level="55" unproperly="1" event="function" value="default"/>
<melee id="2427" level="55" unproperly="1" event="function" value="default"/>
<melee id="7389" level="60" unproperly="1" event="function" value="default"/>
<melee id="2414" level="60" unproperly="1" event="function" value="default"/>
<melee id="11299" level="60" unproperly="1" event="function" value="default"/>
<melee id="7433" level="65" unproperly="1" event="function" value="default"/>
<melee id="2454" level="65" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="2443" level="70" unproperly="1" event="function" value="default"/>
<melee id="7420" level="70" unproperly="1" event="function" value="default"/>
<melee id="7434" level="75" unproperly="1" event="function" value="default"/>
<melee id="6553" level="75" unproperly="1" event="function" value="default"/>
<melee id="7435" level="85" unproperly="1" event="function" value="default"/>
<melee id="7453" level="8" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="2431" level="90" unproperly="1" event="function" value="default"/>
<melee id="2415" level="95" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="8924" level="110" unproperly="1" event="function" value="default"/>
<!-- Fire -->
<melee id="7749" level="20" event="function" value="default"/>
<melee id="7750" level="25" unproperly="1" event="function" value="default"/>
<melee id="7751" level="60" unproperly="1" event="function" value="default"/>
<melee id="7752" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7753" level="65" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Ice -->
<melee id="7768" level="20" event="function" value="default"/>
<melee id="7769" level="25" unproperly="1" event="function" value="default"/>
<melee id="7770" level="60" unproperly="1" event="function" value="default"/>
<melee id="7771" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7772" level="65" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Earth -->
<melee id="7859" level="20" event="function" value="default"/>
<melee id="7860" level="25" unproperly="1" event="function" value="default"/>
<melee id="7861" level="60" unproperly="1" event="function" value="default"/>
<melee id="7862" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7863" level="65" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Energy -->
<melee id="7874" level="20" event="function" value="default"/>
<melee id="7875" level="25" unproperly="1" event="function" value="default"/>
<melee id="7876" level="60" unproperly="1" event="function" value="default"/>
<melee id="7877" level="35" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="7878" level="65" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<!-- Clubs -->
<melee id="2423" level="20" unproperly="1" event="function" value="default"/>
<melee id="7381" level="20" unproperly="1" event="function" value="default"/>
<melee id="7425" level="20" unproperly="1" event="function" value="default"/>
<melee id="7432" level="20" unproperly="1" event="function" value="default"/>
<melee id="2434" level="25" unproperly="1" event="function" value="default"/>
<melee id="7387" level="25" unproperly="1" event="function" value="default"/>
<melee id="7379" level="25" unproperly="1" event="function" value="default"/>
<melee id="7430" level="30" unproperly="1" event="function" value="default"/>
<melee id="2436" level="30" unproperly="1" event="function" value="default"/>
<melee id="7437" level="30" unproperly="1" event="function" value="default"/>
<melee id="7452" level="30" unproperly="1" event="function" value="default">
<vocation id="4"/>
</melee>
<melee id="3961" level="35" unproperly="1" event="function" value="default"/>
<melee id="2445" level="35" unproperly="1" event="function" value="default"/>
<melee id="7392" level="8" unproperly="1" event="function" value="default"/>
<melee id="7426" level="40" unproperly="1" event="function" value="default"/>
<melee id="2424" level="45" unproperly="1" event="function" value="default"/>
<melee id="7427" level="45" unproperly="1" event="function" value="default"/>
<melee id="2391" level="50" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<melee id="7410" level="55" unproperly="1" event="function" value="default"/>
<melee id="7428" level="55" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<melee id="11302" level="55" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<melee id="7414" level="60" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<melee id="7421" level="65" unproperly="1" event="function" value="default"/>
<melee id="2444" level="65" unproperly="1" event="function" value="default"/>
<melee id="2452" level="70" unproperly="1" event="function" value="default"/>
<melee id="7422" level="70" unproperly="1" event="function" value="default"/>
<melee id="2453" level="75" unproperly="1" event="function" value="default"/>
<melee id="2437" level="80" unproperly="1" event="function" value="default"/>
<melee id="7431" level="80" unproperly="1" event="function" value="default"/>
<melee id="2421" level="85" unproperly="1" event="function" value="default"/>
<melee id="8928" level="100" unproperly="1" event="function" value="default"/>
<melee id="8929" level="100" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<melee id="8927" level="120" unproperly="1" event="function" value="default"/>
<!-- Fire -->
<melee id="7754" level="20" unproperly="1" event="function" value="default"/>
<melee id="7755" level="35" unproperly="1" event="function" value="default"/>
<melee id="7756" level="60" unproperly="1" event="function" value="default"/>
<melee id="7757" level="35" unproperly="1" event="function" value="default"/>
<melee id="7758" level="50" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<!-- Ice -->
<melee id="7773" level="20" unproperly="1" event="function" value="default"/>
<melee id="7774" level="35" unproperly="1" event="function" value="default"/>
<melee id="7775" level="60" unproperly="1" event="function" value="default"/>
<melee id="7776" level="35" unproperly="1" event="function" value="default"/>
<melee id="7777" level="50" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<!-- Earth -->
<melee id="7864" level="20" unproperly="1" event="function" value="default"/>
<melee id="7865" level="35" unproperly="1" event="function" value="default"/>
<melee id="7866" level="60" unproperly="1" event="function" value="default"/>
<melee id="7867" level="35" unproperly="1" event="function" value="default"/>
<melee id="7868" level="50" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<!-- Energy -->
<melee id="7879" level="20" unproperly="1" event="function" value="default"/>
<melee id="7880" level="35" unproperly="1" event="function" value="default"/>
<melee id="7881" level="60" unproperly="1" event="function" value="default"/>
<melee id="7882" level="35" unproperly="1" event="function" value="default"/>
<melee id="7883" level="50" unproperly="1" event="function" value="default">
<vocation id="4"/>
<vocation id="8" showInDescription="0"/>
</melee>
<!-- Bows and Crossbows -->
<distance id="8850" level="60" unproperly="1" event="function" value="default"> <!-- Chain Bolter -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<distance id="8853" level="8" unproperly="1" event="function" value="default"> <!-- Ironworker -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<distance id="8857" level="40" unproperly="1" event="function" value="default"> <!-- Silkweaver Bow -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<distance id="8855" level="50" unproperly="1" event="function" value="default"> <!-- Composite Hornbow -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<distance id="8856" level="60" unproperly="1" event="function" value="default"> <!-- Yol's Bow -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<distance id="8858" level="70" unproperly="1" event="function" value="default"> <!-- Elethriel's Elemental Bow -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<distance id="8854" level="80" unproperly="1" event="function" value="default"> <!-- Warsinger Bow -->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>
<!-- Ammunition -->
<distance id="2545" event="script" value="poison_arrow.lua"/>
<distance id="2546" event="script" value="burst_arrow.lua"/>
<distance id="7366" event="script" value="viper_star.lua"/>
<distance id="7838" type="energy" event="function" value="default"/>
<distance id="7839" type="ice" event="function" value="default"/>
<distance id="7840" type="fire" event="function" value="default"/>
<distance id="7850" type="earth" event="function" value="default"/>
<distance id="3965" level="20" event="function" value="default"/> <!-- Hunting Spear -->
<distance id="7378" level="25" event="function" value="default"/> <!-- Royal Spear -->
<distance id="7367" level="42" event="function" value="default"/> <!-- Enchanted Spear -->
<distance id="7368" level="80" event="function" value="default"/> <!-- Assassin Star -->
<distance id="7364" level="20" event="function" value="default"/> <!-- Sniper Arrow -->
<distance id="7365" level="40" event="function" value="default"/> <!-- Onyx Arrow -->
<distance id="7363" level="30" event="function" value="default"/> <!-- Piercing Bolt -->
<distance id="2547" level="1" event="function" value="default"/> <!-- Power Bolt -->
<distance id="6529" level="1" event="function" value="default"/> <!-- Infernal Bolt -->
</weapons>

 

 

 

 

 

 

A parte cotada dentro o quote é a parte das minhas armas que eu editei..

aqui é o script delas:

 

 

 

function onUseWeapon(cid)

local armaskill = 2
local mindmg, maxdmg = 11111, 99999
local skill, level = getPlayerSkillLevel(cid, armaskill), getPlayerLevel(cid)
local damage = math.floor((skill * 4.5 + level * 15.5) )
local target = getCreatureTarget(cid)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, - (damage + mindmg), - (damage + maxdmg), 0)
return true
end

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

essa parte é o que? isso muda em algo? ou eu tenho que botar de acordo com o skill que necessta a arma?

local armaskill = 2

agora ta funfando certim :D vlw

Editado por kaizy536
Link para o comentário
Compartilhar em outros sites

  • 0

essa parte é o que? isso muda em algo? ou eu tenho que botar de acordo com o skill que necessta a arma?

local armaskill = 2

agora ta funfando certim :D vlw

Isso mesmo... a parte:

local armaskill = 2

é para checar o skill numero 2 do player.

Dependendo da versão pode ser mudado para armaskill = SKILL_SWORD, por exemplo.

Editado por Incur
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...