• Log in or sign up for an account here: https://www.sythe.org/login

TUT making something happen when you click on an object

woah.no-ip.info

Active Member
Joined
Nov 28, 2007
Sythe Gold
0
Messages
150
Location
Blinds shut with the keyboard at a safe but reachable distance
please post some positive feedback!
f you need any help just post
in order to give you xp or something by clickinan object
first open your client.java and search for case 7133:
you should see

case 7133: // Nature rift
CraftRunesRift("nature", 60, 100, 561, 5+playerLevel[20], 30, 791);
break;

after the break; add this example



case 299: // hay bail your usingchange this to the id of the object
sendMessage("you rape the hay bail"); // this says you raped the hay bail
teleportToX = 2423;
teleportToY = 3076; //this teleports you somewhere
heightLevel = 1; // this gives the height level
setAnimation(3170); // this would be an electricute animation they have a list on moparscape forums
addSkillXP((750*playerLevel[4]), 2);// this adds 750 xp to your strength (the strength skill is identified as the number 2
addItem(995, 100); this give 100 gp gp is identified as 995
break;

stair/ ladder example
case 4494:
teleportToX = absX;
teleportToY = absY;
heightLevel -= 1;
break;

this brings you down 1 level identifed as
heightLevel -= 1;
the rest just identifies your x and y coords

anything besides the break and the object id
 
ok, im confused. how do i put an object down, like a portal. and then when you click it make it tele you somewhere? :S
good tut though!
im just newb :(
 
This is great tut, i wont use it, but my friend will ;) thnx
 
Runescape Gamblingrunescape gambling
Back
Top