Jump to content
  • 0

Requisting Script> # Monster gives item on Kill > acces with Party


Question

Posted (edited)

Hello scripters..

 

 

ive got a question which i dont even know if this is possible but heres my idea..

 

ive got my Custom dungeon

 

i want to add this function

 

1- entrance talk to npc to gain acces to dungeon they must be in a party then get warped to dungeon level 1

 

 

2- On dungeon level 2 there are 3 mvps... by killing 1 npc i want to show up a global message saying : (partyname) has killed a Shadow Keeper of the Realms..

 

 

3.  on killing al the 3 keepers i want to give evreone who is in the party a item like lets take as example an apple..

 

 

notes:

 

the mvps in the dungeon last level are Baphomet Thanatos and Wounded Morroc howevere these mvps can also be found in normal maps.. so i wonder if its possible that this is only Map related?

 

 

im kinda new and learning so i hope someone can help me with this... 

 

 

and in the last level there are 3 diffrent Mvps... Baphomet.. Thanatos

Edited by DutchDuck

3 answers to this question

Recommended Posts

  • 0
Posted

1- entrance talk to npc to gain acces to dungeon they must be in a party then get warped to dungeon level 1

	if (instance_check_party(getcharid(1),number of party members,min level required,max level)) {
		warp "map", 150, 150;
		} else {
		mes "message here";
		close;
		}

2- On dungeon level 2 there are 3 mvps... by killing 1 npc i want to show up a global message saying : (partyname) has killed a Shadow Keeper of the Realms.

	Spawn:
	.mob = 3;
	areamonster "map",150,150,10,10,"Shadow Keeper of the Realms 1",monster id,number of spawn,strnpcinfo(1)+"::OnMobKilled";
	areamonster "map",150,150,10,10,"Shadow Keeper of the Realms 2",monster id,number of spawn,strnpcinfo(1)+"::OnMobKilled";
	areamonster "map",150,150,10,10,"Shadow Keeper of the Realms 3",monster id,number of spawn,strnpcinfo(1)+"::OnMobKilled";

3.  on killing al the 3 keepers i want to give evreone who is in the party a item like lets take as example an apple..

	OnMobKilled:
	.mob--;
	if ( !.mob ) {
	enablenpc "apple_giver";
	} else {
	announce "Kill the 3 monsters to get your apples!";
	}
	end;

Then just create an NPC that will give them the reward.

Hope you get the idea. Good luck!

 

P.S. Not yet tested and it was written using my phone's notepad. 

  • 0
Posted (edited)

Thanks for youre Script!

 

i encoutered the problem that it doesnt really work  it says missing curly right..

and when i fixed that it says that the rule about Geffen coord1 coord2 position  script Realms Voice 

isnt an excisting command orso?

 

here is the script i used from you and added an npc giving out item

izlude,126,143,4 script TestingPalDun 70,{
if (instance_check_party(getcharid(1),2,200,250)) {
warp "geffen", 0,0;
} else {
mes "You need to be in a party of 2";
close;
}


 Spawn:
.mob = 3;
areamonster "geffen",150,150,10,10,"Shadow Keeper of the Realms 1",1002,1,strnpcinfo(1)+"::OnMobKilled";
areamonster "geffen",150,150,10,10,"Shadow Keeper of the Realms 2",1002,1,strnpcinfo(1)+"::OnMobKilled";
areamonster "geffen",150,150,10,10,"Shadow Keeper of the Realms 3",1002,1,strnpcinfo(1)+"::OnMobKilled";

OnMobKilled:
.mob--;
if ( !.mob ) {
enablenpc "Realms_Voice";
} else {
announce "Kill the 3 monsters to get your apples!",
end;
}
geffen,120,70,1 script Realms_Voice 46,{
mes "[Realms Voice]";
mes "You did it...";
mes "you defeated the keepers of the Shadow Realms...";
mes "you have great power...";
mes "Therefore i shall grant you these...";
mes "ShadowKeepers Trophy..";
mes "By 10 Trophys you get an unique custom item only for those who fought";
mes "the keepers of the ShadowRealm!",
next;
getitem 512, 1;
close;
}}
Edited by Emistry
codebox
  • 0
Posted

been playing with the script

 

got most of it working now except for 2 things..

 

IT doenst show any message about killing the 3 monsters for ""apples""

 

The npc used for giving the prize after killing the 3 monsters Can be activated even when the monsters are still alive 

 

i want the npc to show when 3 monsters are killed and hide as soon as he warps you out...  

 

here is the script  so far 

//----------------------------SHADOW OF REALMS TOKEN ROOM----------------
// Custom Shadow Of Realms Token Room
//Written by Jeroen/Aang
//----------------------------------------------------------------
//Restrictions
//----------------------------------------------------------------
//pal_dun01	mapflag	noskill
pal_dun01	mapflag	nomemo
pal_dun01	mapflag	nobranch
//pal_dun01	mapflag	noloot 
//pal_dun01	mapflag	noexp
//pal_dun01	mapflag	nodrop
pal_dun01	mapflag	novending
pal_dun01	mapflag	nowarp
pal_dun01	mapflag	nowarpto
pal_dun01	mapflag	noreturn
//pal_dun02	mapflag	noskill
pal_dun02	mapflag	nomemo
pal_dun02	mapflag	nobranch
//pal_dun02	mapflag	noloot 
//pal_dun02	mapflag	noexp
//pal_dun02	mapflag	nodrop
pal_dun02	mapflag	novending
pal_dun02	mapflag	nowarp
pal_dun02	mapflag	nowarpto
pal_dun02	mapflag	noreturn
pal_dun02	mapflag	loadevent
//----------------------------------------------------------------
//Monster Spawning
//-----------------------------------------------------------------
pal_dun01,0,0,0,0	Monster	Wanderer		1401,80,0,0,0		
pal_dun01,0,0,0,0	Monster	Forbidden Worshipper	1867,80,0,0,0		
pal_dun01,0,0,0,0	Monster	Shyvana			1713,80,0,0,0		
pal_dun01,0,0,0,0	Monster	Anivia			1716,120,0,0,0	
pal_dun01,0,0,0,0	Monster	Groot			2019,110,0,0,0		
pal_dun01,0,0,0,0	Monster	Realm Walker		1492,1,7200000,600000,0
pal_dun01,0,0,0,0	Monster	Haunter			1120,2,3600000,600000,0
pal_dun01,0,0,0,0	Monster	Morgana			1102,110,0,0,0		
//pal_dun02,0,0,0,0	Monster	Xerath Realm Keeper	1708,1,7200000,600000,0
//pal_dun02,0,0,0,0	Monster	Skarner Realm Keeper	1039,1,7200000,600000,0
//pal_dun02,0,0,0,0	Monster	Kha'Zix Realm Keeper	1917,1,7200000,600000,0
pal_dun02,0,0,0,0	Monster	Realm Servant		1920,50,3600000,1000,60
pal_dun02,0,0,0,0	Monster	Realm Keeper Defender	1922,25,3600000,1000,60
//----------------------------------------------------------------------
//		NPC Realm Explorer Jhin
//----------------------------------------------------------------------
//= <Name> Script
//= Created with Raid's NPC Editor 0.9 Alpha
//===== By: ==================================================
//= <Author> (1.0)
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= Any eAthena Version; RO Episode XX
//===== Description: =========================================
//= <Description>
//===== Additional Comments: =================================
//= <Version History and Comments>
//============================================================

pal_in01,20,167,5	script	Realm Explorer Jihn	743,{
	L0:
// Talking //
OnTimer1000:
		L1:
			mes "[Realm Explorer Jihn]";
			mes "No...Please...No...";
			mes "Dont...Dont..Enter the Realm Dungeon....";
			mes "Its Dangerous...Why?...";
			mes "Let me tell you...";
			mes "";
			mes "This is the Realm of Shadow Dungeon..";
			mes "In here you can find the Keepers of Time the Warriors of the Realm...";
			mes "A Lot of people tryed to find and kill the Keepers of the Realm..";
			mes "in order to gain a Special Custom Unique ...";
			mes "One only the strongest warriors can get..";
			mes "But only by Defeating the Keepers of the Realm.";
			next;
			mes "So what can you find in this dungeon?";
			mes "";
			mes "A high amount of monsters and Mvps....";
			mes "";
			mes "Which ones? well you have to see that for youreself...";
			mes "";
			mes "You Really want to contineu to enter the Dungeon?";
			mes "remember that when all seems lost there is always light at the end...";
			mes "be brave and fight hard";
			mes " here take these!...";
			next;
            if (countitem(504) > 50) {
                mes "[Realm Explorer Jhin]";
                mes "Sorry you already have Potions.";
                close;
            }
			getitem 504, 50;
			close;
end;
}
//---------------------------------------------------------------------------------------------------------------
// SIGN DUNGEON
//---------------------------------------------------------------------------------------------------------------
//===== eAthena Script =======================================
//= <Name> Script
//= Created with Raid's NPC Editor 0.9 Alpha
//===== By: ==================================================
//= <Author> (1.0)
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= Any eAthena Version; RO Episode XX
//===== Description: =========================================
//= <Description>
//===== Additional Comments: =================================
//= <Version History and Comments>
//============================================================
pallene,141,169,4	script	Shadow Of Realm Dungeon	837,{
	L0:
		mes "[Shadow Of Realm Dungeon]";
		mes "^FF0000 Shadow Of Realm Dungeon";
		mes "";
		mes "^000000 Enter The Realm.. Test youre Power!";
		close;
}
//----------------------------------------------------------------------------------------------------------------
//-	script	ROS_TOKEN	-1,{
//
//OnNPCKillEvent:
//	if(strcharinfo(3) == "pal_dun01") {
//		
//		getmapxy(.@ROS_TOKEN$,.@gx,.@gy,0);
//		set .@ROS_TOKEN_Chance,rand(1,01); //Configure for chance
//		
//		if(.@ROS_TOKEN_Chance == 1) //10% chance. Change to '< 2' for 20%, etc..
//			makeitem 7227,1,.@ROS_TOKEN$,.@gx,.@gy;
//	}
//	end;
//}
//===================================================
// Pallene Shadow Of Realm Dungeon Script
//===================================================
pallene,159,137,4	script	RealmShadowsDungeon	446,{
	if (instance_check_party(getcharid(1),2,150)){
		warp "pal_dun01", 0, 0;
} 		else {
		mes "Come back when you are Base Level 150+ and in a party with atleast 2 members";
		close;
}}
//============================================================
-	script	MonsterSpawn	-1,{
	OnPCLoadMapEvent:
	.mob = 3;
	monster "pal_dun02",0,0,"Azthor Keeper of the Realms",1708,1,strnpcinfo(1)+"::OnMobKilled";
	monster "pal_dun02",0,0,"Othar Keeper of the Realms",1039,1,strnpcinfo(1)+"::OnMobKilled";
	monster "pal_dun02",0,0,"Kalnor Keeper of the Realms",1917,1,strnpcinfo(1)+"::OnMobKilled";

//===================================================================

	OnMobKilled:
	.mob--;
	if ( !.mob ) {
	enablenpc "Realm Defender";
	} else {
	announce	"Kill the 3 monsters to get your apples!",
	end;
}
}
//==================================================
pal_dun02,50,51,5	script	Realm Defender	837,{
	mes "[Realm Defender]";
		mes "Finally...";
		mes "";
		mes "You... You and youre friends... helped getting the Realms back from those monsters..";
		mes "for that we cannot thank you enough...";
		mes "Long Ago the Defenders of the Realm engaged a battle the couldnt win...";
		mes "and those demons took over realm...";
		mes "";
		mes "they will return... Later ... lets hope there are more brave wariors...";
		mes "who can help us keep the realm safe..";
		mes "";
		mes "here this is for you as a gift... that you helped defend the Realm of Shadows!";
		next;
		getitem 7227, 1;
		next;
		mes "there you go...";
		mes "";
		mes "wear it with pride... let the power of the realms help you in combat...";
		next;
		warp "pallene", 146, 133;
		close;
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...