Para começar abra a pasta data/spells/scripts e adicione:
local acombat = createCombatObject()
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_THROWINGSTAR)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4.0, -250, -4.0, 250)
local arr = {
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(acombat, area)
function onTargetTile(cid, pos)
doCombat(cid,combat,positionToVariant(pos))
end
setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, acombat, var)
end
depois salve e renomeie como throwingstar.
agora abra data/spells/spells.xml e coloque
<instant name="throwingstar" words="shuriken" aggressive="1" lvl="100" maglv="80" mana="2000" soul="0" exhaustion="1" prem="1" enabled="1" script="throwingstar.lua"><vocation id="1"/><vocation id="5"/<vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="6"/><vocation id="7"/><vocation id="8"/instant>
e pronto
agora kem estiver perto de voce vai levar shurikens, se nao tiver alguem, nao acontece nd
Espero que gostem!
Se for copiar, pelo menos deixe creditos
BY GOD TH