Jump to content
  • 0

Please who can help me for this code L2jEsios Clan Manager


Question

Posted

guys please who can help me for code clan manager l2jesioo

 

import sys

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

from java.util import Iterator

import com.l2jesios.gameserver.model.quest.Quest;

import com.l2jesios.gameserver.model.quest.QuestState;

import com.l2jesios.gameserver.datatables.SkillTable;

import com.l2jesios.gameserver.datatables.SkillTable.FrequentSkill;

import com.l2jesios.gameserver.model.L2ItemInstance;

import com.l2jesios.gameserver.model.L2Object;

import com.l2jesios.gameserver.model.L2Party;

import com.l2jesios.gameserver.model.L2Skill;

import com.l2jesios.gameserver.model.actor.L2Attackable;

import com.l2jesios.gameserver.model.actor.L2Character;

import com.l2jesios.gameserver.model.actor.L2Npc;

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

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

import com.l2jesios.gameserver.model.itemcontainer.PcInventory;

import com.l2jesios.gameserver.model.quest.State;

import com.l2jesios.gameserver.network.serverpackets.ActionFailed;

import com.l2jesios.gameserver.network.serverpackets.WareHouseWithdrawalList;

import com.l2jesios.gameserver.util.Util;

 

 

qn = "6667_ClanManager"

 

NPC=[66667]

REQUESTED_ITEM=6393

REQUESTED_AMOUNT=25

NEW_REP_SCORE=3000000

QuestId    = 6667

QuestName  = "ClanManager"

QuestDesc  = "custom"

InitialHtml = "66667-1.htm"

 

print "Clan Manager (66667) Enabled..."

 

class Quest (JQuest) :

 

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 

def onEvent(self,event,st):

              htmltext = "<html><head><body>I have nothing to say you</body></html>"

              count=st.getQuestItemsCount(REQUESTED_ITEM)

              if event == "66667-clanOk.htm" :

                  if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8:

                      if st.getPlayer().isNoble() and count >= REQUESTED_AMOUNT:

                            htmltext=event

                            st.getPlayer().getClan().changeLevel(8)

                            st.playSound("ItemSound.quest_finish")

                            st.takeItems(REQUESTED_ITEM,REQUESTED_AMOUNT)

                      else :

                            htmltext="66667-no_clan.htm"

                            st.exitQuest(1)

                  else :

                      htmltext="66667-no_clan.htm"

                      st.exitQuest(1)

              elif event == "66667-repOk.htm" :

                  if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel() >= 5 and

 

st.getPlayer().getClan().getReputationScore() < NEW_REP_SCORE :

                      if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT:

                            htmltext=event

                            st.getPlayer().getClan().setReputationScore(NEW_REP_SCORE, 1);

                            st.playSound("ItemSound.quest_finish")

                            st.takeItems(REQUESTED_ITEM,REQUESTED_AMOUNT)

                      else :

                            htmltext="66667-no_points.htm"

                            st.exitQuest(1)

                  else :

                      htmltext="66667-no_points.htm"

                      st.exitQuest(1)

              return htmltext

 

def onTalk (self,npc,player):

  htmltext = "<html><head><body>I have nothing to say you</body></html>"

          st = player.getQuestState(qn)

          if not st : return htmltext

          npcId = npc.getNpcId()

          id = st.getState()

          if id == CREATED :

              htmltext="66667-1.htm"

          elif id == COMPLETED :

              htmltext = "<html><head><body>This quest have already been completed.</body></html>"

          else :

              st.exitQuest(1)

          return htmltext

 

 

QUEST = Quest(6667,qn,"custom")

CREATED    = State('Start', QUEST)

STARTING    = State('Starting', QUEST)

STARTED    = State('Started', QUEST)

COMPLETED  = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Good evening everyone! I wouldn't normally ask for help with something like this, but I'm honestly stuck and can't figure it out anymore. I have a C3 pack (I'll also include the link below since it took me a while to find a good one with everything needed to run it): (https://www.mediafire.com/file/glhnscql6hkd6ra/l2jnvc3_rev178_Greenhope_l2j_%2Bjava_%2Bsql.zip/file) The problem is that I'm completely stuck on one thing. No matter what I do, I can't log in. I keep getting a "wrong protocol" error. I've tried changing the protocol from 550–700 all the way to 1–999. I've tested many different C3 versions and every main system I could find, but I still haven't managed to log in successfully. I'm not sure if I'm doing something wrong when saving the .ini file after changing it to my server's IP address. If anyone could help me, I would really appreciate it. I'll keep the server online so that if someone is willing to assist, they can try logging in and help me figure out what's wrong. Server IP: 194.219.108.63 Thank you very much in advance to anyone who decides to take the time to help me. I'd really love to get this pack running properly and preserve it for the future.
    • Anosim Update   - New updated design is live - Free Numbers added on the mainpage - Use free numbers for activation - Receive SMS for free   ⸻   New Blog added Future news, updates and platform changes will be posted there   ⸻   Partner Section added New space for partners and integrations   ⸻   New Websites for Activation added   🇩🇪 Germany wg-gesucht.de dikidi.net 🇨🇭 Switzerland Tutti.ch Ricardo.ch 🇦🇺 Australia Gumtree.com.au 🇬🇧 UK Askable.com   ⸻   New Countries added for Activation   🇦🇷 Argentina 🇧🇬 Bulgaria 🇨🇲 Cameroon 🇭🇷 Croatia 🇬🇷 Greece 🇰🇿 Kazakhstan 🇲🇦 Morocco   ⸻   New Full Rent 🇬🇪 Georgia +995 Numbers Full Rent now available Real SIM Cards No VoIP   ⸻   Available now on https://anosim.net
    • Shadowsocks Released   World’s first Dedicated Mobile Proxy with Shadowsocks support. Dedicated 4G/5G mobile proxies can now be used with Shadowsocks.   New dedicated mobile proxy locations added: 🇩🇪 Germany (Leipzig) 🇳🇬 Nigeria (Lagos) 🇺🇸 USA (South Haven)   Also available: 🌐 Residential Proxies from $1/GB   ⚡️ Datacenter Proxies from $0.50/GB   Available now on Proxied.   https://proxied.com For Free Trials, write us a DM with your registered E-mail.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..