Quest Completion Effect Fix
This is a small fix for a effect upon quest completion, tested it and it works properly.
This commit is contained in:
@@ -26,6 +26,7 @@ import client.MapleClient;
|
||||
import net.AbstractMaplePacketHandler;
|
||||
import scripting.quest.QuestScriptManager;
|
||||
import server.quest.MapleQuest;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.data.input.SeekableLittleEndianAccessor;
|
||||
|
||||
/**
|
||||
@@ -67,6 +68,8 @@ public final class QuestActionHandler extends AbstractMaplePacketHandler {
|
||||
slea.readInt();
|
||||
if(quest.canComplete(player, npc)) {
|
||||
QuestScriptManager.getInstance().end(c, questid, npc);
|
||||
player.getClient().getSession().write(MaplePacketCreator.showSpecialEffect(9)); //show effect when completion
|
||||
player.getMap().broadcastMessage(player, MaplePacketCreator.showForeignEffect(player.getId(), 9));//show effect around players I guess
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,9 +223,8 @@ public class MapleQuest {
|
||||
a.run(c, selection);
|
||||
}
|
||||
|
||||
//dont seems to work...
|
||||
//c.getClient().getSession().write(MaplePacketCreator.showForeignEffect(12)); // Quest completion
|
||||
//c.getMap().broadcastMessage(c, MaplePacketCreator.showForeignEffect(c.getId(), 12), false);
|
||||
c.getClient().getSession().write(MaplePacketCreator.showForeignEffect(9)); // Quest completion
|
||||
c.getMap().broadcastMessage(c, MaplePacketCreator.showForeignEffect(c.getId(), 9), false); //use 9 instead of 12 for both
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user