Jump to content
  • 0

Quick way to disabled npc include the duplicate


Question

Posted (edited)
Quote

antgm,32,186,0	script	#Trap	HIDDEN_WARP_NPC,8,8,{
	end;

OnTouch:
	switch(rand(15)) {
		case 0:  unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1; emotion ET_HUK; break;
		case 1:  break;
		case 2: unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1; break;
		case 3: sc_start SC_Freeze,10000,0; break;
		case 4:  unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1; emotion ET_HUK; break;
		case 5: sc_start SC_Sleep,10000,0; break;
		case 6: sc_start SC_Stone,10000,0; emotion ET_KIK; break;
		case 7:  unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1; emotion ET_HUK; break;
		case 8:  unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1; emotion ET_HUK; break;
		case 9: sc_start SC_Stun,10000,0; break;
		case 10: sc_start SC_Sleep,10000,0; emotion ET_KIK; break;
		case 11:  break;
		case 12: sc_start SC_Stun,10000,0; break;
		case 13: unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1; break;
		default:
			unitkill getcharid(3); skilleffect "NPC_SELFDESTRUCTION",1;
		break;
	}
	end;

}
//Top
antgm,43,223,0	duplicate(#Trap)	#Traptop1	HIDDEN_WARP_NPC,8,8
antgm,32,250,0	duplicate(#Trap)	#Traptop2	HIDDEN_WARP_NPC,8,8
antgm,30,284,0	duplicate(#Trap)	#Traptop3	HIDDEN_WARP_NPC,8,8
antgm,36,314,0	duplicate(#Trap)	#Traptop4	HIDDEN_WARP_NPC,8,8
antgm,50,354,0	duplicate(#Trap)	#Traptop5	HIDDEN_WARP_NPC,8,8
antgm,84,358,0	duplicate(#Trap)	#Traptop6	HIDDEN_WARP_NPC,8,8
antgm,128,365,0	duplicate(#Trap)	#Traptop7	HIDDEN_WARP_NPC,8,8
antgm,167,362,0	duplicate(#Trap)	#Traptop8	HIDDEN_WARP_NPC,8,8
antgm,208,353,0	duplicate(#Trap)	#Traptop9	HIDDEN_WARP_NPC,8,8
antgm,254,373,0	duplicate(#Trap)	#Traptop10	HIDDEN_WARP_NPC,8,8

 

HI, its there quikway to disabled npc included the duplicate ?
 

then use this way??

disablenpc instance_npcname("#Traptop1");
disablenpc instance_npcname("#Traptop2");

disablenpc instance_npcname("#Traptop3");
 

 

Edited by LearningRO

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

Just put // on your npc conf file.

 

before:

// --------------------------------------------------------------
// -                       Custom Scripts                       -
// --------------------------------------------------------------
//      All the custom scripts, remove the '//' to enable...     
//      Place your scripts here!

npc: npc/location/to/script.txt

 

after:

// --------------------------------------------------------------
// -                       Custom Scripts                       -
// --------------------------------------------------------------
//      All the custom scripts, remove the '//' to enable...     
//      Place your scripts here!

//npc: npc/location/to/script.txt

 

 

OR you can just use @unloadnpc npc/location/to/script.txt

Edited by mrfizi
  • 0
Posted
25 minutes ago, mrfizi said:

Just put // on your npc conf file.

 

before:


// --------------------------------------------------------------
// -                       Custom Scripts                       -
// --------------------------------------------------------------
//      All the custom scripts, remove the '//' to enable...     
//      Place your scripts here!

npc: npc/location/to/script.txt

 

after:


// --------------------------------------------------------------
// -                       Custom Scripts                       -
// --------------------------------------------------------------
//      All the custom scripts, remove the '//' to enable...     
//      Place your scripts here!

//npc: npc/location/to/script.txt

 

 

OR you can just use @unloadnpc npc/location/to/script.txt

you missunderstand what i want broo 

this for temp hide npc 

  • 0
Posted (edited)
2 minutes ago, mrfizi said:

My second option on my reply is the best answer. @unloadnpc npc/location/to/script.txt

so i want to disable that npc for the moment 
ex: when i kill monster
that NPC trap will be removed for 1 minute after that will be enable again

i just want to know is there quick way then use disablenpc each line LOL

so i think you miss understand ?

 

Edited by LearningRO

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