Hello Coruja, Thanks very much for your answer!
The same day i wrote this topic i did this:
Code:
/////////////combat def messages////////////////////
[function msgarm1]
sysmessage=You hit <src.name> left arm!
src.sysmessage=<name> hits your left arm!
[function msgarm2]
sysmessage=You hit <src.name> right arm!
src.sysmessage=<name> hits your right arm!
[function msgarm3]
sysmessage=You hit <src.name> right arm!
src.sysmessage=<name> hits your right arm!
[function msgchest1]
sysmessage=You score a hit to <src.name> back!
src.sysmessage=<name> scores a hit to your back!
[function msgchest2]
sysmessage=You hit <src.name> chest!
src.sysmessage=<name> hits your Chest!
[function msgchest3]
sysmessage=You land a blow to <src.name> stomach!
src.sysmessage=<name> lands a blow to your stomach!
[function msgchest4]
sysmessage=You land a terrible blow to <src.name> chest!
src.sysmessage=<name> lands a terrible blow to your chest!
[function msgchest5]
sysmessage=You knock the wind out of <src.name>!
src.sysmessage=<name> knocks the wind out of you!
[function msgchest6]
sysmessage=You hit <src.name> in the ribs!
src.sysmessage=<name> hits you in the ribs!
[function msgchest7]
sysmessage=You smash <src.name> in the rib cage!
src.sysmessage=<name> smashed you in the rib cage!
[function msgfoot1]
sysmessage=You hit <src.name> foot!
src.sysmessage=<name> hits your foot!
[function msghand1]
sysmessage=You hit <src.name> left hand!
src.sysmessage=<name> hits your left hand!
[function msghand2]
sysmessage=You hit <src.name> right hand!
src.sysmessage=<name> hits your right hand!
[function msghead1]
sysmessage=You hit <src.name> straight in the face!
src.sysmessage=<src.name> hit you straight in the face!
[function msghead2]
sysmessage=You hit <src.name> on the head!
src.sysmessage=<name> hit you on the head!
[function msghead3]
sysmessage=You hit <src.name> square in the jaw!
src.sysmessage=<name> hit you square in the jaw!
[function msghead4]
sysmessage=You score a stunning blow to <src.name> head!
src.sysmessage=<name> scores a stunning blow to your head!
[function msghead5]
sysmessage=You smash a blow across <src.name> face!
src.sysmessage=<name> smashes a blow across your face!
[function msghead6]
sysmessage=You score a terrible hit to <src.name> temple!
src.sysmessage=<name> scores a terrible hit to your temple!
[function msgleg1]
sysmessage=You hit <src.name> left thigh!
src.sysmessage=<name> hits your left thigh!
[function msgleg2]
sysmessage=You hit <src.name> right thigh!
src.sysmessage=<name> hits your right thigh!
[function msgleg3]
sysmessage=You hit <src.name> in the groin!
src.sysmessage=<name> hits you in the groin!
[function msgleg4]
sysmessage=You hit <src.name> in the groin!
src.sysmessage=<name> hits you in the groin!
[function msgneck1]
sysmessage=You hit <src.name> in the throat!
src.sysmessage=<name> hits you in the throat!
[function msgneck2]
sysmessage=You smash <src.name> in the throat!
src.sysmessage=<name> smashes you in the throat!
////////////////////////////////////////////////////////////////
//////////////////Global function/////////////////////////////
[function combathitmessage]
dorand 23
msgarm1
msgarm2
msgarm3
msgchest1
msgchest2
msgchest3
msgchest4
msgchest5
msgchest6
msgchest7
msgfoot1
msghand1
msghand2
msghead1
msghead2
msghead3
msghead4
msghead5
msghead6
msgleg1
msgleg2
msgleg3
msgleg4
msgneck1
msgneck2
enddo
/////////////////////Event/////////////////////////////
[events e_defaultcombatmsg]
ON=@Hit
combathitmessage
//////////////////////////////////////////////////////
It´s the same as you wrote but with the proper messages added, plus taking in count attacker and defender to display the hitted body part like the old style.
One of the cons of this method is that you can not play with %ss strings to send messages like you hit <src.name>
´s (you can´t add ´s to the name in src.sysmessage), but well that aint too much to piss me off, i can deal just with <src.name> perfectly.
The other one is... This messages weren´t displayed while checking body parts in source?, if i remember well in 56b source they still are and there is a switch to iqty -1 or something like that and it was rolling for the hitted part, then when body part was selected it displayed both messages to players, or to players from npcs.... I saw it some days ago but i hace to check it out again to make sure, but if you remember well it has to work like that. But I´m asking that because it is pretty annoying to read a: <name> hit you in your throat ! and then inmediataly see <name> damaged your iron platemail legs! hahaha.
If it was working like that (weird) then the code above is more than good, but if not it gets very complicated... yeah idk why but i like to get in trouble lol.
About the warnings right now i just got 28, so we are improving it a lil bit. Here we have them:
![[Image: 5d9c5c3dc5bd176f29c592da046b944ao.jpg]](http://thumbs.subefotos.com/5d9c5c3dc5bd176f29c592da046b944ao.jpg)
I´ll do a check to make damn sure everything is ok using your tips.
Thanks very much for answering again mate, really appreciated!