Jump to content
  • 0

Top Arena,Fisherman,CraftTvT


Question

Posted

i have a probleme with my Top Arena,Fisherman,Craft,TvT

 

 

gameserver\data\scripts\handlers\bypasshandlers\Leaderboard.java

 

package handlers.bypasshandlers;

 

import com.l2jserver.Config;

import com.l2jserver.gameserver.handler.IBypassHandler;

import com.l2jserver.gameserver.instancemanager.leaderboards.ArenaLeaderboard;

import com.l2jserver.gameserver.instancemanager.leaderboards.CraftLeaderboard;

import com.l2jserver.gameserver.instancemanager.leaderboards.FishermanLeaderboard;

import com.l2jserver.gameserver.instancemanager.leaderboards.TvTLeaderboard;

import com.l2jserver.gameserver.model.actor.L2Character;

import com.l2jserver.gameserver.model.actor.L2Npc;

import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

 

/**

* @author Gnacik

*/

 

public class Leaderboard implements IBypassHandler

{

private static final String[] COMMANDS =

{

"rank_arena_info",

"rank_fisherman_info",

"rank_craft_info",

"rank_tvt_info"

};

 

@Override

public boolean useBypass(String command, L2PcInstance activeChar, L2Character target)

{

if (!(target instanceof L2Npc))

return false;

 

NpcHtmlMessage html = new NpcHtmlMessage(((L2Npc)target).getObjectId());

 

if (command.toLowerCase().startsWith(COMMANDS[0]) && Config.RANK_ARENA_ENABLED)

{

html.setHtml(ArenaLeaderboard.getInstance().showHtm(activeChar.getObjectId()));

activeChar.sendPacket(html);

}

else if (command.toLowerCase().startsWith(COMMANDS[1]) && Config.RANK_FISHERMAN_ENABLED)

{

html.setHtml(FishermanLeaderboard.getInstance().showHtm(activeChar.getObjectId()));

activeChar.sendPacket(html);

}

else if (command.toLowerCase().startsWith(COMMANDS[2]) && Config.RANK_CRAFT_ENABLED)

{

html.setHtml(CraftLeaderboard.getInstance().showHtm(activeChar.getObjectId()));

activeChar.sendPacket(html);

}

else if (command.toLowerCase().startsWith(COMMANDS[3]) && Config.RANK_TVT_ENABLED)

{

html.setHtml(TvTLeaderboard.getInstance().showHtm(activeChar.getObjectId()));

activeChar.sendPacket(html);

}

return false;

}

 

@Override

public String[] getBypassList()

{

return COMMANDS;

}

}

 

 

gameserver\config\Event\leaderboards.properties

 

#==============================================================#

#                      Arena LeaderBoards                      #

#==============================================================#

# Required: CustomNpcTable = True

# Default: False

RankArenaEnabled = True

# Interval in minutes

RankArenaInterval = 500

# Reward ID

RankArenaRewardId = 57

# Reward amount 0 to disable

RankArenaRewardCount = 1000000

 

#==============================================================#

#                    Fisherman LeaderBoards                  #

#==============================================================#

# Required: CustomNpcTable = True

# Default: False

RankFishermanEnabled = True

# Interval in minutes

RankFishermanInterval = 120

# Reward ID

RankFishermanRewardId = 57

# Reward amount 0 to disable

RankFishermanRewardCount = 5000000

 

#==============================================================#

#                      Craft LeaderBoards                      #     

#==============================================================#

# Required: CustomNpcTable = True

# Default: False

RankCraftEnabled = True

# Interval in minutes

RankCraftInterval = 120

# Reward ID

RankCraftRewardId = 57

# Reward amount 0 to disable

RankCraftRewardCount = 5000000

 

#==============================================================#

#                      TvT LeaderBoards                        #

#==============================================================#

# Required: CustomNpcTable = True

# Default: False

RankTvTEnabled = True

# Interval in minutes

RankTvTInterval = 200

# Reward ID

RankTvTRewardId = 6673

# Reward amount 0 to disable

RankTvTRewardCount = 100

 

 

gameserver\data\html\default\8888.html

 

<html><body>Rank Stone:<br>

Many years ago, a <font color=LEVEL>Mysterious Aura</font> occurred in all cities to protect key players. This aura is always present and have rewards for everyone who works enough to get the prizes.<br>

Aren't you? anyways congratulations, at this moment you are talking with a stone.<br><br>

<a action="bypass -h npc_%objectId%_rank_arena_info">Arena Top Players Rank</a><br>

<a action="bypass -h npc_%objectId%_rank_fisherman_info">Fisherman Top Players Rank</a><br>

<a action="bypass -h npc_%objectId%_rank_craft_info">Craft Top Players Rank</a><br>

<a action="bypass -h npc_%objectId%_rank_tvt_info">TvT Top Players Rank</a>

</body></html>

 

 

Ex : i make a pvp in zone Arena  and i don't see the name of player in top

 

thx for help  , i don't see error :/

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.


×
×
  • Create New...