Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Help


Help-Help

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   2
  • Joined:  03/16/13
  • Last Seen:  

//===== eAthena Script =======================================
//= Treasure Room
//===== By: ==================================================
//= Chasis of ThugRO
//===== Current Version: =====================================
//= v.1
//===== Compatible With: =====================================
//= Any eAthena Version
//===== Description: =========================================
//= Its a Pirate Thing way of Mining.
//= for any revision or bug just let me know
//============================================================
//========== Treasure Room Settings ==========================
pvp_n_2-1	mapflag	nosave	SavePoint
pvp_n_2-1	mapflag	nomemo
pvp_n_2-1	mapflag	nobranch
pvp_n_2-1	mapflag	noexp
pvp_n_2-1	mapflag	nodrop
pvp_n_2-1	mapflag	nochat
pvp_n_2-1	mapflag	novending
pvp_n_2-1	mapflag	nowarp
pvp_n_2-1	mapflag	nowarpto
pvp_n_2-1	mapflag	noreturn
pvp_n_2-1.gat	mapflag	pvp	off
//ordeal_2-1.gat	mapflag	pvp_noguild
pvp_n_2-1	mapflag	noloot
pvp_n_2-1	mapflag	noskill
pvp_n_2-1	mapflag	restricted	7

//===========================================================
//=== Mobs
//===========================================================
-	script	trum_v1	-1,{

OnInit:
// Target Mobs
monster "pvp_n_2-1",0,0,"Coin Eater",3062,2000,"trum_v1::OnThisMobDeath";
end;

OnThisMobDeath:

monster "pvp_n_2-1",0,0,"Coin Eater",3062,1,"trum_v1::OnThisMobDeath";
getitem 17938,1;

}

//===========================================================
//=== Exit Warper
//===========================================================
pvp_n_2-1,94,15,4	script	Treasure Miner	826,{
mes "[Treasure Miner]";
mes "What would you like to do?";
next;
menu "Respawn Coin Eaters",M_RESPAWN,"Exit to Mellina",M_TELEPORT,"Stay",M_Bye;
close;

M_RESPAWN:
if(getgmlevel()) > 50{
mes "[Treasure Miner]";
mes "Respawning monsters....";
monster "pvp_n_2-1",0,0,"Coin Eater",3062,2000,"trum_v1::OnThisMobDeath";
next;
mes "Done!";
close;}
mes "[Treasure Miner]";
mes "I'm sorry, you are not authorized to perform this action.";
close;



M_TELEPORT:
mes "[Treasure Miner]";
mes "Thank You for mining!!.";
next;
warp "mellina",86,84;
end;

M_Bye:
mes "[Treasure Miner]";
mes "Alright, Go get more Coins~.";
close;

}

//===========================================================
//=== Warpers
//===========================================================
mellina,65,76,5	script	Treasurer#prt::Treasurer	804,{
mes "[Treasurer]";
mes "Hi There, Would you like to go to the Treasure Room? You need 1,000,000z to go inside.";
next;
switch(select("Yes. Ahoy!:No")) {
case 1:
if (Zeny > 999999) {
mes "[Treasurer]";
mes "Alright I will now send you to the Treasure Room, Take Care!.";
next;
set Zeny,Zeny-1000000;
atcommand "@option 0 0 0";
warp "pvp_n_2-1",93,155;
emotion 21;
close;
}
else {
mes "[Treasurer]";
mes "Sorry, But you don't have enough zeny.";
close;
}
case 2:
mes "[Treasurer]";
mes "Alright, No problem.";
close;
}
}


//===========================================================
//=== NPC Clones
//===========================================================
aldebaran,133,116,4	duplicate(Treasurer)	Treasurer#alde	804
alberta,23,247,4	duplicate(Treasurer)	Treasurer#alb	804
payon,151,182,4	duplicate(Treasurer)	Treasurer#pay	804
geffen,115,74,4	duplicate(Treasurer)	Treasurer#gef	804

 

Why is not auto spawn I can kill all monster and after no spawn anymore pls fix fix.

Edited by Capuche
Script into [Code]
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   237
  • Joined:  07/30/12
  • Last Seen:  

Try this original script;

//===== eAthena Script =======================================
//= Treasure Room
//===== By: ==================================================
//= Chasis of ThugRO
//===== Current Version: =====================================
//= v.1
//===== Compatible With: =====================================
//= Any eAthena Version
//===== Description: =========================================
//= Its a Pirate Thing way of Mining.
//= for any revision or bug just let me know
//============================================================
//========== Treasure Room Settings ==========================
ordeal_2-1.gat	mapflag	noskill
ordeal_2-1.gat	mapflag	nosave	SavePoint
ordeal_2-1.gat	mapflag	nomemo
ordeal_2-1.gat	mapflag	nobranch
ordeal_2-1.gat	mapflag	noexp
ordeal_2-1.gat	mapflag	nodrop
ordeal_2-1.gat	mapflag	nochat
ordeal_2-1.gat	mapflag	novending
ordeal_2-1.gat	mapflag	nowarp
ordeal_2-1.gat	mapflag	nowarpto
ordeal_2-1.gat	mapflag	noreturn
//ordeal_2-1.gat	mapflag	pvp
//ordeal_2-1.gat	mapflag	pvp_noguild
ordeal_2-1.gat	mapflag	noloot

//===========================================================
//=== Mobs
//===========================================================
-	script	trum_v1	-1,{

OnInit:
	// Target Mobs
	monster "ordeal_2-1",0,0,"Treasure Crew",1071,150,"trum_v1::OnKill";	
	end;
	
OnKill:
	getitem 7444,1;
	monster "ordeal_2-1",0,0,"Treasure Crew",1071,1,"trum_v1::OnKill";
	}

//===========================================================
//=== Exit Warper
//===========================================================
ordeal_2-1,154,156,4	script	Treasure Miner	826,{
	mes "[Treasure Miner]";
	mes "Would you like to go back to prontera?";
	next;
	menu "Yes",M_TELEPORT,"No",M_Bye;
	close;

M_TELEPORT:
	mes "[Treasure Miner]";
	mes "Thank You for mining!!.";
	next;
	warp "prontera",155,180;
	end;

M_Bye:
	mes "[Treasure Miner]";
	mes "Alright, Go get more Treasure Boxes~.";
	close;

}

//===========================================================
//=== Warpers
//===========================================================
prontera,165,152,4	script	Treasurer#prt::Treasurer	804,{
	mes "[Treasurer]";
	mes "Hi There, Would you like to go to the Treasure Room? You need 100,000z to go inside.";
	next;
	switch(select("Yes. Ahoy!:No")) {
	case 1:
		if (Zeny > 99999) {
			mes "[Treasurer]";
			mes "Alright I will now send you to the Treasure Room, Take Care!.";
			next;
			set Zeny,Zeny-100000;
			warp "ordeal_2-1",156,155;
			emotion 21;
			close;
		}
		else {
			mes "[Treasurer]";
			mes "Sorry, But you don't have enough zeny.";
			close;
		}
	case 2:
		mes "[Treasurer]";
		mes "Alright, No problem.";
		close;
	}
}


//===========================================================
//=== NPC Clones
//===========================================================
aldebaran,133,116,4	duplicate(Treasurer)	Treasurer#alde	804
alberta,23,247,4	duplicate(Treasurer)	Treasurer#alb	804
payon,151,182,4	duplicate(Treasurer)	Treasurer#pay	804
geffen,115,74,4	duplicate(Treasurer)	Treasurer#gef	804
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   2
  • Joined:  03/16/13
  • Last Seen:  

Same hahaha.

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