[CD3.55] how to know who you killed?

mdoti

Dedicated Member
Dedicated Member
Dec 12, 2011
24
1
29
Hi,

I need to find the way to make the name of the user you killed appear.
Is it possible?

For example, to wrtie down a value in the database in order to make a kill count ranking.

Thanks,
 

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
97
135
UK
Hmm I can't say this will work but my suggestion.
When somebody kills you it says "<$OUTPUT()> has murdered you".
If you can find this string and manipulate the script so that the <$OUTPUT()> can be placed into a text document using the <$OUTPUT()> as the main header and then <$USERNAME> as the subheader=0.
When the document is opened via an NPC it will check for the header <$OUTPUT> (e.g. a username of mdoti), once it has found your username it will load the list of subheadings (other players) with the amount of times you've killed them.

This is just a theory so I can't say it will work but this is how I would do it if I was going to look into it.
Example
Code:
#IF
LoadValue D1 "PVPList.txt" %A1 %USERNAME
#ACT
INC D1 1
SaveValue D1 "PVPList.txt" %A1 %USERNAME
Sysmsg "<$OUTPUT(A1)> has murdered you <$OUTPUT(D1)> times"
 
Last edited:
Upvote 0

mdoti

Dedicated Member
Dedicated Member
Dec 12, 2011
24
1
29
thanks for your answer

i have that in StrRes3G.txt:

Stres.JPG


and that in MapQuest.txt:

mapquest.JPG
that is for de user died,


I dont know how i obtain the person who killed the User died.
I need to pass the %s in StrRes3G.txt image to Script User_Die.txt

sorry for my english im speak spanish

thanks again,
 
Upvote 0