mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Fixed work values being totally wrong for guildleves. Added Add/Remove GL command.
This commit is contained in:
		| @@ -20,7 +20,7 @@ function onEventStarted(player, npc, triggerName) | ||||
| 	local currentGLDirector = player:GetGuildleveDirector(); | ||||
| 	local glData = currentGLDirector.guildleveData; | ||||
|  | ||||
| 	callClientFunction(player, "eventGuildleveReward", currentGLDirector.guildleveId, 0x26, 24, 24, 0, 0, 0, 0, 0, 0, 0, 4); | ||||
| 	callClientFunction(player, "eventGuildleveReward", currentGLDirector.guildleveId, currentGLDirector.completionTime, 24, 24, 0, 0, 0, 0, 0, 0, 0, 4); | ||||
| 	 | ||||
| 	local choice = callClientFunction(player, "eventTalkGuildleveWarp", glData.aetheryte, 0); | ||||
| 	 | ||||
|   | ||||
							
								
								
									
										15
									
								
								data/scripts/commands/gm/addguildleve.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								data/scripts/commands/gm/addguildleve.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| require("global"); | ||||
|  | ||||
| properties = { | ||||
|     permissions = 0, | ||||
|     parameters = "s", | ||||
|     description = "Adds a guildleve by <id>.", | ||||
| } | ||||
|  | ||||
| function onTrigger(player, argc, glId)     | ||||
|     if player then | ||||
| 		player:AddGuildleve(tonumber(glId)); | ||||
| 	else | ||||
|         print(sender.."unable to add guildleve, ensure player name is valid."); | ||||
|     end; | ||||
| end; | ||||
							
								
								
									
										15
									
								
								data/scripts/commands/gm/removeguildleve.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								data/scripts/commands/gm/removeguildleve.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| require("global"); | ||||
|  | ||||
| properties = { | ||||
|     permissions = 0, | ||||
|     parameters = "s", | ||||
|     description = "Adds a guildleve by <id>.", | ||||
| } | ||||
|  | ||||
| function onTrigger(player, argc, glId)     | ||||
|     if player then | ||||
| 		player:RemoveGuildleve(tonumber(glId)); | ||||
| 	else | ||||
|         print(sender.."unable to add guildleve, ensure player name is valid."); | ||||
|     end; | ||||
| end; | ||||
		Reference in New Issue
	
	Block a user