瘋天堂私服發佈網站廣告欄位!
瘋天堂私服發佈網站您最佳的選擇!
免費曝光天堂私服的方式!
害怕天堂私服倒閉嗎?快使用天堂分析師!
天堂私服抽獎扭蛋物品及機率測試器
天堂私服稱號顏色製造器
瘋天堂私服發佈網站教您註冊推文收藏私服!
天堂私服血量魔力計算器
瘋天堂私服發布網站廣告贊助及爆料私服客服
教您如何不用註冊也可以推文天堂私服!
天堂私服270怪物查詢掉落資料庫
天堂私服盟徽製造器
test0428
2013-12-27 01:30

天堂魔法骰子賭博物品版java寫法!

打開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寫法!

分享文章:分享到微博! 分享到臉書! 分享到噗浪! 分享到維特! 分享到Google+! 分享到LINE!