Jump to content

Recommended Posts

Posted

Because I want to use l2joneo buuffer which has all buuff selection,this buffer take me script error!And i decited to create this guide for eveyone who has the problem with the buffer or any buffer !!

 

First go to gameserver/data/jscript and the folder where the buffer is!

 

and find the file __init__.py open this with notepad ! this is an exaple of l2joneo buffer :

 

if event == "4":

st.takeItems(ADENA_ID,140000)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)

st.getPlayer().restoreHPMP()

return "4.htm"

st.setState(COMPLETED)

 

if event == "5":

st.takeItems(ADENA_ID,400000)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4351,6),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4355,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4356,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)

st.getPlayer().restoreHPMP()

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)

st.getPlayer().restoreHPMP() ---------->change

return "4.htm"

st.setState(COMPLETED)

 

Now change (st.getPlayer().restoreHPMP() ) where it is with st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

 

And it will be like:  

if event == "4":

st.takeItems(ADENA_ID,140000)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

return "4.htm"

st.setState(COMPLETED)

 

if event == "5":

st.takeItems(ADENA_ID,400000)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4351,6),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4355,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4356,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

return "4.htm"

st.setState(COMPLETED)

 

 

And after the script error problem solved !

 

I hope u like this

 

PS. Tested in l2jserver

Ps2. If a modelator thinks that it isnt good delete this!

 

Posted

1on dn milame misa agglika misa ellinika 2on gia na kaneis mia buffer na leitourgei prepei na tin kaneis edit apo xml html an dn 3ereis auta ta vasika xa8ikes

  • 3 months later...

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