mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	fixed auto attack messing up cast anim
- fixed auto attack anim for mobs (<3 u ion) - added hotbar timer updates (<3 u azia) - fixed actor block bug - cleaned up substate retardation - fixed some targetfind issues - added despawn state - added messages for in progress commands - added fields for aoe target, range, battleAnimation to server_battle_commands table
This commit is contained in:
		| @@ -8,14 +8,12 @@ Switches between active and passive mode states | ||||
|  | ||||
| --]] | ||||
|  | ||||
| function onEventStarted(player, command, triggerName)		 | ||||
| 	 | ||||
| 	if (player:GetState() == 0) then | ||||
|         player.ChangeState(2); | ||||
| 		player.Engage(); | ||||
| 	elseif (player:GetState() == 2) then | ||||
| 		player:ChangeState(0);  | ||||
|         player.Disengage(); | ||||
| function onEventStarted(player, command, triggerName) | ||||
|      | ||||
| 	if (player.newMainState == 0x0000) then | ||||
| 		player.Engage(0, 0x0002); | ||||
|     elseif (player.newMainState == 0x0002) then | ||||
|         player.Disengage(0x0000); | ||||
| 	end		 | ||||
| 	player:endEvent(); | ||||
| 	sendSignal("playerActive"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user