Παιδια θελω να μου πειτε αν βλεπετε καποιο λαθος σε αυτο εδω το code σχετικα με την database. Επισης με java δεν μπορω να το φτιαξω το npc γιατι τωρα αρχισα και δεν εχω ακομα τις καταληλες γνωσεις.
import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jfrozen.gameserver.datatables import SkillTable
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
qn = "555555_DonateM"
NPC=[555555]
Cash=10000
QuestId = 555555
QuestName = "DonateM"
QuestDesc = "custom"
InitialHtml = "1.htm"
print "O donateManager energopii8ike"
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent(seld,event,st):
#Majesty
if event == "1":
skill = SkillTable.getInstance().getInfo(82,1)
st.getPlayer().addSkill(skill)
st.takeItems(Cash,5)
conection = L2DatabaseFactory.getInstance().getConnection()
charid = conection.prepareStatement("SELECT obj_Id FROM characters WHERE char_name=?")
charid.setString(1, st.getPlayer().getName())
charobjid = charid.executeQuery()
charobjidd = charobjid.getInt("obj_Id")
ins = conection.prepareStatement("INSERT INTO character_skills (char_obj_id,skill_id,skill_level,skill_name,class_index) VALUES (?,?,?,?,?)")
ins.setInt(1, charobjidd)
ins.setInt(2, 82)
ins.setInt(3, 1)
ins.setString(4, "Majesty")
ins.setInt(5, 1)
ins.close()
conection.close()
return "<html><head><body>YOU ADD THE MAJESTY</body></html>"
st.setState(COMPLETED)
def onTalk (self,npc,player):
st = player.getQuestState(qn)
st.setState(STARTED)
return InitialHtml
QUEST = Quest(555555,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)
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
ADENA
500 K = 40e
1kk = 70e
3kk = 190e
ITEMS
staff of life = 150e
karmian set = 90e
elven jewls top D = 30e
Orcish Poleaxe+1 best C pole = 680e
any D grade armor on demand
discord
wiz0642_81242
Question
kimilover
Παιδια θελω να μου πειτε αν βλεπετε καποιο λαθος σε αυτο εδω το code σχετικα με την database. Επισης με java δεν μπορω να το φτιαξω το npc γιατι τωρα αρχισα και δεν εχω ακομα τις καταληλες γνωσεις.
2 answers to this question
Recommended Posts