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:
Waverunner
2014-08-15 11:34:58 -04:00
parent d25286a3c7
commit ffbe209207
20 changed files with 878 additions and 154 deletions
+5 -2
View File
@@ -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());
}