Check net.sf.l2j.gameserver.handler.admincommandhandlers. In there you should see several classes representing various admin commands. You need to make a new class by observing the existing ones and check:
if (command.startsWith("admin_add_pvp"))
{
GameObject targetObject = player.getTarget();
if (targetObject == null || !(targetObject instanceof Player))
return;
try
{
int pvp = Integer.parseInt(command.substring(14));
Player target = (Player) targetObject;
target.setPvpKills(target.getPvpKills() + pvp);
target.broadcastUserInfo(); // Alternatively you can target.sendPacket(new UserInfo(target)) but in case you got systems like pvp color system use this.
}
catch (Exception e)
{
player.sendMessage("Usage: //add_pvp amount");
}
}
Please note that I wrote this code here in the reply section I didn't actually check it with aCis, it might need a few changes. You can easily make such a thing tho you don't even neeed to know java to understand how it works.
A ability known as "lost target" is one that causes your opponent to shift their focus away from you. If he does not retarget, the effect will be permanent. Naturally, ncSoft didn't think things through very well, thus in interlude you can auto-target, which pretty much nullifies the impact they were going for. Nerdle is not just a math puzzle game, but also a challenge for your brain. Find hidden calculations within 6 tries. You can find both numerical and alphabetical characters.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.