Jump to content
  • 0

Remove Buffs, Heal Option in buffer


Question

Posted

Hello mxc, Exw mia erwtish, Poioa eine ti na grapsw sto html tou buffer m gia na t valw remove buffs kai heal.

Dn enww to kodika html auta ta exw kanei ti prepi na grapsw gia na kanei remove kai heal Exw L2jServer Rev 6395.

Elpizw na katalavate ti enww

 

 

Thnx

5 answers to this question

Recommended Posts

  • 0
Posted

Sto init.py tis buffer sou :

 

Gia heal :

 

st.getPlayer().restoreHPMP()

 

Gia remove :

 

st.getPlayer().stopAllEffects()

 

Oi kanonikoi kodikes eine :

 

Heal :

 

if event == "Arithmos apo html": 
			st.getPlayer().stopAllEffects()
			return "Arithmos apo main window . htm"

 

Remove :

 

if event == "Arithmos apo html":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().restoreHPMP()
			return "Arithmos apo main window . htm"		
			st.setState(COMPLETED)

 

Apla esy prepei na tous kaneis edit.

  • 0
Posted

Auto eine gia Html h gia script? Nomizw pws dn teriazei me ton buffer m

 

 

Afou den dokimases , pos eise toso sigouros ?

 

Bale tous kodikes autous sto init.py tis buffer sou , dokimase kai meta kane reply.

  • 0
Posted

File mipws bwreis na ta valeis esi gia mena gt eime ligo newbie?;P

 

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 = "60551_NPCBuffer"
NPCS=[11,60551]
ADENA_ID=57
QuestId     = 60551
QuestName   = "NPCBuffer"
QuestDesc   = "custom"

print "Loaded: Buffer by Myxoske [version 0.5]"

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 < 0 or st.getPlayer().getLevel() < 1 :
		htmltext = "<html><head><body>Come back later.<br></body></html>"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

		if event == "1":
			st.takeItems(ADENA_ID,0)
			SkillTable.getInstance().getInfo(4094,12).getEffects(st.getPlayer(),st.getPlayer())
			st.getPlayer().stopAllEffects()
			return "1.htm"
			st.setState(State.COMPLETED)

			if htmltext != event:
			st.setState(State.COMPLETED)
			st.exitQuest(1)
	return htmltext
      
def onTalk (self,npc,player):
	return "1.htm"

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPCS:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

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