Jump to content
  • 0

Interlude npc buffer


Question

Posted

lipon exo ena provlima me ton buffer ston server

o server trexei l2j kai l2jdb last update

xrisimopio ton oneo buffer

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 < 150000  or st.getPlayer().getLevel() < 1 :
		htmltext = "<html><head><body>You dont have enough Adena,<br> or your level is too low. You must be 40 or higher.</body></html>"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(ADENA_ID,160000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1218,33),False,False)
			st.getplayer().recoverHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1013,32),False,False)
			st.getplayer().recoverHPMP()		
			return "4.htm"
			st.setState(COMPLETED)

st.getplayer().recoverHPMP() eprepe na epanaferei to mp kai to hp alla petaei sfalma

me ti mporo na to antikatastiso???

6 answers to this question

Recommended Posts

  • 0
Posted

file ... egw dn kserw na apantisw stin erwthsh s alla 8elw na se rwtisw pws vazeis auton ton npc buffer ston server .. pou ton vazeis ? an 8es kane reply se auto to post

  • 0
Posted

*soti19 g eia sou file mou , to problima to exw kai egw .. diladi xrhsimopoiw kai egw l2j apo to l2jserver.com .. ebala ton buffer kai ebgaze script errors ... IG kai sto gs .. loipon to exw ftiaksei to __init__.py kai twra douleuei ... alla den sou gemizei hp mp kai cp pou sou leei .. auto einai to bug... kai exw bgalei kai ta Heal - MP - CP apo ton buffer dioti den 8a sou leitourgoun... diladi o buffer 8a pezei alla dn 8a sou anebazei hp mp se ka8e dance.. 8a bazeis monos mana potions....

edw einai to link gia to __init__.py http://rapidshare.com/files/82201245/__init__.py.html kanto replace apla sto jscript/custom/9999_NPCBuffer kai 8a sou ly8h to problima!

 

*tsixla gia na baleis enan buffer mesa se enan lineage server prepei na baleis .. to .htm pou sou dinei sto C:/server/gameserver/data/html/deafult ... meta to jscript sto C:/server/gameserver/data/jscript/custom edw to jscript kai na ftiakseis to __init__.py katw bale to 9999_NPCBuffer (analogws pws einai) kai na teleiwnei me ' oxi , meta bazeis to .sql sto database sou kai pas IG kai kaneis spawn to NPC .. etsi bazeis buffer.Ean exeis problima pes mou na se boh8hsw!

  • 0
Posted

File cs1984 pws mporw na ftiaksw custom skills gia na sou kanei o buffer heal .. dioti exw to L2J pack kai dn mporw na balw ton buffer meta apo ka8e buff na sou kanei gemizei hp-mp .. m bgazeis script errors kai prepei na ta bgazw ... ean ksereis pes m .ty

  • 0
Posted

Sto l2j pack einai alliws h entolh nomizw alla den thn 8ymamai twra. Egw sou elega sthn lista me ta buff na baleis extra epiloges gia heal ftiaxnontas nea skill. An den xereis na ta ftiaxneis kane copy paste alla pou kanoun authn thn douleia kai allaxe tous to mpconsume se 0 opws kai to hittime.

 

EDIT: Brika auta sto l2j forum. Gia dokimase:

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..