Thread: Thieving stalls give items

Results 1 to 6 of 6
  1. #1 Thieving stalls give items 
    Registered Member
    Join Date
    Mar 2011
    Posts
    569
    Thanks given
    146
    Thanks received
    65
    Rep Power
    52
    Im using PI and im wondering how to make thieving stalls give you items. This is what my actionhandler code looks like right now for one of my stalls.
    case 4877:
    c.turnPlayerTo(obX, obY);
    c.getThieving().stealFromStall(995,6000 + Misc.random(9000), 180, 75);
    Reply With Quote  
     

  2. #2  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    c.getThieving().stealFromStall(itemId,1, 180, 75);
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2011
    Posts
    569
    Thanks given
    146
    Thanks received
    65
    Rep Power
    52
    Got errors.
    src\server\model\players\ActionHandler.java:860: cannot find symbol
    symbol : variable itemId
    location: class server.model.players.ActionHandler
    c.getThieving().stealFromStall(itemId,1, 1121, 1
    );
    ^
    src\server\model\players\ActionHandler.java:866: cannot find symbol
    symbol : variable itemId
    location: class server.model.players.ActionHandler
    c.getThieving().stealFromStall(itemId,1, 1121, 2
    5);
    ^
    src\server\model\players\ActionHandler.java:872: cannot find symbol
    symbol : variable itemId
    location: class server.model.players.ActionHandler
    c.getThieving().stealFromStall(itemId,1, 1121, 5
    0);
    ^
    src\server\model\players\ActionHandler.java:878: cannot find symbol
    symbol : variable itemId
    location: class server.model.players.ActionHandler
    c.getThieving().stealFromStall(itemId,1, 1121, 7
    5);
    ^
    src\server\model\players\ActionHandler.java:884: cannot find symbol
    symbol : variable itemId
    location: class server.model.players.ActionHandler
    c.getThieving().stealFromStall(itemId,1, 1121, 9
    0);
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    5 errors
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    =.=.. clearly replace itemId with the item u want to be gained
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Mar 2011
    Posts
    569
    Thanks given
    146
    Thanks received
    65
    Rep Power
    52
    HA, oh. i didnt even notice that. Sorry.

    EDIT: it only gives me one item the first time i use the stall. It doesnt give me an item everytime i thieve the stall.
    Reply With Quote  
     

  6. #6  
    Donator
    Ashley's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    411
    Thanks given
    175
    Thanks received
    70
    Rep Power
    67
    What item do you want it to give, whats the item id?
    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. thieving stalls
    By redbunny in forum Help
    Replies: 1
    Last Post: 02-09-2012, 05:46 PM
  2. Thieving Stalls [PI]
    By dizzle in forum Help
    Replies: 3
    Last Post: 12-13-2011, 08:48 PM
  3. Replies: 28
    Last Post: 01-31-2010, 05:07 AM
  4. Thieving on stalls
    By Sir Lethal in forum Requests
    Replies: 3
    Last Post: 10-22-2009, 05:49 AM
  5. [delta] stalls give items??
    By big king in forum Requests
    Replies: 5
    Last Post: 06-06-2009, 06:42 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •