Jump to content
  • 0

Question

Posted

Ekana tin 1ti prospa8eia m na Ftia3w enan  buffer.... alla m bgazei error otan pataw  pano tou ( m trexei aknonika alla molis pataw buffs me den me paei sto 1 Htlm....) HELP!!!!:P

 

Edw sas exw ta Files :

 

__init__ :

 

import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j			       import L2DatabaseFactory
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest

gn = '9999_NPCBuffer'

NPC=[40009]
ADENA_ID=57
QuestId     = 9999
QuestName   = "Buffer"
QuestDesc   = "custom"
InitialHtml = "1.html"

print "importing custom: 9999: NPCBuffer"

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 enough Adena.</body></html>"
	else:
		st.takeItems(ADENA_ID,100)
		st.getPlayer().setTarget(st.getPlayer())

		#Full Buffs
                 if event == "1":
			st.takeItems
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
			return "2.htm"
			st.setState(State.COMPLETED)

		#Full Buffs(No Berz)
                 if event == "2":
			st.takeItems
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
			return "2.htm"
			st.setState(State.COMPLETED)

		#Full Dances
                 if event == "3":
			st.takeItems
			SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
			return "3.htm"
			st.setState(State.COMPLETED)

                 if event == "4":
			st.takeItems
			SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(266,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(268,4).getEffects(st.getPlayer(),st.getPlayer())
			return "4.htm"
			st.setState(State.COMPLETED)

		#Greater Might
		if event == "5":
			st.takeItems
			SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Greater Shield
		if event == "6":
			st.takeItems
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Prophecy of Fire
		if event == "8":
			st.takeItems
			SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Prophecy of Water
		if event == "6":
			st.takeItems
			SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Prophecy of Wind
		if event == "10":
			st.takeItems
			SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Chant of Victory
		if event == "7":
			st.takeItems
			SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Chant of Magnus
		if event == "16":
			st.takeItems
			SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())				
			return "5.htm"
			st.setState(State.COMPLETED)

		#Nobless
		if event == "12":
			st.takeItems
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())				
			return "1.htm"
			st.setState(State.COMPLETED)

		#Cancellation
		if event == "13":
			st.takeItems
			SkillTable.getInstance().getInfo(9950,1).getEffects(st.getPlayer(),st.getPlayer())			

			return "1.htm"
			st.setState(COMPLETED)


		if htmltext != event:
			st.setState(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(STARTED)
   return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
CREATED=State('Start',QUEST)
STARTED=State('Started',QUEST)
COMPLETED=State('Completed',QUEST)

QUEST.setInitialState(CREATED)

for npcId in NPC:
QUEST.addStartNpc(40009)
QUEST.addTalkId(40009)

 

 

 

 

1 :

 

<html>
<body>
<center>
<font color="FF0000">Buff Menu</font><br>
<tr><td></td><td><img src="L2UI_CH3.herotower_deco" width=256 height=32></td></tr><br>
</center>
<font color="00FF00">Simple choose what buff you need, and you will get it.</font><br>
<br>
<center>
<tr><td></td><td><button value="Cansel Buffs" action="bypass -h Quest 9999_NPCBuffer 13" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<br>
<tr><td></td><td><button value="Nobless" action="bypass -h Quest 9999_NPCBuffer 12" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
</center>
<center>
<tr><td></td><td><img src="L2UI_CH3.herotower_deco" width=256 height=32></td></tr><br>
<br>
<center>
<tr><td></td><td><button value="Select Buffs" action="bypass -h Quest 9999_NPCBuffer 2.htm" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<br>
<tr><td></td><td><button value="Dances" action="bypass -h Quest 9999_NPCBuffer 3.htm" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<br>
<tr><td></td><td><button value="Songs" action="bypass -h Quest 9999_NPCBuffer 4.htm" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<br>
<tr><td></td><td><button value="Custom Buffs" action="bypass -h Quest 9999_NPCBuffer 5.htm" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr>
<br>
<tr><td></td><td><img src="L2UI_CH3.herotower_deco" width=256 height=32></td></tr><br>
</center>
</body>
</html>

 

IParxei kapou la8os? :S

An mporei kapios na m pei ... ty

 

(Iparxoun all 4 arxeia Html)

3 answers to this question

Recommended Posts

  • 0
Posted

Stin arxi eixa idi perasmeno buffer sto pack m... kai  to alla3a opws parapano.... meta ka8ws ida pws den petixe ekana diko m npc alla pal @@dia :S

 

iparxei kanena la8os sta parapano?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...