Jump to content

Recommended Posts

Posted

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 :)

 

 

 

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


  • Posts

    • Server has npc buffer but 2nd class donate or make what mid rate server is that...
    • i had sent you in discord i think already the link seen you asking in mobius forum  anyway here you go  https://www.mediafire.com/folder/6oh7l7hf34xr9/C1
    • Hello all.   I have some strange errors on server side and the right bar of Open Beta STORE is not showing anymore after changing server ip.   Errors: [11:34:12] TriggerParser: Exception: l2.gameserver.data.xml.parser.exception.InvalidAttributeValueException: Bypass trigger is calling "classMaster#tryShowIcon" action which is missing! l2.gameserver.data.xml.parser.exception.InvalidAttributeValueException: Bypass trigger is calling "classMaster#tryShowIcon" action which is missing! at l2.gameserver.data.xml.parser.TriggerParser.parseBypasses(Unknown Source) ~[server.jar:?] at l2.gameserver.data.xml.parser.TriggerParser.parseTrigger(Unknown Source) ~[server.jar:?] at l2.gameserver.data.xml.parser.TriggerParser.readData(Unknown Source) ~[server.jar:?] at l2.commons.data.xml.AbstractParser.parseDocument(Unknown Source) ~[server.jar:?] at l2.commons.data.xml.AbstractFileParser.parse(Unknown Source) [server.jar:?] at l2.commons.data.xml.AbstractParser.load(Unknown Source) [server.jar:?] at l2.gameserver.data.xml.Parsers.parseAll(Unknown Source) [server.jar:?] at l2.gameserver.GameServer.<init>(Unknown Source) [server.jar:?] at l2.gameserver.GameServer.main(Unknown Source) [server.jar:?]   java.lang.IllegalArgumentException: Couldn't find Config "closedBeta" in file "shop" at l2.commons.config.ConfigManager.getConfigValue(Unknown Source) ~[server.jar:?] at l2.commons.config.ConfigManager.getObjectValue(Unknown Source) ~[server.jar:?] at l2.ext.closedbeta.ClosedBeta.isBetaTester(ClosedBeta.java:32) ~[?:?] at l2.ext.closedbeta.ClosedBeta$OnEnterWorld.onEnterWorld(ClosedBeta.java:23) ~[?:?] at l2.gameserver.model.actor.listener.PlayerListenerList.onEnterWorld(Unknown Source) ~[server.jar:?] at l2.gameserver.network.l2.c2s.EnterWorld.runImpl(Unknown Source) [server.jar:?] at l2.gameserver.utils.ExecutionRecorder.wrapInPacketExecution(Unknown Source) [server.jar:?] at l2.gameserver.network.l2.c2s.L2GameClientPacket.run(Unknown Source) [server.jar:?] at l2.commons.net.nio.impl.MMOExecutableQueue.run(Unknown Source) [server.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:840) [?:?] Caught at: l2.gameserver.network.l2.c2s.EnterWorld.runImpl(Unknown Source)   I am using lucera files, Ertheia version.   Any help would be gladly appreciated. Thank you.
    • u cant change anything in facebook without a password, so my tiktok case wasnt a hijack.
    • Exactly, if somebody hijacks ur sessions, then u wont see a new device in your "Devices List". And with that hijacked session you are able to change whatever you want unless you have 2FA enabled. And I believe changing a group owner doesn't trigger 2FA.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock