Thread: [PI] Object Help [PI]

Results 1 to 3 of 3
  1. #1 [PI] Object Help [PI] 
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    How do I get mage bank levers and the slash webs to work? and the taverly dungeon obstacle pipe? Noob question I know ...
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Nov 2010
    Posts
    508
    Thanks given
    5
    Thanks received
    61
    Rep Power
    0
    actionhandler.java
    Reply With Quote  
     

  3. #3  
    #packeting

    God's Avatar
    Join Date
    Feb 2011
    Posts
    1,007
    Thanks given
    315
    Thanks received
    115
    Rep Power
    181
    Ok, so heres what you do

    go to actionhandler and in your first click object method, add a case for the object id...

    then in that case do somthing like this, to delete the object. and send a message

    case ****:
    c.getPA().checkObjectSpawn(-1, x, y, 0, 10); //spider web coords
    c.sendMessage("You slash throught the web.");
    break;

    hope this helped


    EDIT: my case:

    Code:
    case 733:
    			c.startAnimation(451);
    			if (Misc.random(1) == 1) {
    				c.getPA().removeObject(c.objectX, c.objectY);
    				c.sendMessage("You slash the web.");
    			} else {
    				c.sendMessage("You fail to slash the webs.");
    			}
    			if (c.objectX == 3158 && c.objectY == 3951) {
    				new Object(734, c.objectX, c.objectY, c.heightLevel, 1, 10, 733, 50);
    			} else {
    				new Object(734, c.objectX, c.objectY, c.heightLevel, 0, 10, 733, 50);
    			}
    		break;




    LOL^

    [Today 12:51 AM] Stewie: If at first you don't succeed, you probably just realized you're a woman.

    ...oh stewie
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 176
    Last Post: 06-02-2011, 02:41 AM
  2. [PI] Object -1?
    By Mark in forum Help
    Replies: 4
    Last Post: 10-31-2010, 04:16 PM
  3. 508 Object Def & Object Models
    By mige5 in forum Requests
    Replies: 0
    Last Post: 03-11-2010, 08:05 PM
  4. Need help with object
    By TimeWarp in forum Help
    Replies: 13
    Last Post: 11-06-2008, 04:37 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •