[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.
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).
Well I hope you know what this is.
Okay, this was my little tutorial, hope it help's out noobs.
End