Jump to content
  • 0

Connecting two npc


Eross

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

Hi! Good day! I want to ask like whats the title of my question here .. I want to disable another NPC while other one is working .. Example , I have two FLOATING RATES script ..The one is free and working since ONINIT continously, and the other is paid by zeny donations .. The free npc will run and and change rates every hour, but if the paid one starts working, the other one should stop working while my donation floating rates is working in 2 days.. How will I tell the other script to stop ? My free floating rate has .1 to .9 only while paid floating rates has 2 to 4 modifier. Thanks 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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

this will help you enable/disable your npc

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

On 6/29/2021 at 5:05 AM, Origami said:

Hi! Good day! I want to ask like whats the title of my question here .. I want to disable another NPC while other one is working .. Example , I have two FLOATING RATES script ..The one is free and working since ONINIT continously, and the other is paid by zeny donations .. The free npc will run and and change rates every hour, but if the paid one starts working, the other one should stop working while my donation floating rates is working in 2 days.. How will I tell the other script to stop ? My free floating rate has .1 to .9 only while paid floating rates has 2 to 4 modifier. Thanks 

i guess floating rate is affect global not per char or by account id

Link to comment
Share on other sites

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