Dissidia Posted October 14, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Share Posted October 14, 2012 (edited) get online party member count in source code.. inside the mob.c Edited October 14, 2012 by Yurika Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted October 14, 2012 we have this Getpartymember just loop through party member data to check it's online or not.. Quote Link to comment Share on other sites More sharing options...
Dissidia Posted October 14, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Author Share Posted October 14, 2012 ahm i want to put the Getpartymember online inside the mob.c sir.. what code do i need? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 14, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share 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 Link to comment Share on other sites More sharing options...
MarkZD Posted October 26, 2012 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 134 Reputation: 35 Joined: 02/27/12 Last Seen: April 5, 2022 Share 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 Link to comment Share on other sites More sharing options...
Question
Dissidia
get online party member count in source code.. inside the mob.c
Edited by YurikaLink to comment
Share on other sites
4 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.