MC

[ Resolvido ]

Por mctyn, 18 de abr. de 2009 em Archived

4
879
mctynM
18 de abril de 2009 às 20:17

Gente, eu queria fazer uma Arrow(Flecha) que ae ataka paralizase o cara ou monstro!

 

Sera que é possivel fazer isso?, e se alguem souber fazer.. tem como me ajuda?

 

=)

flavio12F
19 de abril de 2009 às 08:21

Olá amigo!

 

acho q posso lhe ajudar!

 

vou usar o crystal arrow como exemplo ok?

Crystal_Arrow.gif

 

Vamos la:

 

Na pasta data/weapons/scripts crie copie um arquivo e mude seu nome para crystal_arrow e coloque isto dentro:

 

--arrow paralizante by pokus--

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ARROW)

setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)

 

local condition = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

setConditionParam(condition, CONDITION_PARAM_SPEED, -200)

setConditionFormula(condition, -0.9, 0, -0.9, 0)

setCombatCondition(combat, condition)

 

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)

end

 

agora em weapons.xml coloque isto:

 

<distance id="2352" script="crystal_arrow.lua"/>

 

Agora va na pasta data/items abra seu items.xml aperte CTRL+f e procure por crystal arrow, depois que achar subistitua-o por isto:

 

<item id="2352" article="a" name="crystal arrow">

<attribute key="description" value="This arrow seems not suitable for the use with ordinary bows. It seems to be rotting rapidly."/>

<attribute key="attack" value="25"/>

<attribute key="hitChance" value="90"/>

<attribute key="weaponType" value="ammunition"/>

<attribute key="ammoType" value="arrow"/>

<attribute key="shootType" value="arrow"/>

<attribute key="weight" value="100"/>

</item>

 

Feche, salve e pronto!

 

Espero ter ajudado ^^

2 semanas depois...
mctynM
28 de abril de 2009 às 14:57

Funfo ^^

Obrigado!

DaNDaNrOxXD
28 de abril de 2009 às 18:35

Dúvida Sanada,

:button_cancel: Tópico Fechado