firstly thank you for having answered me in other topic.
I have a question about some guild's package item. I would like to make a guid package but i don't understand how to modify properly sql file (i saw on other post that is needed for adding a guild package ).
I think getboundeditem is not really important in my case because the items ' guild package are duplicated items with their own id (with trade restriction setted in _db).
I need to use some event for scripting but i don't know if they already exist and if it's possible, i need to check if guild's member have an item of the guild package or if it's in gstorage.
3 Events needed :
on leave guild ( answered )
need to add this, but it works only for online player* :
Question
kilow
Hello,
firstly thank you for having answered me in other topic.
I have a question about some guild's package item. I would like to make a guid package but i don't understand how to modify properly sql file (i saw on other post that is needed for adding a guild package ).
I think getboundeditem is not really important in my case because the items ' guild package are duplicated items with their own id (with trade restriction setted in _db).
I need to use some event for scripting but i don't know if they already exist and if it's possible, i need to check if guild's member have an item of the guild package or if it's in gstorage.
3 Events needed :
on leave guild ( answered )
need to add this, but it works only for online player* :
https://github.com/rathena/rathena/blob/master/src/map/guild.cpp#L983
npc_event_doall_id("OnLeaveGuild", account_id);
on break guild (please, correct me if the event is at a wrong place)
https://github.com/rathena/rathena/blob/e8385d812ba327f1019d1f59987233684a6e378d/src/map/guild.cpp#L1893
https://github.com/rathena/rathena/blob/e8385d812ba327f1019d1f59987233684a6e378d/src/map/guild.cpp#L1967
npc_event_doall_id("OnGuildBreak", g->member[pos].sd->bl.id);
on kick player from guild (please, correct me if the event is at a wrong place) :
https://github.com/rathena/rathena/blob/e8385d812ba327f1019d1f59987233684a6e378d/src/map/guild.cpp#L930
npc_event_doall_id("OnKickGuild", account_id);
For the other events, it seems to be good because player need to online to leave a guild or kicking all members before breaking a guild.
Thank you community's helper.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.