冒险岛VIP上线全服提醒方法教程
1. 是VIP 上线全F 公告2. 是名字后面显示VIP等级! 破除固定字符限制 不出错!
3. 人物显示 转生数。
修改PlayerLoggedinHandler.java
上面增加
import net.sf.odinms.net.MaplePacket;
找到:
player.checkMessenger();
增加:
if (c.getPlayer().vip >= 3) {
MaplePacket packet = MaplePacketCreator.serverNotice(6, "〖尊贵的三星★★★VIP玩家〗:" + c.getPlayer().getName() + " 来到我们的游戏世界!大家熱烈欢迎!");
try {
c.getChannelServer().getWorldInterface().broadcastMessage(c.getPlayer().getName(), packet.getBytes());
} catch (RemoteException e) {
c.getChannelServer().reconnectWorld();
}
}else if (c.getPlayer().vip >= 2) {
MaplePacket packet = MaplePacketCreator.serverNotice(6, "〖尊贵的二星★★VIP玩家〗:" + c.getPlayer().getName() + " 来到我们的游戏世界!大家熱烈欢迎!");
try {
c.getChannelServer().getWorldInterface().broadcastMessage(c.getPlayer().getName(), packet.getBytes());
} catch (RemoteException e) {
c.getChannelServer().reconnectWorld();
}
}else if (c.getPlayer().vip >= 1) {
MaplePacket packet = MaplePacketCreator.serverNotice(6, "〖尊贵的一星★VIP玩家〗:" + c.getPlayer().getName() + " 来到我们的游戏世界!大家熱烈欢迎!");
try {
c.getChannelServer().getWorldInterface().broadcastMessage(c.getPlayer().getName(), packet.getBytes());
} catch (RemoteException e) {
c.getChannelServer().reconnectWorld();
}
}
如果出錯的話
文件:MapleCharacter.java
private int vip;
修改为
public int vip;
頁:
[1]