/**
* @author Anarchy
*
* This class should hold all the information of a player
* before he entered an event. It is used to restore
* players' status after an event, or after disconnection.
*/
public class PlayerData
{
private int playerId;
private int playerColor;
private String playerTitle;
private Location playerLocation;
public PlayerData(Player player)
{
playerId = player.getObjectId();
playerColor = player.getAppearance().getNameColor();
playerTitle = player.getTitle();
playerLocation = new Location(player.getX(), player.getY(), player.getZ());
}
public void restore(Player player)
{
if (player.isDead())
player.doRevive();
player.getAppearance().setNameColor(playerColor);
player.setTitle(playerTitle);
player.setTeam(TeamType.NONE);
player.teleportTo(playerLocation, 0);
player.sendMessage("Your status has been restored after leaving an event.");
// Increase the participated in tasks
int participates = PlayerMemo.getVarInt(player, "participated_automatic_events"); PlayerMemo.setVar(player, "participated_automatic_events", participates+1, -1);
}
public int getPlayerId()
{
return playerId;
}
public int getPlayerColor()
{
return playerColor;
}
public String getPlayerTitle()
{
return playerTitle;
}
}
So, make me understand one thing, you consider your previous work a crap? Everyone who has payd for l2jmobius subscription since 2018 untill 2024 had access to a crap version of your server and the best is the latest you release in this very moment to your actual subscribers?
Welcome to L2Pride
Hello dear community, as you know we keept working on our beloved Interlude and we are updating everything!
Here are the new game files, with this you will be able to login in our Beta server and be a part of the game development, your ideeas can become real.
Become a tester now!
🎮 New Game Client: download any interlude clean client
⛳️ New Patched System [BETA v3][ mega.nz ]: https://mega.nz/file/bSAzEK7Q#0GO74mN4BpjvVtCE5f1YUSMOxPfq-q3vjsfK7WW0suk
⛳️ New Patched System [BETA v3][ google drive ]: https://drive.google.com/file/d/1sT1zbKM0kq3PVI7nQ33aJWpgRX59kUpY/view?usp=drive_link
⛳️ New Patched System [BETA v3][ mediafire ]: https://www.mediafire.com/file/fanffl2ik9n3fwu/L2Pride_Interlude_Remastered_[Ver_43660].rar/file
Instructions:
download our server patch and add it into your Lineage2 folder (interlude chronicle)
you don't need to delete your old system
enter in our patch folder and run L2.exe
Have fun
Discord: https://discord.gg/FXvEK5fCx3
In our discord group you will find all needed informations about our server!
Question
addx20
Hello Folks! again one more small problem! I need just to adapt the 2 red lines to acis 398 Thanks!!!
package net.sf.l2j.gameserver.eola.eventengine;
import net.sf.l2j.gameserver.model.location.Location;
import net.sf.l2j.gameserver.enums.TeamType;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.model.memo.PlayerMemo;
/**
* @author Anarchy
*
* This class should hold all the information of a player
* before he entered an event. It is used to restore
* players' status after an event, or after disconnection.
*/
public class PlayerData
{
private int playerId;
private int playerColor;
private String playerTitle;
private Location playerLocation;
public PlayerData(Player player)
{
playerId = player.getObjectId();
playerColor = player.getAppearance().getNameColor();
playerTitle = player.getTitle();
playerLocation = new Location(player.getX(), player.getY(), player.getZ());
}
public void restore(Player player)
{
if (player.isDead())
player.doRevive();
player.getAppearance().setNameColor(playerColor);
player.setTitle(playerTitle);
player.setTeam(TeamType.NONE);
player.teleportTo(playerLocation, 0);
player.sendMessage("Your status has been restored after leaving an event.");
// Increase the participated in tasks
int participates = PlayerMemo.getVarInt(player, "participated_automatic_events");
PlayerMemo.setVar(player, "participated_automatic_events", participates+1, -1);
}
public int getPlayerId()
{
return playerId;
}
public int getPlayerColor()
{
return playerColor;
}
public String getPlayerTitle()
{
return playerTitle;
}
}
3 answers to this question
Recommended Posts