mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
Junk Dealer Lucky Proc
This fixes a credit exploit. If you have an item which sells for a large amount to the Junk Dealer, you can spam sell/buy-back. The Lucky-proc sell price is not taken in to account when buying the item back. If you sell an item for 50mil, and proc Lucky, it sells for 60mil - a profit of 10mil. Buying it back only costs you 50mil. Rinse and repeat.
This commit is contained in:
@@ -306,9 +306,6 @@ public class smuggler extends script.base_script
|
||||
if (price > 0 && !hasObjVar(item, "quest_item"))
|
||||
{
|
||||
dictionary params = new dictionary();
|
||||
params.put("item", item);
|
||||
params.put("price", price);
|
||||
params.put("reshowSui", reshowSui);
|
||||
if (luck.isLucky(player, 0.01f))
|
||||
{
|
||||
float bonus = price * 0.2f;
|
||||
@@ -318,6 +315,9 @@ public class smuggler extends script.base_script
|
||||
}
|
||||
price += bonus;
|
||||
}
|
||||
params.put("item", item);
|
||||
params.put("price", price);
|
||||
params.put("reshowSui", reshowSui);
|
||||
if (fence)
|
||||
{
|
||||
blog("smuggler.sellJunkItem() this is a fence player");
|
||||
|
||||
Reference in New Issue
Block a user