底比斯天堂
瘋天堂私服發佈網站廣告欄位!
害怕天堂私服倒閉嗎?快使用天堂分析師!
天堂私服抽獎扭蛋物品及機率測試器
天堂私服稱號顏色製造器
瘋天堂私服發佈網站教您註冊推文收藏私服!
天堂私服血量魔力計算器
瘋天堂私服發布網站廣告贊助及爆料私服客服
教您如何不用註冊也可以推文天堂私服!
天堂私服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;

}

if(k3 >= 81 && k3 <= 85)

{

l1 = 20190;

l2 = 1;

}

if(k3 >= 86 && k3 <= 90)

{

l1 = 40043;

l2 = 40;

}

if(k3 >= 91 && k3 <= 95)

{

l1 = 40395;

l2 = 6;

}

if(k3 >= 96 && k3 <= 97)

{

l1 = 162;

l2 = 1;

}

if(k3 == 98)

{

l1 = 168;

l2 = 1;

}

if(k3 == 99)

{

l1 = 84;

l2 = 1;

}

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 == 59006)

{

int l1 = 0;

int l2 = 1;

Random random = new Random();

int k3 = random.nextInt(100);

if(k3 <= 16)

{

l1 = 40023;

l2 = 150;

}

if(k3 >= 17 && k3 <= 30)

{

l1 = 40074;

l2 = 10;

}

if(k3 >= 31 && k3 <= 42)

{

l1 = 40087;

l2 = 10;

}

if(k3 >= 43 && k3 <= 52)

{

l1 = 40393;

l2 = 3;

}

if(k3 >= 53 && k3 <= 62)

{

l1 = 40394;

l2 = 3;

}

if(k3 >= 63 && k3 <= 70)

{

l1 = 40395;

l2 = 3;

}

if(k3 >= 71 && k3 <= 75)

{

l1 = 40458;

l2 = 100;

}

if(k3 >= 76 && k3 <= 80)

{

l1 = 40767;

l2 = 10;

}

if(k3 >= 81 && k3 <= 85)

{

l1 = 40768;

l2 = 10;

}

if(k3 >= 86 && k3 <= 90)

{

l1 = 40043;

l2 = 100;

}

if(k3 >= 91 && k3 <= 95)

{

l1 = 40395;

l2 = 6;

}

if(k3 >= 96 && k3 <= 97)

{

l1 = 65;

l2 = 1;

}

if(k3 == 98)

{

l1 = 182;

l2 = 1;

}

if(k3 == 99)

{

l1 = 40396;

l2 = 20;

}

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 == 59007)

{

int l1 = 0;

int l2 = 1;

Random random = new Random();

int k3 = random.nextInt(100);

if(k3 <= 16)

{

l1 = 40067;

l2 = 50;

}

if(k3 >= 17 && k3 <= 30)

{

l1 = 40076;

l2 = 1;

}

if(k3 >= 31 && k3 <= 42)

{

l1 = 40219;

l2 = 1;

}

if(k3 >= 43 && k3 <= 52)

{

l1 = 40330;

l2 = 1;

}

if(k3 >= 53 && k3 <= 62)

{

l1 = 164;

l2 = 1;

}

if(k3 >= 63 && k3 <= 70)

{

l1 = 150;

l2 = 1;

}

if(k3 >= 71 && k3 <= 75)

{

l1 = 118;

l2 = 1;

}

if(k3 >= 76 && k3 <= 80)

{

l1 = 84;

l2 = 1;

}

if(k3 >= 81 && k3 <= 85)

{

l1 = 61;

l2 = 1;

}

if(k3 >= 86 && k3 <= 90)

{

l1 = 51;

l2 = 1;

}

if(k3 >= 91)

{

l1 = 14;

l2 = 1;

}

if(k3 >= 92)

{

l1 = 133;

l2 = 1;

}

if(k3 >= 93)

{

l1 = 20234;

l2 = 1;

}

if(k3 >= 94)

{

l1 = 20107;

l2 = 1;

}

if(k3 >= 95)

{

l1 = 20074;

l2 = 1;

}

if(k3 == 96)

{

l1 = 154;

l2 = 1;

}

if(k3 == 97)

{

l1 = 66;

l2 = 1;

}

if(k3 == 98)

{

l1 = 86;

l2 = 1;

}

if(k3 == 99)

{

l1 = 134;

l2 = 1;

}

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

然後在資料庫etcitm 新增59004~59008

59008爲魔法骰子

59004~7爲福袋

附上原碼及etcitem資料表

此文沒什麽技術可言所以不算技術帖@@

有興趣的大大歡迎修改 請著名原修改者及0919162173 大大編寫的原碼

已含class檔

不過還是希望各位至少學會轉檔@@

這才是發表原碼的初衷



上一篇文章:天堂魔法武器武卷加成多加1種魔法攻擊2種3種(核心)java寫法!
下一篇文章:天堂人物名稱後面+頭銜(等級判斷)java寫法!

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