hi all exw auto to scriptaki gia na kanoun oi caln leader antalagh festival adena me reputation points
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 SystemMessage
qn = "9995_ReputationManager"
#NPC
BRICE = 9995
#ITEMS
EUROS = 6673
#HTML
HTMLEXPLAIN = "<html><body>Brice:<BR>Wow ! You have some Event Coins for me ? You can exchange them for Clan Reputation points. But be careful, I'll take 3 Coins, 3 for 5000 Clan Reputation Points. Do you really want to continue ?<BR><a action=\"bypass -h Quest 9995_ReputationManager 1\">Yes, I need Clan Reputation points</a></body></html>"
HTMLNOLEADER = "<html><body>Brice:<BR>Hey, you're not a clan leader at all. Go away from me, liar !</body></html>"
HTMLCLANLVL = "<html><body>Brice:<BR>Hum, it seems your clan is not strong enough to receive my benediction. Come back when your clan level is lv5.</body></html>"
HTMLNOGOLD = "<html><body>Brice:<BR>What do you want to do ? Do you want to receive my benediction for free ? Bring me back some Coins, and maybe, I will trade with you.</body></html>"
HTMLOK = "<html><body>Brice:<BR>Thanks to you for this present, I give you Clan Reputation Points. Please, come again if you have any Coins to exchange.</body></html>"
class Quest (JQuest) :
def __init__(self,id,name,descr) :
JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
htmltext = "<html><body>I have no task right for you now.</body></html>"
if event == "1" :
if st.getPlayer().getClan() == None or st.getPlayer().isClanLeader() == 0 :
# player is not in clan or is not clan leader
htmltext = HTMLNOLEADER
st.exitQuest(1)
return htmltext
else :
if st.getPlayer().getClan().getLevel() < 5 :
# player's clan is under lv5
htmltext = HTMLCLANLVL
st.exitQuest(1)
return htmltext
else :
if st.getQuestItemsCount(EUROS) == 3:
# player have some EUROS, the script take all of them
st.getPlayer().sendPacket(SystemMessage(1777).addNumber( st.getQuestItemsCount(EUROS)+ 5000 ))
st.getPlayer().getClan().setReputationScore( st.getPlayer().getClan().getReputationScore() + st.getQuestItemsCount(EUROS)+ 5000 , True)
st.takeItems(EUROS, st.getQuestItemsCount(EUROS))
htmltext = HTMLOK
st.exitQuest(1)
return htmltext
else :
# player haven't EUROS
htmltext = HTMLNOGOLD
st.exitQuest(1)
return htmltext
return htmltext
def onTalk(self,npc,player) :
st = player.getQuestState(qn)
if not st :
return "<html><body>I have nothing to say to you.</body></html>"
npcId = npc.getNpcId()
if npcId == BRICE :
# first click, default script text after the first in /html/default/ folder
st.set("cond","0")
htmltext = HTMLEXPLAIN
return htmltext
QUEST = Quest(9995,qn,"ReputationManager")
QUEST.addStartNpc(BRICE)
QUEST.addTalkId(BRICE)
alla otan milaw sto npc exw auto sto gameserver console :
File "__init__.py", line 46, in onEvent
AttributeError: setReputationScore
at org.python.core.Py.AttributeError(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode.serializable._pyx1280312495656.onEvent$3(__init__.p
y:46)
at org.python.pycode.serializable._pyx1280312495656.call_function(__init
__.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject._jcallexc(Unknown Source)
at org.python.core.PyObject._jcall(Unknown Source)
at org.python.proxies.main$Quest$427.onEvent(Unknown Source)
at com.l2jserver.gameserver.model.quest.Quest.onAdvEvent(Quest.java:674)
at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:405
)
at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.processQue
stEvent(L2PcInstance.java:1823)
at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.
runImpl(RequestBypassToServer.java:238)
at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:93)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
ElmoreLab Harbor - Eternal C1 x1:
✅ https://harbor.elmorelab.com
ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.
A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles.
Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1.
Let's return to the origins of L2 - back to 2004 in C1! ❤️
⭐ Server characteristics:
STRICTLY 1 window, NO BOXES
Bans for RMT and bots/cheats
No donations with benefits
Unique and high-quality PTS-build from Master Toma
Professional corrections and full class-balance
Reworked economy and closed all abuses
Improved animations and all aspects of the game
Exclusive HD-client with high-quality textures
Experienced administration and management
Fixed all bugs, geodata, exploits and holes
Maximum sociality due to the 1-box system
Discovering, exploring and researching
Big online
International server
Nostalgia and oldschool-feelings
Rates: x1
Server start: 14.02.2025
The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted.
Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️
Join our C1-forum with a lot of information about server and active discussions.
⭐ Website:
https://harbor.elmorelab.com
✅ Forum:
https://forum-harbor.elmorelab.com
💥 Telegram:
https://t.me/l2harbor
https://t.me/l2harbor_chat
⚡ Discord:
https://discord.gg/harborelmorelab
yeah ok, if you say what is fuctional 100% i can't say something different 😛
but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.
I have access to modify everything even to make the clock to stop show how many time users play in server.
1) so maybe keep some personal info more hide.
2) i dont use ogg.dll
3) i create it and give it ready + support to install it.
Plus what is mine can working with what ever .exe you want not just l2 with same simple method.
And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too
thats my source
Question
sakisd
hi all exw auto to scriptaki gia na kanoun oi caln leader antalagh festival adena me reputation points
alla otan milaw sto npc exw auto sto gameserver console :
Mporei Kaneis na helparei???
4 answers to this question
Recommended Posts