Jump to content
  • 0

H> Auto Poring Catcher Event Script


mrgeiszer

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   2
  • Joined:  03/07/23
  • Last Seen:  

Hello again my scripter friends,

I just need some help with this script I just want to make sure if this script is working since there's no error detected when I load it to my server.

The script source i just used is from here: 

credit to the owner of the script.

here's the modified script that I'm working on:

//Automated Poring Catcher Script ===================================================================

-	script	pctrigger	-1,{

OnMinute00: // Change on how many minutes the event will auto start.
	if(gettime(3) == 0 || gettime(3) == 3 || gettime(3) == 6 || gettime(3) == 9 || gettime(3) == 12 || gettime(3) == 15)  
	donpcevent "pcatch::OnEventStart";
	end;

}

-	script	pcatch	-1,{

OnEventStart:
	killmonster "poring_w01.gat","All";
	announce "Pikachu : Let's have a Poring Catcher Event now.",0;
	sleep 3000;
	announce "Pikachu : If you want to join, come at the middle of Prontera, enter the warp portal.",0;
	enablenpc "PoringCatcher";
	sleep 2000;
	announce "Pikachu : prizes are 1 Box of Lv10 Blessing & AGI scroll + 1 Proof Of Donation Ticket.",0;
	sleep 3000;
	announce "Pikachu : The portal is going to close in one minute.",0;  
	sleep 2000;
	announce "Pikachu : Poring Catcher Event will start at the moment.",0;
	sleep 5000;
	announce "Pikachu : If you want to join, come at the middle of Prontera, enter the warp portal.",0;
	sleep 2000;
	announce "Pikachu : prizes are 1 Box of Lv10 Blessing & AGI scroll + 1 Proof Of Donation Ticket.",0;
	sleep 2000;
	announce "Pikachu : The portal is going to close in one minute.",0;  
	sleep 60000;
	announce "Pikachu : Time's up. Portal is closed and will open again after an half-hour.",0;
	disablenpc "PoringCatcher";
	
	
	if(getmapusers("poring_w01") == 0) 
	{
		disablenpc "Poring Banker";
		announce "Event Poring Catcher didn't start because no players found in map.",0;
		end;
	}



OnInit:
	//disablenpc "Poring Banker";
	//disablenpc "PoringCatcher";
	donpcevent "Poring Banker::OnEnable";
	end;
}

//Poring Catcher Portal ======================================================================
prontera,155,180,0	warp	PoringCatcher	2,2,poring_w01,105,128

//============================================================================================
//Poring Catcher Event Script ================================================================

-	script	Poring Banker	-1,{

OnEnable:
	mapannounce "poring_w01","Pikachu :  The Poring Catcher Event will start shortly",0;
	sleep2 10000;
	mapannounce "poring_w01","Pikachu :  I will be summoning 100 porings with different names kill the real poring",0;
	sleep2 10000;
	mapannounce "poring_w01","Pikachu :  What are we waiting for?..Let's Catch some Porings!!...",0;
	sleep2 10000;
	goto L_Start;
	end;
	
L_Start:
	if(getmapusers("poring_w01") == 0) goto L_None;
	if(getmapusers("poring_w01") >= 1) {

	mapannounce "poring_w01","Pikachu :  Get ready at the count of 5 we will start!....",0;
	sleep2 6000;
	mapannounce "poring_w01","Pikachu :  5",0;
	sleep2 5000;
	mapannounce "poring_w01","Pikachu :  4",0;
	sleep2 4000;
	mapannounce "poring_w01","Pikachu :  3",0;
	sleep2 3000;
	mapannounce "poring_w01","Pikachu :  2",0;
	sleep2 2000;
	mapannounce "poring_w01","Pikachu :  1",0;
	donpcevent "Poringsummoner::OnSummon";
	end;
	}

	L_None:
	disablenpc "Poring Banker";
	killmonster "poring_w01.gat","All";
	end;
}

//SUMMONER OF PORINGS ================================================================
-	script	Poringsummoner	-1,{

OnSummon:
   if(getmapusers("poring_w01") == 0) goto L_2None;
   monster "poring_w01.gat",0,0,"Poring",1002,1,"poringwin::OnMobKilled";
   monster "poring_w01.gat",0,0,"Pouring",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Proing",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poirng",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poing",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"I'm not a Poring",1002,5,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Gnirop",1002,1,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poring",1113,1,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poring",1062,1,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Por|ng",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Por1ng",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Porong",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"P0ring",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"P@ring",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Porng",1002,1,"poringlose::OnMobKilled";
   end;
   
L_2None:
	disablenpc "Poring Banker";
	killmonster "poring_w01.gat","All";
	end;
}

//PORING WIN Function ================================================================
-	script	poringwin	-1,{

OnMobKilled:
   killmonster "poring_w01.gat","All";
   atcommand "@doommap";
   getitem 7179,1; // POD Ticket
   getitem 13697,1;  //Lv 10 Blessing Scroll
   getitem 12914,1; // Lv 10 Increase AGI scroll
   announce "Poring Banker: We have a winner! well done " + strcharinfo(0) + " - prizes got are 1 box of Lv10 Blessing & AGI scroll & 1 POD ticket!.",0;
   warp "SavePoint",0,0;
   end;
}

//PORINGS LOSE Function ================================================================
-	script	poringlose	-1,{

OnMobKilled:
   dispbottom "Your out of the game, You did not catch the right Poring !";
   percentheal -99,-99;
   warp "SavePoint",0,0;
   end;
}


//Mapflags ================================================================
poring_w01	mapflag	nowarp
poring_w01	mapflag	nowarpto
poring_w01	mapflag	noteleport
poring_w01	mapflag	nosave
poring_w01	mapflag	nomemo
poring_w01	mapflag	nobranch
poring_w01	mapflag	noloot
poring_w01	mapflag	noskill
poring_w01	mapflag	nopenalty

no errors found but i won't start the event. Did I missed something? please help TIY

Edited by mrgeiszer
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   19
  • Joined:  12/24/18
  • Last Seen:  

57 minutes ago, mrgeiszer said:

Hello again my scripter friends,

I just need some help with this script I just want to make sure if this script is working since there's no error detected when I load it to my server.

The script source i just used is from here: 

credit to the owner of the script.

here's the modified script that I'm working on:

//Automated Poring Catcher Script ===================================================================

-	script	pctrigger	-1,{

OnMinute00: // Change on how many minutes the event will auto start.
	if(gettime(3) == 0 || gettime(3) == 3 || gettime(3) == 6 || gettime(3) == 9 || gettime(3) == 12 || gettime(3) == 15)  
	donpcevent "pcatch::OnEventStart";
	end;

}

-	script	pcatch	-1,{

OnEventStart:
	killmonster "poring_w01.gat","All";
	announce "Pikachu : Let's have a Poring Catcher Event now.",0;
	sleep 3000;
	announce "Pikachu : If you want to join, come at the middle of Prontera, enter the warp portal.",0;
	enablenpc "PoringCatcher";
	sleep 2000;
	announce "Pikachu : prizes are 1 Box of Lv10 Blessing & AGI scroll + 1 Proof Of Donation Ticket.",0;
	sleep 3000;
	announce "Pikachu : The portal is going to close in one minute.",0;  
	sleep 2000;
	announce "Pikachu : Poring Catcher Event will start at the moment.",0;
	sleep 5000;
	announce "Pikachu : If you want to join, come at the middle of Prontera, enter the warp portal.",0;
	sleep 2000;
	announce "Pikachu : prizes are 1 Box of Lv10 Blessing & AGI scroll + 1 Proof Of Donation Ticket.",0;
	sleep 2000;
	announce "Pikachu : The portal is going to close in one minute.",0;  
	sleep 60000;
	announce "Pikachu : Time's up. Portal is closed and will open again after an half-hour.",0;
	disablenpc "PoringCatcher";
	
	
	if(getmapusers("poring_w01") == 0) 
	{
		disablenpc "Poring Banker";
		announce "Event Poring Catcher didn't start because no players found in map.",0;
		end;
	}



OnInit:
	//disablenpc "Poring Banker";
	//disablenpc "PoringCatcher";
	donpcevent "Poring Banker::OnEnable";
	end;
}

//Poring Catcher Portal ======================================================================
prontera,155,180,0	warp	PoringCatcher	2,2,poring_w01,105,128

//============================================================================================
//Poring Catcher Event Script ================================================================

-	script	Poring Banker	-1,{

OnEnable:
	mapannounce "poring_w01","Pikachu :  The Poring Catcher Event will start shortly",0;
	sleep2 10000;
	mapannounce "poring_w01","Pikachu :  I will be summoning 100 porings with different names kill the real poring",0;
	sleep2 10000;
	mapannounce "poring_w01","Pikachu :  What are we waiting for?..Let's Catch some Porings!!...",0;
	sleep2 10000;
	goto L_Start;
	end;
	
L_Start:
	if(getmapusers("poring_w01") == 0) goto L_None;
	if(getmapusers("poring_w01") >= 1) {

	mapannounce "poring_w01","Pikachu :  Get ready at the count of 5 we will start!....",0;
	sleep2 6000;
	mapannounce "poring_w01","Pikachu :  5",0;
	sleep2 5000;
	mapannounce "poring_w01","Pikachu :  4",0;
	sleep2 4000;
	mapannounce "poring_w01","Pikachu :  3",0;
	sleep2 3000;
	mapannounce "poring_w01","Pikachu :  2",0;
	sleep2 2000;
	mapannounce "poring_w01","Pikachu :  1",0;
	donpcevent "Poringsummoner::OnSummon";
	end;
	}

	L_None:
	disablenpc "Poring Banker";
	killmonster "poring_w01.gat","All";
	end;
}

//SUMMONER OF PORINGS ================================================================
-	script	Poringsummoner	-1,{

OnSummon:
   if(getmapusers("poring_w01") == 0) goto L_2None;
   monster "poring_w01.gat",0,0,"Poring",1002,1,"poringwin::OnMobKilled";
   monster "poring_w01.gat",0,0,"Pouring",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Proing",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poirng",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poing",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"I'm not a Poring",1002,5,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Gnirop",1002,1,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poring",1113,1,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Poring",1062,1,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Por|ng",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Por1ng",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Porong",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"P0ring",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"P@ring",1002,10,"poringlose::OnMobKilled";
   monster "poring_w01.gat",0,0,"Porng",1002,1,"poringlose::OnMobKilled";
   end;
   
L_2None:
	disablenpc "Poring Banker";
	killmonster "poring_w01.gat","All";
	end;
}

//PORING WIN Function ================================================================
-	script	poringwin	-1,{

OnMobKilled:
   killmonster "poring_w01.gat","All";
   atcommand "@doommap";
   getitem 7179,1; // POD Ticket
   getitem 13697,1;  //Lv 10 Blessing Scroll
   getitem 12914,1; // Lv 10 Increase AGI scroll
   announce "Poring Banker: We have a winner! well done " + strcharinfo(0) + " - prizes got are 1 box of Lv10 Blessing & AGI scroll & 1 POD ticket!.",0;
   warp "SavePoint",0,0;
   end;
}

//PORINGS LOSE Function ================================================================
-	script	poringlose	-1,{

OnMobKilled:
   dispbottom "Your out of the game, You did not catch the right Poring !";
   percentheal -99,-99;
   warp "SavePoint",0,0;
   end;
}


//Mapflags ================================================================
poring_w01	mapflag	nowarp
poring_w01	mapflag	nowarpto
poring_w01	mapflag	noteleport
poring_w01	mapflag	nosave
poring_w01	mapflag	nomemo
poring_w01	mapflag	nobranch
poring_w01	mapflag	noloot
poring_w01	mapflag	noskill
poring_w01	mapflag	nopenalty

no errors found but i won't start the event. Did I missed something? please help TIY

Why not use this instead? 
OnClock0000:
OnClock0300:
OnClock0600:
OnClock0900:
OnClock1200:
OnClock1500:

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   2
  • Joined:  03/07/23
  • Last Seen:  

thanks @Mice I think I've fix my issue with this script thanks for the help..

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