Jump to content

[Share] Pres on a item and spawn a mob


DominiQue

Recommended Posts

  • 3 months later...
  • 4 months later...

I can't make it work i follow this steps:

 

Copy the code and put VendettaItem.java inside of C:\server\gameserver\data\scripts\handlers\itemhandlers i change the imports to com.l2jserver NO ERRORS but when i press the item in game nothing happend why?

 

Maybe i need registrer the item in MasterHandler.java? if yes how? i mean

 

import handlers.itemhandlers.VendettaItem;  if i make this i get Error in Console:

 

fgdfgdgdfgd.jpg

 

So how i an get this working? Thx.

 

 

 

 

Link to comment
Share on other sites

Now i m getting this error only:

 

njmgnnnnnn.jpg

 

*/

   package com.l2jserver.gameserver.handler.itemhandlers;

   

   import com.l2jserver.gameserver.ThreadPoolManager;

   import com.l2jserver.gameserver.datatables.NpcTable;

   import com.l2jserver.gameserver.handler.IItemHandler;

   import com.l2jserver.gameserver.idfactory.IdFactory;

   import com.l2jserver.gameserver.model.L2ItemInstance;

   import com.l2jserver.gameserver.model.L2Spawn;

   import com.l2jserver.gameserver.model.L2World;

   import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

   import com.l2jserver.gameserver.model.actor.L2Playable;

   import com.l2jserver.gameserver.network.SystemMessageId;

   import com.l2jserver.gameserver.serverpackets.SystemMessage;

   import com.l2jserver.gameserver.templates.L2NpcTemplate;

   

   /**

   * @author x.v3ndetta@yahoo.com

   *

   */

   public class VendettaItem implements IItemHandler

 

and i register this in Masterhadler

 

               ItemHandler.getInstance().registerItemHandler(new EventItem());

               ItemHandler.getInstance().registerItemHandler(new VendettaItem());

_log.config("Loaded " + ItemHandler.getInstance().size() + " ItemHandlers");

 

Why the -beep- say can't resolve the type?????

 

EDIT: FIXED.

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...