Jump to content
  • 0

Help Unsummon a NPC


Question

Recommended Posts

  • 0
Posted

i never read any guide about this:/

i dont think that is possible.

 

no i thank that may be done by skill  if you seen a quest NPC there are some quest hide after X seconds in the game

  • 0
Posted

yes its possible and already exist in game so find the npc and u will have the code ;)

 

I search for along time about that if you have it plz post it here

 

 

  • 0
Posted

i don't have the code never needed it.... i just remember me one npc... hes in "forge of the gods - lower level" to get the recipes... he change his loc after x min/hours

  • 0
Posted

tell us the reason for you want it.

maybe find an other solution

 

let him find it and also let him test if its fit with his idea all is fine else he can ask again.... just let the guys working a bit by there self !

  • 0
Posted

ok thank you i will tell you

 

i think to make a custom NPC like(GM shop,Buffer,Teleport) that can be show when you press an item

 

i success to make it but stay forever I need to hide it after X second

 

anyone Know how to do that

  • 0
Posted

class UnSpawn implements Runnable
{
private final L2Npc npc;

public UnSpawn(final L2Npc npc)
{
	this.npc = npc;
}

@Override
public void run()
{
	if(npc != null)
	{
		SpawnTable.getInstance().deleteSpawn(npc.getLastSpawn(), false);
		npc.deleteMe();
	}
}
}

Where you wanna use it:

 

long delay = YOUR TIME IN SECS * 1000;
L2Npc yourNpc;
ThreadPoolManager.getInstance().scheduleGeneral(new UnSpawn(yourNpc), delay);

  • 0
Posted

class UnSpawn implements Runnable
{
private final L2Npc npc;

public UnSpawn(final L2Npc npc)
{
	this.npc = npc;
}

@Override
public void run()
{
	if(npc != null)
	{
		SpawnTable.getInstance().deleteSpawn(npc.getLastSpawn(), false);
		npc.deleteMe();
	}
}
}

Where you wanna use it:

 

long delay = YOUR TIME IN SECS * 1000;
L2Npc yourNpc;
ThreadPoolManager.getInstance().scheduleGeneral(new UnSpawn(yourNpc), delay);

 

Thx Amazing But i relay noob Plz tell me where i can add it

i use l2jfree gracia final

  • 0
Posted

ahhh well thought u wanted to do somethings else ^^ but this also exist in game too ;)

if i remember me right its a dwarf summon he can also summon his own shop which "unspawn" after x sec/min

 

but u already got the help u wanted...

  • 0
Posted

if the npcs spawn automatically, add it into the site where they are spawned, and basing on npc id, you can schedule the task if needed.

If is spawned manually, create a new admin command which one after spawn the mob, the task is scheduled automatically

  • 0
Posted

thx guys but where i can add schedule time which class i must use help me to run it perfect

 

B1ggBoss i use Item to summon a npc i make it throw "summon_items.xml"By using this

 

<item id="14559">

    <npcId val="40007"/>

    <summonType val="0"/>

<unsummon val="2" />

  </item>

 

I read there are command "<unsummon val="2" />" make it unsummon after 1 minute is that true coz i use it but no result :(

 

sorry about that but cant use above code

 

 

Guest
This topic is now closed to further replies.



  • Posts

    • NEW SEASON GRAND OPENING FROM - 10/07/2026, FRIDAY, 20:00 +3 GMT !
    • System folder is indeed missing @eMommy
    • No complicated KYC, instant setup after purchase!  Boost your connection speed and secure your privacy today!  Official Website: https://novproxy.com?kwd=tt-max
    • I don't know this guy and I don't care about him or the server. What I want to say I already do it. And yes, it does seem like he has some mental problems to make up these stories. 
    • L2JForge Edition Update Revision: V1.0.119  Update: 15 June – 1 July 2026  Fixes & Improvements Fixed PawnShop pagination and inactive Community Board actions. Added thread-safe caching to the PawnShop system. Fixed MMOTopVote vote tracking. Fixed PvP Event participant cleanup. Restored the missing PvP Ranking broadcast. Improved CTF flag handling and zone validation. Added Try Skin / Hat Preview handlers to the Community Board. Improved character skin appearance refreshes without requiring a restart. Improved NPC positioning to reduce train and collision abuse. Fixed Seal of Ruler casting from invalid artifact positions. Added stricter castle artifact, range and height validation. Fixed character restoration stability during Enter World. Reworked Community Board Home, Shop, Bosses and Events sections. Added live Raid/Epic Boss status and respawn information. Added upcoming PvP and GvG event schedules. Integrated character services, settings and statistics into the Community Board. Moved Vote Rewards from a voiced command into the Character Menu in Community Board. Removed the obsolete Achievements / .rewards system.  Removed unused multilingual resources and simplified datapack loading. Improved datapack startup and HTML cache stability. Added automatic build revision and build-date metadata. Reorganized runtime libraries and standardized generated server jars. Refined the Player, Creature, GameClient, Clan and Frintezza systems. Performed extensive source cleanup and reliability improvements. Updated build configuration and repository exclusions.  Work in Progress Development continues with additional gameplay fixes, performance improvements, system cleanup and more upgrades already in progress..
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..