Jump to content
  • 0

[Request] Item Summon Npc GmShop, Sevices


Question

Posted

Help friends someone could help me how to and what makes this mod if someone would get me he could hand him before I thank all

 

The custom NPCs won't be spawned in the game. You will have to use your magic gem in order to see them spawned around you and make use of their functionalities.

Everyone will start with a magic gem and there will be no way to lose it.

4 answers to this question

Recommended Posts

  • 0
Posted

June 2012 topic guys...

 

Anyway for guys eventually interested by a magical gem which show hidden NPCs (which is indeed an interesting feature, and not specially related to AiO crap) you can eventually tweak pcknownlist for a similar pseudo-code :

 

boolean gotObject = getActiveChar().getInventory().getItemByObjectId(objectId) != null;

(in the for loop...)
if (obj instanceof L2Npc && ((L2Npc) obj).isHidden() && !gotObject )
       continue;

 

There are different implementations, but this one will make it trully invisible, even from 3rd party softwares.

  • 0
Posted

just look how the //spawn command works , also if you want to make it de respawn after certain time just make a thread in the item handler class which runs after dat time and remove last spawned npc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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