mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-12 22:45:31 -04:00
Enabled heroic dungeons, fixed radials
getOptionType() seems to work now
This commit is contained in:
@@ -328,10 +328,10 @@ public class NGECore {
|
||||
terrainService.addPlanet(14, "kashyyyk_hunting", "terrain/kashyyyk_hunting.trn", true);
|
||||
terrainService.addPlanet(15, "kashyyyk_north_dungeons", "terrain/kashyyyk_north_dungeons.trn", true);
|
||||
terrainService.addPlanet(16, "kashyyyk_rryatt_trail", "terrain/kashyyyk_rryatt_trail.trn", true);
|
||||
terrainService.addPlanet(17, "kashyyyk_south_dungeons", "terrain/kashyyyk_south_dungeons.trn", true);
|
||||
terrainService.addPlanet(17, "kashyyyk_south_dungeons", "terrain/kashyyyk_south_dungeons.trn", true);*/
|
||||
terrainService.addPlanet(18, "adventure1", "terrain/adventure1.trn", true);
|
||||
terrainService.addPlanet(19, "adventure2", "terrain/adventure2.trn", true);
|
||||
terrainService.addPlanet(20, "dungeon1", "terrain/dungeon1.trn", true);*/
|
||||
terrainService.addPlanet(20, "dungeon1", "terrain/dungeon1.trn", true);
|
||||
//Space Zones
|
||||
// NOTE: Commented out for now until space is implemented. No need to be loaded into memory when space is not implemented.
|
||||
/*terrainService.addPlanet(21, "space_corellia", "terrain/space_corellia.trn", true);
|
||||
|
||||
@@ -59,41 +59,30 @@ public class ObjectMenuResponse extends ObjControllerObject {
|
||||
|
||||
@Override
|
||||
public IoBuffer serialize() {
|
||||
int size = 37;
|
||||
byte counter = 0;
|
||||
|
||||
IoBuffer result = IoBuffer.allocate(100).order(ByteOrder.LITTLE_ENDIAN);
|
||||
result.setAutoExpand(true);
|
||||
for (RadialOptions radialOption : radialOptions) {
|
||||
size += 5 + getUnicodeString(radialOption.getDescription()).length;
|
||||
}
|
||||
|
||||
IoBuffer result = IoBuffer.allocate(size).order(ByteOrder.LITTLE_ENDIAN);
|
||||
result.putInt(ObjControllerMessage.OBJECT_MENU_RESPONSE);
|
||||
result.putLong(ownerId);
|
||||
result.putInt(0);
|
||||
result.putLong(targetId);
|
||||
result.putLong(ownerId);
|
||||
|
||||
int size = radialOptions.size();
|
||||
result.putInt(size);
|
||||
|
||||
if(size > 0) {
|
||||
byte counter = 0;
|
||||
for(RadialOptions radialOption : radialOptions) {
|
||||
result.put(++counter);
|
||||
result.put(radialOption.getParentId());
|
||||
result.putShort(radialOption.getOptionId());
|
||||
//result.put(radialOption.getOptionType());
|
||||
result.put((byte) 3);
|
||||
|
||||
if(radialOption.getDescription().length() > 0)
|
||||
result.put(getUnicodeString(radialOption.getDescription()));
|
||||
else
|
||||
result.putInt(0);
|
||||
|
||||
}
|
||||
result.putInt(radialOptions.size());
|
||||
for (RadialOptions radialOption : radialOptions) {
|
||||
result.put(++counter);
|
||||
result.put(radialOption.getParentId());
|
||||
result.putShort(radialOption.getOptionId());
|
||||
result.put(radialOption.getOptionType()); //result.put((byte) 3);
|
||||
result.put(getUnicodeString(radialOption.getDescription()));
|
||||
}
|
||||
result.put(radialCount);
|
||||
|
||||
int packetSize = result.position();
|
||||
result = IoBuffer.allocate(packetSize).put(result.array(), 0, packetSize);
|
||||
return result.flip();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ public class TradeService implements INetworkDispatch{
|
||||
}
|
||||
|
||||
else {
|
||||
if(objectToTrade.getAttributes()/*.toString()*/.containsKey("no_trade")) {
|
||||
if(objectToTrade.getAttributes().containsKey("no_trade")) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user