GM characters should buy from anywhere.
This commit is contained in:
@@ -53,6 +53,8 @@ public class RequestBuyItem extends ClientBasePacket
|
|||||||
final PlayerInstance player = client.getActiveChar();
|
final PlayerInstance player = client.getActiveChar();
|
||||||
|
|
||||||
// Prevent buying items far from merchant.
|
// Prevent buying items far from merchant.
|
||||||
|
if (!player.isGM())
|
||||||
|
{
|
||||||
if (!(player.getTarget() instanceof MerchantInstance))
|
if (!(player.getTarget() instanceof MerchantInstance))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@@ -70,6 +72,7 @@ public class RequestBuyItem extends ClientBasePacket
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
double neededMoney = 0;
|
double neededMoney = 0;
|
||||||
final long currentMoney = player.getAdena();
|
final long currentMoney = player.getAdena();
|
||||||
|
Reference in New Issue
Block a user