Jump to content
  • 0

[Help] When Buff.. Char dancing..


Question

Posted

Hello,

 

  I searched this forum and not found anything about it.

  What i want is, when a character is buffering i want hem to dance.. or something else metter of buff used. I see that on other server..

  How can i do that?

 

Thx for help. sorry again my english :)

9 answers to this question

Recommended Posts

  • 0
Posted

can't nobody help me?? :(

 

Moderated Message:

Please don't double-post, use the edit button instead. Members are allowed to double or triple post only if their previous post has exceeded the maximum characters limit.

Kindly visit our rules:

http://www.maxcheaters.com/forum/index.php?topic=11.0

 

fakoykas.

  • 0
Posted

This is General Discussion! We discuss in here that is a developing matter are you sure this should remain in this section? You might aswell ask a moderator to move it to Request DEV Help or something similar.

  • 0
Posted

for gracia pt 2

this is the buffer.py ... i us rin4a's buffer

import sys
from java.lang import System
from java.util import Iterator
from com.l2jfree import Config
from com.l2jfree.gameserver.model.quest import State
from com.l2jfree.gameserver.model.quest import QuestState
from com.l2jfree.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jfree import L2DatabaseFactory
from com.l2jfree.gameserver.datatables import SkillTable
from com.l2jfree.gameserver.datatables import ItemTable
from com.l2jfree.gameserver.model.actor.instance import L2PcInstance
from com.l2jfree.gameserver.model.zone import L2Zone
from com.l2jfree.gameserver.network.serverpackets import SetupGauge

QUEST_ID = 55555
QUEST_NAME   = "NPCBuffer"
QUEST_DESCRIPTION   = "custom"
QUEST_LOADING_INFO = str(QUEST_ID)+"_"+QUEST_NAME
NPC_ID = 555555

# ============================================================ #
#        GLOBAL FUNCTIONS                                      #

def getBuffType(id) : # gets buff type (depends of the ID)
conn=L2DatabaseFactory.getInstance().getConnection(None)
act = conn.prepareStatement("SELECT buffType FROM buffer_buff_list WHERE buffId=? LIMIT 1")
act.setInt(1, int(id))
rs=act.executeQuery()
if rs :
	rs.next()
	try :
		val = rs.getString("buffType")
		conn.close()					
	except :
		val = "none"
		try :
			conn.close()
		except:
			pass
else :
	val = "none"
return val

def isEnabled(id,level) : # check if buff is enabled
val = ""
conn=L2DatabaseFactory.getInstance().getConnection(None)
act = conn.prepareStatement("SELECT canUse FROM buffer_buff_list WHERE buffId=? AND buffLevel=? LIMIT 1")
act.setInt(1, int(id))
act.setInt(2, int(level))
rs=act.executeQuery()
if rs :
	rs.next()
	try :
		val = rs.getString("canUse")
		conn.close()					
	except :
		val = "0"
		try :
			conn.close()
		except:
			pass
else :
	val = "0"

if val == "1" :
	val = "True"
if val == "0" :
	val = "False"
return val	

def isUsed(scheme,id,level) : # check if skill is already in the scheme list
count = 0
used = False
conn=L2DatabaseFactory.getInstance().getConnection(None)
rss = conn.prepareStatement("SELECT * FROM buffer_scheme_contents WHERE scheme_id=\""+str(scheme)+"\" AND skill_id=\""+str(id)+"\" AND skill_level=\""+str(level)+"\"")
action=rss.executeQuery()
while (action.next()) :
	try :
		count = count + 1
	except :
		count = 0
try :
	conn.close()
except :
	pass		
if count > 0 :
	used = True
else :
	used = False
return used

def getVar(optionName): # gets variable from the database
conn=L2DatabaseFactory.getInstance().getConnection(None)
act = conn.prepareStatement("SELECT configValue FROM buffer_configuration WHERE configName=\""+optionName+"\" LIMIT 1")
rs=act.executeQuery()
if rs :
	rs.next()
	try :
		val = rs.getString("configValue")
		conn.close()					
	except :
		val = "0"
		try :
			conn.close()
		except:
			pass
else :
	val = "0"
return val

#                                                              #
# ============================================================ #

def showText(type,text,buttonEnabled,buttonName,location) :
MESSAGE = "<html><head><title>"+getVar("title")+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"
MESSAGE += "<font color=\"LEVEL\">"+type+"</font><br>"+text+"<br>"
if buttonEnabled == "True" :
	MESSAGE += "<button value=\""+buttonName+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect "+location+" 0 0\" width=100 height=22 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
MESSAGE += "<font color=\"303030\">Rin4a's buffer v1.2</font></center></body></html>"
return MESSAGE

def generateScheme(st) : # generates scheme list HTML: available schemes, scheme management
schemeName = []
schemeId = []
HTML = ""
conn=L2DatabaseFactory.getInstance().getConnection(None)
rss = conn.prepareStatement("SELECT * FROM buffer_scheme_list WHERE player_id="+str(st.getPlayer().getObjectId()))
action=rss.executeQuery()
while (action.next()) :
	try :
		schemeName += [action.getString("scheme_name")]
		schemeId += [action.getString("id")]
	except :
		print "Query error!"
try :
	conn.close()
except :
	pass	
if len(schemeName) > 0:
	HTML += "[ Available Schemes ]<br>"
	i = 0
	while i <= len(schemeName) - 1 :
		HTML += "<button value=\""+schemeName[i]+"\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" cast "+schemeId[i]+" x x\" width=200 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		i = i + 1
HTML += "<br>[ Scheme Management ]<br>"
if len(schemeName) < int(getVar("schemeCount")) :
	HTML += "<button value=\"Create Scheme\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" create_1 x x x\" width=200 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
if len(schemeName) > 0 :
	HTML += "<button value=\"Edit Scheme\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" edit_1 x x x\" width=200 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
	HTML += "<button value=\"Delete Scheme\" action=\"bypass -h Quest "+QUEST_LOADING_INFO+" delete_1 x x x\" width=200 height=25 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"				
return HTML

def	rebuildMainHtml(st) : # generating main HMTL file
MAIN_HTML_MESSAGE = "<html><head><title>"+getVar("title")+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"
available = True
if getVar("vipBuffer") == "True" :
	if st.getPlayer().getAccessLevel() < int(getVar("vipBufferMinAccessLevel")) :
		available = False
if available == True :		
	if st.getPlayer().isInsideZone(L2Zone.FLAG_PVP) :
		if int(getVar("pvpMultiplier")) == 1 :
			MAIN_HTML_MESSAGE += "Zone price multiplier: <font color=\"LEVEL\">OFF</font><br>"
		else :
			MAIN_HTML_MESSAGE += "Zone price multiplier: <font color=\"LEVEL\">"+getVar("pvpMultiplier")+"</font><br>"
	else :
		MAIN_HTML_MESSAGE += "Zone price multiplier: <font color=\"LEVEL\">OFF</font><br>"		
	if getVar("schemeSystem") == "Enabled" :
		MAIN_HTML_MESSAGE += generateScheme(st) # generate the new scheme system
	if getVar("schemeSystem") == "Disabled" :
		if getVar("enableBuffs") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_buffs 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		if getVar("enableSongs") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Songs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_songs 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		if getVar("enableDances") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Dances\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_dances 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		if getVar("enableChants") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Chants\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_chants 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		if getVar("enableKamael") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Kamael\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_kamael 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		if getVar("enableSpecial") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Special\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect view_special 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		if getVar("enableBuffSet") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Buff Set\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " castBuffSet 0 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"		
	if getVar("enableHeal") == "True" or getVar("enableBuffRemove") == "True" :
		MAIN_HTML_MESSAGE += "<br>[ Miscellaneous ]<br>"
		if getVar("enableHeal") == "True" :
			MAIN_HTML_MESSAGE += "<button value=\"Heal\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " heal 0 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"		
		if getVar("enableBuffRemove") == "True":
			MAIN_HTML_MESSAGE += "<button value=\"Remove buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " removeBuffs 0 0 0\" width=130 height=20 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
	if st.getPlayer().isGM() :
		MAIN_HTML_MESSAGE += "<br>[ Administration panel ]<br>"
		MAIN_HTML_MESSAGE += "<button value=\"Change Configuration\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect selectConfigSections 0 0\" width=160 height=28 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
		MAIN_HTML_MESSAGE += "<button value=\"Manage Buffs\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect manage_buffs 0 0\" width=160 height=28 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"	
else :
	MAIN_HTML_MESSAGE += "This buffer is only for VIP's!<br>Contact the administrator for more info!<br>"
MAIN_HTML_MESSAGE += "<font color=\"303030\">Rin4a's buffer v1.2</font></center></body></html>"
return MAIN_HTML_MESSAGE

class Quest (JQuest) :

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

def onAdvEvent (self,event,npc,player) :
	st = player.getQuestState(QUEST_LOADING_INFO)
	htmltext = event
	currentTime = int(System.currentTimeMillis()/1000) # get current game time ( FOR TIME OUT SYSTEM )
	HEADER = "<html><head><title>"+getVar("title")+"</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"
	FOOTER = "<br><font color=\"303030\">Rin4a's buffer v1.2</font></center></body></html>"			
	STYLE = getVar("style")
	CONSUMABLE_ID = int(getVar("consumableId"))
	BUFF_WITH_KARMA = getVar("buffWithKarma")
	TIME_OUT = getVar("timeOut")
	TIME_OUT_TIME = int(getVar("timeOutTime"))
	FREE_BUFFS = getVar("freeBuffs")
	HEAL_PRICE = int(getVar("healPrice"))
	BUFF_PRICE = int(getVar("buffPrice"))
	SONG_PRICE = int(getVar("songPrice"))
	DANCE_PRICE = int(getVar("dancePrice"))
	CHANT_PRICE = int(getVar("chantPrice"))
	KAMAEL_PRICE = int(getVar("kamaelPrice"))
	SPECIAL_PRICE = int(getVar("specialPrice"))
	BUFF_REMOVE_PRICE = int(getVar("buffRemovePrice"))
	ENABLE_HEAL = getVar("enableHeal")
	ENABLE_BUFFS = getVar("enableBuffs")
	ENABLE_SONGS = getVar("enableSongs")
	ENABLE_DANCES = getVar("enableDances")
	ENABLE_CHANTS = getVar("enableChants")
	ENABLE_KAMAEL = getVar("enableKamael")
	ENABLE_SPECIAL = getVar("enableSpecial")
	ENABLE_BUFF_REMOVE = getVar("enableBuffRemove")
	MIN_ACCESS_LEVEL = int(getVar("gmAccessLevel"))
	ENABLE_BUFF_SET = getVar("enableBuffSet")
	BUFF_SET_PRICE = int(getVar("buffSetPrice"))
	ENABLE_BUFF_SORT = getVar("sortBuffs")
	MAX_BUFFS_PER_SCHEME = Config.ALT_BUFFS_MAX_AMOUNT # generated in altsettings.properties
	SCHEME_BUFF_PRICE = int(getVar("schemeBuffPrice"))
	SCHEMES_PER_PLAYER = getVar("schemeCount")
	PVP_ZONE_PRICE_MULTIPLIER = int(getVar("pvpMultiplier"))
	VIP_ENABLED = getVar("vipBuffer")
	VIP_MIN_ACCESS = int(getVar("vipBufferMinAccessLevel"))

 

I appreciate your help, thanks

 

edit: i forgot to say the script is not all

  • 0
Posted

Code To Get Effect Without Use It!

 

SkillTable.getInstance().getInfo(SkillID,Level).getEffects(st.getPlayer(),st.getPlayer())

 

Check in your script, there have the code to use skill... so remove this part and put this up!

  • 0
Posted

hi, thank you for trying to help me but i have already this code... and the characters just take buffs but no animation(dance or something else) ....

 

please if anyone knows...

  • 0
Posted

ohh... please somebody... buffering without this animation have no fun and looks like hell...

 

 

edit: tell me how to attract attention for somebody to help me..

forget it nobody wants to help me....

 

edit2: i forget to say ... every time I posted I waited a day to somebody respond

 

Moderated Message:

Please don't double-post, use the edit button instead. Members are allowed to double or triple post only if their previous post has exceeded the maximum characters limit.

Kindly visit our rules:

http://www.maxcheaters.com/forum/index.php?topic=11.0

 

fakoykas.

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

    • ## SuperPoint Editor   SuperPoint Editor is a practical visual editor for Lineage II PTS 'SuperPoint.bin' files. It is built for people who need to inspect, fix, rebuild, and draw server routes without digging through binary data by hand.   ### What You Can Do   - Open and edit 'SuperPoint.bin' files. - Export BIN data into a readable TXT format. - Save edited data back into a valid BIN file. - Validate routes before saving. - Work with SuperPoint routes, points, directed connections, and path records in tables. - Add, duplicate, delete, and reorder points. - Create direct and reverse connections between route points. - Automatically generate connections between neighboring points. - Edit raw point coordinates: 'X', 'Y', 'Z', 'Index', and 'Delay'. - Keep route names and internal route data organized. - Use either English or Ukrainian interface language.   ### C4 Server Support   Some C4 servers have 'SuperPoint.bin', but do not have 'superpointinfo.txt' in scripts. The editor supports this case directly. When 'superpointinfo.txt' is not found near the BIN file, the editor can open the BIN in C4 mode. In this mode, 'Fstring ID' is disabled because that value belongs to 'superpointinfo.txt', not to the BIN itself. The editor will not generate or modify 'superpointinfo.txt' while working in this mode. This keeps C4 data clean and avoids creating script files that the server does not actually use.   ### superpointinfo.txt Support   For chronicles that do use 'superpointinfo.txt', the editor can load and synchronize it together with the BIN data. When saving, the editor updates route nodes and coordinates while preserving existing metadata such as: - 'npc_name' - 'move_type' - 'fstring_index' - 'social_number' - 'delay' New nodes are generated with safe default values, so existing script metadata is not accidentally wiped.   ### Geodata Tools   The editor can also open converted geodata '.dat' files and display them as a map. This makes route editing much more visual. You can: - Load geodata and inspect the terrain by layer. - Zoom and pan around the map. - Create a new SuperPoint directly from a map cell. - Draw a route by clicking on the geodata. - Drag existing points to new positions. - Automatically snap 'X/Y' to the selected geo cell. - Use the selected geodata layer to fill the point 'Z'. - See all routes on the map or focus only on the selected one. This is especially useful when building new NPC movement paths or correcting bad route coordinates.   ### Connections and Paths   SuperPoint connections are directional. A connection from point '3' to point '2' is not the same as a connection from point '2' to point '3'. The editor makes this explicit by separating: - route points, - directed connections, - and the actual path records used by each connection. For simple cases, it can create direct path records automatically. For more complex movement, you can edit the path points manually. ### Built for Safe Editing The editor includes validation before saving, so common structural problems can be caught before a broken BIN is produced. It also verifies rebuilt BIN files through the converter engine. The goal is simple: edit quickly, but do not silently damage server data.   ### Unknown Field   This small 'Unknown' field is part of the original BIN structure. Most official-looking files keep it as '0', and for regular route editing there is usually no reason to change it. The editor exposes it so nothing from the BIN is hidden or lost. If you do not know exactly what your server uses it for, keep it at '0'. Download
    • NpcGrp não salva no interlúdio e da crítico quando coloca ele no cliente, já testei ele antes.
  • 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..