Jump to content

Recommended Posts

Posted

Yeah it's possible to teleport, as long as the SSQ conditions are met of course.

 

class ssq_npc_teleporter_for_boss : default_npc {
parameter:
	int DawnPosX = 0;
	int DawnPosY = 0;
	int DawnPosZ = 0;
	int DuskPosX = 0;
	int DuskPosY = 0;
	int DuskPosZ = 0;
	
handler:
	EventHandler TALKED(talker) {
		ShowPage(talker, "spirit_gate001.htm");
	}

	EventHandler MENU_SELECTED(talker, ask, reply) {
		if (GetSSQStatus() != @SS_SEAL_EFFECT) {
			ShowPage(talker, "spirit_gate_q0506_01.htm");
		} else if (GetSSQWinner() == @TWILIGHT && GetSSQPart(talker) == @TWILIGHT && GetSSQSealOwner(@SEAL_AVARICE) == @TWILIGHT) {
			InstantTeleport(talker, DuskPosX, DuskPosY, DuskPosZ);
		} else if (GetSSQWinner() == @DAWN && GetSSQPart(talker) == @DAWN && GetSSQSealOwner(@SEAL_AVARICE) == @DAWN) {
			InstantTeleport(talker, DawnPosX, DawnPosY, DawnPosZ);
		} else {
			ShowPage(talker, "spirit_gate_q0506_01.htm");
		}
	}
}

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...