GmHeathcliff Posted April 8, 2015 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/24/14 Last Seen: July 30, 2015 Share Posted April 8, 2015 Is there a way to Show the incoming and done Heal in Chat like it already is with dmg? Dont found anything about that Quote Link to comment Share on other sites More sharing options...
Skorm Posted April 11, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted April 11, 2015 All parts works Fine just the following one brings mapserver to Crash when heal undead ! like before! but Looks much better with names of chars thx^^ Try replacing ... if (src->type == BL_PC) { sprintf(str, "You've healed %s for %dhp!", tsd->status.name, hp); clif_displaymessage(sd->fd, str); } if (target->type == BL_PC && target->id != src->id) { sprintf(str, "You've been healed for %dhp by %s!", hp, sd->status.name); clif_displaymessage(tsd->fd, str); } With: if (src->type == BL_PC) { if (target->type == BL_PC) { sprintf(str, "You've healed %s for %dhp!", tsd->status.name, hp); clif_displaymessage(sd->fd, str); } else { sprintf(str, "Target healed for %dhp!", hp); clif_displaymessage(sd->fd, str); } } if (target->type == BL_PC && target->id != src->id) { sprintf(str, "You've been healed for %dhp by %s!", hp, sd->status.name); clif_displaymessage(tsd->fd, str); } 1 1 Quote Link to comment Share on other sites More sharing options...
Skorm Posted April 9, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted April 9, 2015 There's probably a better way to do this but until someone does it... In skill.c after int skill_calc_heal(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, bool heal) { int skill, hp = 0; struct map_session_data *sd = BL_CAST(BL_PC, src); struct map_session_data *tsd = BL_CAST(BL_PC, target); struct status_change *sc, *tsc; Add char str[255]; Then before return hp; } Add if (src->type == BL_PC) { if (target->type == BL_PC) { sprintf(str, "You've healed %s for %dhp!", tsd->status.name, hp); clif_displaymessage(sd->fd, str); } else { sprintf(str, "Target healed for %dhp!", hp); clif_displaymessage(sd->fd, str); } } if (target->type == BL_PC && target->id != src->id) { sprintf(str, "You've been healed for %dhp by %s!", hp, sd->status.name); clif_displaymessage(tsd->fd, str); } Quote Link to comment Share on other sites More sharing options...
GmHeathcliff Posted April 10, 2015 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/24/14 Last Seen: July 30, 2015 Author Share Posted April 10, 2015 Great that what iam searched for thanks ! but iam intrested what "way" you are talking about !^^ OHHHH my mapserver crashes now if iam using Heal on an Undead !!! There's probably a better way to do this but until someone does it... Quote Link to comment Share on other sites More sharing options...
Skorm Posted April 10, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted April 10, 2015 Great that what iam searched for thanks ! but iam intrested what "way" you are talking about !^^ OHHHH my mapserver crashes now if iam using Heal on an Undead !!! I actually tested to see if that would happen... and it didn't on my server but try this... Replace: sprintf(str, "You've healed %d!", hp); clif_displaymessage (sd->fd, str); sprintf(str, "You've been healed %d!", hp); clif_displaymessage (tsd->fd, str); With: if (src->type == BL_PC) { sprintf(str, "You've healed %s for %dhp!", tsd->status.name, hp); clif_displaymessage(sd->fd, str); } if (target->type == BL_PC && target->id != src->id) { sprintf(str, "You've been healed for %dhp by %s!", hp, sd->status.name); clif_displaymessage(tsd->fd, str); } And change... char str[32]; To char str[255]; Quote Link to comment Share on other sites More sharing options...
GmHeathcliff Posted April 10, 2015 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/24/14 Last Seen: July 30, 2015 Author Share Posted April 10, 2015 (edited) I actually tested to see if that would happen... and it didn't on my server but try this... All parts works Fine just the following one brings mapserver to Crash when heal undead ! like before! but Looks much better with names of chars thx^^ Edited April 11, 2015 by Skorm Quote Link to comment Share on other sites More sharing options...
GmHeathcliff Posted April 11, 2015 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/24/14 Last Seen: July 30, 2015 Author Share Posted April 11, 2015 Ouhhh yeaa that works perfect ! Thx for the work you got it Quote Link to comment Share on other sites More sharing options...
GmHeathcliff Posted June 24, 2015 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/24/14 Last Seen: July 30, 2015 Author Share Posted June 24, 2015 (edited) After all the time i reconized that if an Mob trys to use his heal tested on Fallen Bishop and Beelzebub it crashes mapserver ! after deleting it mapserver works fine ! Maybe you or someonelse have an Solution.!? i think sd&& tsd&& must be integrated but dunno right where! Edited June 27, 2015 by GmHeathcliff Quote Link to comment Share on other sites More sharing options...
Question
GmHeathcliff
Is there a way to Show the incoming and done Heal in Chat like it already is with dmg? Dont found anything about that
Link to comment
Share on other sites
7 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.