HELP Effects to my buffer and other NPC

Results 1 to 8 of 8
  1. #1
    Apprentice torpedo is offline
    MemberRank
    Mar 2007 Join Date
    22Posts

    HELP Effects to my buffer and other NPC

    In my lanhouse i dont have lag cause this im trying set the efect for buffer...

    not for all buff... just to a custom buff like dagger buffs (24 buffs +-)

    in final of the list i need set one effect like (light of transform dispel) or the light and sound like when player change subclass (sound plimmm and light) hehe

    i try a lot of things and the more close i do was make a soun play... playsound etc...

    i dont know how put effect what i need import and what i need set in final line off buffs...

    i dont know if im right but exist 2 ways ... one use skill table efect and other more direct is import and set line direct ... i try import efect and set stoptransformation...

    thx


  2. #2
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: HELP Effects to my buffer and other NPC

    i have not worked for something like this but search in core and in dp for the codes that are effects. so you can make your buffer to give this effect to your player.

  3. #3
    Apprentice torpedo is offline
    MemberRank
    Mar 2007 Join Date
    22Posts

    Re: HELP Effects to my buffer and other NPC

    the first thing i do was this find codes and i think ok i find... i try a lot of things to put this in quest...

    my dificult is put this in .py ... the line in final of buffer line like st.getplayer.get effect etc...

    i need know if someone here... i see this person is you cause are here frequently... and maybe say to me options to set in .py... i try a lot of things and i have a lot of erros, dont load quest or quest error when load...

    the line i need to find is the line were i put the efect and it happen... sure to .py files

    Last edited by torpedo; 26-05-11 at 02:08 PM.

  4. #4
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: HELP Effects to my buffer and other NPC

    if you can give me the code that you are trying to add in your py and the error. so i will try to debug it

  5. #5
    Apprentice torpedo is offline
    MemberRank
    Mar 2007 Join Date
    22Posts

    Re: HELP Effects to my buffer and other NPC

    ok... man you are very atencious and this make ragezone a real good place... that was my error i dont put code cause i was trying use java codes... now let me take a place from your forum and post what i say in l2jserver forum...

    SOLUTION - THE FINAL OF THE SAGA

    por torpedo » Sex Mai 27, 2011 10:37 am

    wel wel.. for where i begin... ill try resume

    first i have acept my mistake cause i dont know one cap letter M cause errors... i read foruns and copy one line comand and it works only with exact comand including cap letter...

    about 3 days more than 20 hours of tests and try a lot of google searches somethings be learn...

    about google i grow up too cause im from time without google, where exists cheap searches engines, and in present the years are going and more and more im convicted the words is the secret of a good search result... all time i was searching effects effects... no... yesterday i put npc animation, simple, and again the line useMagic was show, and in test wihtout expectatives works correcting this M...

    efects in python is just adaptations from skills using comand to buff self.. comands java need more things i dont know...

    my conclusion about insert efects direct like st.playsound, if was possible st.effect (skill) ill make this only if quest be in java cause this way i just need import java comands from code... but i like jython its more easy to newbie...

    to jython quest the comand is the simple useMagic... this m cause my mistake and i grow up...

    complete line used is

    skill 1069 level 1 its just to ilustre...

    Code:
    st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1069,1),False,False)
    other cool skills is firework, cp recover and other dummy skills...

    the next step is find the skill used by classmasters all time in servers... a light and sound...

    thx for space, not for help, but a lot read and maybe dont understand and sure hava a lot of job, my case is finish... and news ill post to all...

    gl

    Torpedo / Sumaru / The love for L 2 is a stronger force in my life / Thx L2jServer Team
    thx
    Last edited by torpedo; 28-05-11 at 06:32 AM. Reason: errors

  6. #6
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: HELP Effects to my buffer and other NPC

    this command is giving you the effect of the skill. it is like the buffer is to cast a buff on you. so show me your script error and we can try to fix it

  7. #7
    Apprentice torpedo is offline
    MemberRank
    Mar 2007 Join Date
    22Posts

    Re: HELP Effects to my buffer and other NPC

    yes this i call adapt example in past when adm want give effect to buffer used st.getPlayer().restoreHPMP()... this comend in atual version dont work and was removed cause lag servers... and i agree to online servers my case is lan house server...

    my script is too long but ill past the part of recover cp mp hp

    Code:
    			#HP / MP / CP
    			if event == "97":
    				st.takeItems(ADENA_ID,Raro)
    				st.getPlayer().getStatus().setCurrentHp(st.getPlayer().getStat().getMaxHp())
    				st.getPlayer().getStatus().setCurrentMp(st.getPlayer().getStat().getMaxMp())
    				st.getPlayer().getStatus().setCurrentCp(st.getPlayer().getStat().getMaxCp())
    				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4380,1),False,False)
    				return "1.htm"		
    				st.setState(COMPLETED)
    with this comand (st.getPlayer().useMagic) yes you right the buffer cast a buff on me but i cast skill... some skills is long time charge and not good efects... i found one or 2 skills good like fireworks and arena cp recovery (sound and ring of fire um char) is great...

    im my tests with java comands the errors acused miss python codes and i was need one simple thing withou edit java to do efects... i discover at final some comandas in java dont work in .py of jythons... and if i insist in use java comenda ill need one buffer java...

    depending skills used like arena cp recovery i have a good effect in buffer with a simple line jython... if player buy a wivern for 300 festival adena (drop in champions) skill fireworks give a good effect too..

    so with this comand st.getPlayer().useMagic the server is fine and without errors...

    i just dont know at now is the name of famous skill used for classmasters... one light and a sound... skills heal is too far but dont is the real skill used by classmasters...

    good skills effect from skilltable.java are

    FIREWORK(5965, 1),
    LARGE_FIREWORK(2025, 1),
    ARENA_CP_RECOVERY(4380, 1),

    thx

  8. #8
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: HELP Effects to my buffer and other NPC

    i really do not know check in class master java files for the effect



Advertisement