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.

  • Posts

    • Hello. This code works well. It removes buff with double click, but If you preffer remove buff with ALT + mouse click, place this code in AbnormalStatusWnd.uc   function OnLButtonDown(WindowHandle a_WindowHandle, int X, int Y) { local Rect windowBounds; local int targetRow; local int targetCol; local StatusIconInfo info; local SkillInfo skillInfo; if (IsKeyDown(IK_alt) == false) return; // Find window position windowBounds = Me.GetRect(); // Process clicks outside of window frame only if (X > (windowBounds.nX + NSTATUSICON_FRAMESIZE)) { // Calc row and col of targeted icon targetRow = (Y - windowBounds.nY) / NSTATUSICON_SIZE; targetCol = (X - windowBounds.nX - NSTATUSICON_FRAMESIZE) / NSTATUSICON_SIZE; // Store status info of targeted icon StatusIcon.GetItem(targetRow, targetCol, info); // Store actual skill info and make sure it is exists if (GetSkillInfo(info.ClassID, info.Level, skillInfo)) { // Request server to stop skill effect // Usage: _dispel:<int:skill_id>,<int :skill_level> // Example: _dispel:313,8 RequestBypassToServer ( "_dispel:" $ string ( skillInfo. SkillID ) $ "," $ string ( skillInfo. SkillLevel ) ) ) ; } } }  
    • We are excited to announce the open beta testing of the Fulgrim x4 server, starting November 29th, 2024, at 19:00 server time (19:00 по МСК). There will be an NPC available on the test server from whom you can purchase items, gain levels, professions, and other services.   More information at our >Forum
    • Server mid rate craft PvP   CLIENTE INTERLUDE Website server Discord olympus x25 &nbsp;server 🇧🇷🇦🇷🇨🇱🇬🇷🇲🇽🇵🇪🇸🇰🇪🇸🇺🇾 Server mid rate craft PvP 🔱CLIENTE INTERLUDE🔱 🔅xpx25 🔅Sp x25 🔅Adena x15 🔅Droop x2 🔅Spoil x2 🔅Raidboss xp x2 🔅Raidboss sp x2 🔅Raidboss droop x1 🔅All Rate quest reward  x1 ⚠️All Quest drop reward. x1 🔅Manor x 3 🔅Seal stone x1 🛡️🗡️INFO GRADO S🗡️🛡️ ⚠️Inicia desabilitado drop/spoil/quest. 🔱PROFESIONES/SUBCLASS🔱 🛡️1st profession - 50medal 🛡️2nd profession - 500 medal 🛡️3rd profession - 1k medal +30kk adena 🛡️Sub class - Quest. No necesita matar raids. ⚙️Configuraciones⚙️ 🛡️Gmshop  grade - B. 🛡️Grade A-S Craft - yes x1 chance 🛡️Globlal teleport - yes 🛡️Buffer 1hora. 🛡️Buffer slot 24(+4divine)+12 dances-song 🛡️Auto learn skils - yes 🛡️Autoloot - yes 🛡️Mana potion recarga 1000 ,9segundos delay. 🛡️Champions system:     ▫️lvl 30 - 76     ▫️chance respawn 0.5%.     ▫️adena x20 🛡️Max lvl party 14 lvl. 🛡️Festive sweeper on. 🛡️Max client pc 2. 🛡️Raid boss respawn retail. 🛡️Nobleza quest - yes. 🛡️Barakiel respawn 6 horas + -30 min. 🛡️Olimpiada duracion 14 dias. 🛡️Olimpiada de 18:00 a 00:00 🛡️Safe enchant +3 🛡️Normal enchant scroll 50% ⚠️+11-16 chance 30% 🛡️Bleesed enchant scroll 55% ⚠️+11-16 chance 35% 🛡️Rate dinamico x1 lvl 77-80   🛡️🗡️CLANES INFO🗡️🛡️ 🔅Crear clan min. level 20 🔅Max Alianzas 1 🔅Duracion penalidades clan / alianzas 8 horas. 🔅Cambio de lider 24 horas. 🛡️⚔️ ASEDIOS ⚔️🛡️ 🔅Cada 2 semanas. 🔅Proteccion hwid 1 pc. 🔅Clanes registrados. acceden a zona de asedio. 🔅Castillo asediable Aden. 🔅Reward 1000 FA 🔅Horario 16:00 GMT-3 🎊PACK DE INICIO🎊 🔅Start set - armor\weapon no grade. 🔅Level 20  - 5 shadow cuppon grado D 🔅Level 40 - 5 shadow cuppon grado C 🔅Free Autofarm 24 horas. 💰 INFO PREMIUM 💰 🔅Free autofarm. 🔅xp x30 🔅sp x30 🔅adena x17 🔅drop x4 🔅spoil x4 🔅enchant +2% 🔅seal stone x1 🔅Altb Gk-Gmshop/buffe ⚔️ RAID  BOSS INFO ⚔️ 🔅Raid boss 70 ++ respawn 5 días despues. 🔅Raid boss 75 ++ respawn 15 días despues 🔅Drop LETTER L2DAY para tradear en GMshop. ⚔️ INFO SEVEN SING ⚔️ 🔅Inicio del drop Seal stones dia 5 de iniciado el server. 🎊 EPIC RAID INFO 🎊 🔅Queen Ant (lvl 40)respawn Lunes a Viernes 22:00 GMT-3 drop chance 30%. 🔅Core (lvl 80)respawn Martes-miercoles 20:20 GMT-3 drop chance 100%. 🔅Orfen (lvl 80)respawn Martes-miercoles 21:00 GMT-3 drop chance 100%. 🔅Zaken (lvl 80)respawn Jueves 23:00 GMT-3 drop chance 100%. 🔅Frintezza (lvl 80)respawn Viernes 23:00 GMT-3 drop chance 100%. 🔅Baium (lvl 80)respawn Sabado 22:00 GMT-3 drop chance 100%. 🔅Valakas (lvl 80)respawn Domingo 20:00 GMT-3 drop chance 100%. 🔅Antharas (lvl 80)respawn Domingo 22:00 GMT-3 drop chance 100%.
  • Topics

×
×
  • Create New...