R1D3XITY
PLEASE REGISTER!
VOTE FOR DARK ERA PVP!
IP:DARKERAPVP.NO-IP.BIZ
VISIT OUR WEBCLIENT SERVICES SITE
http://317wcs.webs.com/
R1D3XITY
PLEASE REGISTER!
VOTE FOR DARK ERA PVP!
IP:DARKERAPVP.NO-IP.BIZ
VISIT OUR WEBCLIENT SERVICES SITE
http://317wcs.webs.com/
R1D3XITY
Would you like to react to this message? Create an account in a few clicks or log in to continue.


THE BEST RSPS FORUMS
 
HomePortalAGILITY VOID 2vtuxyhLatest imagesGallerySearchRegisterLog in
Server Ip:DarkEraPvP.No-Ip.Biz Join Dark Era PvP Now!
Latest Client Notice: Dark Era PvP Client Version 3 is now AVAILABLE! Get It Now!

 

 AGILITY VOID

Go down 
AuthorMessage
R1dl3r
Administrator
Administrator
R1dl3r


Posts : 108
Join date : 2009-12-03
Age : 33
Location : sd.ca.usa

AGILITY VOID Empty
PostSubject: AGILITY VOID   AGILITY VOID EmptyWed Dec 16, 2009 9:02 am

I WILL SHOW SHOW HOW TO EASILY ADD AN AGILITY VOID FOR YOUR AGILITY SKILL!

CLINT.JAVA

OK ON THE VERY TOP YOU WILL SEE


CODE:
Code:
public class client extends Player implements Runnable {

ADD THIS

Code:
Code:
public void agility(int item, String itemname, int amount, int reward, String message) {
if (c.playerHasItem(item, amount)) {
c.deleteItem(item, amount);
c.addSkillXP(reward, 16);
c.sM(message);
} else {
c.sM("You don't have enough" +itemname+"'s for this reward!");
}
}

More efficient and here's an example of its use -

CLICKINGMOST.JAVA

ADD THIS


Code:
Code:
case 32200:
c.agility(2996, "ticket", 1000, 320000, "You exchange the tickets for 320,000 agility experience!");
break;

ON THE VERY TOP AFTER

CODE
Code:
switch(c.actionButtonId) {

EXPLAINING:
Quote :
case #####: <-------YOU ADD YOUR CASE NUMBER

c.agility(@@@@, "####", $$$$, %%%%, "&&&&");

@@@@ <--ITEM ID
#### <----ITEM NAME
$$$$ <----COST
%%%% <-----EXPERIENCE GIVEN
&&&& <-----YOUR MESSAGE
break; <-----ENDS YOUR CODE

Back to top Go down
https://r1d3xity.darkbb.com
 
AGILITY VOID
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
R1D3XITY  :: RS2 Development :: RS2 317 Related Boards :: RS2 317 Protocol Tutorials-
Jump to: