Jump to content

Npcbuffer To Npcbuffer For Vip Clan (Help)


Skunkk

Recommended Posts

Hi!

 Im tryng to make my npcbuffer only for Clan members vip and I need put some lines.

 

code part of Npcbuffer,java:

 

public String onFirstTalk(L2Npc npc, L2PcInstance player)
    {
        QuestState st = player.getQuestState(QUEST_LOADING_INFO);
        if (st == null)
        {
            st = newQuestState(player);
        }
        if (player.isGM())
        {
            if (SCRIPT_RELOAD)
            {
                return reloadPanel(st);
            }
            return rebuildMainHtml(st);
        }
        else if ((int) (System.currentTimeMillis() / 1000) > st.getInt("blockUntilTime"))
        {
                if (player.getClan().getVipId() == VIP_ID) // config Npcbuffer.ini  Vipid = 100
            {
                
                    if (!BUFF_WITH_KARMA && (player.getKarma() > 0))

 

 

I implemented a variable in L2clan.java code vipId and  added in clan_data database and I need to know how can I make to the npcbuffer get only clan member where taking ClanId with the vipId from database and get access for use service buffer?

 

I hope is understood :)

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...