mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Changed "SendRequestedInfo" to "SendDataPacket" as that's the actual name of the packet. Copied all the progress with the Limsa Opening director to Gridania and Uldah.
This commit is contained in:
		| @@ -1,16 +1,9 @@ | ||||
| require ("global") | ||||
| require ("tutorial") | ||||
| require ("quests/man/man0g0") | ||||
|  | ||||
| --processTtrBtl001: Active Mode Tutorial | ||||
| --processTtrBtl002: Targetting Tutorial (After active mode done) | ||||
| --processTtrBtl003: Auto Attack Done | ||||
| --processTtrBtl004: Tutorial Complete | ||||
|  | ||||
| --[[ | ||||
| 12: TP | ||||
| 13: WeaponSkills | ||||
|  | ||||
| ]]-- | ||||
|  | ||||
| function init() | ||||
| 	return "/Director/Quest/QuestDirectorMan0g001"; | ||||
| @@ -18,30 +11,51 @@ end | ||||
|  | ||||
| function onEventStarted(player, actor, triggerName)	 | ||||
|  | ||||
| 	quest = player:GetQuest("Man0g0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl001", nil, nil, nil); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processEvent010_1", nil, nil, nil); | ||||
| 	player:ChangeMusic(7); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processEvent020_1", nil, nil, nil);	 | ||||
| 	 | ||||
| 	--sendDataPacket: Success | ||||
| 	--sendDataPacket: CloseWidget | ||||
| 	--IF DoW: | ||||
| 		--sendDataPacket: OpenWidget (TP) | ||||
| 		--IF TP REACHED: | ||||
| 		--sendDataPacket: CloseWidget | ||||
| 		--sendDataPacket: OpenWidget (WS) | ||||
| 		--IF WS USED: | ||||
| 		--sendDataPacket: Success | ||||
| 		--sendDataPacket: CloseWidget | ||||
| 	--ELSE MAGIC: | ||||
| 		--sendDataPacket: OpenWidget (DEFEAT ENEMY) | ||||
| 			 | ||||
| 	--IF DEAD | ||||
| 	--sendDataPacket: Attention | ||||
| 	 | ||||
| 	quest:NextPhase(10);	 | ||||
| 	man0g0Quest = player:GetQuest("Man0g0"); | ||||
| 	startTutorialMode(player); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0g0Quest, "processTtrBtl001", nil, nil, nil); | ||||
| 	player:EndEvent(); | ||||
| 	waitForSignal("playerActive"); | ||||
| 	wait(1); --If this isn't here, the scripts bugs out. TODO: Find a better alternative. | ||||
| 	kickEventContinue(player, actor, "noticeEvent", "noticeEvent");	 | ||||
| 	callClientFunction(player, "delegateEvent", player, man0g0Quest, "processTtrBtl002", nil, nil, nil); | ||||
| 	player:EndEvent(); | ||||
| 	wait(4); | ||||
| 	closeTutorialWidget(player); | ||||
| 	showTutorialSuccessWidget(player, 9055); --Open TutorialSuccessWidget for attacking enemy | ||||
| 	wait(3); | ||||
| 	openTutorialWidget(player, CONTROLLER_KEYBOARD, TUTORIAL_TP); | ||||
| 	wait(5); | ||||
| 	closeTutorialWidget(player); | ||||
| 	openTutorialWidget(player, CONTROLLER_KEYBOARD, TUTORIAL_WEAPONSKILLS); | ||||
| 	wait(4); --Should be wait for weaponskillUsed signal | ||||
| 	closeTutorialWidget(player); | ||||
| 	showTutorialSuccessWidget(player, 9065); --Open TutorialSuccessWidget for weapon skill | ||||
| 	 | ||||
| 	wait(6); --Should be wait for mobkill | ||||
| 	worldMaster = GetWorldMaster(); | ||||
| 	player:SendDataPacket("attention", worldMaster, "", 51073, 2); | ||||
| 	wait(7); | ||||
| 	player:ChangeMusic(7); | ||||
| 	player:ChangeState(0);  | ||||
| 	kickEventContinue(player, actor, "noticeEvent", "noticeEvent"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0g0Quest, "processEvent020_1", nil, nil, nil);	 | ||||
| 	 | ||||
| 	--[[ | ||||
| 	IF DoW: | ||||
| 		OpenWidget (TP) | ||||
| 		IF TP REACHED: | ||||
| 			CloseWidget | ||||
| 			OpenWidget (WS) | ||||
| 		IF WS USED: | ||||
| 			Success | ||||
| 			CloseWidget | ||||
| 	ELSE MAGIC: | ||||
| 		OpenWidget (DEFEAT ENEMY)			 | ||||
| 	]] | ||||
| 	 | ||||
| 	man0g0Quest:NextPhase(10);	 | ||||
| 	player:EndEvent();	 | ||||
| 	 | ||||
| 	GetWorldManager():DoZoneChange(player, 155, "PrivateAreaMasterPast", 1, 15, 175.38, -1.21, -1156.51, -2.1); | ||||
| 	 | ||||
| @@ -59,9 +73,6 @@ end | ||||
|  | ||||
| function onCommandEvent(player, command) | ||||
|  | ||||
| 	quest = GetStaticActor("Man0g0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", nil, nil, nil);	 | ||||
|  | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
|   | ||||
| @@ -34,7 +34,7 @@ function onEventStarted(player, actor, triggerName) | ||||
| 	 | ||||
| 	wait(6); --Should be wait for mobkill | ||||
| 	worldMaster = GetWorldMaster(); | ||||
| 	player:SendRequestedInfo("attention", worldMaster, "", 51073, 1); | ||||
| 	player:SendDataPacket("attention", worldMaster, "", 51073, 1); | ||||
| 	wait(7); | ||||
| 	player:ChangeMusic(7); | ||||
| 	player:ChangeState(0);  | ||||
| @@ -73,9 +73,6 @@ end | ||||
|  | ||||
| function onCommandEvent(player, command) | ||||
|  | ||||
| 	quest = GetStaticActor("Man0l0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", nil, nil, nil);	 | ||||
|  | ||||
| end | ||||
|  | ||||
| function onEventUpdate(player, npc) | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| require ("global") | ||||
| require ("tutorial") | ||||
| require ("quests/man/man0u0") | ||||
|  | ||||
| --processTtrBtl001: Active Mode Tutorial | ||||
| @@ -6,39 +7,57 @@ require ("quests/man/man0u0") | ||||
| --processTtrBtl003: Auto Attack Done | ||||
| --processTtrBtl004: Tutorial Complete | ||||
|  | ||||
| --[[ | ||||
| 12: TP | ||||
| 13: WeaponSkills | ||||
|  | ||||
| ]]-- | ||||
|  | ||||
| function init() | ||||
| 	return "/Director/Quest/QuestDirectorMan0u001"; | ||||
| end | ||||
|  | ||||
| function onEventStarted(player, actor, triggerName)	 | ||||
|  | ||||
| 	quest = GetStaticActor("Man0u0"); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl001", nil, nil, nil); | ||||
| 	callClientFunction(player, "delegateEvent", player, quest, "processTtrBtl002", nil, nil, nil); | ||||
| 	 | ||||
| 	--sendDataPacket: Success | ||||
| 	--sendDataPacket: CloseWidget | ||||
| 	--IF DoW: | ||||
| 		--sendDataPacket: OpenWidget (TP) | ||||
| 		--IF TP REACHED: | ||||
| 		--sendDataPacket: CloseWidget | ||||
| 		--sendDataPacket: OpenWidget (WS) | ||||
| 		--IF WS USED: | ||||
| 		--sendDataPacket: Success | ||||
| 		--sendDataPacket: CloseWidget | ||||
| 	--ELSE MAGIC: | ||||
| 		--sendDataPacket: OpenWidget (DEFEAT ENEMY) | ||||
| 			 | ||||
| 	--IF DEAD | ||||
| 	--sendDataPacket: Attention | ||||
| 	 | ||||
| 	man0u0Quest = player:GetQuest("Man0u0"); | ||||
| 	startTutorialMode(player); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrBtl001", nil, nil, nil); | ||||
| 	player:EndEvent(); | ||||
| 	waitForSignal("playerActive"); | ||||
| 	wait(1); --If this isn't here, the scripts bugs out. TODO: Find a better alternative. | ||||
| 	kickEventContinue(player, actor, "noticeEvent", "noticeEvent");	 | ||||
| 	callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrBtl002", nil, nil, nil); | ||||
| 	player:EndEvent(); | ||||
| 	wait(4); | ||||
| 	closeTutorialWidget(player); | ||||
| 	showTutorialSuccessWidget(player, 9055); --Open TutorialSuccessWidget for attacking enemy | ||||
| 	wait(3); | ||||
| 	openTutorialWidget(player, CONTROLLER_KEYBOARD, TUTORIAL_TP); | ||||
| 	wait(5); | ||||
| 	closeTutorialWidget(player); | ||||
| 	openTutorialWidget(player, CONTROLLER_KEYBOARD, TUTORIAL_WEAPONSKILLS); | ||||
| 	wait(4); --Should be wait for weaponskillUsed signal | ||||
| 	closeTutorialWidget(player); | ||||
| 	showTutorialSuccessWidget(player, 9065); --Open TutorialSuccessWidget for weapon skill | ||||
| 	 | ||||
| 	wait(6); --Should be wait for mobkill | ||||
| 	worldMaster = GetWorldMaster(); | ||||
| 	player:SendDataPacket("attention", worldMaster, "", 51073, 3); | ||||
| 	wait(7); | ||||
| 	player:ChangeMusic(7); | ||||
| 	player:ChangeState(0);  | ||||
| 	kickEventContinue(player, actor, "noticeEvent", "noticeEvent"); | ||||
| 	callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020", nil, nil, nil);	 | ||||
| 	 | ||||
| 	--[[ | ||||
| 	IF DoW: | ||||
| 		OpenWidget (TP) | ||||
| 		IF TP REACHED: | ||||
| 			CloseWidget | ||||
| 			OpenWidget (WS) | ||||
| 		IF WS USED: | ||||
| 			Success | ||||
| 			CloseWidget | ||||
| 	ELSE MAGIC: | ||||
| 		OpenWidget (DEFEAT ENEMY)			 | ||||
| 	]] | ||||
| 	 | ||||
| 	man0u0Quest:NextPhase(10);	 | ||||
| 	player:EndEvent();	 | ||||
| 	 | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -18,10 +18,10 @@ function onBeginLogin(player) | ||||
| 			 | ||||
| 	--For Opening. Set Director and reset position incase d/c | ||||
| 	if	   (player:HasQuest(110001) == true) then | ||||
| 		--director = player:GetZone():CreateDirector("OpeningDirector"); | ||||
| 		--player:AddDirector(director); | ||||
| 		--player:SetLoginDirector(director);		 | ||||
| 		--player:KickEvent(director, "noticeEvent", true); | ||||
| 		director = player:GetZone():CreateDirector("OpeningDirector"); | ||||
| 		player:AddDirector(director); | ||||
| 		player:SetLoginDirector(director);		 | ||||
| 		player:KickEvent(director, "noticeEvent", true); | ||||
| 		 | ||||
| 		player.positionX = 0.016; | ||||
| 		player.positionY = 10.35; | ||||
|   | ||||
| @@ -31,7 +31,7 @@ TUTORIAL_DEFEATENEMY = 18; | ||||
| --Helper functions | ||||
|  | ||||
| function showTutorialSuccessWidget(player, textId) | ||||
| 	player:SendRequestedInfo(2, nil, nil, textId); | ||||
| 	player:SendDataPacket(2, nil, nil, textId); | ||||
| end | ||||
|  | ||||
| function openTutorialWidget(player, controllerType, widgetId) | ||||
| @@ -39,17 +39,17 @@ function openTutorialWidget(player, controllerType, widgetId) | ||||
| 	if (controllerType ~= CONTROLLER_GAMEPAD) then | ||||
| 		controllerType = CONTROLLER_KEYBOARD; | ||||
| 	end | ||||
| 	player:SendRequestedInfo(4, nil, nil, controllerType, widgetId); | ||||
| 	player:SendDataPacket(4, nil, nil, controllerType, widgetId); | ||||
| end | ||||
|  | ||||
| function closeTutorialWidget(player) | ||||
| 	player:SendRequestedInfo(5); | ||||
| 	player:SendDataPacket(5); | ||||
| end | ||||
|  | ||||
| function startTutorialMode(player) | ||||
| 	player:SendRequestedInfo(9); | ||||
| 	player:SendDataPacket(9); | ||||
| end | ||||
|  | ||||
| function endTutorialMode(player) | ||||
| 	player:SendRequestedInfo(7); | ||||
| 	player:SendDataPacket(7); | ||||
| end | ||||
		Reference in New Issue
	
	Block a user