mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 11:59:26 +00:00
New Quest Edit Menu
This commit is contained in:
1 parent
417fade180
commit
c3094988ea
6 files changed
+597
-374
No files matched your search
@@ -601,16 +601,6 @@ public class NoppesUtilServer {
|
||||
map.put(dialog.title, dialog.id);
|
||||
}
|
||||
|
||||
Map<String, Integer> send = new HashMap<String, Integer>();
|
||||
for(String key : map.keySet()){
|
||||
send.put(key, map.get(key));
|
||||
if(send.size() == 100){
|
||||
Server.sendData(player, EnumPacketClient.SCROLL_GROUP_PART, send);
|
||||
send = new HashMap<String, Integer>();
|
||||
}
|
||||
}
|
||||
Server.sendData(player, EnumPacketClient.SCROLL_GROUP, send);
|
||||
|
||||
sendScrollGroup(player, map);
|
||||
}
|
||||
|
||||
@@ -624,6 +614,17 @@ public class NoppesUtilServer {
|
||||
sendScrollData(player, map);
|
||||
}
|
||||
|
||||
public static void sendQuestGroup(EntityPlayerMP player, QuestCategory category) {
|
||||
if(category == null)
|
||||
return;
|
||||
HashMap<String,Integer> map = new HashMap<String,Integer>();
|
||||
for(Quest quest : category.quests.values()){
|
||||
map.put(quest.title, quest.id);
|
||||
}
|
||||
|
||||
sendScrollGroup(player, map);
|
||||
}
|
||||
|
||||
public static void sendTransportCategoryData(EntityPlayerMP player) {
|
||||
HashMap<String,Integer> map = new HashMap<String,Integer>();
|
||||
for(TransportCategory category : TransportController.getInstance().categories.values()){
|
||||
|
||||
Reference in new issue
Block a user