mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	added ion's and showmo's enums
- added nullable DateTime param to UnixTimeStampUTC
This commit is contained in:
		
							
								
								
									
										36
									
								
								data/scripts/commands/Ability.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								data/scripts/commands/Ability.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| require ("global") | ||||
| require ("utils") | ||||
|  | ||||
| --[[ | ||||
|  | ||||
| AttackWeaponSkill Script | ||||
|  | ||||
| Finds the correct weaponskill subscript to fire when a weaponskill actor is activated. | ||||
|  | ||||
| --]] | ||||
|  | ||||
| local attackMagicHandlers = { | ||||
|      | ||||
| } | ||||
|  | ||||
| function onEventStarted(player, command, triggerName, arg1, arg2, arg3, arg4, targetActor, arg5, arg6, arg7, arg8) | ||||
| 	print(command.actorId) | ||||
| 	--Are they in active mode? | ||||
| 	if (player:GetState() != 2) then | ||||
| 		player:SendGameMessage(GetWorldMaster(), 32503, 0x20); | ||||
| 		player:endEvent(); | ||||
| 		return; | ||||
| 	end | ||||
|  | ||||
| 	--Does the target exist | ||||
| 	target = player:getZone():FindActorInArea(targetActor); | ||||
| 	if (target == nil) then | ||||
| 		player:SendGameMessage(GetWorldMaster(), 30203, 0x20); | ||||
| 		player:endEvent(); | ||||
| 		return; | ||||
| 	end | ||||
| 	 | ||||
| 	player.Ability(command.actorId, targetActor); | ||||
| 	player:endEvent();	 | ||||
| 	 | ||||
| end | ||||
		Reference in New Issue
	
	Block a user