Jump to content
  • 0

[HELP]NPC buffer error


Question

Posted

hi guys. i have a big prob with my npc buffer.. picture : shot00000s.th.jpg  It's On interlude server i'm using  Interlude Branch - Clean Compile, no extras rev2741  NPC_Buffer_By_Kelin http://www.4shared.com/file/59675318/caa301d7/NPC_Buffer_By_Kelin.html?start=  .. Dnk Where is problem please help ! Thxx ...

9 answers to this question

Recommended Posts

  • 0
Posted

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

qn = "9999_NPCBuffer"

NPC=[40006]
ADENA_ID=57
QuestId     = 9999
QuestName   = "NPCBuffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

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

		#Wind Walk
		if event == "1":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9951,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "2.htm"
			st.setState(COMPLETED)

		#Acumen
		if event == "2":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9900,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "2.htm"
			st.setState(COMPLETED)

		#Agility
		if event == "3": 
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9901,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "2.htm"
			st.setState(COMPLETED)

		#Berserker Spirit
		if event == "4":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9902,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "2.htm"
			st.setState(COMPLETED)

                       #Bless Shield
		if event == "5":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9903,1),False,False)	
			st.getPlayer().restoreHPMP()
			return "2.htm"			
			st.setState(COMPLETED)

		#Blessed Body
		if event == "6":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9904,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Blessed Soul
		if event == "7":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9905,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Concentration
		if event == "8":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9906,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Death Whisper
		if event == "9":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9907,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Empower
		if event == "10":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9908,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Focus
		if event == "11":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9909,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Guidance
		if event == "12":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9910,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Haste
		if event == "13":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9911,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Magic Barrier
		if event == "14":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9912,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Mental Shield
		if event == "15":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9913,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Might
		if event == "16":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9914,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Resist Shock
		if event == "17":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9915,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Shield
		if event == "18":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9916,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Vampiric Rage
		if event == "19":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9917,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"		
			st.setState(COMPLETED)

		#Dance of Aqua Guard
		if event == "30":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9918,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Concentration
		if event == "31":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9919,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Earth Guard
		if event == "32":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9920,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Fire
		if event == "33":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9921,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Fury
		if event == "34":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9922,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Inspiration
		if event == "35":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9923,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Light
		if event == "36":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9924,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of the Mystic
		if event == "37":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9925,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of Protection
		if event == "38":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9926,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Siren's Dance
		if event == "39":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9927,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of the Vampire
		if event == "40":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9928,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Dance of the Warrior
		if event == "41":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9929,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"
			st.setState(COMPLETED)

		#Song of Champion
		if event == "50":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9930,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Earth
		if event == "51":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9931,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Flame Guard
		if event == "52":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9932,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Hunter
		if event == "53":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9933,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Invocation
		if event == "54":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9934,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Life
		if event == "55":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9935,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Meditation
		if event == "56":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9936,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Renewal
		if event == "57":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9937,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Storm Guard
		if event == "58":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9938,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Vengeance
		if event == "59":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9939,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Vitality
		if event == "60":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9940,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Warding
		if event == "61":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9941,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Water
		if event == "62":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9942,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Song of Wind
		if event == "63":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9943,1),False,False)
			st.getPlayer().restoreHPMP()
			return "4.htm"
			st.setState(COMPLETED)

		#Greater Might
		if event == "64":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9944,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"
			st.setState(COMPLETED)

		#Greater Shield
		if event == "65":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9945,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"
			st.setState(COMPLETED)

		#Chant of Victory
		if event == "66":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9946,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"
			st.setState(COMPLETED)

		#Prophecy of Fire
		if event == "67":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9947,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"
			st.setState(COMPLETED)

		#Prophecy of Water
		if event == "68":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9948,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"
			st.setState(COMPLETED)

		#Prophecy of Wind
		if event == "69":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9949,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"
			st.setState(COMPLETED)

		#Cancellation
		if event == "70":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9950,1),False,False)
			st.getPlayer().restoreHPMP()
			return "1.htm"
			st.setState(COMPLETED)

		#MPreg
		if event == "71":
			st.takeItems
			st.getPlayer().restoreHPMP()
			return "1.htm"		
			st.setState(COMPLETED)	

		if event == "73":
			st.takeItems
			st.getPlayer().restoreHPMP()
			return "1.htm"		
			st.setState(COMPLETED)

       		#Chant of Magnus
		if event == "74":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9952,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "5.htm"
			st.setState(COMPLETED)

      		#Wild Magic
		if event == "75":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9953,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "2.htm"
			st.setState(COMPLETED)

      		#Vampiric Rage
		if event == "76":
			st.takeItems
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9954,1),False,False)
			st.getPlayer().restoreHPMP()				
			return "2.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(npcId)
QUEST.addTalkId(npcId)

 

U Mean in this one right? And what i need to edit here? oh and i heard that  i need to edit some server sied scripts to allow thous quests or something like that!Is that's true ?

  • 0
Posted

You must edit this part :

 

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

 

If you are using L2J Pack then the imports are ok but if you are using another version of l2j then you must change them.

  • 0
Posted

huh if realy im using l2j .. and what i need to edit in thous imports? im naab in this ..

 

The imports for L2J are ok.

 

Seems to be a buffer problem.Try to download another one.

  • 0
Posted

oke if realy there are my problem that i'm using l2jfree and i don't have that file called script.cfg ? and explain  why i don't have that file ? i have interlude l2jfree pack ...

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

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock