• 0
Sign in to follow this  
Followers 0
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

  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0