-NOTE- Emotes are not correct, if someone can tell me the correct ids for each obstacle's emote, I will add to OP and give you credits.
Description: Adding a barbarian outpost agility course
Difficulty: 1
Assumed Knowledge: how to add object cases
Tested Server: Devolution/Dodian, should work on most but might need changing for some
Files/Classes Modified: client.java
I won't cover adding a tele, but the coordinates are 2552 3546 for start.
Now let's get started.
Find this in client.java (this is where your one click object cases are):
Ok, now under the end of any one object case, add this:Code:if(objectid ==
(read the note at the top before complaining about emotes...)Code:
if(objectID == 2287){
pEmote = 749; //entrancepipe
teleportToX = 2552;
teleportToY = 3558;
addSkillXP(50, 16);
}
if(objectID == 2282){
pEmote = 3067; //ropeswing
teleportToX = 2551;
teleportToY = 3549;
addSkillXP(50, 16);
}
if(objectID == 2294){
pEmote = 770; //log
teleportToX = 2541;
teleportToY = 3546;
addSkillXP(50, 16);
}
if(objectID == 2284){
pEmote = 3067; //net
teleportToX = 2532;
teleportToY = 3548;
addSkillXP(50, 16);
}
if(objectID == 1948){
pEmote = 3067; //wall
teleportToX = 2543;
teleportToY = 3553;
addSkillXP(50, 16);
}
That is basically it, dodian users you will need to do the whole ::oadd thing.
Also, you can do an agility exchange with this. Use dustrip's tut on it here:
[Only registered and activated users can see links. Click Here To Register...]
Then place the NPC in the agility course, and also add this to each of the obstacles you want to give a ticket:
Code:addItem(2996, 1);
