Ir para conteúdo

[Spell] Shoting Fire


manololo

Posts Recomendados

Aqui esta uma magia simples ateh vou explicar pra voces

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) 
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -500, -2, -850) 

local arr = {  
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0 },
{ 0, 1, 0, 0, 1, 3, 1, 0, 0, 1, 0 },
{ 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0 },
{ 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0 },
{ 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 },
{ 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0 }
}
local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

 

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) Aqui e o tipo de damage ou seja hit que e FIRE

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) Aqui e o efeito

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -500, -2, -850) Aqui quanto vai tirar

 

Tipos de hit-

 

COMBAT_FIREDAMAGE

COMBAT_ICEDAMAGE

COMBAT_DEATHDAMAGE

COMBAT_HOLYDAMAGE

COMBAT_EARTHDAMAGE

COMBAT_MANADRAIN

COMBAT_LIFEDRAIN

COMBAT_DROWNDAMAGE

COMBAT_ENERGYDAMAGE

COMBAT_NONE

COMBAT_HEALING

COMBAT_FIREDAMAGE

 

 

Tipos de efeito-

 

CONST_ME_DRAWBLOOD = 0

CONST_ME_LOSEENERGY = 1

CONST_ME_POFF = 2

CONST_ME_BLOCKHIT = 3

CONST_ME_EXPLOSIONAREA = 4

CONST_ME_EXPLOSIONHIT = 5

CONST_ME_FIREAREA = 6

CONST_ME_YELLOW_RINGS = 7

CONST_ME_GREEN_RINGS = 8

CONST_ME_HITAREA = 9

CONST_ME_TELEPORT = 10

CONST_ME_ENERGYHIT = 11

CONST_ME_MAGIC_BLUE = 12

CONST_ME_MAGIC_RED = 13

CONST_ME_MAGIC_GREEN = 14

CONST_ME_HITBYFIRE = 15

CONST_ME_HITBYPOISON = 16

CONST_ME_MORTAREA = 17

CONST_ME_SOUND_GREEN = 18

CONST_ME_SOUND_RED = 19

CONST_ME_POISONAREA = 20

CONST_ME_SOUND_YELLOW = 21

CONST_ME_SOUND_PURPLE = 22

CONST_ME_SOUND_BLUE = 23

CONST_ME_SOUND_WHITE = 24

CONST_ME_BUBBLES = 25

CONST_ME_CRAPS = 26

CONST_ME_GIFT_WRAPS = 27

CONST_ME_FIREWORK_YELLOW = 28

CONST_ME_FIREWORK_RED = 29

CONST_ME_FIREWORK_BLUE = 30

CONST_ME_STUN = 31

CONST_ME_SLEEP = 32

CONST_ME_WATERCREATURE = 33

CONST_ME_GROUNDSHAKER = 34

CONST_ME_HEARTS = 35

CONST_ME_FIREATTACK = 36

CONST_ME_ENERGYAREA = 37

CONST_ME_SMALLCLOUDS = 38

CONST_ME_HOLYDAMAGE = 39

CONST_ME_BIGCLOUDS = 40

CONST_ME_ICEAREA = 41

CONST_ME_ICETORNADO = 42

CONST_ME_ICEATTACK = 43

CONST_ME_STONES = 44

CONST_ME_SMALLPLANTS = 45

CONST_ME_CARNIPHILA = 46

CONST_ME_PURPLEENERGY = 47

CONST_ME_YELLOWENERGY = 48

CONST_ME_HOLYAREA = 49

CONST_ME_BIGPLANTS = 50

CONST_ME_CAKE = 51

CONST_ME_GIANTICE = 52

CONST_ME_WATERSPLASH = 53

CONST_ME_PLANTATTACK = 54

CONST_ME_TUTORIALARROW = 55

CONST_ME_TUTORIALSQUARE = 56

CONST_ME_MIRRORHORIZONTAL = 57

CONST_ME_MIRRORVERTICAL = 58

CONST_ME_SKULLHORIZONTAL = 59

CONST_ME_SKULLVERTICAL = 60

CONST_ME_ASSASSIN = 61

CONST_ME_STEPSHORIZONTAL = 62

CONST_ME_BLOODYSTEPS = 63

CONST_ME_STEPSVERTICAL = 64

CONST_ME_YALAHARIGHOST = 65

CONST_ME_BATS = 66

CONST_ME_SMOKE = 67

CONST_ME_INSECTS = 68

CONST_ME_NONE = 255

CONST_ME_LAST

CONST_ME_INSECTS

 

 

Tipos de efeito de distancia-

 

 

CONST_ANI_SPEAR = 0

CONST_ANI_BOLT = 1

CONST_ANI_ARROW = 2

CONST_ANI_FIRE = 3

CONST_ANI_ENERGY = 4

CONST_ANI_POISONARROW = 5

CONST_ANI_BURSTARROW = 6

CONST_ANI_THROWINGSTAR = 7

CONST_ANI_THROWINGKNIFE = 8

CONST_ANI_SMALLSTONE = 9

CONST_ANI_DEATH = 10

CONST_ANI_LARGEROCK = 11

CONST_ANI_SNOWBALL = 12

CONST_ANI_POWERBOLT = 13

CONST_ANI_POISON = 14

CONST_ANI_INFERNALBOLT = 15

CONST_ANI_HUNTINGSPEAR = 16

CONST_ANI_ENCHANTEDSPEAR = 17

CONST_ANI_REDSTAR = 18

CONST_ANI_GREENSTAR = 19

CONST_ANI_ROYALSPEAR = 20

CONST_ANI_SNIPERARROW = 21

CONST_ANI_ONYXARROW = 22

CONST_ANI_PIERCINGBOLT = 23

CONST_ANI_WHIRLWINDSWORD = 24

CONST_ANI_WHIRLWINDAXE = 25

CONST_ANI_WHIRLWINDCLUB = 26

CONST_ANI_ETHEREALSPEAR = 27

CONST_ANI_ICE = 28

CONST_ANI_EARTH = 29

CONST_ANI_HOLY = 30

CONST_ANI_SUDDENDEATH = 31

CONST_ANI_FLASHARROW = 32

CONST_ANI_FLAMMINGARROW = 33

CONST_ANI_SHIVERARROW = 34

CONST_ANI_ENERGYBALL = 35

CONST_ANI_SMALLICE = 36

CONST_ANI_SMALLHOLY = 37

CONST_ANI_SMALLEARTH = 38

CONST_ANI_EARTHARROW = 39

CONST_ANI_EXPLOSION = 40

CONST_ANI_CAKE = 41

CONST_ANI_WEAPONTYPE = 254

CONST_ANI_NONE = 255

CONST_ANI_LAST

CONST_ANI_CAKE

 

 

O que colocar no spells.xml após ter criado o script da magia (escolha o nome e coloca por exemplo firearrow.lua)

<instant name="Fire arrow" words="fire arrow" aggressive="1" lvl="500" mana="666" script="firearrow.lua">

<vocation name="Druid" />

<vocation name="Elder Druid" />

<vocation name="sorcerer" />

<vocation name="master sorcerer" />

</instant>

 

<instant name="Fire arrow" -Nome da magia

words="fire arrow" -Palavras que o player tera que falar para usar a magia

aggressive="1" -Se e agressiva (para o player ficar em battle)

lvl="500" -Level

mana="666" -Mana que ira tirar do player

script="firearrow.lua"> -O nome do script

<vocation name="Druid" /> - A vocaçao que podera usar a magia se quiser adicione mais ou remova o que nao quiser

 

E isso espero que tenha ajudado voces

e que gostem da magia

 

Screen-

screenshot279.png

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

1° Elogio , o tópico ta otimo parabéns você é um ótimo Cara.

 

2° Elogio , A magia ta massa .

 

3° Crítica , Cara , olha o "ARROW" nao tem nada a ver com o foguinho

 

Traduçao : Fire Arrow = Flecha de Fogo .

 

Só isso mas o resto PARABÉNS !

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...