打開C_RequestItemUSe.java
搜尋if(k == 40033)
在if(k == 40033)上面貼上下面的原碼
if(k == 59008)
{
Random random = new Random();
int SK = random.nextInt(6)+1;
int SK1 = random.nextInt(6)+1;
int SK2 = random.nextInt(6)+1;
int itemId = 40039 - SK;
{
l1pcinstance.sendPackets(new S_SystemMessage("你骰出的點數是 [ " + SK + "," + SK1 + "," + SK2 + " ]" ));
if(SK == SK1 && SK1 == SK2)
{
l1pcinstance.sendPackets(new S_SystemMessage("你骰出的點數是 [ " + SK + "," + SK1 + "," + SK2 + " ]" + "豹子!!" ));
L1ItemInstance item = l1pcinstance.getInventory().storeItem(59007, 1);
if(item != null)
l1pcinstance.sendPackets(new S_ServerMessage(403, item.getLogName()));
//l1pcinstance.sendPackets(new S_ServerMessage("獲得 受祝福的 高級福袋"));
l1pcinstance.sendPackets(new S_SkillSound(j, 2047));
l1pcinstance.broadcastPacket(new S_SkillSound(j, 2047));
}
else if(SK+SK1+SK2 <= 8)
{
l1pcinstance.sendPackets(new S_SystemMessage("你骰出的點數是 [ " + SK + "," + SK1 + "," + SK2 + " ]" + "點數爲 [ 小 ]"));
L1ItemInstance item = l1pcinstance.getInventory().storeItem(59004, 1);
if(item != null)
l1pcinstance.sendPackets(new S_ServerMessage(403, item.getLogName()));
//l1pcinstance.sendPackets(new S_SystemMessage("獲得 詛咒的福袋"));
l1pcinstance.sendPackets(new S_SkillSound(j, 2047));
l1pcinstance.broadcastPacket(new S_SkillSound(j, 2047));
}
else if(SK+SK1+SK2 >= 15)
{
l1pcinstance.sendPackets(new S_SystemMessage("你骰出的點數是 [ " + SK + "," + SK1 + "," + SK2 + " ]" + "點數爲 [ 大 ]"));
L1ItemInstance item = l1pcinstance.getInventory().storeItem(59006, 1);
if(item != null)
l1pcinstance.sendPackets(new S_ServerMessage(403, item.getLogName()));
//l1pcinstance.sendPackets(new S_SystemMessage("獲得 高級的福袋"));
l1pcinstance.sendPackets(new S_SkillSound(j, 2047));
l1pcinstance.broadcastPacket(new S_SkillSound(j, 2047));
}
else
{
l1pcinstance.sendPackets(new S_SystemMessage("你骰出的點數是 [ " + SK + "," + SK1 + "," + SK2 + " ]" + "點數爲 [ 中 ]"));
L1ItemInstance item = l1pcinstance.getInventory().storeItem(59005, 1);
if(item != null)
l1pcinstance.sendPackets(new S_ServerMessage(403, item.getLogName()));
//l1pcinstance.sendPackets(new S_SystemMessage("獲得 一般的福袋"));
l1pcinstance.sendPackets(new S_SkillSound(j, 2047));
l1pcinstance.broadcastPacket(new S_SkillSound(j, 2047));
}
}
l1pcinstance.getInventory().removeItem(l1iteminstance, 1);
} else
if(k == 59004)
{
int l1 = 0;
int l2 = 1;
Random random = new Random();
int k3 = random.nextInt(100);
if(k3 <= 16)
{
l1 = 40011;
l2 = 100;
}
if(k3 >= 17 && k3 <= 30)
{
l1 = 40013;
l2 = 30;
}
if(k3 >= 31 && k3 <= 42)
{
l1 = 40408;
l2 = 30;
}
if(k3 >= 43 && k3 <= 52)
{
l1 = 40393;
l2 = 1;
}
if(k3 >= 53 && k3 <= 62)
{
l1 = 40394;
l2 = 1;
}
if(k3 >= 63 && k3 <= 70)
{
l1 = 40395;
l2 = 1;
}
if(k3 >= 71 && k3 <= 75)
{
l1 = 40458;
l2 = 25;
}
if(k3 >= 76 && k3 <= 80)
{
l1 = 40008;
l2 = 15;
}
if(k3 >= 81 && k3 <= 85)
{
l1 = 40513;
l2 = 1;
}
if(k3 >= 86 && k3 <= 90)
{
l1 = 40043;
l2 = 20;
}
if(k3 >= 91 && k3 <= 95)
{
l1 = 40395;
l2 = 3;
}
if(k3 >= 96 && k3 <= 97)
{
l1 = 163;
l2 = 1;
}
if(k3 == 98)
{
l1 = 149;
l2 = 1;
}
if(k3 == 99)
{
l1 = 40396;
l2 = 5;
}
L1ItemInstance item = l1pcinstance.getInventory().storeItem(l1, l2);
//L1ItemInstance item = ItemTable.getInstance().createItem(l1, l2);
if(item != null)
{
l1pcinstance.getInventory().removeItem(l1iteminstance, 1);
if(l1pcinstance.getInventory().checkAddItem(item, l2) == L1Inventory.OK);
//l1pcinstance.getInventory().storeItem(item);
else
L1World.getInstance().getInventory(l1pcinstance.get_x(), l1pcinstance.get_y(), l1pcinstance.get_map()).storeItem(item);
l1pcinstance.sendPackets(new S_ServerMessage(403, item.getLogName()));
}
} else
if(k == 59005)
{
int l1 = 0;
int l2 = 1;
Random random = new Random();
int k3 = random.nextInt(100);
if(k3 <= 16)
{
l1 = 40012;
l2 = 100;
}
if(k3 >= 17 && k3 <= 30)
l1 = 40015;
l2 = 30;
if(k3 >= 31 && k3 <= 42)
{
l1 = 40460;
l2 = 5;
}
if(k3 >= 43 && k3 <= 52)
{
l1 = 40393;
l2 = 2;
}
if(k3 >= 53 && k3 <= 62)
{
l1 = 40394;
l2 = 2;
}
if(k3 >= 63 && k3 <= 70)
{
l1 = 40395;
l2 = 2;
}
if(k3 >= 71 && k3 <= 75)
{
l1 = 40396;
l2 = 2;
}
if(k3 >= 76 && k3 <= 80)
{
l1 = 40008;
l2 = 30;
&am
上一篇文章:天堂魔法武器武卷加成多加1種魔法攻擊2種3種(核心)java寫法!
下一篇文章:天堂人物名稱後面+頭銜(等級判斷)java寫法!
分享文章:
![]()