Jump to content
  • 0

[HELP] Pos perno Adena ston kodika tou BUFFER


Question

Posted

Kalimera exo perasi se ena L2JServer Interlude ena Buffer kai einai ok to provlima mou einai pos otan kaneis Buffs den sou perni Adena thelo na peraso mesa ston kodika pou exei o Buffer na perni Adena alla den ksero pos otan tou valo na perni Adena den litourgi to skill....

Kodikas tou Buffer: http://pastebin.com/wSFUbDtY

Ti thelo napo pos den litourgi p.x an mesa ston kodika peraso

                #Wind Walk

if event == "73":

                        st.takeItems(ADENA_ID,25000) [shadow=red,left]<---------Auto to buff den litourgi[/shadow]

SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())

 

return "2.htm"

st.setState(COMPLETED)

Ti kano lathos kai pos mporo na to fixaro!!!!!

2 answers to this question

Recommended Posts

  • 0
Posted

dokimase na addareis auto katw apo tin 27 seira

se emena etsi douleuei

 

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(ADENA_ID)
+		if count < 1000  or st.getPlayer().getLevel() < 0 :
+			htmltext = "<html><head><body>You dont have enought Adena.</body></html>"
+		else:
+			st.takeItems(ADENA_ID,0)
+			st.getPlayer().setTarget(st.getPlayer())

                        #Acumen

  • 0
Posted

dokimase na addareis auto katw apo tin 27 seira

se emena etsi douleuei

 

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(ADENA_ID)
+		if count < 1000  or st.getPlayer().getLevel() < 0 :
+			htmltext = "<html><head><body>You dont have enought Adena.</body></html>"
+		else:
+			st.takeItems(ADENA_ID,0)
+			st.getPlayer().setTarget(st.getPlayer())

                        #Acumen

 

Nase kala file mou gia to Help sou to thema lithike me ton kodika pou mou edoses  ;D

[move]Thnx ExCaLiBuR®[/move]

Guest
This topic is now closed to further replies.


×
×
  • Create New...