Jump to content
  • 0

Missing Valakas


delamis

Question

Hi,

 

Boss Manager Listing Valakas Alive and i cant find valakas :alone: . I think so, its spawned random loc. and new spawns not workin on boss manager. Spawn location is true, if i can kill it 1 time it will be start to spawning at true loc. 

 

I did check spawnlist on navicat ( for finding random loc ) but it isn't there.

 

Now question is, how can i find and kill random spawned valakas?  :happyforever:

Edited by delamis
Link to comment
Share on other sites

Recommended Posts

  • 0

If you use regular script, Valakas is stored in a special room and is ported only when the 30min timer is reached (and return back to that room if no more players alive for an extended period), check the script for the location.

Link to comment
Share on other sites

  • 0

public class Valakas_l2j extends Quest implements Runnable
{
private int i_ai0 = 0;
private int i_ai1 = 0;
private int i_ai2 = 0;
private int i_ai3 = 0;
private int i_ai4 = 0;
private int i_quest0 = 0;
private long lastAttackTime = 0; // time to tracking valakas when was last time attacked
private int i_quest2 = 0; // hate value for 1st player
private int i_quest3 = 0; // hate value for 2nd player
private int i_quest4 = 0; // hate value for 3rd player
private L2Character c_quest2 = null; // 1st most hated target
private L2Character c_quest3 = null; // 2nd most hated target
private L2Character c_quest4 = null; // 3rd most hated target


private static final int VALAKAS = 29028;


//Valakas Status Tracking :
private static final byte DORMANT = 0; //Valakas is spawned and no one has entered yet. Entry is unlocked
private static final byte WAITING = 1; //Valakas is spawend and someone has entered, triggering a 30 minute window for additional people to enter
//before he unleashes his attack. Entry is unlocked
private static final byte FIGHTING = 2; //Valakas is engaged in battle, annihilating his foes. Entry is locked
private static final byte DEAD = 3; //Valakas has been killed. Entry is locked


private static L2BossZone _Zone;


// Boss: Valakas
public Valakas_l2j(int id, String name, String descr)
{
super(id, name, descr);
int[] mob =
{
VALAKAS
};
this.registerMobs(mob);
i_ai0 = 0;
i_ai1 = 0;
i_ai2 = 0;
i_ai3 = 0;
i_ai4 = 0;
i_quest0 = 0;
lastAttackTime = System.currentTimeMillis();
_Zone = GrandBossManager.getInstance().getZone(212852, -114842, -1632);
StatsSet info = GrandBossManager.getInstance().getStatsSet(VALAKAS);


Integer status = GrandBossManager.getInstance().getBossStatus(VALAKAS);


if (status == DEAD)
{
// load the unlock date and time for valakas from DB
long temp = (info.getLong("respawn_time") - System.currentTimeMillis());
// if valakas is locked until a certain time, mark it so and start the unlock timer
// the unlock time has not yet expired.  Mark valakas as currently locked.  Setup a timer
// to fire at the correct time (calculate the time between now and the unlock time,
// setup a timer to fire after that many msec)
if (temp > 0)
{
this.startQuestTimer("valakas_unlock", temp, null, null);
}
else
{
// the time has already expired while the server was offline.
// the status needs to be changed to DORMANT
GrandBossManager.getInstance().setBossStatus(VALAKAS, DORMANT);


}
}
else if(status == FIGHTING)
{
//respawn to original location 
int loc_x = 213004;
int loc_y = -114890;
int loc_z = -1595;
int heading = 0;


final int hp = info.getInteger("currentHP");
final int mp = info.getInteger("currentMP");
L2GrandBossInstance valakas = (L2GrandBossInstance) addSpawn(VALAKAS, loc_x, loc_y, loc_z, heading, false, 0);
GrandBossManager.getInstance().addBoss(valakas);
final L2NpcInstance _valakas = valakas;


ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
{
@Override
public void run()
{
try
{
_valakas.setCurrentHpMp(hp, mp);
_valakas.setRunning();
}
catch (Throwable e)
{}
}
}, 100L);


startQuestTimer("launch_random_skill", 60000, valakas, null, true);
// Start repeating timer to check for inactivity
startQuestTimer("check_activity_and_do_actions", 60000, valakas, null, true);


}else if(status == WAITING){


// Start timer to lock entry after 30 minutes and spawn valakas
startQuestTimer("lock_entry_and_spawn_valakas", (Config.VALAKAS_WAIT_TIME*60000), null, null);


}//if it was dormant, just leave it as it was:
//the valakas NPC is not spawned yet and his instance is not loaded




}


@Override
public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance player)
{
if (npc != null)
{
long temp = 0;
if (event.equalsIgnoreCase("check_activity_and_do_actions"))
{
int lvl = 0;
int sk_4691 = 0;
L2Effect[] effects = npc.getAllEffects();
if (effects != null && effects.length != 0)
{
for (L2Effect e : effects)
{
if (e.getSkill().getId() == 4629)
{
sk_4691 = 1;
lvl = e.getSkill().getLevel();
break;
}
}
}


Integer status = GrandBossManager.getInstance().getBossStatus(VALAKAS);


temp = (System.currentTimeMillis() - lastAttackTime);


if (status == FIGHTING 
&& !npc.getSpawn().is_customBossInstance() //if it's a custom spawn, dnt despawn it for inactivity
&& (temp > (Config.VALAKAS_DESPAWN_TIME*60000))) //15 mins by default 
{
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);


//delete the actual boss
L2GrandBossInstance _boss_instance = GrandBossManager.getInstance().deleteBoss(VALAKAS);
_boss_instance.decayMe();
GrandBossManager.getInstance().setBossStatus(VALAKAS, DORMANT);
//npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp());
_Zone.oustAllPlayers();
cancelQuestTimer("check_activity_and_do_actions", npc, null);
i_quest2 = 0;
i_quest3 = 0;
i_quest4 = 0;

How this codes working? What's the guide of using this codes? So zaken wasnt in location too, but i find it and fixed. is it have script too? 

 

 

 

Link to comment
Share on other sites

  • 0
/**
* Queen Ant, Core, Orfen, Zaken: MemberCount > 36<br>
* Baium: MemberCount > 56<br>
* Antharas: MemberCount > 225<br>
* Valakas: MemberCount > 99<br>
* normal RaidBoss: MemberCount > 18
* 
* @param obj
* @return true if proper condition for RaidWar
*/
public boolean meetRaidWarCondition(L2Object obj)
{
if(!(obj instanceof L2RaidBossInstance) || !(obj instanceof L2GrandBossInstance))
return false;


int npcId = ((L2Attackable) obj).getNpcId();


switch(npcId)
{
case 29001: // Queen Ant
case 29006: // Core
case 29014: // Orfen
case 29022: // Zaken
return getMemberCount() > 36;
case 29020: // Baium
return getMemberCount() > 56;
case 29019: // Antharas
return getMemberCount() > 225;
case 29028: // Valakas
return getMemberCount() > 99;
default: // normal Raidboss
return getMemberCount() > 18;
}
}
}

and is this about it ?

Link to comment
Share on other sites

  • 0

But raid info manager see's only that spawn.. 

When i spawn new valakas and kill it, raid info manager still showing "live" .

 

So what can i do for fixin this?

Link to comment
Share on other sites

  • 0

But raid info manager see's only that spawn.. 

When i spawn new valakas and kill it, raid info manager still showing "live" .

 

So what can i do for fixin this?

Because valakas needs quest change your config to test the respawn time also make 1 hour respawn 30 min random and 15 waiting time take your quest valakas go to the valakas room with the normal way and then go in wait for 15 min..valakas will appear then kill him and look your manager...this is the way you must to try..
Link to comment
Share on other sites

  • 0

Because valakas needs quest change your config to test the respawn time also make 1 hour respawn 30 min random and 15 waiting time take your quest valakas go to the valakas room with the normal way and then go in wait for 15 min..valakas will appear then kill him and look your manager...this is the way you must to try..

 

how can i make it normal spawn ?

Link to comment
Share on other sites

  • 0

how can i make it normal spawn ?

I have no searching for this but you can try one teleport into valakas room and change spawn and wait minutes to 0..also must be only respawn time (what you want) and let me know if this works..

Link to comment
Share on other sites

  • 0

I have no searching for this but you can try one teleport into valakas room and change spawn and wait minutes to 0..also must be only respawn time (what you want) and let me know if this works..

 

No its not working

 

You have to enter at valakas area with retail quest!

 

i got it, im not stupit  :poker face:  im asking for standart spawn

 

i have said this to him..

 

:poker face:

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



  • Posts

    • ??? error   https://ibb.co/Srn4LsX No support  :S   No support : S ? :S
    • I also think this feature would bring more harm than good... another example is a dwarf rushing against your mobs so he takes priority, then he plays fake death and proceeds to grief the shit out of you. A minimum damage threshold is necessary, which would basically converge to what is the default feature (i.e. biggest damage dealer)
    • I bought the premium to watch the video and it's private. 😢
    • For some Majestic reason OP can't edit their topics anymore?    Let me update the potential offers, I got up to 2 spots to fill.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1     A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks, side gigs are fine, as long as you are able to combine your gig and main.  All necessary tools are provided.  The team is consistent with > 10 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s. mobius is fine too for referrence only. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard, java knowledge is optional.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that. There's a small 30min interview process to demonstrate knowledge and just to meet each other.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1
    • Thanks for the detailed info. I also have some ideas in mind but the execution may be hard. Thanks again!
  • Topics

×
×
  • Create New...