PDA

View Full Version : [PI] Open Interface Command (::info) [PI]



Pistol Pete
November 29th, 2010, 00:09
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

Network
November 29th, 2010, 00:14
I got 12 errors.


========================
==Type 'c' for compile==
== Type 'r' for run ==
========================
Type any other to close
Option:c
Class8.java:47: illegal start of expression
if(i >= 7955) goto _L2; else goto _L1
^
Class8.java:47: not a statement
if(i >= 7955) goto _L2; else goto _L1
^
Class8.java:47: 'else' without 'if'
if(i >= 7955) goto _L2; else goto _L1
^
Class8.java:47: illegal start of expression
if(i >= 7955) goto _L2; else goto _L1
^
Class8.java:47: ';' expected
if(i >= 7955) goto _L2; else goto _L1
^
Class8.java:49: not a statement
Class8 class8;
^
Class8.java:49: ';' expected
Class8 class8;
^
Class8.java:49: not a statement
Class8 class8;
^
Class8.java:130: not a statement
ioexception1;
^
Class8.java:141: not a statement
exception;
^
Class8.java:150: illegal start of expression
goto _L3
^
Class8.java:151: ';' expected
_L2:
^
12 errors
Druk op een toets om door te gaan. . .

Pistol Pete
November 29th, 2010, 04:20
I got 12 errors.

lol? either this is a joke or you added something to your class8.java? adding this to commands.java will not affect anything in class8

xox0
December 11th, 2010, 23:46
Haven't you already posted this before? =\ Anyways, it doesn't work if you do more than one interface. It just takes the end off the longer one and slaps it on the smaller.

Pistol Pete
December 20th, 2010, 11:47
Haven't you already posted this before? =\ Anyways, it doesn't work if you do more than one interface. It just takes the end off the longer one and slaps it on the smaller.

Yes it does, if you had common sense, you'd create another interface and just have it, as ("",####) to clear it

Nick Magic23
June 15th, 2011, 11:16
Works thanks bro!

Kane
July 3rd, 2011, 10:41
11 Errors too..

ghatii
July 19th, 2011, 22:58
This is cool, I won't use, but its good to know.

Auto Talker
July 19th, 2011, 23:02
Yeah it is good unless you have two different items/quests opening the same interface. Then the text gets stuck and looks messy. But good release for beginners and people who will only use one interface :)

high105
August 23rd, 2011, 18:27
I got 12 errors.
Server sided... commands.java sorry but you need help...

PI Coder
October 29th, 2011, 22:50
Thanks it worked,
Altough it keeps showing howmany players are online on the top idk y

Stable X
November 3rd, 2011, 23:56
umm i have no comment on this..

Unlimitedz
January 23rd, 2012, 15:58
Lol... Simple

Intelligence
February 8th, 2012, 06:34
Easy and simple, thanks for this :).

eldar517
May 4th, 2012, 16:02
looks good

box
May 4th, 2012, 21:44
Stop gravedigging for posts its extremely annoying