A Runescape private server. Owner: Hello Motto
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 [TUT] How To Make A Command [DELTA] [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] How To Make A Command [DELTA] [TUT]   7/16/2009, 12:57 pm

Purpose: How To Make A Command In A DeltaScape Server.
Difficulty: 1-3/10 (Most People Wouldn't Do It If It Was 4/10
Classes Modified: Client.java


Step 1: Open Client.java in Notepad or an IDE

Step 2: Search
Code:
 customCommand
Do That Until You Find
Code:
    private void customCommand(String command) {

Step 3: Here's The Format For a Command

Code:
 if (command.equals("COMMANDNAME") {
                  // You Fill In This Part
            }

Now 2 Simple Teleport Commands...

DeltaScape Uses 2 Teleports,
Code:
toX = XXXX;
toY = YYYY;
and
Code:
triggerTele(XXXX, YYYY, H);

Now an Explanation...

The Difference between toX and triggerTele is that trigger activates the Purple Animation and It controls H which is the height... Generarly 0-2 For Your Height Levels...

XXXX = X Coordinates Of The Location, See MottoScape is plotted on an X and Y Coordinate Chart Thus You Need To Know Them...
YYYY = Y Coordinates...
H = Height 0-2 0 Ground... 1 1st Floor and So On...

So The Command Would Look Like
Code:

if (command.equals("teletosomewhere")) {
  triggerTele(3330, 3441, 0);
  sM("You Teleport To The Digsite...");
}

Now If You Want It As a Staff Zone Simply Add This Before the { in your command

Code:
 && playerRights >= 1)

Thus Making It Like This
Code:

if (command.equals("teletosomewhere") && playerRights >= 1) {
  triggerTele(3330, 3441, 0);
  sM("You Teleport To The Digsite...");
}

I May Be Mistaken On The Number of ))s at the end if you have any errors Please Ask Ill Add More Later...
Back to top Go down
View user profile http://mottoscape.darkbb.com
Popomat
Admin
Admin
avatar

Posts : 173
Join date : 2009-07-06
Location : New York

Skills
Attack: 99
Strength: 99
Defence: 99

PostSubject: Re: [TUT] How To Make A Command [DELTA] [TUT]   7/16/2009, 1:34 pm

thx =]
Back to top Go down
View user profile
Jebus Christ
Moderator
Moderator
avatar

Aquarius Posts : 106
Join date : 2009-07-06
Age : 23
Location : In a tree.....HELP!
Job/hobbies : Professional CandySalesman

Skills
Attack: 99
Strength: 99
Defence: 99

PostSubject: Re: [TUT] How To Make A Command [DELTA] [TUT]   7/17/2009, 10:36 pm

If your kinda confused and just need to make a command to give to someone, just skip like the first 2 steps, nice guide to btw.
Back to top Go down
View user profile http://www.gametips4u.zoomshare.com
Charles
Owner
Owner


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

PostSubject: Re: [TUT] How To Make A Command [DELTA] [TUT]   7/18/2009, 12:00 am

lol these are mainly for sevrer owner and programmers =]
Back to top Go down
View user profile http://mottoscape.darkbb.com
Sponsored content




PostSubject: Re: [TUT] How To Make A Command [DELTA] [TUT]   

Back to top Go down
 
[TUT] How To Make A Command [DELTA] [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: