Dissidia Posted October 14, 2012 Posted October 14, 2012 (edited) get online party member count in source code.. inside the mob.c Edited October 14, 2012 by Yurika Quote
Emistry Posted October 14, 2012 Posted October 14, 2012 we have this Getpartymember just loop through party member data to check it's online or not.. Quote
Dissidia Posted October 14, 2012 Author Posted October 14, 2012 ahm i want to put the Getpartymember online inside the mob.c sir.. what code do i need? Quote
AnnieRuru Posted October 14, 2012 Posted October 14, 2012 no, it should be in script.c practically I suggest add another variable like $@partymemberonline = return how many players online in the party since getpartymember has to be use in any kind of party script anyway and what emistry means is this http://www.eathena.ws/board/index.php?s=&showtopic=156045&view=findpost&p=860205 Quote
MarkZD Posted October 26, 2012 Posted October 26, 2012 (edited) Create a variable of type struct party_data; Sample: struct party_data *party; Use party_search function: party_search(party_id); Sample: party = party_search(party_id); Use a counter(You'll need to create some int vars before, which will be used in the loop[MAX_PARTY is a constant, and already exists]): if(party!=NULL){ for(i=0;i<MAX_PARTY;i++){ if(p->party.member[i].account_id) j++; } } j will be the number of party members. Of course, it'll depends on how u know the code. it'd be better you u told exactly what you want to do, maybe there're other way of doing it without changing mob.c. Edited October 26, 2012 by MarkZD Quote
Question
Dissidia
get online party member count in source code.. inside the mob.c
Edited by Yurika4 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.