R1dl3r Administrator
Posts : 108 Join date : 2009-12-03 Age : 33 Location : sd.ca.usa
| Subject: AGILITY VOID Wed 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 | |
|