Jump to content

[SHARE]PetBuffer


Recommended Posts

gracia CT2.2 petbuffer npc

 

the buffer can give pp/ee/se buffs to your pet.

 

install:

copy the 9999_NPCBuffer to data/scrips/custom

copy html file to data/html/default

insert the sql file to database

 

http://www.4shared.com/file/77226873/54a08e90/PetBufer_CT2_Intrepid.html

 

ONLY FOR L2JFREE CT2.2

 

credits to me.

 

 

Link to comment
Share on other sites

and those buffs work for the pet? o_O

i thought that regular buffs can't be used on pets

and why did you keep restoreHpMp? it doesn't work for the pet in any way...

 

and just for your information, I would do it this way:

I would make a function to save space and later on I would call it, or even better, to not to mess with "if event== and so on", I would make an array where I would store all buff data, so the code would be much more smaller in size...

here's how it would look like:

 

# buff data is stored in this way: id, level, html file name (without .htm) assuming that every value is an integer value

buff_data = [[1085,3,1],[1304,3,2],[1087,3,3]] # only a part of the buff list

 

# function to cast the buff

def castBuff(id,level,htmlNum) :

    SkillTable.getInstance().getInfo(id,level).getEffects(st.getPlayer(),st.getPet(),st.getPlayer(),st.getPet())

    return str(htmlNum)+".htm"

 

and all you would have to do to make the buff casting work depending on the event number is:

 

    castBuff(buff_data[event][0],buff_data[event][1],buff_data[event][2])

 

or you can do it without the custom function, so it would look like this:

 

    SkillTable.getInstance().getInfo(buff_data[event][0],buff_data[event][1]).getEffects(st.getPlayer(),st.getPet(),st.getPlayer(),st.getPet())

    return str(buff_data[event][2])+".htm"   

 

if you understood everything, try to make the next version to be like this, or if you will have problems, write here and I will make it working properly

btw: it can be done more clearly with dictionaries, and if I will remember how to use them, I will write the second way using dictionaries not arrays

   

Link to comment
Share on other sites

it's ok... it was just a tip from my side ;)

anyway if you want to learn python or java, check out my 4shared account! I have uploaded video lessons in there!

http://www.4shared.com/account/dir/6264003/ab2e8dff/sharing.html?rnd=37

Link to comment
Share on other sites

it's ok... it was just a tip from my side ;)

anyway if you want to learn python or java, check out my 4shared account! I have uploaded video lessons in there!

http://www.4shared.com/account/dir/6264003/ab2e8dff/sharing.html?rnd=37

 

thanks for video lessons:)

i'm newbie in python so it's usefull to me:)

Link to comment
Share on other sites

good work man keep it up! but my opinion is that a server having pet buffer will may overpower some classes what i mean is, if a Necromancer has a pet full buffed and in pvp has transfer pain on, this will make is a little hard to kill. this may be good for summoner because they olny hit with their pets. anw good work:)

Link to comment
Share on other sites

good work man keep it up! but my opinion is that a server having pet buffer will may overpower some classes what i mean is, if a Necromancer has  a pet full buffed and in pvp has transfer pain on, this will make is a little hard to kill. this may be good for summoner because they olny hit with their pets. anw good work:)

 

well yes petbuffer only for pvp server's but for pvp servers it's very good thing to have one...and just imagine

3x low server with full buffed reanimated man:D:D:D

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
  • 1 month later...
Guest
This topic is now closed to further replies.


  • Posts

    • Guys, if you'd let me be the bearer of bad news, No amount of "break from server development" can justify your complete lack of idea how things work. If it was this easy, you should've been seeing 90% of the servers of the popular old versions, such as IL and HF, running on the newest client. For this task, you would need a lot of time - think at least 2 months, if you can code, have access to all the necessary tools for client development, and you have a relatively good idea of how server<->client communication works. f you don't, then you either find yourself a well-paying job and find someone who would do it for you or you put the idea aside (for no less than 1-2 years) and start reading and learning asap. Let me give you a little preview/breakdown of what some of the work includes. The work can be split into two parts - SERVER side and CLIENT side.  The server and the client communicate through packets. Each of these packets has a defined structure. Both, the server and the client MUST know this structure and MUST use the same structure, otherwise they won't be able to "understand" each other. - The server side predominantly includes the alteration of existing packet structure and the creation (from zero) of missing packets that the client requires. Then you also have to take these changes into account and alter the existing features of your server to match the changes. A good example for this is SKILL ENCHANTING. On older chronicles, the enchant level is determined by the LEVEL value of the skill and on the new clients, it has been taken out into a separate value. What this means is that you would have to figure out a way to adapt the old system to the new requirements. - Now that we mentioned the client, you would also need to edit a bunch of files, such as Interface, UTX, UNR, as well as DAT files, including those related to ITEMS, SKILLS, QUESTS, NPCS, and AUGMENTATION STATS and DESCRIPTIONS, etc. For some of those, you would also have to figure out how to check for missing entries and how to parse data from the older client to the new. The best example, again, would be the SKILLS. On the latest clients, the skill enchanting was limited to only +20. As such, even if there were some matching skills between the two different client versions, you would still need to add the missing 10 levels to +30. And once you complete all of that, you start testing and fixing bugs and sh1t. And once you have fixed all of that, you can start adding new features from the new client, because otherwise it would be one big mess and a waste of time and/or money.
    • As far as I know, these are not linked to the server. What I mean by this is - there is no server <-> client communication for these two features. If that is indeed the case, you would need the Interface sources in order to create a custom function which you can trigger with a SERVER_TO_CLIENT packet.
    • Hello, I recently Installed the h5 Interface from emu-dev   Everything is working great but i was wondering if anyone can help me add the monster book and item book buttons on my community board to make it more accessible. Or if there is a way to add a button with HTML that calls these windows. I have xdat editor installed and i have located the relevant windows, but i don't know what to do with them. Thank you for your time.  
    • Add Support ShortCutPanel https://jumpshare.com/s/VTm9x1wvHmPokrqomNun
    • Καλησπερα μαγκες θα ηθελα εναν Dev ( που να γνωριζει καλα την δουλεια ) να ξεκινησουμε εξολοκληρου ενα Interlude PVP σερβερ που εχω στο μυαλο μου! Παρακαλω πολυ στειλτε μου προσωπικο στο προφιλ μου εδω για περαιτερω πληροφοριες! Ευχαριστω!
  • Topics

×
×
  • Create New...