Jump to content
  • 0

entrance at et need tcg as requirment


Sergardo

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

how to add tcg as requirment when entering endless tower? 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

L_Enter:
	mes "Please pay me one "+getitemname(7227);
	if (select("Alright", "Cancel") == 2) close3;
	if (countitem(7227) < 1) {
		mes "You dont have enough "+getitemname(7227);
		close3;
	}
	switch(instance_enter("Endless Tower")) {
	case IE_OTHER:
		mes "An unknown error has occurred.";
		close;
	case IE_NOINSTANCE:
		mes "The memorial dungeon Endless Tower does not exist.";
		mes "The party leader did not generate the dungeon yet.";
		close;
	case IE_NOMEMBER:
		mes "You can enter the dungeon after making the party.";
		close;
	case IE_OK:
		delitem 7227, 1;
		mapannounce "e_tower", strcharinfo(0) +" of the party, "+ getpartyname( getcharid(1) ) +", is entering the dungeon, Endless Tower.",bc_map,"0x00ff99",FW_NORMAL,12;
		if (getarg(1)) {
			set etower_timer,gettimetick(2);
			set etower_partyid, getcharid(1);
			setquest 60200;
			setquest 60201;
		}
		//warp "1@tower",52,354;
		if (getarg(0) == 0) close;
		else end;
	}

npc/instances/EndlessTower.txt#L295

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

On 10/23/2022 at 11:25 PM, Sergardo said:

how to add tcg as requirment when entering endless tower? 

Simple NPC

	mes "Hi"
	switch(Select("Enter","Exit"){
			case 1:
					if (countitem(7227) < 1) {
					mes "You dont have enough "+getitemname(7227);
					close;
					}
					mes "This is what you read if you have TCG add below your next thing that you want to do";
					close;
			case 2:
		}
	}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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...