Jump to content

Recommended Posts

Posted

Example :

 

/**

* @author eKo

*

*/

public class ViP implements IItemHandler

{

private static final int[] ITEM_IDS = { itemID };

 

public void useItem(L2PlayableInstance playable, L2ItemInstance item)

    {

      if (!(playable instanceof L2PcInstance))

        return;

      L2PcInstance activeChar = (L2PcInstance)playable;

      int itemId = item.getItemId();

     

  if (itemId == itemID)

      {

                activeChar.setAccessLevel(10);

 

String htmFile = "data/html/mods/vipinfo.htm";

String htmContent = HtmCache.getInstance().getHtm(htmFile);

 

NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);

infoHtml.setHtml(htmContent);

activeChar.sendPacket(infoHtml);

      }

    }

 

 

 

    public int[] getItemIds()

    {

    return ITEM_IDS;

    }

 

i sets char on 10 access lvl and shows a vip html

 

where i put these lines?

  • 1 month later...
Posted

dudes i have every time the same problem on enterworld.java

 

here

 

if (activeChar.getAccessLevel() == 10)

Announcements.getInstance().announceToAll((new StringBuilder()).append("Char Vip ").append(activeChar.getName()).append(" Is Currently Online.").toString());

  • 3 weeks later...
  • 1 month later...
  • 4 weeks later...
  • 1 year later...
Posted

HI, could this please be put together in a  alrdy made file so i can easily just copy them to my l2j high five server, i have no idea how to put these in manualy. Looks great and would really love to have thanks

 

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...