天堂2 关于内核添加公告的方法
gameserver/network/clientpackets/EnterWorld.Java#英雄登录公告
if (activeChar.isHero())
Announcements.getInstance().announceToAll("英雄 "+ activeChar.getName() +" 登陆游戏");
#贵族登录公告
if (activeChar.isNoble())
Announcements.getInstance().announceToAll("贵族 "+ activeChar.getName() +" 登陆游戏");
#VIP登录公告
if (activeChar.isDonator())
Announcements.getInstance().announceToAll("会员 "+ activeChar.getName() +" 登陆游戏");
#GM登录公告
if (activeChar.isGM())
Announcements.getInstance().announceToAll("管理员 "+ activeChar.getName() +" 登陆游戏");
#新建角色登录公告
if (activeChar.isNewbie())
Announcements.getInstance().announceToAll("新人 "+ activeChar.getName() +" 登陆游戏");
Config请自行设置
页:
[1]