Prevent initializing Npc variables with NpcAction.

This commit is contained in:
MobiusDevelopment 2020-01-28 00:10:02 +00:00
parent 1d0ec2298b
commit 49439e8db4
15 changed files with 15 additions and 15 deletions

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}

View File

@ -123,7 +123,7 @@ public class NpcAction implements IActionHandler
}
// Open a chat window on client with the text of the Npc
if (npc.getVariables().getBoolean("eventmob", false))
if (npc.hasVariables() && npc.getVariables().getBoolean("eventmob", false))
{
GameEvent.showEventHtml(player, String.valueOf(target.getObjectId()));
}