Jump to content
  • 0

Question

11 answers to this question

Recommended Posts

  • 0
Posted (edited)

magkes kserei kaneis pws 8a kanw ta boss ston server mou na kanoun respawn an ta pareis makria apo to spawn tous?

# Return Specific RB to spawnpoint. In order to define specific

# ranges, it's necessary to define a string as BossId,Range;BossId,Range;

# Optionally, it's possible to disable the range check with value -1. 

# Example: RaidBossesSpecificLockRage = 29028,10000;29019,-1; to have

# Valakas 10k as range and no range check for Interlude Antharas.

RaidBossesSpecificLockRage = 29028,-1;29019,-1;29020,-1;29022,-1;29014,-1;29045,-1;29046,-1;29047,-1;

Edited by Dante44®
  • 0
Posted

to eixa kanei to auto respawn douleuei alla otan piga na to faw to boss ekane respawn enw itan sto kanoniko tou spawn kai to ksanaekana opws itan arxika 

opwte 8elw na mou peite an kserei kaneis pws na to ruthmisw na kanei respawn otan to travaw ligo makria apo to spawn tou

  • 0
Posted

vasika prepei na allaksw kati edw ?

 

 

 

 

/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package net.sf.l2j.gameserver.model.actor.instance;


import java.util.concurrent.ScheduledFuture;


import net.sf.l2j.Config;
import net.sf.l2j.gameserver.ThreadPoolManager;
import net.sf.l2j.gameserver.instancemanager.RaidBossPointsManager;
import net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager;
import net.sf.l2j.gameserver.instancemanager.RaidBossSpawnManager.StatusEnum;
import net.sf.l2j.gameserver.model.L2Spawn;
import net.sf.l2j.gameserver.model.actor.L2Character;
import net.sf.l2j.gameserver.model.entity.Hero;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.PlaySound;
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate;
import net.sf.l2j.util.Rnd;


/**
 * This class manages all RaidBoss. In a group mob, there are one master called RaidBoss and several slaves called Minions.
 */
public class L2RaidBossInstance extends L2MonsterInstance
{
private StatusEnum _raidStatus;
protected ScheduledFuture<?> _maintenanceTask;


/**
* Constructor of L2RaidBossInstance (use L2Character and L2NpcInstance constructor).
* <ul>
* <li>Call the L2Character constructor to set the _template of the L2RaidBossInstance (copy skills from template to object and link _calculators to NPC_STD_CALCULATOR)</li>
* <li>Set the name of the L2RaidBossInstance</li>
* <li>Create a RandomAnimation Task that will be launched after the calculated delay if the server allow it</li>
* </ul>
* @param objectId Identifier of the object to initialized
* @param template L2NpcTemplate to apply to the NPC
*/
public L2RaidBossInstance(int objectId, L2NpcTemplate template)
{
super(objectId, template);
setIsRaid(true);
}


@Override
public void onSpawn()
{
setIsNoRndWalk(true);
super.onSpawn();
}


@Override
public boolean doDie(L2Character killer)
{
if (!super.doDie(killer))
return false;


if (_maintenanceTask != null)
{
_maintenanceTask.cancel(false);
_maintenanceTask = null;
}


if (killer != null)
{
final L2PcInstance player = killer.getActingPlayer();
if (player != null)
{
broadcastPacket(SystemMessage.getSystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL));
broadcastPacket(new PlaySound("systemmsg_e.1209"));


if (player.isInParty())
{
for (L2PcInstance member : player.getParty().getPartyMembers())
{
RaidBossPointsManager.getInstance().addPoints(member, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));
if (member.isNoble())
Hero.getInstance().setRBkilled(member.getObjectId(), getNpcId());
}
}
else
{
RaidBossPointsManager.getInstance().addPoints(player, getNpcId(), (getLevel() / 2) + Rnd.get(-5, 5));
if (player.isNoble())
Hero.getInstance().setRBkilled(player.getObjectId(), getNpcId());
}
}
}


RaidBossSpawnManager.getInstance().updateStatus(this, true);
return true;
}


@Override
public void deleteMe()
{
if (_maintenanceTask != null)
{
_maintenanceTask.cancel(false);
_maintenanceTask = null;
}


super.deleteMe();
}


/**
* Spawn minions.<br>
* Also if boss is too far from home location at the time of this check, teleport it to home.
*/
@Override
protected void startMaintenanceTask()
{
super.startMaintenanceTask();


_maintenanceTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
{
@Override
public void run()
{
checkAndReturnToSpawn();
}
}, 60000, 30000);
}


protected void checkAndReturnToSpawn()
{
if (isDead() || isMovementDisabled())
return;


// Gordon does not have permanent spawn
if (getNpcId() == 29095)
return;


final L2Spawn spawn = getSpawn();
if (spawn == null)
return;


final int spawnX = spawn.getLocx();
final int spawnY = spawn.getLocy();
final int spawnZ = spawn.getLocz();


if (!isMovementDisabled())
{
if (!isInsideRadius(spawnX, spawnY, spawnZ, Math.max(Config.MAX_DRIFT_RANGE, 200), true, false))
teleToLocation(spawnX, spawnY, spawnZ, 0);
}
}


public void setRaidStatus(StatusEnum status)
{
_raidStatus = status;
}


public StatusEnum getRaidStatus()
{
return _raidStatus;
}
}
Guest
This topic is now closed to further replies.


  • Posts

    • Even if I was reselling, as you claim, you got refunded down to the last penny. At least when I work with someone, I try to find a solution. Just because something didn’t work for you doesn’t mean it hasn’t worked for others. I’ve provided different kinds of services successfully, and I’ve even had several of your own clients come to me complaining about the mess you left behind, with unfinished code and ongoing issues.   Let’s be real. I supported you and always spoke positively about you until I realized that you only care about your wallet, not how your customers feel. That was disappointing. I don’t care much anymore, because some people change and some don’t. They stay comfortable being that way.   As for the family topic, I didn’t say anything bad or wrong. That was information I heard from a friend. And no, I won’t ban you. It’s not worth the energy to even open the admin panel. You can keep doing what you’re doing, but don’t claim you’re a good and clean person when you clearly don’t value other people’s time, money, or effort.   When you talk about being mature, your actions show the opposite. For once in your life, admit that you're still acting immature. Hopefully one day you'll understand how life really works and learn to move on. But until then, take responsibility and clean up the mess you've left behind.   TL;DR: I won’t be reading anything else, just grabbing popcorn and enjoying the show.
    • Gay whoever doesn't read it
    • Hey everyone, I’m reaching out for urgent support with my NPC stats—specifically Baium, who on my server seems to have gone full god mode. Apparently, I’m the "crazy dreamer" who believes Baium shouldn’t have over 4 million HP, 30k+ P. Atk, attack speed faster than a dagger, and more M. Atk than seven Antharas combined 😅. My server's developer (VILMIS) refuses to provide proper support, claiming I have no idea about the "real stats" and that I’m imagining things. I’ve tried modifying the values through the admin console, but nothing takes effect. I’m desperate—the server launches on 04/10, and I really want these stats to be closer to official NCSOFT values or at least something balanced and realistic. If anyone with experience can lend a hand or point me in the right direction, please reach out. I’d truly appreciate it 🙏    
    • Sure more parts from our discord conversation posted below. Please note that he blocked me while he is active on discord (he responded to a different discord account).   Could you please ban him @Atom?      
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock