mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Health updating fix, temp r0 fix
This commit is contained in:
		| @@ -1,27 +0,0 @@ | ||||
| require("global") | ||||
| messageId = MESSAGE_TYPE_SYSTEM_ERROR; | ||||
| sender = "regen"; | ||||
|  | ||||
| function onGain(target, effect) | ||||
|     messageId = MESSAGE_TYPE_SYSTEM_ERROR; | ||||
|     sender = "regen"; | ||||
|  | ||||
| end; | ||||
|  | ||||
| function onTick(target, effect) | ||||
|     messageId = MESSAGE_TYPE_SYSTEM_ERROR; | ||||
|     sender = "regen"; | ||||
|  | ||||
|     -- todo: actual regen effect thing | ||||
|     local ability = GetWorldManager().GetBattleCommand(27346); | ||||
|     local anim = bit32.bxor(bit32.lshift(ability.animationType, 24), bit32.lshift(tonumber(1), 12) , 101);  | ||||
|     local addHp = effect.GetMagnitude(); | ||||
|      | ||||
|     target.AddHP(addHp); | ||||
|     --   target.SendBattleActionX01Packet(anim, 101, 0, 0, addHp); | ||||
| end; | ||||
|  | ||||
| function onLose(target, effect) | ||||
|     messageId = MESSAGE_TYPE_SYSTEM_ERROR; | ||||
|     sender = "regen"; | ||||
| end; | ||||
							
								
								
									
										3
									
								
								data/scripts/unique/fst0Town01/Monster/ass.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								data/scripts/unique/fst0Town01/Monster/ass.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| function onDeath(monster, player, lastAttacker) | ||||
|      | ||||
| end | ||||
		Reference in New Issue
	
	Block a user