Send server id with ExHeroList.
Contributed by Enryu.
This commit is contained in:
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.network.serverpackets;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.commons.network.PacketWriter;
|
import org.l2jmobius.commons.network.PacketWriter;
|
||||||
import org.l2jmobius.gameserver.model.StatSet;
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||||
@@ -50,7 +51,7 @@ public class ExHeroList implements IClientOutgoingPacket
|
|||||||
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
packet.writeS(hero.getString(Hero.ALLY_NAME, ""));
|
||||||
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
packet.writeD(0); // hero.getInt(Hero.ALLY_CREST, 0)
|
||||||
packet.writeD(hero.getInt(Hero.COUNT));
|
packet.writeD(hero.getInt(Hero.COUNT));
|
||||||
packet.writeD(0);
|
packet.writeD(Config.SERVER_ID);
|
||||||
packet.writeC(0); // 272
|
packet.writeC(0); // 272
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user