Показать сообщение отдельно
Непрочитано 29.01.2010, 20:35   #6
Аватар для PROGRAMMATOR
Администратор

По умолчанию Re: как узнать рейты сервера?

[SOURCE="java"]/*
* This file is part of aion-emu <aion-emu.com>.
*
* aion-emu 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.
*
* aion-emu 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 aion-emu. If not, see <http://www.gnu.org/licenses/>.
*/
package admincommands;

import com.aionemu.gameserver.configs.Config;
import com.aionemu.gameserver.model.gameobjects.player.Pl ayer;
import com.aionemu.gameserver.utils.PacketSendUtility;
import com.aionemu.gameserver.utils.chathandlers.AdminCom mand;

/**
* @author Admin
*
*/
public class Rate extends AdminCommand
{
public Rate()
{
super("rate");
}

public void executeCommand(Player admin, String[] params)
{
PacketSendUtility.sendMessage(admin,
"XP: " + Config.XP_RATE
+ "\nGroup XP: " + Config.GROUPXP_RATE
+ "\nDrop: " + Config.DROP_RATE
+ "\nQuest XP: " + Config.QUEST_XP_RATE
+ "\nQuest Kinah: " + Config.QUEST_KINAH_RATE);
}
}[/SOURCE]

Где-то так, без ограничений на права, просто вводим в чат //rate и получаем рейты. Сохранить как Rate.java и поместить в директорию:

Цитата:
gameserver\data\scripts\system\handlers\admincomma nds\
__________________
composer require laravel/framework
yarn add vue
PROGRAMMATOR вне форума Отправить сообщение для PROGRAMMATOR с помощью ICQ Отправить сообщение для PROGRAMMATOR с помощью Skype™ Ответить с цитированием
Сказали спасибо: