For Zumbul and DevelopmentYou can add on npc buffer cancel buffs button if someone mistake the buffs.
add in gameserver\data\stats\skills an xml file 9900-9999 and insert the following:
<?xml version="1.0" encoding="UTF-8"?>
<list>
<skill id="9950" levels="1" name="Cancellation">
<set name="magicLvl" val="99"/>
<set name="power" val="999"/>
<set name="target" val="TARGET_SELF"/>
<set name="hitTime" val="1"/>
<set name="reuseDelay" val="1"/>
<set name="skillTime" val="1"/>
<set name="skillType" val="NEGATE"/>
<set name="isMagic" val="true"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="-1"/>
<set name="effectRange" val="-1"/>
<set name="negateStats" val="BUFF"/>
<set name="negatePower" val="99.9"/>
<set name="maxNegated" val="80"/>
<for>
</for>
</skill>
</list>
after that go to your npc buffer file (gameserver\data\scripts\custom\NPCBuffer) make a cancel buffs button in main HTML:
<tr>
<td><button value="Cancel Buff" action="bypass -h Quest
(Name of your NPC Buffer Folder) 1000" width=80 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
</tr>
and in (gameserver\data\scripts\custom\NPCBuffer) __init__.py from buffer files add the last or where u want :
#Cancellation
if event == "1000":
st.takeItems(ADENA_ID,100)
st.getPlayer().useMagic(SkillTable.getInstance().getInfo(9950,1),False,False)
st.getPlayer().restoreHPMP()
return "
Your Main Npc Buffer.htm"
st.setState(COMPLETED)
Restart server and voila we can cancel buffs