Return if npc is spawned

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Maylorian
Posts: 23
Joined: Sun Sep 09, 2012 11:01 am

Return if npc is spawned

Post by Maylorian »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: last
L2JDP Revision Number: last

hey how can i make the core check if a rb is spawned? i am trying this

Code: Select all

if (L2World.getinstance().findobject(raid.getObjectId()) != null)
and i am getting this on gs

Cannot invoke getobjectid() on the primitive type int
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Return if npc is spawned

Post by jurchiks »

RaidBossManager.getInstance()..someMethodToCheckStatus(npcId)
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Maylorian
Posts: 23
Joined: Sun Sep 09, 2012 11:01 am

Re: Return if npc is spawned

Post by Maylorian »

yea the problem is the somemethodtocheck status..
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Return if npc is spawned

Post by jurchiks »

It's not a problem if you have the right tools/know where to look. So just get to it.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply