Adblock breaks this site

TUT making something happen when you click on an object

Discussion in 'Archives' started by woah.no-ip.info, Dec 28, 2007.

  1. woah.no-ip.info

    woah.no-ip.info Active Member

    Joined:
    Nov 28, 2007
    Posts:
    150
    Referrals:
    0
    Sythe Gold:
    0
    TUT making something happen when you click on an object

    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
     
  2. xxxinfernoxx

    xxxinfernoxx Guest

    Referrals:
    0
    TUT making something happen when you click on an object

    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 :(
     
  3. BullsEye

    BullsEye Guru
    Banned

    Joined:
    Apr 4, 2007
    Posts:
    1,233
    Referrals:
    0
    Sythe Gold:
    0
    TUT making something happen when you click on an object

    This is great tut, i wont use it, but my friend will ;) thnx
     
< training any stats for free | Turdberries? >


 
 
Adblock breaks this site