Jump to content
  • 0

[Help] Clan Reputation Trader


Question

Posted

Kalispera ... Exw ena problima me ton server mou . To problima einai oti exw ftiaksei enan clan reputation manager gia na perneis kapoia reputation points... otan anoigw ton server mou ola douleuoun entaksei xwris error alla otan pataw panw tou gia na parw ta clan reputation den deixnei tpt alla kai pali den bgazei kanena error ... Oriste o kwdikas

 

import sys

from com.l2jserver.gameserver.model.quest import State

from com.l2jserver.gameserver.model.quest import QuestState

from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

from com.l2jserver.gameserver.network.serverpackets import PledgeShowInfoUpdate

 

qn = "8205_ClanPoints"

   

npcId          = 613

# Setup !!!

Soldier      = 7216

SoldierCount = 1000

Captain      = 7217

CaptainCount = 5000

General      = 7218

GeneralCount = 10000

# End Setup !!

QuestId      = 8205

QuestName    = "ClanPoints"

QuestDesc    = "custom"

InitialHtml  = "1.htm"

   

print "INFO Loaded: Clan Points AVOCADO !!!"

   

class Quest (JQuest) :

   

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

   

   

        def onEvent(self,event,st):

            htmltext = event

            count=st.getQuestItemsCount(Soldier)

            count1=st.getQuestItemsCount(Captain)

            count2=st.getQuestItemsCount(General)

            # first item

            if count == 0 and st.getPlayer().getClan == None and event == "2":

                htmltext = "Error1.html"

            elif count1 == 0 and st.getPlayer().getClan == None and event == "3":

                    htmltext = "Error2.html"

            elif count2 == 0 and st.getPlayer().getClan == None and event == "4":

                    htmltext = "Error3.html"

            else:

                st.getPlayer().setTarget(st.getPlayer())

                if event == "2":

                    if st.getPlayer().getClan() == None or st.getPlayer().getClan().getLeader() == 0:

                        return "You have to be a Clan Leader !!!!"

                    st.takeItems(Soldier, 1)

                    st.getPlayer().getClan().addReputationScore(SoldierCount,True)

                    st.playSound("ItemSound.quest_finish")

                    st.setState(State.COMPLETED)

                    st.exitQuest(1)

                    return "End.html"

                if htmltext != event:

                    st.setState(State.COMPLETED)

                    st.exitQuest(1)

                    return htmltext

            # 2 item

                st.getPlayer().setTarget(st.getPlayer())

                if event == "3":

                    if st.getPlayer().getClan() == None or st.getPlayer().getClan().getLeader() == 0:

                        return "You have to be a Clan Leader !!!!"

                    st.takeItems(Captain, 1)

                    st.getPlayer().getClan().addReputationScore(CaptainCount,True)

                    st.playSound("ItemSound.quest_finish")

                    st.setState(State.COMPLETED)

                    st.exitQuest(1)

                    return "End2.htm"

                if htmltext != event:

                    st.setState(State.COMPLETED)

                    st.exitQuest(1)

                    return htmltext

            # 3 ite

                st.getPlayer().setTarget(st.getPlayer())

                if event == "4":

                    if st.getPlayer().getClan() == None or st.getPlayer().getClan().getLeader() == 0:

                        return "You have to be a Clan Leader !!!!"

                    st.takeItems(General, 1)

                    st.getPlayer().getClan().addReputationScore(GeneralCount,True)

                    st.playSound("ItemSound.quest_finish")

                    st.setState(State.COMPLETED)

                    st.exitQuest(1)

                    return "End3.htm"

                if htmltext != event:

                    st.setState(State.COMPLETED)

                    st.exitQuest(1)

                    return htmltext

             

             

        def onTalk (self,npc,player):

          st = player.getQuestState(qn)

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

          st.setState(State.STARTED)

          return InitialHtml

         

QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

 

 

 

An mporei kapoios na me help :/

 

8 answers to this question

Recommended Posts

  • 0
Posted

oxi tipota den mou bgazei ... Exw kanei register to script kai den m bgazei kanena error .Apla otan pataw gia na m dwsei reputation points den douleuei ... Kamia idea?

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

    • Same glitch or "technique" was working on Interlude L2Pride aswell.. only few knew about it!
    • 🌟 Need fast setup and guaranteed warranty? All products are fully tested and delivered instantly 24/7.
    • 7 DAYS TO CLOSED BETA!   WARFRONT Closed Beta begins in just 7 days!    If you're planning to participate and haven't registered yet, please make sure you [b]register now[/b]. If you're coming with friends or your clan, please make sure they register too — registration only takes a few seconds.   https://l2warfront.com/   Over the next couple of days I will begin sending emails to registered players containing: Account registration/access link WARFRONT Game Client WARFRONT Launcher Final Closed Beta instructions Important: Special Closed Beta participant rewards will also be distributed using the email address you registered with, so please make sure you've registered with a valid email you can access.   Closed Beta: 3 October 2026 — 19:00 GMT+0 We're almost there. 7 days. Angels vs Demons. See you on the battlefield.
    • No problem — it will decrypt AA (any chronicles). Text telegram
    • As the title says, we are an International group of players that currently play on Exiliumworld for arround 5 years now and we plan to keep on playing here long term now on. Exiliumworld its a server created on Fafurion client, with new skills added for each class and a completely different gameplay. All classes are good and do great damage, there are new exciting features and party compositions that are incredibly great to be played.   While most of us are Romanians, we also have people from different countrys so English is the main language we use on PvP/TW/Sieges or whenever objective pops on. Our  community runs on Discord, we try to keep it very simple in terms of rules : We dont flame each other, we try to respect each member of this group and overall we mentain a good atmosphere inside the group by always laughing, being positive in any situation and helping each other out with whatever it's needed.   If you also wish to be a part  of our community and play on a server that is opened for over a decade and continues running smooth, always gets updates and fixes, contact me in private on Discord because i won't be active in here. About what classes you can play, we will discuss more details like that when we get in contact. Have a great day, guys and remember : Having a good, stable server and a group of players that respect you and help you whenever you are in need might be the perfect environment for you to grow as a player and also as human being!    CONTACT  DISCORD : pqtestpq_97112 (Me) ash3s8354 (Leader) xmariusx (Subleader)   Whoever you choose to talk to, you will meet a friendly person ready to answer your all questions about our group, server features or explain you all the insights of the server.  P.S. : Don't hesitate to contact us. We also recruit CPs or group of players, not only single players. Have a nice day!   #SABOTAGEclan  
  • 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..