you havent seen the new agility area... :/ if uve ever played real rs its the one in karamja (think thts right) above the volcano with like 30 different obstacles and its more like a minigame thn agility but u get agility exp for it anyway.. yh its tht.. emote and give exp i think not?
you make a new case for each objects id so...
case 3151 -- lets say its monkey bars
if(absX = 2490 absY = 2348) - this means that this perticular code only happens from this area
forcewalk(2345, 2349, 932) example: place to walk to - coords, and gfx for the walk - meaning you have to find the right gfx not so bad with gfx list but some of the gfx are missing
public int agilityskill; - declares the new agility exp for that obstacle which i added to load from a text file
giveExp = agilityskill; - gives exp to declared agility
resetwalk; - gives continous movement of the gfx
break; - stops it from continueing onto next object
thats just one obstacle from one side to the other side e.g. climbing over a wall
then you have to take into consideration getting back across the wall the same way you came
over which requires another code...
so thats 2 pieces of code per obsticle -- lets say 30 obsticles at least i would say - thats 60 object codes which have to be able to run.. not to mention anything else you might like to add
such as agility rewards or whatever..
so forgive me for making agility a little bit more than clicking an object and getting exp and actually making it into something decent but its not an easy job.. :/ + to begin with i did it in
if(objectID == **** && absX == *** and absY == **** -- which takes even more code
and ive shortened the way of giving exp since the first time..
bit of trivia: per method your only allowed a certain amount of code and funnily enough 60 object methods is enough to break that limit so you have to spread it out and make it smaller and more compact so that it doesnt lagg the server.. the reason people use the gnome course is because it requires like 7 objects and people cant be bothered to code in new objects and most people wouldnt know where to start on making a code that forcefully moves your player to another direction even though its already in most clients! :O
anyways im done ranting now
 and then you have the problem of how should you link it.. using process - lagg ur server so much you can only have 3 players on or using an event manager - the wiser decision of the two... not perfect but not wasting server processes
[edit 2] oh and i would put it into a seperate class file and load it from there except im only just learning to experiment with stuff like that and havent quite learned about packaging and stuff yet :/ when i can do that i wont worry about this so much