mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-05 20:12:51 -04:00
Added handling of retrieve item quests, Added handling of giving quest rewards
Note: All changes may not be listed! Please view changes to get a better idea, lots of changes compared to what I had before! Changed ShowLootBox to use object id's instead of SWGObject Added "A Speeder For Me" quest Fixed quests so they advance to the next step properly and complete properly
This commit is contained in:
@@ -1307,7 +1307,7 @@ public class PlayerService implements INetworkDispatch {
|
||||
|
||||
inventory.add(item);
|
||||
|
||||
ObjControllerMessage objController = new ObjControllerMessage(11, new ShowLootBox(reciever.getObjectID(), item));
|
||||
ObjControllerMessage objController = new ObjControllerMessage(11, new ShowLootBox(reciever.getObjectID(), item.getObjectID()));
|
||||
client.getSession().write(objController.serialize());
|
||||
}
|
||||
|
||||
@@ -1331,11 +1331,14 @@ public class PlayerService implements INetworkDispatch {
|
||||
if (inventory == null)
|
||||
return;
|
||||
|
||||
ArrayList<Long> itemsId = new ArrayList<Long>();
|
||||
|
||||
for (SWGObject obj : items) {
|
||||
inventory.add(obj);
|
||||
itemsId.add(obj.getObjectID());
|
||||
}
|
||||
|
||||
ObjControllerMessage objController = new ObjControllerMessage(11, new ShowLootBox(reciever.getObjectID(), items));
|
||||
ObjControllerMessage objController = new ObjControllerMessage(11, new ShowLootBox(reciever.getObjectID(), itemsId));
|
||||
client.getSession().write(objController.serialize());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user