Thread: Whats wrong with my thieving code? [EMULOUS]

Results 1 to 2 of 2
  1. #1 Whats wrong with my thieving code? [EMULOUS] 
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    Code:
    			case 2562:
    				c.getItems().addItem(995, 7500);
    				c.sendMessage("You thiev from the stall and get 7.5K.");
    		c.getPA().addSkillXP(2 * Config.THIEV_EXP, 17);
    		c.getPA().refreshSkill(17);
    			break;

    i stick it in case FIRST_CLICK: in ClickObject.java



    pls help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2009
    Posts
    200
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Put it under second click in the ActionHandler class.

    An example of mine:

    Spoiler for Help:
    public void secondClickObject(int objectType, int objectX, int objectY) {
    c.clickObjectType = 0;
    c.clickObjectType = 0;
    c.objectX = objectX;
    c.objectY = objectY;
    c.turnPlayerTo(objectX, objectY);
    switch(objectType) {

    case 4876:
    c.getThieft().stoleStall(c, "General Stall", "You steal a pot from the general stall.", 1, 400, 1931, 1, 881);
    break;.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •