Adblock breaks this site

[TUT] how to make objects do something on click

Discussion in 'RuneScape Miscellaneous' started by woah.no-ip.info, Aug 14, 2009.

Thread Status:
Not open for further replies.
  1. woah.no-ip.info

    woah.no-ip.info Active Member

    Joined:
    Nov 28, 2007
    Posts:
    150
    Referrals:
    0
    Sythe Gold:
    0
    [TUT] how to make objects do something on click

    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
    Code:
    case 7133:
    you should see
    Code:
    case 7133: // Nature rift
    CraftRunesRift("nature", 60, 100, 561, 5+playerLevel[20], 30, 791);
    break;
    after the break; add this example



    Code:
    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;
    Code:
    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
     
< need 76k partner 102 - 130 | How to dupe on a server.. >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site