Grand Boss ai and respawn time formula (lil help here)

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
chobito
Posts: 12
Joined: Sun Aug 09, 2009 11:45 pm

Grand Boss ai and respawn time formula (lil help here)

Post by chobito »

Im having big trouble in getting the correct numbers in respawn ai formula :l

I want to make my grand bosses via ai.java to respawn in 6 hours.
But i try to put the correct values and sometimes they respawn in minutes D: .


this are the default values in the ai

Code: Select all

Core:             //time is 60hour	+/- 23hour            long respawnTime = (27 + Rnd.get(47)) * 3600000;            startQuestTimer("core_unlock", respawnTime, null, null); Baium         // "lock" baium for 5 days and 1 to 8 hours [i.e. 432,000,000 +  1*3,600,000 + random-less-than(8*3,600,000) millisecs]        long respawnTime = ((121 + Rnd.get(8)) * 3600000);        GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM,DEAD);        startQuestTimer("baium_unlock", respawnTime, null, null); Antharas        GrandBossManager.getInstance().setBossStatus(ANTHARAS,DEAD);        long respawnTime = ((192 + Rnd.get(145) ) * 3600000);        this.startQuestTimer("antharas_unlock", respawnTime, null, null); Zaken             //time is 36hour	+/- 17hour            long respawnTime = ((19 + Rnd.get(35) ) * 3600000);            startQuestTimer("zaken_unlock", respawnTime, null, null);            cancelQuestTimer("1001", npc, null);            cancelQuestTimer("1003", npc, null); Valakas         //GrandBossManager.getInstance().setBossStatus(VALAKAS,DEAD);        long respawnTime = ((192 + Rnd.get(145) ) * 3600000);        this.startQuestTimer("valakas_unlock", respawnTime, null, null); Orfen             //time is 48hour	+/- 20hour            long respawnTime = (28 + Rnd.get(41) * 3600000);            this.startQuestTimer("orfen_unlock", respawnTime, null, null); Queen ant             //time is 36hour	+/- 17hour            long respawnTime = ((19 + Rnd.get(35) ) * 3600000);            startQuestTimer("queen_unlock", respawnTime, null, null);            cancelQuestTimer("action", npc, null);

the problems they have diferent numbers an variables :l

I need a lil tut or a good samarithan to help me make them 6 hour respawn via ai.


thnx in advance
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Grand Boss ai and respawn time formula (lil help here)

Post by janiii »

change the respawn time in each GB file, or is it a problem?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
chobito
Posts: 12
Joined: Sun Aug 09, 2009 11:45 pm

Re: Grand Boss ai and respawn time formula (lil help here)

Post by chobito »

im not good at l2j yet i worked in off for like 7 years :l java for me is kind of new.


trying to learn quickly.


i didnt get ur answer janiii.

my problem is the variables in each .java of the bosses. cause all are multiplicated with 360000 and thats a big number if it is in seconds,, i multiplicated with 6 hours in seconds and grand bosses respawned in minutes X.x


should i edit and put this:
default
long respawnTime = (27 + Rnd.get(47)) * 3600000;


edited?

long respawnTime = (21600;
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Grand Boss ai and respawn time formula (lil help here)

Post by momo61 »

chobito
Posts: 12
Joined: Sun Aug 09, 2009 11:45 pm

Re: Grand Boss ai and respawn time formula (lil help here)

Post by chobito »

looked xD


but it worked for me this formula


deleting all multiplications and just typing 6 hours in miliseconds =)
Post Reply