mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Required scripts to make it work.
This commit is contained in:
		
							
								
								
									
										18
									
								
								data/scripts/commands/ConfirmGroupCommand.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								data/scripts/commands/ConfirmGroupCommand.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | --[[ | ||||||
|  |  | ||||||
|  | ConfirmGroupCommand Script | ||||||
|  |  | ||||||
|  | Handles what happens when you resolve an invite to a group | ||||||
|  |  | ||||||
|  | --]] | ||||||
|  |  | ||||||
|  | function onEventStarted(player, actor, triggerName, groupType, result) | ||||||
|  |  | ||||||
|  | 	--Accept/Refuse happened, else just close the window | ||||||
|  | 	if (result == 1 or result == 2) then | ||||||
|  | 		GetWorldManager():GroupInviteResult(player, groupType, result);		 | ||||||
|  | 	end | ||||||
|  | 	 | ||||||
|  | 	player:EndEvent(); | ||||||
|  | 	 | ||||||
|  | end | ||||||
							
								
								
									
										19
									
								
								data/scripts/commands/PartyBreakupCommand.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								data/scripts/commands/PartyBreakupCommand.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | --[[ | ||||||
|  |  | ||||||
|  | PartyBreakupCommand Script | ||||||
|  |  | ||||||
|  | Handles disbanding the party. | ||||||
|  |  | ||||||
|  | --]] | ||||||
|  |  | ||||||
|  | function onEventStarted(player, actor, triggerName) | ||||||
|  | 	worldMaster = GetWorldMaster();		 | ||||||
|  | 	 | ||||||
|  | 	if (player:IsPartyLeader()) then | ||||||
|  | 		player:PartyDisband(name) | ||||||
|  | 	else | ||||||
|  | 		player:SendGameMessage(player, worldMaster, 30540, 0x20); | ||||||
|  | 	end | ||||||
|  | 	 | ||||||
|  | 	player:EndEvent(); | ||||||
|  | end | ||||||
| @@ -1,28 +1,12 @@ | |||||||
| --[[ | --[[ | ||||||
|  |  | ||||||
| PartyKickCommand Script | PartyResignCommand Script | ||||||
|  |  | ||||||
| Handles requesting to kick (oust) and various errors. | Handles leaving a party | ||||||
|  |  | ||||||
| TextIds: |  | ||||||
|  |  | ||||||
| 30404 - Ousted Sheet/ActorId Version |  | ||||||
| 30410 - You are Ousted |  | ||||||
| 30428 - Ousted String Version |  | ||||||
| 30540 - You are not party leader |  | ||||||
| 30555 - Unable to oust |  | ||||||
| 30575 - Cannot oust due to not pt member |  | ||||||
|  |  | ||||||
| --]] | --]] | ||||||
|  |  | ||||||
| function onEventStarted(player, actor, name) | function onEventStarted(player, actor, triggerName) | ||||||
| 	worldMaster = GetWorldMaster();		 | 	player:PartyLeave(name);	 | ||||||
| 	 |  | ||||||
| 	if (player:IsPartyLeader()) then |  | ||||||
| 		player:PartyKickPlayer(name); |  | ||||||
| 	else |  | ||||||
| 		player:SendGameMessage(player, worldMaster, 30540, 0x20); |  | ||||||
| 	end |  | ||||||
| 	 |  | ||||||
| 	player:EndEvent(); | 	player:EndEvent(); | ||||||
| end | end | ||||||
		Reference in New Issue
	
	Block a user