Jump to content
Sign in to follow this  
Chronicscape

Thieving Point System

Recommended Posts

Haven't seen this yet anywhere so I thought I would release. This can be used in the Thieving Guild area in lumbridge.

First off in Player.java look for:
[CODE]
private int SlayerPoints;
[/CODE]
Paste this underneath:
[CODE]
private int ThievingPoints;
[/CODE]
Again Look For:
[CODE]
public int getSlayerPoints() {
return slayerPoints;
}
[/CODE]
Then Put This Underneath That:
[CODE]
public int getThievingPoints() {
return ThievingPoints;
}

public void setThievingPoints(int Thievingpoints) {
this.ThievingPoints = Thievingpoints;
}
[/CODE]

Now open ObjectHandler.java and under Clicked 1 add this:
[CODE]
} else if (id == 52317) {
if (player.getInventory().getFreeSlots() < 1) {
player.getPackets().sendGameMessage("Not enough space in your inventory.");
return;
}
if (player.getSkills().getLevel(Skills.THIEVING) >= 30) {
player.setNextAnimation(new Animation(881));
player.setThievingPoints(player.getThievingPoints() + 2);
player.getSkills().addXp(17, 40);
player.getPackets().sendGameMessage("You Recieve 2 Thieving Points!");
} else {
player.getPackets()
.sendGameMessage(
"You need at least 30 thieving to steal from this dummy");
}
} else if (id == 52296) {
if (player.getInventory().getFreeSlots() < 1) {
player.getPackets().sendGameMessage("Not enough space in your inventory.");
return;
}
if (player.getSkills().getLevel(Skills.THIEVING) >= 60) {
player.setNextAnimation(new Animation(881));
player.setThievingPoints(player.getThievingPoints() + 5);
player.getSkills().addXp(17, 90);
player.getPackets().sendGameMessage("You Recieve 5 Thieving Points!");
} else {
player.getPackets()
.sendGameMessage(
"You need at least 60 thieving to steal from the chest");
}
} else if (id == 52299) {
if (player.getInventory().getFreeSlots() < 1) {
player.getPackets().sendGameMessage("Not enough space in your inventory.");
return;
}
if (player.getSkills().getLevel(Skills.THIEVING) >= 60) {
player.setNextAnimation(new Animation(881));
player.setThievingPoints(player.getThievingPoints() + 5);
player.getSkills().addXp(17, 90);
player.getPackets().sendGameMessage("You Recieve 5 Thieving Points!");
} else {
player.getPackets()
.sendGameMessage(
"You need at least 60 thieving to steal from the chest");
}
[/CODE]
Then under Clicked 3 Add this:
[CODE]
case "mark 1":
if (player.getInventory().getFreeSlots() < 1) {
player.getPackets().sendGameMessage("Not enough space in your inventory.");
return;
}
if (player.getSkills().getLevel(Skills.THIEVING) >= 10) {
player.setNextAnimation(new Animation(881));
player.setThievingPoints(player.getThievingPoints() + 1);
player.getSkills().addXp(17, 15);
player.getPackets().sendGameMessage("You Recieve 1 Thieving Point!");
} else {
player.getPackets()
.sendGameMessage(
"You need at least 10 thieving to steal from this dummy");
}
[/CODE]

So I was asked to release my shop data so kindly so I will... Here it is!
Inside Shop.java look for (oh and ik ur loyalty wont look like mine):
[CODE]
public static int[][] loyaltyPrices = { { 20958, 5000 }, { 22268, 9000 },
{ 20962, 5000 }, { 22270, 10000 }, { 20967, 5000 },
{ 22272, 8000 }, { 22280, 5000 }, { 22282, 9000 }, { 22284, 5000 },
{ 22286, 8000 }, { 20966, 5000 }, { 22274, 10000 },
{ 20965, 5000 }, { 22276, 8000 }, { 22288, 5000 }, { 22290, 8000 },
{ 22292, 5000 }, { 22294, 10000 }, { 22300, 7000 },
{ 22296, 5000 }, { 22298, 10000 }, { 22302, 9000 }, { 22899, 5000 },
{ 22901, 10000 }, { 22903, 15000 }, { 22905, 5000 }, { 22907, 10000 },
{ 22909, 15000 }, { 23848, 5000 }, { 23850, 10000 }, { 23852, 15000 },
{ 23854, 20000 }, { 23874, 20000 }, { 23876, 20000 }, { 25180, 200 },
{ 25181, 200 }, { 25182, 200 }, { 25183, 200 }, { 25184, 200 }, { 25185, 200 },
{ 25186, 200 }, { 25187, 200 }, { 25188, 200 }, { 25189, 200 }, { 25190, 200 },
{ 25191, 200 }, { 25192, 200 }, { 25193, 200 }, { 25194, 200 }, { 25195, 200 },
{ 25196, 200 }, { 25197, 200 }, { 25198, 200 }, { 25199, 200 }, { 25202, 2000 } };
[/CODE]

And then underneath that paste this:
[CODE]
public static int[][] thievingPrices = { { 5553, 50 }, { 5554, 50 }, { 5555, 50 }, { 5556, 50 },
{ 5557, 50 }, { 21480, 150 }, { 21481, 150 }, { 21482, 150 }, { 21483, 150 },
{ 10075, 250 }, { 20929, 350 }, { 10394, 500 }, { 23678, 1500 }, { 28002, 2500 },
{ 28003, 2500 }, { 25174, 4000 } };
[/CODE]

After that look for:
[CODE]
for (int i11 = 0; i11 < loyaltyPrices.length; i11++) {
[/CODE]

Add this below it:
[CODE]
for (int i11 = 0; i11 < thievingPrices.length; i11++) {
thievingShop = 2;
if (item.getId() == thievingPrices[i11][0]) {
if (player.getThievingPoints() < thievingPrices[i11][1] * quantity) {
player.getPackets().sendGameMessage("You need " + thievingPrices[i11][1] + " Thieving Points to buy this item!");
return;
} else
thievingShop = 2;
player.getPackets().sendGameMessage("You have bought a " + item.getDefinitions().getName() + " from the Thieving store.");
player.getInventory().addItem(thievingPrices[i11][0], 1);
player.setThievingPoints(player.getThievingPoints() - thievingPrices[i11][1]);
return;
}
}
[/CODE]

And unpackedShops.txt or where ever yours loads from use this:
[CODE]
38 -2 false - Thieving Shop Of Wonders - ID AMOUNT
[/CODE]
Save, Close, And Compile Then You Are Done! And Now You Have My Thieving System With Working Dummies And Chests In Thieving Guild In Lumbridge!
I Hope You All Enjoy This (Those that say/think they can do better not even reply because why post that if you can do it then prove it and dont talk about it be about it)!

Oh and heres images of thats I made this and it works:
[IMG]http://i49.tinypic.com/23r5lk9.png[/IMG] Edited by Chronicscape
Shop Data

Share this post


Link to post
Share on other sites
[quote name='Chronicscape']Haven't seen this yet anywhere so I thought I would release. This can be used in the Thieving Guild area in lumbridge.
Save, Close, And Compile Then You Are Done! And Now You Have My Thieving System With Working Dummies And Chests In Thieving Guild In Lumbridge!
I Hope You All Enjoy This (Those that say/think they can do better not even reply because why post that if you can do it then prove it and [COLOR="#FF0000"]dont talk about it be about it[/COLOR])![/QUOTE]

Remember them words.... anyway good job :D

Share this post


Link to post
Share on other sites
why do I need to remember those words lol im not the one going around posting unwanted comments just to get my post up like a few other forum goers in here. but yea thanks.

Share this post


Link to post
Share on other sites
Sorry was implyng it you i was just pointing it out for others viewing this thread :D

Share this post


Link to post
Share on other sites
ah ok lol kinda late so my head aint right atm lol

Share this post


Link to post
Share on other sites
Can you give me coords of thieving guild and code of shop please i need them thank you

Share this post


Link to post
Share on other sites
Sign in to follow this  

×