Pistol Pete
November 29th, 2010, 04:27
Difficulty -- 1/10
Date -- 11/28/10
Here's a quick snippet on an interface command. I haven't seen any tutorials about this because I think this is better than a cheap "sendMessage"
Here's what you're adding:
Only the registered members can see the link. (Only the registered members can see the link.)
Add this in commands.java
if (playerCommand.startsWith("commands")) { //change name to whatever, info, donate etc.
c.getPA().showInterface(8134);
c.flushOutStream();
c.getPA().sendFrame126("@dre@Your Title Here -- added by Pistol Pete :D", 8144);
c.getPA().sendFrame126("1", 8148);
c.getPA().sendFrame126("2", 8149);
c.getPA().sendFrame126("3", 8150);
c.getPA().sendFrame126("4", 8151);
c.getPA().sendFrame126("5", 8151);
c.getPA().sendFrame126("6", 8152);
c.getPA().sendFrame126("7", 8153);
c.getPA().sendFrame126("8", 8154);
c.getPA().sendFrame126("9", 8155);
c.getPA().sendFrame126("10", 8156);
c.getPA().sendFrame126("11", 8157);
c.getPA().sendFrame126("12", 8158);
c.getPA().sendFrame126("13", 8159); // replace the numbers with your text, between the ""
}
simply just replace whats between the " " with your text
@dre@ means the following text will show up in red, that's how my client interprets it
c.getPA().sendFrame126("@dre@Your Title Here -- added by Pistol Pete :D", 8144);
thanks post any errors or problems
- Pistol Pete
Date -- 11/28/10
Here's a quick snippet on an interface command. I haven't seen any tutorials about this because I think this is better than a cheap "sendMessage"
Here's what you're adding:
Only the registered members can see the link. (Only the registered members can see the link.)
Add this in commands.java
if (playerCommand.startsWith("commands")) { //change name to whatever, info, donate etc.
c.getPA().showInterface(8134);
c.flushOutStream();
c.getPA().sendFrame126("@dre@Your Title Here -- added by Pistol Pete :D", 8144);
c.getPA().sendFrame126("1", 8148);
c.getPA().sendFrame126("2", 8149);
c.getPA().sendFrame126("3", 8150);
c.getPA().sendFrame126("4", 8151);
c.getPA().sendFrame126("5", 8151);
c.getPA().sendFrame126("6", 8152);
c.getPA().sendFrame126("7", 8153);
c.getPA().sendFrame126("8", 8154);
c.getPA().sendFrame126("9", 8155);
c.getPA().sendFrame126("10", 8156);
c.getPA().sendFrame126("11", 8157);
c.getPA().sendFrame126("12", 8158);
c.getPA().sendFrame126("13", 8159); // replace the numbers with your text, between the ""
}
simply just replace whats between the " " with your text
@dre@ means the following text will show up in red, that's how my client interprets it
c.getPA().sendFrame126("@dre@Your Title Here -- added by Pistol Pete :D", 8144);
thanks post any errors or problems
- Pistol Pete