You need a method named drawAdvancedSprite, with the params int and int. I don't think you have it or taking wrong params.
|
ok so im trying to add this awesome new hp thing and i get this error:
this is the section of my client.java that i added it too.Code:client.java:2375: cannot find symbol symbol : method drawAdvancedSprite(int,int) location: class Sprite HPBarEmpty.drawA dvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3 ^ client.java:2378: cannot find symbol symbol : method drawAdvancedSprite(int,int) location: class Sprite HPBarFull.drawAd vancedSprite(spriteDrawX - 27, spriteDrawY - 4); ^ Note: client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors Press any key to continue . . .
Code:if(((Entity) (obj)).loopCycleStatus > loopCycle) { try { npcScreenPos(((Entity) (obj)), ((Entity) (obj)).height + 15); if (spriteDrawX > -1) { int i1 = (((Entity) (obj)).currentHealth * 30) / ((Entity) (obj)).maxHealth; if (i1 > 30) { i1 = 30; } int HpPercent = (((Entity) (obj)).currentHealth * 54) / ((Entity) (obj)).maxHealth; if (HpPercent > 54) { HpPercent = 54; } if (!hitbarToggle) { DrawingArea.method336(5, spriteDrawY - 3, spriteDrawX - 15, 65280, i1); DrawingArea.method336(5, spriteDrawY - 3, (spriteDrawX - 15) + i1, 0xff0000, 30 - i1); } else { HPBarEmpty.drawAdvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3 int type = ((double)HpPercent/56 > 0.25) ? ((double)HpPercent/56 > 0.5) ? 0 : 2 : 3; HPBarFull = new Sprite(sign.signlink.findcachedir() + "Sprites/Player/HP " + type + ".PNG", HpPercent, 7); HPBarFull.drawAdvancedSprite(spriteDrawX - 27, spriteDrawY - 4); } } } catch (Exception e) { } }
You need a method named drawAdvancedSprite, with the params int and int. I don't think you have it or taking wrong params.
Well where ever you are ripping code from get that function.
EDIT: Found it for you.
Code:public void drawAdvancedSprite(int i, int j) { int k = 256; i += SpritePosX; j += SpritePosY; int i1 = i + j * DrawingArea.width; int j1 = 0; int k1 = myHeight; int l1 = myWidth; int i2 = DrawingArea.width - l1; int j2 = 0; if (j < DrawingArea.topY) { int k2 = DrawingArea.topY - j; k1 -= k2; j = DrawingArea.topY; j1 += k2 * l1; i1 += k2 * DrawingArea.width; } if (j + k1 > DrawingArea.bottomY) k1 -= (j + k1) - DrawingArea.bottomY; if (i < DrawingArea.topX) { int l2 = DrawingArea.topX - i; l1 -= l2; i = DrawingArea.topX; j1 += l2; i1 += l2; j2 += l2; i2 += l2; } if (i + l1 > DrawingArea.bottomX) { int i3 = (i + l1) - DrawingArea.bottomX; l1 -= i3; j2 += i3; i2 += i3; } if (!(l1 <= 0 || k1 <= 0)) { drawAlphaSprite(j1, l1, DrawingArea.pixels, myPixels, j2, k1, i2, k, i1); } }
erm.. im ripping it from the tutorial i linked..
http://www.rune-server.org/runescape...l?referrerid=0
I posted the method above.
now i get this error:
Code:client.java:1718: cannot find symbol symbol : variable SpritePosX location: class client i += SpritePosX; ^ client.java:1719: cannot find symbol symbol : variable SpritePosY location: class client j += SpritePosY; ^ client.java:1751: cannot find symbol symbol : variable myPixels location: class client drawAlphaSprite(j1, l1, DrawingArea.pixels, myPixels, j2, k1, i2, k, i1 ); ^ client.java:2413: cannot find symbol symbol : method drawAdvancedSprite(int,int) location: class Sprite HPBarEmpty.drawA dvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3 ^ client.java:2416: cannot find symbol symbol : method drawAdvancedSprite(int,int) location: class Sprite HPBarFull.drawAd vancedSprite(spriteDrawX - 27, spriteDrawY - 4); ^ Note: client.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 5 errors Press any key to continue . . .
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |