Jump to content

Recommended Posts

Posted

Yes of course , you must get you own ID and change it into packet.

u know where i can get super haste id or others?

and u think it will work to take also skills like demonic/zariche  passive?

Posted

u know where i can get super haste id or others?

and u think it will work to take also skills like demonic/zariche  passive?

In head of topic it's written "NOT WORKED WITH PASSIVE SKILLS", so not)

Posted

this will work only if the buffer of the server is like:

import sys
from com.l2jarchid.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jarchid.gameserver.datatables import SkillTable
from com.l2jarchid			       import L2DatabaseFactory
from com.l2jarchid.gameserver.model.quest import State
from com.l2jarchid.gameserver.model.quest import QuestState
from com.l2jarchid.gameserver.model.quest.jython import QuestJython as JQuest

qn = "8505_Buffer"

NPC=[85050]
ADENA_ID=57
QuestId     = 8505
QuestName   = "Buffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "importing custom: 8505: Buffer"

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>Minimum Level for Buff is 1.</body></html>"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().stopAllEffects()
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4345,3).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(4352,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
			return "1.htm"
			st.setState(COMPLETED)

		if event == "3": 
			st.takeItems(ADENA_ID,0)
			st.getPlayer().stopAllEffects()
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1389,3).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(4355,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
			return "1.htm"
			st.setState(COMPLETED)

		if event == "4":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().stopAllEffects()
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4345,3).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(4352,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4360,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(4359,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
			return "1.htm"
			st.setState(COMPLETED)
                       
		if event == "5":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().stopAllEffects()
			SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())
			return "1.htm"			
			st.setState(COMPLETED)

		if event == "6":
			st.takeItems(ADENA_ID,0)
			return "1.htm"		
			st.setState(COMPLETED)

		#Wind Walk
		if event == "7":
			st.takeItems(ADENA_ID,0)
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
			return "5.htm"		
			st.setState(COMPLETED).....................................

 

Like archid's buffer and many buffers that is for GF EP and others are like this so it will work if the method is only like:

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

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
Reply to this topic...

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