Prevent initializing Npc variables with NpcAction.
This commit is contained in:
parent
1d0ec2298b
commit
49439e8db4
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user