pUTS NAUM MAJO COMO COLOKO..AEW DEPOIS AJUDA AEW FALOWS
- Fórum
- OTServ
- Recursos
- Scripting
- Globalevents e Spells
- Magia De Ataque
info
Grupo: Banidos
Registrado: 25/09/06
Posts: 10
Reputação: 0
awe manow nao emtendi como coloka essa mgia
mas ta muito paressida com q a q mew primo feiz
flws manow
Man n ta funfando aqui
explica melhor
bouaaa
magia
cara
se manja nisso vei >)
ae brother n consegui vc vai me ajuda ou n?
@afk
Malz... eu andei meio afastado !
desculpa aee pessoal
é mt simples ela é iqual a todas as magias porfavor expacifica mais emq vc ta com duvida...
flw
@Noxidy__ Vlw Obrigado pelo elogio, entendo de tudo um poco
@ruzin posta sua duvida porfavor...
Atenciosamente, Dudu ![]()
Editado Outubro 19 por Gm Dudu
Olá Galera!
Bom, a Magia está boa, mas alguns não conseguiram fazer funcionar, reveja o q vc botou ai...
Vou tentar ajudar!
Tentem Assim!
area = {{0, 1, 0},{1, 1, 1},{0, 1, 0}}attackType = ATTACK_PHYSICALneedDirection = trueareaEffect = NM_ME_EXPLOSION_AREAanimationEffect = NM_ANI_FIREhitEffect = NM_ME_EXPLOSION_DAMAGEdamageEffect = NM_ME_DRAW_BLOODanimationColor = REDoffensive = truedrawblood = true HealFriendObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0) SubHealFriendObject1 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, minDmg, maxDmg) SubHealFriendObject2 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 1000, 1000) function onCast(cid, creaturePos, level, maglv, var) centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z} targetpos = getPosition(var) HealFriendObject.minDmg = (level * 2 + maglv * 3) * 3 HealFriendObject.maxDmg = (level * 2 + maglv * 3) * 3 + 40 if targetpos.x ~= nil and targetpos.z ~= nil and targetpos.y ~= nil then if math.abs(targetpos.x - centerpos.x) < 18 and math.abs(targetpos.y - centerpos.y) < 14 and targetpos.z == centerpos.z then return doTargetMagic(cid, targetpos, HealFriendObject:ordered()) end end return false end
info
Grupo: Herói
Registrado: 12/11/05
Posts: 715
Reputação: +1
Char no Tibia: Lord'Skyxt

Tópico contendo somente 1 ou 2 Spells,
essa seção é para DataPacks com 3 ou mais Npcs,
~o{Tópico Movido}o~,
Abraços.



info
Grupo: Campones
Registrado: 28/08/06
Posts: 75
Reputação: 0
Exclusivo uma runa novinha !
acabou de ser feita !
Estou pondo para o publico pela primeira vez minha mais nova criação
Entaum vamos la !
Essa runa é muito boa pra pvp-enforced eu suponho mais acho que é muito
boa tb pra server comuns pvp e non-pvp
Abra a pasta do seu otserver dpois vá em data/spells/intants ai vc copia qualquer arquivo que que tenha lá, apaga tudo que tiver dentro do arquivo que vc copiou, dpois vc
copia oq tem abaixo dentro do documento que vc copiou
area = { {0, 1, 0}, {1, 1, 1}, {0, 1, 0} } attackType = ATTACK_PHYSICAL needDirection = true areaEffect = NM_ME_EXPLOSION_AREA animationEffect = NM_ANI_FIRE hitEffect = NM_ME_EXPLOSION_DAMAGE damageEffect = NM_ME_DRAW_BLOOD animationColor = RED offensive = true drawblood = true HealFriendObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0) SubHealFriendObject1 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, minDmg, maxDmg) SubHealFriendObject2 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 1000, 1000) function onCast(cid, creaturePos, level, maglv, var) centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z} targetpos = getPosition(var) HealFriendObject.minDmg = (level * 2 + maglv * 3) * 3 HealFriendObject.maxDmg = (level * 2 + maglv * 3) * 3 + 40 if targetpos.x ~= nil and targetpos.z ~= nil and targetpos.y ~= nil then if math.abs(targetpos.x - centerpos.x) < 18 and math.abs(targetpos.y - centerpos.y) < 14 and targetpos.z == centerpos.z then return doTargetMagic(cid, targetpos, HealFriendObject:ordered()) end end return false endagora vai em:
a pasta do seu ot/data/spells/spells.xml ai add essa linha em spells instantaneas
Pronto ! agora vc tem a spells rodando...
como ussa-la: vc escolhe o player que vc quer atacar e siga o exemplo
EX: explo sio "player
Pronto, acabo as coisas boas sem acabão rapido...
Vlw ! espero ter ajudado com mais esse post inedito ;D
Abraçusss