Jump to content
  • 0

Disguise Event Problem


Orgasmator

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/17/12
  • Last Seen:  

Hi all,
 
I've succesfully activated the Disguise event that comes with rAthena svn. I have made some small modifications such as new reward ID etc.

Then I changed its place to somewhere else. Nothing was wrong with it. After that, I realized the it broadcasts 2 Warnings too fast. I just used "sleep" between the broadcasts. Now when I click to turn the event ON, no "next" / "close" buttons appear. I tried to remove "sleep" command but nothing changed.

 

EDIT: I mean I can start the event well, just I can't exit from the conversation.

 

Screenshot:

kts6f.jpg

 

Beginning of the script:

prontera,198,162,3	script	Disguise Event	795,{

	// Currently set to run every two hours.
	// To change times, edit the OnClock labels below.

	set .@GMLevel,60;	// GM level required to access NPC.
	set .@n$,"[^0000FFDisguise NPC^000000]";

	if (getgmlevel()>=.@GMLevel) {
		mes .@n$;
		mes "Select an option.";
		next;
		switch(select("Turn ON/OFF Event:Event Settings")) {
		case 1:
			mes .@n$;
			if (.EventON) {
				mes "The Event is currently: [^0000FFON^000000]";
				mes "Would you like to turn it OFF?";
			} else {
				mes "The Event is currently: [^FF0000OFF^000000]";
				mes "Would you like to turn it ON?";
			}
			if(select("Yes:No")==2) close;
			if (.EventON) {
				set .EventON,0; set .Timer,0;
				setnpctimer 0; stopnpctimer;
				announce "A GM has decided to turn the Disguise Event off. As a result no further prizes will be given.",bc_map | bc_blue;
				deletepset 1;
				setnpcdisplay "Disguise Event",795;
				close;
			}
			set .EventON,1; set .Timer,1; setnpctimer 0; initnpctimer;
			set .ResetCounter,.ResetCounter+1;
			announce "The Disguise Event will begin in 3 minutes.",bc_all | bc_blue;
			sleep 2500;
			announce "The Event is being held in Prontera,198,162.",bc_all | bc_blue;
			close;
Edited by Orgasmator
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  


if (.EventON) {

mes "The Event is currently: [^0000FFON^000000]";

mes "Would you like to turn it OFF?";

next;

} else {

mes "The Event is currently: [^FF0000OFF^000000]";

mes "Would you like to turn it ON?";

next;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/17/12
  • Last Seen:  

			if (.EventON) {
				mes "The Event is currently: [^0000FFON^000000]";
				mes "Would you like to turn it OFF?";
				next;
			} else {
				mes "The Event is currently: [^FF0000OFF^000000]";
				mes "Would you like to turn it ON?";
				next;
			}

 

Thanks for the effort, but sadly it didnt change anything. Still no button.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Hi all,

 

 After that, I realized the it broadcasts 2 Warnings too fast. I just used "sleep" between the broadcasts.

2 same broadcasts = 2 NPC running (maybe a duplicate ?)

 

 

 

Use sleep2, sleep doesn't keep the rid. close button can't appear if the player is not attached

*sleep {<milliseconds>};

but the main difference is that sleep will not keep the rid

			announce "The Disguise Event will begin in 3 minutes.",bc_all | bc_blue;
			close2;
			sleep 2500;
			announce "The Event is being held in Prontera,198,162.",bc_all | bc_blue;
			end;

or use close2

Edited by Capuche
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...