Jump to content

Question

Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...