Jump to content
  • 0
Sign in to follow this  
chriser

Migrating from rAthena

Question

Hi guys!

 

I'm currently migrating our server (custom rAthena, about 1 year old version) to hercules, and I have some questions:

  1. Is there any nice way to convert my item/mob/... MySQL db to the .conf format? I only saw .txt -> .conf converters.
  2. Regarding HPM function overloading: What happens if two plugins overload the same function? To my understanding, only the plugin which was loaded last gets to overload that function.
  3. Is it possible to add custom params using HPM? (by params I mean stuff like Zeny or Hp inside scripts)
  4. Is it possible to add custom mapflags using HPM?
  5. Is there any documentation for the HPM (except the wiki)?
  6. Is there a communication channel outside of the forums for devs?

Looking forward to your answers :)

 

Cheers,

 

chriser

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

2. depend how plugin hook type and is it block other functions with same name.

It can hook pre function, and if it not call hookStop() other plugins and server can execute oroginal function. If it call hookStop(), all other plugins and original function will be blocked.

It can hook post function. Then it will be called after pre, and normal function.

 

3. yes

 

4. yes

 

5. try see other plugins.

 

6. irc

Share this post


Link to post
Share on other sites
  • 0

thanks for your answers!

 

by function overloading I dont mean the hooks, I mean using this:

 

pc->additional_bonus = &my_own_bonus_func

 

With hooks it is pretty clear that all plugins get called, but using this method it seems that only one plugin gets his function called.

Share this post


Link to post
Share on other sites
  • 0

Yes overloading block other plugins if they overloaded this function before

Share this post


Link to post
Share on other sites
  • 0

ok, as expected, thanks :D

 

let's see if I can manage to convert my sql database to the conf format. shouldn't be that hard, libconfig format seems pretty nice.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.