PDA

View Full Version : [PI] Open Interface Command (::item, etc) [PI]



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

xox0
November 29th, 2010, 21:35
This isn't that hard to do. However if you have more than one command or NPC that opens a Interface like that, if One is Longer then the other, then the End of the Longer One sticks around and stays with the shorter one(If That Makes Sense... I can upload pics in a bit if you want to see :\). Or it used to do that when I tried it before.

However, Nice Tut. 8/10 :P

mpsmpsmps
November 30th, 2010, 20:09
lol, got nothing to say. this is very basic that's all.
Still could help some peeps.

Pistol Pete
November 30th, 2010, 22:55
This isn't that hard to do. However if you have more than one command or NPC that opens a Interface like that, if One is Longer then the other, then the End of the Longer One sticks around and stays with the shorter one(If That Makes Sense... I can upload pics in a bit if you want to see :\). Or it used to do that when I tried it before.

However, Nice Tut. 8/10 :P

would it have killed u to give me a 9/10 :rolleyes:

but yeah, i'd love to see, show us:eek:

omg123
January 4th, 2011, 21:21
Thanks, helped out alot