mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Fixed a bunch of bugs Jorge found. Readded tutorial quests back.
This commit is contained in:
		
							
								
								
									
										29
									
								
								Data/scripts/quests/trl1/Trl0g1.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Data/scripts/quests/trl1/Trl0g1.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| require ("global") | ||||
|  | ||||
| --[[ | ||||
|  | ||||
| Quest Script | ||||
|  | ||||
| Name: 	Getting Started (Mother Miounne) | ||||
| Code: 	Trl0g1 | ||||
| Id: 	110141 | ||||
|  | ||||
| Enables the "Getting Started" option on Miounne. | ||||
| * NOTE: This quest is active for all players at all times. | ||||
| ]] | ||||
|  | ||||
| function onTalk(player, quest, npc, eventName) | ||||
| 	local choice = callClientFunction(player, "delegateEvent", player, quest, "processEventMiounneStart");	 | ||||
| 	 | ||||
| 	if (choice == 1) then | ||||
| 		callClientFunction(player, "delegateEvent", player, quest, "processEvent225"); | ||||
| 	elseif (choice == 2) then | ||||
| 		callClientFunction(player, "delegateEvent", player, quest, "processEvent230"); | ||||
| 	end | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
|  | ||||
| function IsQuestENPC(player, quest, npc) | ||||
| 	return npc:GetActorClassId()] == 1000230; | ||||
| end | ||||
							
								
								
									
										29
									
								
								Data/scripts/quests/trl1/Trl0l1.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Data/scripts/quests/trl1/Trl0l1.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| require ("global") | ||||
|  | ||||
| --[[ | ||||
|  | ||||
| Quest Script | ||||
|  | ||||
| Name:	Getting Started (Baderon) | ||||
| Code:	Trl0l1 | ||||
| Id:		110140 | ||||
|  | ||||
| Enables the "Getting Started" option on Baderon. | ||||
| * NOTE: This quest is active for all players at all times. | ||||
| ]] | ||||
|  | ||||
| function onTalk(player, quest, npc, eventName) | ||||
| 	local choice = callClientFunction(player, "delegateEvent", player, quest, "processEventBaderonStart");	 | ||||
| 	 | ||||
| 	if (choice == 1) then | ||||
| 		callClientFunction(player, "delegateEvent", player, quest, "processEvent640"); | ||||
| 	elseif (choice == 2) then | ||||
| 		callClientFunction(player, "delegateEvent", player, quest, "processEvent650"); | ||||
| 	end | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
|  | ||||
| function IsQuestENPC(player, quest, npc) | ||||
| 	return npc:GetActorClassId()] == 1000137; | ||||
| end | ||||
							
								
								
									
										29
									
								
								Data/scripts/quests/trl1/Trl0u1.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Data/scripts/quests/trl1/Trl0u1.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| require ("global") | ||||
|  | ||||
| --[[ | ||||
|  | ||||
| Quest Script | ||||
|  | ||||
| Name:	Getting Started (Momodi) | ||||
| Code:	Trl0u1 | ||||
| Id:		110142 | ||||
|  | ||||
| Enables the "Getting Started" option on Momodi. | ||||
| * NOTE: This quest is active for all players at all times. | ||||
| ]] | ||||
|  | ||||
| function onTalk(player, quest, npc, eventName) | ||||
| 	local choice = callClientFunction(player, "delegateEvent", player, quest, "processEventMomodiStart");	 | ||||
| 	 | ||||
| 	if (choice == 1) then | ||||
| 		callClientFunction(player, "delegateEvent", player, quest, "processEvent235"); | ||||
| 	elseif (choice == 2) then | ||||
| 		callClientFunction(player, "delegateEvent", player, quest, "processEvent240"); | ||||
| 	end | ||||
| 	 | ||||
| 	player:EndEvent(); | ||||
| end | ||||
|  | ||||
| function IsQuestENPC(player, quest, npc) | ||||
| 	return npc:GetActorClassId() == 1000841; | ||||
| end | ||||
		Reference in New Issue
	
	Block a user