forked from MagicBane/Server
NPC safezone sell% = 0
This commit is contained in:
@@ -122,7 +122,11 @@ public class NPC extends AbstractCharacter {
|
|||||||
// this.buyPercent = rs.getFloat("npc_buyPercent");
|
// this.buyPercent = rs.getFloat("npc_buyPercent");
|
||||||
|
|
||||||
this.buyPercent = .33f;
|
this.buyPercent = .33f;
|
||||||
this.sellPercent = 1;
|
if(ZoneManager.findSmallestZone(this.loc) != null && ZoneManager.findSmallestZone(this.loc).getSafeZone() == 1){
|
||||||
|
this.sellPercent = 0;
|
||||||
|
}else{
|
||||||
|
this.sellPercent = 1;
|
||||||
|
}
|
||||||
|
|
||||||
this.setRot(new Vector3f(0, rs.getFloat("npc_rotation"), 0));
|
this.setRot(new Vector3f(0, rs.getFloat("npc_rotation"), 0));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user