Hi Guys, hope you could help me as I've been trying to achieve this for about three days now but still stuck with a particular bug:
The goal:
I want to create a system where players could join a temporary (fake) guild to do some role-play. This data doesnt need to be saved in the DB and can/should be merely visual.
What I've done so far:
* I managed to create the temporary guilds and get the emulator to run them from a .txt file
* I managed to get players in fake guilds successfully
Where I am struggling:
When players log in and pick join one of these fake guilds they receive all the information I meant to send: their new name, their new guild name even the guild emblem. Players that are in the range see these changes applied to their peer succeessfully but, someone arriving after that first player got into their fake-guild they can only see their (new/fake) name and guild name but not their guild emblem.
It is like I am missing something in the clif_sendfakeemblem_single or something like that.
Would any of you guys be so kind to help me with this? I think I dont understant it right how the emulator deals with the spread of information to players when the are in range
Question
biali
Hi Guys, hope you could help me as I've been trying to achieve this for about three days now but still stuck with a particular bug:
The goal:
I want to create a system where players could join a temporary (fake) guild to do some role-play. This data doesnt need to be saved in the DB and can/should be merely visual.
What I've done so far:
* I managed to create the temporary guilds and get the emulator to run them from a .txt file
* I managed to get players in fake guilds successfully
Where I am struggling:
When players log in and pick join one of these fake guilds they receive all the information I meant to send: their new name, their new guild name even the guild emblem. Players that are in the range see these changes applied to their peer succeessfully but, someone arriving after that first player got into their fake-guild they can only see their (new/fake) name and guild name but not their guild emblem.
It is like I am missing something in the clif_sendfakeemblem_single or something like that.
Would any of you guys be so kind to help me with this? I think I dont understant it right how the emulator deals with the spread of information to players when the are in range
My clif_sendfakeemblem_single is like this atm:
void clif_sendfakeemblem_single(int fd, struct map_session_data *sd) { nullpo_retv(sd); WFIFOHEAD(fd,32); WFIFOW(fd,0) = 0x2dd; WFIFOL(fd,2) = sd->bl.id; safestrncpy(WFIFOCP(fd,6), sd->status.name, NAME_LENGTH); WFIFOW(fd,30) = sd->status.fake_guild_id; WFIFOSET(fd,packet_len(0x2dd)); }
May you need more info please ask. thank you very much in advance!
Link to comment
Share on other sites
0 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.