Would you like to react to this message? Create an account in a few clicks or log in to continue.

Welcome to L2 Golden Flame server. Don't forget to vote daily & enjoy your stay here.
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 For Developers and Admin

Go down 
2 posters
AuthorMessage
cristos




Number of posts : 22
Registration date : 2009-01-16

For Developers and Admin Empty
PostSubject: For Developers and Admin   For Developers and Admin Icon_minitimeThu Feb 05, 2009 6:13 am

For Zumbul and Development

You 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 bounce bounce bounce
Back to top Go down
ZumbuL




Male
Number of posts : 127
Age : 34
Location : USA
Registration date : 2008-12-26

For Developers and Admin Empty
PostSubject: Gratz!   For Developers and Admin Icon_minitimeFri Feb 06, 2009 6:37 am

Looks like somebody just earned himself an Icarus Wep or 1500 Coins of Luck.

PM me ur IG name.

Thanks for the contribution
Back to top Go down
http://www.l2gf.com
 
For Developers and Admin
Back to top 
Page 1 of 1
 Similar topics
-
» this is a good one for the gm/admin

Permissions in this forum:You cannot reply to topics in this forum
 :: Forum :: General Discussion-
Jump to: