Basically what this is doing is giving a way to make money for pk based servers. That way if you want you can make gold unspawnable! and still yet the players can gain gold based on there pking.
If you all like this stuff like this let me know and ill make more systems and release stuff similair to this.
This system hasn't been tested yet i just wrote the whole thing and havn't had the time to test it. so let me know of any glitchs/bugs
In ActionHandler add this under secondclickobject.
Code:
case 6163:
int easy = 7500;
int medium = 22500;
int hard = 50000;
int extreme = 75000;
int legend = 100000;
int amount = 1;
if (c.KC <= 20 && c.getItems().freeSlots() >=1)
{
c.getItems().addItem(995, easy);
c.getItems().addItem(1891, amount);
c.sendMessage("You obtain "+easy+" gold, you can obtain more the more kills you have!");
}
else if (c.KC >= 21 && c.KC <= 50 && c.getItems().freeSlots() >=1)
{
c.getItems().addItem(995, medium);
c.getItems().addItem(1891, amount);
c.sendMessage("You obtain "+medium+" gold, you can obtain more the more kills you have!");
}
else if (c.KC >= 51 && c.KC <= 75 && c.getItems().freeSlots() >=1)
{
c.getItems().addItem(995, hard);
c.getItems().addItem(1891, amount);
c.sendMessage("You obtain "+hard+" gold, you can obtain more the more kills you have!");
}
else if (c.KC >= 101 && c.getItems().freeSlots() >=1)
{
c.getItems().addItem(995, legend);
c.getItems().addItem(1891, amount);
c.sendMessage("You obtain "+legend+" gold, you can obtain more the more kills you have!");
}
else if (c.KC >= 76 && c.KC <= 100 && c.getItems().freeSlots() >=1)
{
c.getItems().addItem(995, extreme);
c.getItems().addItem(1891, amount);
c.sendMessage("You obtain "+extreme+" gold, you can obtain more the more kills you have!");
}
else
{
c.sendMessage("You need more slots to thieve from this stall");
}
break;
In integrated to work with KDR, Which i believe all bases nowadays have.