Jump to content
  • 0

Stop event when WOE


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   24
  • Joined:  02/23/12
  • Last Seen:  

what should i add in an event script when there is WOE the event will stop?

and where should i put it?

here: i also want to do it on other events...

//= Poring Catcher - Auto Event Script
//===== By: ================================================================================
//= Washi - www.EarthBound-RO.com
//===== Compatible With: ====================================================================
//= Any eAthena Version
//===== Description: ========================================================================
//= Single NPC that starts automatically starts every hour.
//===== Additional Comments: ================================================================
//= This script is a combenation of the Dice Event by [Mahina]
//= and the origonal Poring Catcher Event by [Wild Karrd]
//================================================================================
//===========
//= OnMinute - Change this to the minute you would like this script to load. [ LINE 22 ]
//= getitem - Change this to the Item ID of your prize. [ LINE 118 ]
//================================================================================
//===========
-    script    poring#announcer    -1,{

OnInit:
   disablenpc "poringevent";
   hideonnpc "Poring Catcher#evnt2";
   end;

OnMinute30: // SET THE 30 TO THE MINUTE YOU WANT THE EVENT TO START EACH HOUR.

   announce "BriceRO Poring Catcher : It's time to play some Poring Catcher!",0;
   killmonster "poring_w01","All";
   sleep2 10000;
   announce "BriceRO Poring Catcher : Please make your way to the Centre of El Dicastes.",0;
   sleep2 10000;
   announce "BriceRO Poring Catcher : After one minute the portal will close.",0;
   sleep2 10000;
   announce "BriceRO Poring Catcher : Enter the warp portal now if you want to join.",0;
   enablenpc "poringevent";
   initnpctimer;
   end;

OnTimer30000:
   announce "BriceRO Poring Catcher : Last 30 seconds.",0;
   sleep2 5000;
   announce "BriceRO Poring Catcher : Hurry to the centre of EL Dicastes if you want to join.",0;
   end;

OnTimer50000:
   announce "BriceRO Poring Catcher : Last 10 seconds.",0;
   end;

OnTimer55000:
   announce "BriceRO Poring Catcher : 5.",0;
   end;

OnTimer56000:
   announce "BriceRO Poring Catcher : 4.",0;
   end;

OnTimer57000:
   announce "BriceRO Poring Catcher : 3.",0;
   end;

OnTimer58000:
   announce "BriceRO Poring Catcher : 2.",0;
   end;

OnTimer59000:
   announce "BriceRO Poring Catcher : 1.",0;
   end;

OnTimer60000:
   announce "BriceRO Poring Catcher : Time's up. Portal Will Open again in one hour.",0;
   end;

OnTimer61000:
   disablenpc "poringevent";
   donpcevent "Poring Catcher#evnt2::OnEnable";
   stopnpctimer;
   end;
   }

//--------------------------------------------------

dicastes01,198,180,4    warp    poringevent    2,2,poring_w01,106,129

//--------------------------------------------------

poring_w01,100,127,4    script    Poring Catcher#evnt2    715,{

//--------------------------------------------------

   mes "[briceRO Poring Catcher]";
   if(PORING == 1) goto L_PORING;
   mes "Please tell me your name";
   next;
   input .@name$;
   if(.@name$ != strcharinfo(0)) {
       mes "[briceRO Poring Catcher]";
       mes "Are you sure thats your character name?";
       close;
   }
   mes "[briceRO Poring Catcher]";
   mes "Congrats. You've won.";
   close2;
   announce "BriceRO Poring Catcher : All laugh at, "+.@name$+". - This player tried to cheat the system. Muhahahahaha!",0;
   warp "dicastes01",193,175;
   end;

L_PORING:
   mes "Please tell me your name";
   next;
   input .@name$;
   if(.@name$ != strcharinfo(0)) {
       mes "[briceRO Poring Catcher]";
       mes "Are you sure thats your character name?";
       close;
   }
   mes "[briceRO Poring Catcher]";
   mes "Congrats. You've won.";
   close2;
   announce "BriceRO Poring Catcher : We have a winner,Lucky Bastard, "+.@name$+". - 180 Special Tickets Won!",0;

   getitem 6153,180; // SET THE 20085 TO THE ITEM ID OF YOUR PRIZE

   set PORING,0;
   warp "dicastes01",193,175;
   hideonnpc "Poring Catcher#evnt2";
   end;

OnEnable:
   mapannounce "poring_w01","BriceRO Poring Catcher : I will be summoning 100 different Porings.",0;
   sleep2 10000;
   mapannounce "poring_w01","BriceRO Poring Catcher : Only one of these Porings is the correct Poring.",0;
   sleep2 10000;
   mapannounce "poring_w01","BriceRO Poring Catcher : The correct Poring is called [ Poring ], all the other Porings have different names.",0;
   sleep2 10000;
   mapannounce "poring_w01","BriceRO Poring Catcher : Take your time because if you kill the wrong Poring, your out of the game.",0;
   sleep2 10000;
   mapannounce "poring_w01","BriceRO Poring Catcher : The first player to kill the correct Poring wins.",0;
   sleep2 10000;
   mapannounce "poring_w01","BriceRO Poring Catcher : That's that.. Now let's play...",0;
   goto L_Start;
   end;

L_Start:
   mapannounce "poring_w01","BriceRO Poring Catcher : 5",0;
   sleep2 1000;
   mapannounce "poring_w01","BriceRO Poring Catcher : 4",0;
   sleep2 1000;
   mapannounce "poring_w01","BriceRO Poring Catcher : 3",0;
   sleep2 1000;
   mapannounce "poring_w01","BriceRO Poring Catcher : 2",0;
   sleep2 1000;
   mapannounce "poring_w01","BriceRO Poring Catcher : 1",0;
   sleep2 1000;
   mapannounce "poring_w01","BriceRO Poring Catcher : Lets Do This!",0;
   areamonster "poring_w01",84,119,121,90,"Poring",1002,1,"poringwin::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Pouring",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Proing",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Poiring",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Poing",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"I am not Poring",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"PoriNg",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Porong",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"P0ring",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Por1ng",1002,20,"poringlose::OnMobKilled";
   areamonster "poring_w01",84,119,121,90,"Porng",1002,1,"poringlose::OnMobKilled";
   end;
}

-    script    poringwin    -1,{

OnMobKilled:
   dispbottom "BriceRO Poring : Congratulations. You've got me.";
   set PORING,1;
   atcommand "@doommap";
   killmonster "poring_w01","All";
   mapannounce "poring_w01","BriceRO Poring Catcher : Come to me and tell me your name.",0;
   hideoffnpc "Poring Catcher#evnt2";
   end;
}

-    script    poringlose    -1,{

OnMobKilled:
   dispbottom "BriceRO Poring Catcher : Wahaha, your a loser! - I wasnt the correct Poring.";
   warp "que_moon",99,35;
   end;

}

Edited by Mr BrycE
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

try this

OnAgitStart:
killmonster "poring_w01","All";
mapwarp "poring_w01","prontera",155,181;
announce "Poring Event End because of WOE started.",0;
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   24
  • Joined:  02/23/12
  • Last Seen:  

is it a new script under poring lose? or i will just put that on or before OnInit?

Link to comment
Share on other sites


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

in the same script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   24
  • Joined:  02/23/12
  • Last Seen:  

i see, thanks.

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