mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	renamed ability to battlecommand
- moved spells to scripts/commands/ - added aoe range field to battle_commands.sql - changed AttackState to use character's onAttack
This commit is contained in:
		| @@ -1,16 +1,18 @@ | ||||
| function onSpellPrepare(caster, target, spell) | ||||
| function onMagicPrepare(caster, target, spell) | ||||
|     return 0; | ||||
| end; | ||||
| 
 | ||||
| function onSpellStart(caster, target, spell) | ||||
| function onMagicStart(caster, target, spell) | ||||
|     return 0; | ||||
| end; | ||||
| 
 | ||||
| function onSpellFinish(caster, target, spell, action) | ||||
| function onMagicFinish(caster, target, spell, action) | ||||
|     local damage = math.random(10, 100); | ||||
|     print("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkk") | ||||
|      | ||||
|     action.param = damage; | ||||
|     action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636); | ||||
| 
 | ||||
|     if target.hateContainer then | ||||
|         target.hateContainer.AddBaseHate(caster); | ||||
|         target.hateContainer.UpdateHate(caster, damage); | ||||
| @@ -1,15 +1,16 @@ | ||||
| function onSpellPrepare(caster, target, spell) | ||||
| function onMagicPrepare(caster, target, spell) | ||||
|     return 0; | ||||
| end; | ||||
| 
 | ||||
| function onSpellStart(caster, target, spell) | ||||
| function onMagicStart(caster, target, spell) | ||||
|     return 0; | ||||
| end; | ||||
| 
 | ||||
| function onSpellFinish(caster, target, spell, action) | ||||
| function onMagicFinish(caster, target, spell, action) | ||||
|     local damage = math.random(10, 100); | ||||
|     print("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkk") | ||||
|      | ||||
|     action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636); | ||||
|     if target.hateContainer then | ||||
|         target.hateContainer.AddBaseHate(caster); | ||||
|         target.hateContainer.UpdateHate(caster, damage); | ||||
		Reference in New Issue
	
	Block a user