Ways you can use an object.
Well as you know their are numerous objects throughout the world of runescape, some clickable. Some not. Well im going to show you some of the ways you can make them useful.
Way I.
Don't want to code all that useless handlers for RuneCrafting? No problem.
Add this with your first click objects.
Code:
if(objectID == xxxx){
setAnimation(xxx);
addItem(555,1);
ant timer = 3;
sendMessage("You crafted a water rune.");
}
Now to explain that code.
First off, i won't give you the exact stuff because I want you to be creative. Use your minds (It's good for you.)
So wherever there is an XXXX or xxx you should put your own ID's in.
Now its a basic if statement nothing special.
addItem is the method that gives you an item.
setAnimation(xxx); is telling you to do an animation.
Say setAnimation(728); that would tell your player to do the RuneCrafting animation.
ant timer = 3; means that you have to wait 1.5 seconds to craft again. (stops massing)
Remember with that you have to multiply the number you want by 2. Say you want 3 seconds.
You put 6. :)
Get an Item from your Object
This is a more simplier code really using the addItem method you used before in the runecrafting.
so it'd look like
Code:
if(objectID == xxxx){
addItem(xxxx, x);
sendMessage("You got an item!");
}
I'll add more tommorow