I've noticed that a lot of people are receiving errors for their summoning orb from Harlan's snippet. So I decided to post my version, which is simple, but I'm sure it can be useful for those who need a summoning orb base. Remember that this will only show the summoning level within the orb. The reason I'm releasing this is because I've modified my summoning orb and it's a lot more advanced.
Here's a full spoon-feed.
Firstly open the client class (client.java) client sided.
and search for:
Code:
public void loadOrbs() {
Once you've found that add this under under public void loadOrbs() {:
Find a suitable place to put this:
Code:
public void drawSumm() {
int sum = Integer.parseInt(RSInterface.interfaceCache[4030].message);
sumhover = new Sprite("Gameframe/Orbs/sumhover");
sumnormal = new Sprite("Gameframe/Orbs/sumnormal");
sumnormal.drawSprite(174, 127); //129
smallText.method382(0x00FF00, 217, ""+sum, 153, true);
if (super.mouseX >= 687 && super.mouseX <= 744 && super.mouseY >= 119 && super.mouseY < 157) {
sumhover.drawSprite(174, 127);
smallText.method382(0x00FF00, 217, ""+sum, 153, true); //155
}
}
After that's done, remember to change the number, 4030, which has been highlighted in Red, to the number where you summoning skill is programmed to.
You can find this under:
Code:
public void refreshSkill(int i) {
in PlayerAssistant.java.
Here's an example of mine:
Code:
case 23: //summoning
sendFrame126("" + c.playerLevel[23] + "", 4030);
sendFrame126("" + c.playerLevel[23] + "", 4031);
break;
Once that's done, declare the following in an appropriate area. (Preferably under another public Sprite, if you wish for it to be organised.)
Code:
public Sprite sumhover;
public Sprite sumnormal;
Once that's done, put these sprites in:
Gameframe/Orbs/sumnormal. The directory can be changed if you edit or modify at the lines highlighted in white, within the drawSumm method.
The sprites needed, can be downloaded here.
Summoning Orb Sprites.rar
Let me know how things go for you.