Jump to content

Question

Posted

Hi good day to everyone, can anyone help me on how to insert mobs on this custom instance script.

I try to insert areamobs or monster script below but when i enter the instance i can't see any mobs inside it. Please help me.

here's the script, thank you so much in advance.
 

izlude,134,151,4	script	The beginner	1736,{
	.@n$ = "[^3355FF The beginner ^000000]";
	.@party_id = getcharid(1);
	.@p_name$ = getpartyname(.@party_id);
	.@instance$ = "The beginner";

		if (getcharid(0) == getpartyleader(.@party_id,2)) {
		mes .@n$;
		mes "This is where the fun really begins, I suggest you to bring friends, Do you really think you are ready?";
			next;
			switch(select("I'm super high and i can take anything:Enter Dungeon:Cancel")) {
			case 1:
				if (Zeny < 50000) { 
				mes .@n$;
				mes "I will not send you for free.";
				mes "I need to make a living.";
				mes "The cost of my service is 50,000 zeny.";
				mes "Would you like to proceed?";
				//cutin "",255;
				end;
				}
				if (instance_create(.@instance$) < 0) {
					mes "Party Name: "+.@p_name$;
					mes "Party Leader: "+strcharinfo(0);
					mes "^0000ff"+.@instance$+" ^000000- Reservation Failed!";
					close;
				}
				Zeny -= 50000;
				mes .@n$;
				mes "Talk to me again if you want to enter the dungeon again.";
				close;
			case 2:
				callsub L_Enter,0,1;
			case 3:
			mes .@n$;
			mes "Good luck!.";
				close;
			}
		}
		mes .@n$;
		mes "You may enter a The beginner if it's been reserved by your party leader.";
		next;
		switch(select("Enter the The beginner:Cancel")) {
		case 1:
			callsub L_Enter,1,1;
		case 2:
			mes .@n$;
			mes "Good luck!.";
			end;
		}
		
L_Enter:
	switch(instance_enter("The beginner")) {
	case 3:
		mes .@n$;
		mes "You are not in a party.";
		close;
	case 2:
			mes .@n$;
		mes "The private The beginner has not yet been reserved.";
		mes "The party leader did not pay the fee.";
		close;
	case 1:
			mes .@n$;
		mes "You can enter the room after making a party.";
		close;
	case 0:
		mapannounce "npc_in", strcharinfo(0)+" of the party, "+.@p_name$+", is entering a The beginner.",bc_map,"0x00ff99",FW_NORMAL,12;
		end;
	}
}

// Sector 1 Mobs
//============================================================
job_thief1,1,1,0	script	#testmobs	HIDDEN_WARP_NPC,{
	//mes "Hi there";
	close;

		monster "job_thief1",0,0,"Apocalypse",30001,34,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Civil Servant",30002,37,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Undoer",30003,33,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Leaf Cat",30004,35,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Enchanter",30005,32,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Garm",30006,5,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Raydric DeadEye",30007,35,"testmobs::OnMobsKilled";
		monster "job_thief1",0,0,"Monkey Fist",30008,22,"testmobs::OnMobsKilled";

OnMobsKilled:
	//announce "Hey, " + strcharinfo(0) + " just killed a Poringz0rd!",bc_blue|bc_all;
	end;
}

//==================================================================================
//--------|Map Flags|---------------------------------------------------------------
//==================================================================================

job_thief1	mapflag	monster_noteleport
job_thief1	mapflag	nowarpto
job_thief1	mapflag	nomemo
job_thief1	mapflag	noteleport
job_thief1	mapflag	nosave	SavePoint
job_thief1	mapflag	nopenalty

 

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

this wont excite anyway

image.png.5e146ebacb62463b94e8647cbe4c3fce.png

 

try to use OnInstanceInit: , also with what mentioned above about the map name,

also for the npc name *instance_npcname("<npc name>"{,<instance id>})

 

job_thief1,1,1,0	script	#testmobs	HIDDEN_WARP_NPC,{
	//mes "Hi there";
	close;
OnInstanceInit:
		.@m$ = instance_mapname("job_thief1");
		.@n$ = instance_npcname("#testmobs");
		monster .@m$,0,0,"Apocalypse",30001,34,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Civil Servant",30002,37,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Undoer",30003,33,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Leaf Cat",30004,35,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Enchanter",30005,32,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Garm",30006,5,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Raydric DeadEye",30007,35,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Monkey Fist",30008,22,.@n$ + "::OnMobsKilled";

OnMobsKilled:
	//announce "Hey, " + strcharinfo(0) + " just killed a Poringz0rd!",bc_blue|bc_all;
	end;
} 

 

Edited by sader1992
  • Like 1
  • 0
Posted

Hi @PottScilgrim and @sader1992 i try to add a new npc inside this instance dungeon, and the function of that npc is to warp you to the 2nd dungeon with 1 mvpp monster only.

 

but i'm failed i try to use pvp_n_2-4 for new map after talking to the npc. i did the warper npc but when i enter the second map its the same with my second problem there is no monster inside the map.

 

and how can i add a ending script that after killing the mvp monster all party will be warp to izlude town.

here's the script i add.

 

// Warper 1
job_thief1,104,330,4	script	Gatekeeper	4_F_NFDEADKAFRA,{
	mes "[Gatekeeper]";
	mes "I am the proud owner of sealed gate, Only i hold the key of entry!.";
	mes "Inside you will find one of my many beast, a challenge in which you can handle it.";
	next;
	mes "[Notice]";
	mes "Just in case you missed my announcement, please ensure all your party members are on the same map as you before continuing.";
	next;
	mes "[Gatekeeper]";
	mes "Please confirm you read my announcement.";
	next;
	switch(select("Continue:Let me grab all my party member first:Cancel")) {
	case 1:
		mes "Ok good luck i will warp you now.";
		warp 'pvp_n_2-4,99,17;
		close;
	case 2:
		mes "Ok Lets wait them all.";
		close;
	case 3:
		mes "Ok!.";
		close;
	case 0:
		mapannounce "job_thief1", strcharinfo(0)+" of the party, "+.@p_name$+", entered Unholy Path Instance.",bc_map,"0x00ff99",FW_NORMAL,12;
	}
}

pvp_n_2-4,1,1,0	script	#ultimatemobs	HIDDEN_WARP_NPC,{

OnInstanceInit:
		.@m$ = instance_mapname("pvp_n_2-4");
		.@n$ = instance_npcname("#ultimatemobs");
		monster .@m$,0,0,"Apocalypse",30001,44,.@n$ + "::OnMobsKilled";

OnMobsKilled:
	//announce "Hey, " + strcharinfo(0) + " just killed a Poringz0rd!",bc_blue|bc_all;
	end;
}

 

  • 0
Posted

Can anyone help me, the first floor mobs is working perfectly, but when i enter the next map it doesn't have mobs on it ? 

// Entrance
//============================================================
izlude,134,151,4	script	Gods Lake	1736,{
	.@n$ = "[^3355FF Gods Lake ^000000]";
	.@party_id = getcharid(1);
	.@p_name$ = getpartyname(.@party_id);
	.@instance$ = "Gods Lake";

		if (getcharid(0) == getpartyleader(.@party_id,2)) {
		mes .@n$;
		mes "This is where the fun really begins, I suggest you to bring friends, Do you really think you are ready?";
			next;
			switch(select("I'm super high and i can take anything:Enter Dungeon:Cancel")) {
			case 1:
				if (Zeny < 50000) { 
				mes .@n$;
				mes "I will not send you for free.";
				mes "I need to make a living.";
				mes "The cost of my service is 50,000 zeny.";
				mes "Would you like to proceed?";
				//cutin "",255;
				end;
				}
				if (instance_create(.@instance$) < 0) {
					mes "Party Name: "+.@p_name$;
					mes "Party Leader: "+strcharinfo(0);
					mes "^0000ff"+.@instance$+" ^000000- Reservation Failed!";
					close;
				}
				Zeny -= 50000;
				mes .@n$;
				mes "Talk to me again if you want to enter the dungeon again.";
				close;
			case 2:
				callsub L_Enter,0,1;
			case 3:
			mes .@n$;
			mes "Good luck!.";
				close;
			}
		}
		mes .@n$;
		mes "You may enter a Gods Lake if it's been reserved by your party leader.";
		next;
		switch(select("Enter the Gods Lake:Cancel")) {
		case 1:
			callsub L_Enter,1,1;
		case 2:
			mes .@n$;
			mes "Good luck!.";
			end;
		}
		
L_Enter:
	switch(instance_enter("Gods Lake")) {
	case 3:
		mes .@n$;
		mes "You are not in a party.";
		close;
	case 2:
		mes .@n$;
		mes "The private Gods Lake has not yet been reserved.";
		mes "The party leader did not pay the fee.";
		close;
	case 1:
		mes .@n$;
		mes "You can enter the room after making a party.";
		close;
	case 0:
		mapannounce "job_thief1", strcharinfo(0)+" of the party, "+.@p_name$+", entered Gods Lake Instance.",bc_map,"0x00ff99",FW_NORMAL,12;
		end;
	}
}

// Warper 1
job_thief1,64,330,4	script	Gatekeeper	4_F_NFDEADKAFRA,{
	mes "[Gatekeeper]";
	mes "I am the proud owner of sealed gate, Only i hold the key of entry!.";
	mes "Inside you will find one of my many beast, a challenge in which you can handle it.";
	next;
	mes "[Notice]";
	mes "Just in case you missed my announcement, please ensure all your party members are on the same map as you before continuing.";
	next;
	mes "[Gatekeeper]";
	mes "Please confirm you read my announcement.";
	next;
	switch(select("Continue:Let me grab all my party member first:Cancel")) {
	case 1:
		mes "Ok good luck i will warp you now.";
		warp instance_mapname("pvp_n_2-4", instance_id(IM_PARTY)) ,100,18;
		close;
	case 2:
		mes "Ok Lets wait them all.";
		close;
	case 3:
		mes "Ok!.";
		close;
	}
}

pvp_n_2-4,1,1,0	script	#unltimatedemons1	HIDDEN_WARP_NPC,{
	//mes "Hi there";
	close;
OnInstanceInit:
		.@m$ = instance_mapname("pvp_n_2-4");
		.@n$ = instance_npcname("#unltimatedemons1");
		monster .@m$,0,0,"Balam",30013,1,.@n$ + "::OnMobsKilled";

OnMobsKilled:
	//announce "Hey, " + strcharinfo(0) + " just killed a Poringz0rd!",bc_blue|bc_all;
	end;
}

// Sector 1 Mobs
//============================================================
job_thief1,1,1,0	script	#unholypathmobs	HIDDEN_WARP_NPC,{
	//mes "Hi there";
	close;
OnInstanceInit:
		.@m$ = instance_mapname("job_thief1");
		.@n$ = instance_npcname("#unholypathmobs");
		monster .@m$,0,0,"Apocalypse",30001,44,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Civil Servant",30002,47,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Undoer",30003,43,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Leaf Cat",30004,45,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Enchanter",30005,42,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Garm",30006,10,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Raydric DeadEye",30007,45,.@n$ + "::OnMobsKilled";
		monster .@m$,0,0,"Monkey Fist",30008,42,.@n$ + "::OnMobsKilled";

OnMobsKilled:
	//announce "Hey, " + strcharinfo(0) + " just killed a Poringz0rd!",bc_blue|bc_all;
	end;
}

//==================================================================================
//--------|Map Flags|---------------------------------------------------------------
//==================================================================================

job_thief1	mapflag	monster_noteleport
job_thief1	mapflag	nowarpto
job_thief1	mapflag	nomemo
job_thief1	mapflag	noteleport
job_thief1	mapflag	nosave	SavePoint
job_thief1	mapflag	nopenalty

 

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