Description: Adding new right click player option like 'Attack'
Difficulty: 0.1
Assumed Knowledge: How RS2D works
Tested Server: RS2D, DOH?
Files/Classes Modified: GameEngine.java
Step 1:
Go to net.varek.rs2d and open up GameEngine.java. Now search for :
Code:
sender.sendPlayerCommand(3, true, "Trade with");
Step 2:
Now above add a new line;
Code:
sender.sendPlayerCommand(#1#, #2#, "#3#");
I will explain them;
#1# = This is in what place it should be so 1 would be ontop.
#2# = Fill here in true or false, True then it will be ontop. False then it will be in the place you did in #1#.
#3# = This would be the name like "Attack". Choose urself, make sure u have the "".
Examples:
Code:
sender.sendPlayerCommand(1, false, "Attack");
or
sender.sendPlayerCommand(3, true, "Code With");
Credits:
The Linux, Me