A Runescape private server. Owner: Hello Motto
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 [TUT] [Dev\Delta] Voids And You [TUT]

Go down 
AuthorMessage
Charles
Owner
Owner


Cancer Posts : 235
Join date : 2009-06-08
Age : 22
Location : AZ
Job/hobbies : Programming, Building Computers

PostSubject: [TUT] [DevDelta] Voids And You [TUT]   7/18/2009, 12:31 am

Purpose: To Explain Voids In a Help Menu...

Difficulty: 4/10

Sources Tested: Deltascape, Pwnscape, MottoScape, IdkScape, Project Bloodlines, Prophecy Scape

Step 1: Set Up Of A Void

Code:

public void something() {
//You Fill This In...
}

Step 2: Where To Put The Void....

Normally It would go Under
Code:
public class client extends player implements runnable {

And That's Where It Going To Go
Now A Void Is A Method of Declaring...

Step 3:

So Declare
Code:
 
public void gehelp() {

    sendQuest("Grand Exchange help!", 8144);
    clearQuestInterface();
    sendQuest("Q's Grand Exchange v1.0", 8147);
    sendQuest("::sell ITEMID, PRICE Will put a item on the market", 8148);
    sendQuest("::buy ITEMID PRICE will buy an item on the market", 8149);
    sendQuest("::collect will collect your money.", 8150);
    sendQuest("::takedown ITEMID will take an item off the ge", 8151);
    sendQuestSomething(8143);
    showInterface(8134);
    flushOutStream();
}

Now To Explain

clearQuestInterface prepares the interface to display guess what its a void...

sendQuest(""); displays all the text in between the quotation marks

"8151" is the line number i suggest u leave it the same...

Now For a Command
Step 4
Search In You Client.java
Code:
customCommand

Step 5:
Under That
Add
Code:

if (command.equals("gehelp") {
gehelp();
}

The Void Holds All The Information So All You Need Is The Command...

50% Q
50% Delta And Dev...
Back to top Go down
View user profile http://mottoscape.darkbb.com
Clint Walker
Owner
Owner
avatar

Virgo Posts : 229
Join date : 2009-05-19
Age : 23
Location : Pennsylvania
Job/hobbies : Bmx, Skating, Games

Skills
Attack: 1
Strength: 1
Defence: 1

PostSubject: Re: [TUT] [Dev\Delta] Voids And You [TUT]   7/18/2009, 4:50 am

O.O

_________________
https://www.youtube.com/suckmyforge
Support my halo 3 team Plawks?


Back to top Go down
View user profile http://mottoscape.darkbb.com
 
[TUT] [Dev\Delta] Voids And You [TUT]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Mottoscape :: -Main Forum- :: Tutorials-
Jump to: