一、匯入player_items.sql 擇著PLAYER表后匯入players.sql
如果不行,請手動在這個表中增加兩個
playerlv int 11 預設值 0 要寫不然會報錯
playerjf int 11 預設值 0 要寫不然會報錯
二、复制這兩個文件到 data\scripts\system\handlers\admincommands
AddShop.java
Shop.java
Member.java
MySQL5PlayerDAO.java 复制到
AE-go_GameServer\data\scripts\system\database\mysql5
三、代碼修改
AE-go_GameServer\src\com\aionemu\gameserver\configs\administration\AdminConfig.java
中加入
@Property(key="gameserver.administration.command.member", defaultValue="0")
public static int COMMAND_MEMBER;
開啟 AE-go_GameServer\config\administration
admin.properties 中加入
# 會員積分
gameserver.administration.command.member=0
四、AE-go_GameServer\src\com\aionemu\gameserver\model\gameobjects\player開啟
尋找
classname = "[護法星]";
}
return classname;
在下面加入
public String getshowplayerlv()
{
switch (this.playerCommonData.getPlayerlv())
{
case 0:
this.playerlv_name = "[一般玩家]";
break;
case 1:
this.playerlv_name = "[一級會員]";
break;
case 2:
this.playerlv_name = "[二級會員]";
break;
case 3:
this.playerlv_name = "[三級會員]";
break;
case 4:
this.playerlv_name = "[四級會員]";
break;
case 5:
this.playerlv_name = "[五級會員]";
break;
default:
this.playerlv_name = "[警告︰不詳會員等級,請檢查這個使用者會員等級訊息]";
}
return this.playerlv_name;
}
public int getshowplayerjf()
{
return this.playerCommonData.getPlayerjf();
}
尋找
private boolean invis = false;
下面加入
private String playerlv_name;
PlayerCommonData.java
尋找
private int dp = 0;
在下面加入
private int playerlv;
private int playerjf;
尋找
public void addDp(int dp)
在上面加入
public void setPlayerlv(int playerlv)
{
this.playerlv = playerlv;
}
public int getPlayerlv()
{
return this.playerlv;
}
public void setPlayerjf(int playerjf)
{
this.playerjf = playerjf;
}
public int getPlayerjf()
{
return this.playerjf;
}
開啟MonsterController.java
尋找
@Override
public void onRespawn()
在上面加入
public void doRewardJf(Monster monster, Player player, int jf)
{
int oldjf = player.getCommonData().getPlayerjf();
int newjf = (int) Math.floor(jf * player.getLevel() / 10);
player.getCommonData().setPlayerjf(oldjf + newjf);
PacketSendUtility.sendMessage(player, "\u60a8\u83b7\u5f97\u4e86" + newjf + "\u70b9\u79ef\u5206.");
}
如果不行,請手動在這個表中增加兩個
playerlv int 11 預設值 0 要寫不然會報錯
playerjf int 11 預設值 0 要寫不然會報錯
二、复制這兩個文件到 data\scripts\system\handlers\admincommands
AddShop.java
Shop.java
Member.java
MySQL5PlayerDAO.java 复制到
AE-go_GameServer\data\scripts\system\database\mysql5
三、代碼修改
AE-go_GameServer\src\com\aionemu\gameserver\configs\administration\AdminConfig.java
中加入
@Property(key="gameserver.administration.command.member", defaultValue="0")
public static int COMMAND_MEMBER;
開啟 AE-go_GameServer\config\administration
admin.properties 中加入
# 會員積分
gameserver.administration.command.member=0
四、AE-go_GameServer\src\com\aionemu\gameserver\model\gameobjects\player開啟
尋找
classname = "[護法星]";
}
return classname;
在下面加入
public String getshowplayerlv()
{
switch (this.playerCommonData.getPlayerlv())
{
case 0:
this.playerlv_name = "[一般玩家]";
break;
case 1:
this.playerlv_name = "[一級會員]";
break;
case 2:
this.playerlv_name = "[二級會員]";
break;
case 3:
this.playerlv_name = "[三級會員]";
break;
case 4:
this.playerlv_name = "[四級會員]";
break;
case 5:
this.playerlv_name = "[五級會員]";
break;
default:
this.playerlv_name = "[警告︰不詳會員等級,請檢查這個使用者會員等級訊息]";
}
return this.playerlv_name;
}
public int getshowplayerjf()
{
return this.playerCommonData.getPlayerjf();
}
尋找
private boolean invis = false;
下面加入
private String playerlv_name;
PlayerCommonData.java
尋找
private int dp = 0;
在下面加入
private int playerlv;
private int playerjf;
尋找
public void addDp(int dp)
在上面加入
public void setPlayerlv(int playerlv)
{
this.playerlv = playerlv;
}
public int getPlayerlv()
{
return this.playerlv;
}
public void setPlayerjf(int playerjf)
{
this.playerjf = playerjf;
}
public int getPlayerjf()
{
return this.playerjf;
}
開啟MonsterController.java
尋找
@Override
public void onRespawn()
在上面加入
public void doRewardJf(Monster monster, Player player, int jf)
{
int oldjf = player.getCommonData().getPlayerjf();
int newjf = (int) Math.floor(jf * player.getLevel() / 10);
player.getCommonData().setPlayerjf(oldjf + newjf);
PacketSendUtility.sendMessage(player, "\u60a8\u83b7\u5f97\u4e86" + newjf + "\u70b9\u79ef\u5206.");
}