From 38fab84e1e8d2bfbca253d76257214e248c981e9 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 22 Nov 2020 06:10:53 +0000 Subject: [PATCH] Fixed losing mentor coins after restart. Contributed by Sero. --- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- .../game/data/scripts/ai/others/MentorGuide/MentorGuide.java | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 33502c6fb1..9a88629564 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -525,7 +525,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 33502c6fb1..9a88629564 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -525,7 +525,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 33502c6fb1..9a88629564 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -525,7 +525,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 33502c6fb1..9a88629564 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -525,7 +525,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 6846b316bc..317f084224 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -523,7 +523,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 6846b316bc..317f084224 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -523,7 +523,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 1fa711d814..2c891425d6 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -516,7 +516,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 1fa711d814..2c891425d6 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -516,7 +516,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg); diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java index 1fa711d814..2c891425d6 100644 --- a/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java +++ b/L2J_Mobius_8.0_Homunculus/dist/game/data/scripts/ai/others/MentorGuide/MentorGuide.java @@ -516,7 +516,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader private void sendMail(int objectId, String title, String body, int itemId, long amount) { - final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC); + final Message msg = new Message(objectId, title, body, MailType.MENTOR_NPC); final Mail attachments = msg.createAttachments(); attachments.addItem(getName(), itemId, amount, null, null); MailManager.getInstance().sendMessage(msg);