Jump to content
  • 0

Interlude npc buffer


soti19

Question

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???

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

*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!

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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())

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...