noob island gear
This commit is contained in:
@@ -214,6 +214,7 @@ public class Contract extends AbstractGameObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this.getObjectUUID() == 1202){ //rune merchant
|
||||
for(MobEquipment me : this.sellInventory){
|
||||
switch(me.getItemBase().getUUID()){
|
||||
@@ -272,6 +273,7 @@ public class Contract extends AbstractGameObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this.getObjectUUID() == 1201){ //disc merchant
|
||||
for(MobEquipment me : this.sellInventory){
|
||||
if(me.getItemBase().getName().equals("Prospector")){
|
||||
@@ -281,6 +283,12 @@ public class Contract extends AbstractGameObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this.getObjectUUID() == 1502041) {//noob helper{
|
||||
for(MobEquipment me : this.sellInventory){
|
||||
me.magicValue = 1;
|
||||
}
|
||||
}
|
||||
return this.sellInventory;
|
||||
}
|
||||
|
||||
|
||||
@@ -233,7 +233,6 @@ public class Item extends AbstractWorldObject {
|
||||
this.value = rs.getInt("item_value");
|
||||
this.customName = rs.getString("item_name");
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static void _serializeForClientMsg(Item item, ByteBufferWriter writer)
|
||||
@@ -609,7 +608,7 @@ public class Item extends AbstractWorldObject {
|
||||
writer.putIntAt(serialized, indexPosition);
|
||||
}
|
||||
|
||||
public static Item createItemForPlayer(PlayerCharacter pc, ItemBase ib) {
|
||||
public static Item createItemForPlayer(PlayerCharacter pc, ItemBase ib, boolean fromNoob) {
|
||||
Item item = null;
|
||||
byte charges = 0;
|
||||
|
||||
@@ -1206,6 +1205,7 @@ public class Item extends AbstractWorldObject {
|
||||
}
|
||||
|
||||
public int getBaseValue() {
|
||||
|
||||
if (this.getItemBase() != null)
|
||||
return this.getItemBase().getBaseValue();
|
||||
return 0;
|
||||
|
||||
@@ -35,6 +35,7 @@ public class MobEquipment extends AbstractGameObject {
|
||||
private int pValue;
|
||||
private int sValue;
|
||||
int magicValue;
|
||||
public boolean fromNoob = false;
|
||||
|
||||
private float dropChance = 0;
|
||||
|
||||
@@ -106,7 +107,6 @@ public class MobEquipment extends AbstractGameObject {
|
||||
|
||||
public static void serializeForVendor(MobEquipment mobEquipment, ByteBufferWriter writer, float percent) throws SerializationException {
|
||||
_serializeForClientMsg(mobEquipment, writer, false);
|
||||
int baseValue = mobEquipment.itemBase.getBaseValue() + mobEquipment.itemBase.getMagicValue();
|
||||
writer.putInt(mobEquipment.magicValue);
|
||||
writer.putInt(mobEquipment.magicValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user