Thread: [First tutorial] Theiving Stalls (Explained) (ObjectOption1) EASY [Thieving Stalls]

Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1 [First tutorial] Theiving Stalls (Explained) (ObjectOption1) EASY [Thieving Stalls] 
    Registered Member

    Join Date
    Jul 2007
    Posts
    268
    Thanks given
    0
    Thanks received
    1
    Rep Power
    101
    [First tutorial] Theiving Stalls (Explained) (ObjectOption1) EASY [Thieving Stalls]

    ----------------------------------------------------------------------------------------------

    Note:
    This isnt a system or anything like it, but in my opinion thieving stalls dont need a system, it only will cost more code space.
    I know there's a change I am getting flamed now cuz its easy as pie, Idc.


    Difficulty: -1/10

    Edited file: ObjectOption1.java

    Tested on: Espeon

    Start


    Open ObjectOption1.java, and search for:

    Code:
            switch (p.clickId) {
    Under it add:

    Code:
    
    	case 34384: //bake stall Coin's500 Lvl0
    	p.clickDelay = 5;
    	p.requestAnim(881, 0);
    	Engine.playerItems.addItem(p, 995, 500);
    	p.appendExperience(500, 17);
    	p.getActionSender().sendMessage(p, "You stole 500 Coin's.");
    	break;
    
    	case 34383: //silk stall Coin's1000 Lvl15
    	p.clickDelay = 5;
    	if (p.skillLvl[17] <= 15);
    	p.requestAnim(881, 0);
    	Engine.playerItems.addItem(p, 995, 1000);
    	p.appendExperience(750, 17);
    	p.getActionSender().sendMessage(p, "You stole 1000 Coin's.");
    	break;
    
    	case 34387: //Fur stall Coin's2000 Lvl30
    	p.clickDelay = 5;
    	if (p.skillLvl[17] <= 30);
    	p.requestAnim(881, 0);
    	Engine.playerItems.addItem(p, 995, 2000);
    	p.appendExperience(1250, 17);
    	p.getActionSender().sendMessage(p, "You stole 2000 Coin's.");
    	break;
    
    	case 34382: //silver stall Coin's5000 Lvl50
    	p.clickDelay = 5;
    	if (p.skillLvl[17] <= 50);
    	p.requestAnim(881, 0);
    	Engine.playerItems.addItem(p, 995, 5000);
    	p.appendExperience(1250, 17);
    	p.getActionSender().sendMessage(p, "You stole 5000 Coin's.");
    	break;
    
    	case 34386: //spice stall Coin's10000 Lvl65
    	p.clickDelay = 5;
    	if (p.skillLvl[17] <= 65);
    	p.requestAnim(881, 0);
    	Engine.playerItems.addItem(p, 995, 10000);
    	p.appendExperience(3250, 17);
    	p.getActionSender().sendMessage(p, "You stole 10000 Coin's.");
    	break;
    
    	case 34385: //Gem stall Coin's15000 Lvl80
    	p.clickDelay = 5;
    	if (p.skillLvl[17] <= 80);
    	p.requestAnim(881, 0);
    	Engine.playerItems.addItem(p, 995, 15000);
    	p.appendExperience(5000, 17);
    	p.getActionSender().sendMessage(p, "You stole 15000 Coin's.");
    	break;
    Save, close, compile.

    You have know added most Thieving stall's, here comes the explanation so you can add more, and know how to change the ammount of Cach, level Requirment's etc. (I explain the cake stall)

    Explanation:

    Code:
    	case 34384: //bake stall Coin's500 Lvl0
    case ##### stand's for the ID of the object.


    Code:
    	p.clickDelay = 5;
    The click delay stand's for how much second's you have to wait between thieves (However this can be used for anything off course).


    Code:
    	p.requestAnim(881, 0);
    Stand's for wich emote it must do (881 is a Thieving emote).


    Code:
    	Engine.playerItems.addItem(p, 995, 500);
    This add's a certain item, 995 is the item id (995 is Coins), 500 is the ammount.


    Code:
    	p.appendExperience(500, 17);
    This add's experience to a certain skill, 500 is the ammount of xp, 17 is the skill number.


    Code:
    	p.getActionSender().sendMessage(p, "You stole 500 Coin's.");
    This send's a message to your public chat. (like: You swing your axe at the tree).


    Code:
    	break;
    Well I hope you know what this is.



    Okay, this was my little tutorial, hope it help's out noobs.

    End
    Reply With Quote  
     

  2. #2  
    BUUUUUUHHHHHHRGUR

    Maffchew's Avatar
    Join Date
    Aug 2009
    Age
    27
    Posts
    766
    Thanks given
    3
    Thanks received
    6
    Rep Power
    620
    Nice, but try to explain how to add the stalls using static Objects
    Quote Originally Posted by somebodyy
    hey can you tell me what to look for in NpcCombat for the anti-leech thing cuase i have no idea
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jul 2007
    Posts
    268
    Thanks given
    0
    Thanks received
    1
    Rep Power
    101
    /Close

    Isn't even working lol, was in androugne on my server and tested it, none are working, can any1 explain why lol?
    Reply With Quote  
     

  4. #4  
    Ash
    Guest
    Nice Tut.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Nike Airz's Avatar
    Join Date
    Dec 2008
    Posts
    291
    Thanks given
    2
    Thanks received
    0
    Rep Power
    194
    Quote Originally Posted by godzilla View Post
    /Close

    Isn't even working lol, was in androugne on my server and tested it, none are working, can any1 explain why lol?
    Are those the right cases?
    Reply With Quote  
     

  6. #6  
    Super Donator

    Janizary's Avatar
    Join Date
    Jul 2009
    Age
    19
    Posts
    2,132
    Thanks given
    109
    Thanks received
    137
    Rep Power
    1031
    Quote Originally Posted by godzilla View Post
    /Close

    Isn't even working lol, was in androugne on my server and tested it, none are working, can any1 explain why lol?
    Check your object cases, they may be incorrect. If you wrote this tut and can't get it right I smell leechy leechy.

    [Only registered and activated users can see links. ]
    Quote Originally Posted by Pirlo View Post
    I don't think the cold war existed during/before WWI
    Reply With Quote  
     

  7. #7  
    Secret-
    Guest
    I think When clicking stalls it doesnt use Object Option 1 it sends packet id 190
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jul 2007
    Posts
    268
    Thanks given
    0
    Thanks received
    1
    Rep Power
    101
    not leechy leechy, I just added, and thouth it be allright, so I didnt mind testing it.

    Also it doesnt send unhandeled object in the cmd box, so the case's are right.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Nike Airz's Avatar
    Join Date
    Dec 2008
    Posts
    291
    Thanks given
    2
    Thanks received
    0
    Rep Power
    194
    Try to change the case or put this code in objectoption2.
    Reply With Quote  
     

  10. #10  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by MaffchewBro View Post
    Nice, but try to explain how to add the stalls using static Objects
    That made no sense?

    Reply With Quote  
     

Page 1 of 3 123 LastLast

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
  •