TUT making something happen when you click on an object

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

TUT making something happen when you click on an object
  1. Unread #1 - Dec 28, 2007 at 1:07 AM
  2. woah.no-ip.info
    Joined:
    Nov 28, 2007
    Posts:
    150
    Referrals:
    0
    Sythe Gold:
    0

    woah.no-ip.info Active Member

    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
     
  3. Unread #2 - Jan 4, 2008 at 11:47 PM
  4. xxxinfernoxx
    Referrals:
    0

    xxxinfernoxx Guest

    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 :(
     
  5. Unread #3 - Jan 5, 2008 at 6:23 AM
  6. BullsEye
    Joined:
    Apr 4, 2007
    Posts:
    1,233
    Referrals:
    0
    Sythe Gold:
    0

    BullsEye Guru
    Banned

    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? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site