Hello, i like always with request help, i added Phoenix engine on l2jfrozen 1118rev, all good without errors, but when i spawn npc on click i get -> i have nothing to say to you
In previous l2jfrozens revs it's working. what can be bad?
@Override
public void onBypassFeedback(L2PcInstance player, String command)
{
if (command.startsWith("reg"))
{
EventManager.getInstance().registerPlayer(player);
}
if (command.startsWith("unreg"))
{
EventManager.getInstance().unregisterPlayer(player);
}
if (command.startsWith("list"))
{
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
TextBuilder sb = new TextBuilder();
sb.append("<html><body><center>Select an event to vote for it:<br>");
int i = 0;
for(String name: EventManager.getInstance().getEventNames())
{
i++;
sb.append (" <a action=\"bypass -h npc_"+objectId+"_"+i+"\">- "+name+" -</a> <br>");
}
sb.append("</center></body></html>
Weekend Of The Dwarfs Event!
The first event from a set of many, coming soon : 31 Jan - 2 Feb! A weekend dedicated to our hard working friends , dwarfs. During this weekend craft chance is increased by +10% and chance to obtain masterwork items is doubled. Spoil drop rate increased by 10%.
As you may have noticed, normal members cannot edit their own threads.
I have extended normal members to edit their own content up to 1440 minutes (24 hours or 1 day) after they made their topic/post.
To access unlimited edits of your contents, you need to upgrade to Premium or Gold Member .
Question
martuxas1
Hello, i like always with request help, i added Phoenix engine on l2jfrozen 1118rev, all good without errors, but when i spawn npc on click i get -> i have nothing to say to you
In previous l2jfrozens revs it's working. what can be bad?
it's database custom_npc
50001 31822 Event Manager 1 qqq 1 LineageMonster5.br_wooldie 10 16 80 male L2EventManager 40 20000000 40 8.5 3 40 43 30 21 20 20 0 0 8 40 5 30 253 0 333 0 0 0 25 120 Null 0 0 0 LAST_HIT
it's L2EventManagerInstance.java ->
package com.l2jfrozen.gameserver.model.actor.instance;
import com.l2jfrozen.gameserver.templates.L2NpcTemplate;
import com.l2jfrozen.gameserver.event.EventManager;
import javolution.text.TextBuilder;
import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
public class L2EventManagerInstance extends L2FolkInstance
{
private int objectId;
public L2EventManagerInstance(int objectId, L2NpcTemplate template)
{
super(objectId, template);
this.objectId = objectId;
}
@Override
public void onBypassFeedback(L2PcInstance player, String command)
{
if (command.startsWith("reg"))
{
EventManager.getInstance().registerPlayer(player);
}
if (command.startsWith("unreg"))
{
EventManager.getInstance().unregisterPlayer(player);
}
if (command.startsWith("list"))
{
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
TextBuilder sb = new TextBuilder();
sb.append("<html><body><center>Select an event to vote for it:<br>");
int i = 0;
for(String name: EventManager.getInstance().getEventNames())
{
i++;
sb.append (" <a action=\"bypass -h npc_"+objectId+"_"+i+"\">- "+name+" -</a> <br>");
}
sb.append("</center></body></html>
1 answer to this question
Recommended Posts