Jump to content
  • 0

help with Npc Enable command


DutchDuck

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   0
  • Joined:  02/23/14
  • Last Seen:  

ive been working on this script...

 

after killing 3 mvps in the dungeon a message/npc should show up ...

 

This does work...

 

however i keep getting this error enablenpc attempt to show a non existing npc   on my mapserver  and i want to get rid of it (see screenshot)..

//----------------------------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";
		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;
	 }else{
	announce	"Kill the 3 Realm Keepers Azthor, Othar, Kalnor!",
	end;
}
}
//==================================================

EDITED:

 

 

sorry Already Fixed it!!! topic can be deleted

Edited by DutchDuck
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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