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>
@Hitcher I agree 100%! Are you running a live server using MyExt64 or just experimenting? I'm currently creating my IDA db's so i can start adding more stuff into the extender.
I don't understand why you are so offended and aggressive, who allowed you to disrespect me or call me in any way? Did I insulted you? You act like a angry kid, grow up boy.
@Maxtor@Celestino
The administrators of this forum can access everything I've sent...
Your move won't work on me. Hahahaha!
Getting into the parameters and editing the HTMLs of websites and claiming it's real used to be really cool among true friends.
@jtos So, is this also true? 🤣😂🤣😂🤣😂🤣
Your joke still hasn't been better than mine. Hahahah!
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