Jump to content

Question

Posted

Hi guys, i would like to request a script that disables npc like this ff.:

 

1. npc disables when the WOE is on.

2. npc hides when the instance tower is on..

 

does anyone know bout this sir. am having a hard time on searchin for this script for a days. 

18 answers to this question

Recommended Posts

Posted (edited)

What npc you like to do these changes?

 

i'd like to disable these npc when agit start:

poring catcher:

pvp room:

disguise event:

 

and these stance tower id like to disable the 1st npc when theres inside the instance tower means one quester only..

 

this Endless tower.

 

 

OnAgitStart:
OnAgitStart2:
disablenpc "<NPC name>";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "<NPC name>";
end;

 

can you do the full script sir. :(

Edited by freehit21
Posted

Just change <NPC Names> for your... npc names (?

 

like:

OnAgitStart:
OnAgitStart2:
disablenpc "<poring catcher>";
disablenpc "<pvp room>";
disablenpc "<disguise event>";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "<poring catcher>";
enablenpc "<pvp room>";
enablenpc "<disguise event>";
end;
Posted

 

Just change <NPC Names> for your... npc names (?

 

like:

OnAgitStart:
OnAgitStart2:
disablenpc "<poring catcher>";
disablenpc "<pvp room>";
disablenpc "<disguise event>";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "<poring catcher>";
enablenpc "<pvp room>";
enablenpc "<disguise event>";
end;

 what about endless tower sir? if some party uses the tower. the 1st npc will autohide the npc. :)

Posted

Much better if you consult the document provided by the rA staffs : doc/script_commands.txt

*disablenpc "<NPC object name>";
*enablenpc "<NPC object name>";

These two commands will disable and enable, respectively, an NPC object
specified by name. The disabled NPC will disappear from sight and will no longer
be triggerable in the normal way. It is not clear whether it will still be
accessible through 'donpcevent' and other triggering commands, but it probably
will be. You can disable even warp NPCs if you know their object names, which is
an easy way to make a map only accessible through walking half the time. Then
you 'enablenpc' them back.

You can also use these commands to create the illusion of an NPC switching
between several locations, which is often better than actually moving the NPC -
create one NPC object with a visible and a hidden part to their name, make a few
copies, and then disable all except one.

@Promise provided you a template. 

OnAgitStart:
OnAgitStart2:
disablenpc "<NPC object name>";
disablenpc "<NPC object name>";
disablenpc "<NPC object name>";
disablenpc "<NPC object name>";
disablenpc "<NPC object name>";

OnAgitEnd:
OnAgitEnd2:
enablenpc "<NPC object name>";
enablenpc "<NPC object name>";
enablenpc "<NPC object name>";
enablenpc "<NPC object name>";
enablenpc "<NPC object name>";
Posted (edited)

ok sir. i will try it for the first time. :D


- script npcdisabler -1,{
OnAgitStart:
OnAgitStart2:
enablenpc "<poring>";
enablenpc "<PVP ROOM>";
enablenpc "<disguise>";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "<poring>";
enablenpc "<PVP ROOM>";
enablenpc "<disguise>";
end;
}
 
not working sir? 
Edited by freehit21
Posted

Try this:

- script npcdisabler -1,{
OnAgitStart:
OnAgitStart2:
disablenpc "poring";
disablenpc "PVP ROOM";
disablenpc "disguise";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "poring";
enablenpc "PVP ROOM";
enablenpc "disguise";
end;
}
Posted

 

Try this:

- script npcdisabler -1,{
OnAgitStart:
OnAgitStart2:
disablenpc "poring";
disablenpc "PVP ROOM";
disablenpc "disguise";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "poring";
enablenpc "PVP ROOM";
enablenpc "disguise";
end;
}

 

 

lol i forgot "< >"

Posted

 

 

Try this:

- script npcdisabler -1,{
OnAgitStart:
OnAgitStart2:
disablenpc "poring";
disablenpc "PVP ROOM";
disablenpc "disguise";
end;
OnAgitEnd:
OnAgitEnd2:
enablenpc "poring";
enablenpc "PVP ROOM";
enablenpc "disguise";
end;
}

 

 

lol i forgot "< >"

 

"< >" where do i attach that sir? hehe i just paste it on my server but the npc is not hiding instead of not working even you click them until the woe is ended. how?

Posted (edited)

you don't need "< >", these are only placeholders^^

maybe these are the wrong npc names you've told here?

Edited by 15peaces
Posted

provide error screen or something?

hideoffnpc "<Your npc name>";

and

hideonnpc "<Your npc name>";

will be enought for what you want o:

  • Upvote 1
Posted

provide error screen or something?

hideoffnpc "<Your npc name>";

and

hideonnpc "<Your npc name>";

will be enought for what you want o:

 

 

ok this works fine now than you sir Kido this is mine i use yours

 

---------------------------------------------------------

- script npcdisabler -1,{
OnAgitStart:
OnAgitStart2:
hideonnpc "poring";
hideonnpc "PVP ROOM";
hideonnpc "disguise";
end;
OnAgitEnd:
OnAgitEnd2:
hideoffnpc "poring";
hideoffnpc "PVP ROOM";
hideoffnpc "disguise";
end;
}
--------------------------------------------------------------------
 
on agit start i use "hideonnpc" and i see it hides... and then the agit now end i use "hideoffnpc" and i see it reveals.. thanks to all of you helps me alot. ^_^

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