2014年5月20日 星期二

【Java教學】與萊拉訂契約.圖騰的金錢修改.


與萊拉訂契約.圖騰的金錢修改.

l1j\server\server\clientpackets\C_NPCAction 

找到這裡.. 
int totem = 0; 
    if (pc.getInventory().checkItem(40131)) { 
        totem++; 
    } 
    if (pc.getInventory().checkItem(40132)) { 
        totem++; 
    } 
    if (pc.getInventory().checkItem(40133)) { 
        totem++; 
    } 
    if (pc.getInventory().checkItem(40134)) { 
        totem++; 
    } 
    if (pc.getInventory().checkItem(40135)) { 
        totem++; 
    } 
    if (totem != 0) { 
        materials = new int[totem]; 
        counts = new int[totem]; 
        createitem = new int[totem]; 
        createcount = new int[totem]; 
        totem = 0; 
                                          materials = new int[totem]; 
        counts = new int[totem]; 
        createitem = new int[totem]; 
        createcount = new int[totem]; 
        totem = 0; 
        if (pc.getInventory().checkItem(40131)) { 
            L1ItemInstance l1iteminstance = pc.getInventory() 
                    .findItemId(40131); 
            int i1 = l1iteminstance.getCount(); 
            materials[totem] = 40131; 
            counts[totem] = i1; 
            createitem[totem] = L1ItemId.ADENA; 
            createcount[totem] = i1 * 500;  <=====這裡 
            totem++; 
        } 
        if (pc.getInventory().checkItem(40132)) { 
            L1ItemInstance l1iteminstance = pc.getInventory() 
                    .findItemId(40132); 
            int i1 = l1iteminstance.getCount(); 
            materials[totem] = 40132; 
            counts[totem] = i1; 
            createitem[totem] = L1ItemId.ADENA; 
            createcount[totem] = i1 * 1000;  <=====這裡 
            totem++; 
        } 
        if (pc.getInventory().checkItem(40133)) { 
            L1ItemInstance l1iteminstance = pc.getInventory() 
                    .findItemId(40133); 
            int i1 = l1iteminstance.getCount(); 
            materials[totem] = 40133; 
            counts[totem] = i1; 
            createitem[totem] = L1ItemId.ADENA; 
            createcount[totem] = i1 * 500;  <=====這裡 
            totem++; 
        } 
        if (pc.getInventory().checkItem(40134)) { 
            L1ItemInstance l1iteminstance = pc.getInventory() 
                    .findItemId(40134); 
            int i1 = l1iteminstance.getCount(); 
            materials[totem] = 40134; 
            counts[totem] = i1; 
            createitem[totem] = L1ItemId.ADENA; 
            createcount[totem] = i1 * 300;  <=====這裡 
            totem++; 
        } 
        if (pc.getInventory().checkItem(40135)) { 
            L1ItemInstance l1iteminstance = pc.getInventory() 
                    .findItemId(40135); 
            int i1 = l1iteminstance.getCount(); 
            materials[totem] = 40135; 
            counts[totem] = i1; 
            createitem[totem] = L1ItemId.ADENA; 
            createcount[totem] = i1 * 2000; <=====這裡 
            totem++; 
        } 
    } 

沒有留言:

張貼留言