Jump to content

Bugs


Recommended Posts

This thread is about knowing all the bugs/glitches ingame. Feel free to write as many issues as u want below so we can solve them properly. 

 

vengeance.pnghqdefault.jpg

 

This should fix the vengeance skull and other miscellaneous items.

Fix:

Model.java
    public static void method375(int[] ai, int i, int l, int i1, int j1, int k1) {
        int j;
        int k;
        int l1 = 0;
        if (aBoolean1462) {
            if (i1 > DrawingArea.centerX)
                i1 = DrawingArea.centerX;
            if (l < 0) {
                j1 -= l * l1;
                l = 0;
            }
        }
        if (l < i1) {
            i += l;
            j1 += l1 * l;
            if (aBoolean1464) {
                k = i1 - l >> 2;
                if (k > 0)
                    l1 = (k1 - j1) * anIntArray1468[k] >> 15;
                else
                    l1 = 0;
                if (anInt1465 == 0) {
                    if (k > 0) {
                        do {
                            j = anIntArray1482[j1 >> 8];
                            j1 += l1;
                            ai[i++] = j;
                            ai[i++] = j;
                            ai[i++] = j;
                            ai[i++] = j;
                        } while (--k > 0);
                    }
                    k = i1 - l & 0x3;
                    if (k > 0) {
                        j = anIntArray1482[j1 >> 8];
                        do
                            ai[i++] = j;
                        while (--k > 0);
                    }
                } else {
                    int j2 = anInt1465;
                    int l2 = 256 - anInt1465;
                    if (k > 0) {
                        do {
                            j = anIntArray1482[j1 >> 8];
                            j1 += l1;
                            j = (((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00)
                                    * l2 >> 8 & 0xff00));
                            int h = ai;
                            ai[i++] = (j
                                    + ((h & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((h & 0xff00)
                                    * j2 >> 8 & 0xff00));
                            h = ai;
                            ai[i++] = (j
                                    + ((h & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((h & 0xff00)
                                    * j2 >> 8 & 0xff00));
                            h = ai;
                            ai[i++] = (j
                                    + ((h & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((h & 0xff00)
                                    * j2 >> 8 & 0xff00));
                            h = ai;
                            ai[i++] = (j
                                    + ((h & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((h & 0xff00)
                                    * j2 >> 8 & 0xff00));
                        } while (--k > 0);
                    }
                    k = i1 - l & 0x3;
                    if (k > 0) {
                        j = anIntArray1482[j1 >> 8];
                        j = (((j & 0xff00ff) * l2 >> 8 & 0xff00ff) + ((j & 0xff00)
                                * l2 >> 8 & 0xff00));
                        do {
                            int i_61_ = ai;
                            ai[i++] = (j
                                    + ((i_61_ & 0xff00ff) * j2 >> 8 & 0xff00ff) + ((i_61_ & 0xff00)
                                    * j2 >> 8 & 0xff00));
                        } while (--k > 0);
                    }
                }
            } else {
                int i2 = (k1 - j1) / (i1 - l);
                k = i1 - l;
                if (anInt1465 == 0) {
                    do {
                        ai[i++] = anIntArray1482[j1 >> 8];
                        j1 += i2;
                    } while (--k > 0);
                } else {
                    int i_62_ = anInt1465;
                    int i_63_ = 256 - anInt1465;
                    do {
                        j = anIntArray1482[j1 >> 8];
                        j1 += i2;
                        j = (((j & 0xff00ff) * i_63_ >> 8 & 0xff00ff) + ((j & 0xff00)
                                * i_63_ >> 8 & 0xff00));
                        int i_64_ = ai;
                        ai[i++] = (j
                                + ((i_64_ & 0xff00ff) * i_62_ >> 8 & 0xff00ff) + ((i_64_ & 0xff00)
                                * i_62_ >> 8 & 0xff00));
                    } while (--k > 0);
                }
            }
        }
   }

Interface, tooltips, (opray book, lunar spell book)

Has fix inside: http://pastebin.com/7xstYQvV

 

Saradomin Sword : Correct special attack animation and gfx,

            c.gfx100(1224);
            c.startAnimation(7072);

Saradomin Sword: correct attack animation,

       if (weaponName.contains("2h sword") || weaponName.contains("godsword")
                || weaponName.contains("aradomin sword")) {
            switch (c.fightMode) {
            case 0:// attack
                return 7042;
            case 2:// str
                return 7041;
            case 1:// def
                return 7049;
            case 3:// crush
                return 7048;
            }
        }

Block emotes, defenders, shields, etc,

   public static int getBlockEmote(Client c) {
        String shield = c.getItems()
                .getItemName(c.playerEquipment[c.playerShield]).toLowerCase();
        String weapon = c.getItems()
                .getItemName(c.playerEquipment[c.playerWeapon]).toLowerCase();
        if (shield.contains("defender"))
            return 4177;
        if (shield.contains("2h"))
            return 7050;
        if (shield.contains("book") && (weapon.contains("wand")))
            return 420;
        if (shield.contains("shield"))
            return 1156;
        switch (c.playerEquipment[c.playerWeapon]) {
        case 4755:
            return 2063;
        case 15241:
            return 12156;
        case 13899:
            return 13042;
        case 18355:
            return 13046;
        case 14484:
            return 397;
        case 11716:
            return 12008;
        case 4153:
            return 1666;
        case 4151:
            return 1659;
        case 15486:
            return 12806;
        case 18349:
            return 12030;
        case 18353:
            return 13054;
        case 18351:
            return 13042;

        case 11694:
        case 11698:
        case 11700:
        case 11696:
        case 11730:
            return 7050;
        case -1:
            return 424;
        default:
            return 424;
        }
    }

I also believe combat defense is wrong slightly bugged should be tweaked

Towels,

 

  • Upvote 1
Link to comment
Guest
This topic is now closed to further replies.
×
×
  • Create New...