What's new

Czary

Status
Not open for further replies.

Basta4

Active User
Joined
Dec 18, 2009
Messages
92
Reaction score
2
Witajcie! Ot?? mam problem z pewnym czarem"Exori Pall". POstanowi?em stworzy? go na moim OTSie, lecz niestety nie zadzia?a? :(
Oto ten czar :
w spells.xml wpisa?em :
<spell name="Hoop" words="exori pall" maglv="7" mana="150" enabled="1"><vocation id="3" /></spell>
a w instant nazwa pliku exori pall :
area = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
attackType = ATTACK_PHYSICAL
needDirection = false
areaEffect = NM_ME_HIT_AREA
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_HIT_AREA
damageEffect = NM_ME_HIT_AREA
animationColor = RED
offensive = true
drawblood = true
UltimateExplosionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
n = tonumber(var) -- try to convert it to a number
if n ~= nil then
-- bugged
-- ultimateExplosionObject.minDmg = var+0
-- UltimateExplosionObject.maxDmg = var+0
UltimateExplosionObject.minDmg = 0
UltimateExplosionObject.maxDmg = 0
else
-- UltimateExplosionObject.minDmg = (level * 4 + maglv * 5) * 3.3 - 50
-- UltimateExplosionObject.maxDmg = (level * 7 + maglv * 7) * 4.0
UltimateExplosionObject.minDmg = (level * 4.5 + maglv * 2.5) * 2.2
UltimateExplosionObject.maxDmg = (level * 7.5 + maglv * 4.5) * 3.3
end
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObjectrdered())
end

Prosz? o pomoc :)
 

Michu9404

Advanced User
Joined
Dec 16, 2009
Messages
236
Reaction score
21
Odp: Czary

Skorzystaj z tego programu:

Code:
hxxp://tibia.net.pl/narzedzia-ot/113065-spellmaker-2.html

(hxxp zmie? na http)


Je?eli ten program ci nie zadzia?a to poszukaj pod tibie 7.6
 

Basta4

Active User
Joined
Dec 18, 2009
Messages
92
Reaction score
2
Odp: Czary

teraz mam kolejny problem pr?buje z crystal wanda zrobi? r?zg? ?eby wali?a po 10 k
 
Status
Not open for further replies.
Top