Hello,
how can I get name from journal?
if (InJournalBetweenTimes('attacking you',gtime,Now) <> -1) then begin
uosay('\ Help guild, '+IntToStr(GetName(InJournal('attacking you'))+' is Killing me.');
gtime := Now; gtime2 := Now;
end;
anything like that, in Injection we use: uo.getserial(UO.JournalSerial(uo.InJournal(...
in stealth I didnt find how to do that,
anyone can help me?
thx =)
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Function getname from journal, how?
Re: Function getname from journal, how?
You can use events to handle journal messages. In it's params there is SenderName in which you'l have your name.Ladok wrote:Hello,
how can I get name from journal?
if (InJournalBetweenTimes('attacking you',gtime,Now) <> -1) then begin
uosay('\ Help guild, '+IntToStr(GetName(InJournal('attacking you'))+' is Killing me.');
gtime := Now; gtime2 := Now;
end;
anything like that, in Injection we use: uo.getserial(UO.JournalSerial(uo.InJournal(...
in stealth I didnt find how to do that,
anyone can help me?
thx =)
Code: Select all
evSpeech : [Text,SenderName,SenderID]
program eventTest;
procedure SpeechEventHandler(Text,SenderName : String; SenderID : Cardinal);
begin
AddToSystemJournal(Text + ' ' + Name);
end;
begin
SetEventProc(evSpeech, 'SpeechEventHandler');
while not dead do
wait(1000);
end.
Re: Function getname from journal, how?
InJournalBetweenTimesLadok wrote:Hello,
how can I get name from journal?
if (InJournalBetweenTimes('attacking you',gtime,Now) <> -1) then begin
uosay('\ Help guild, '+IntToStr(GetName(InJournal('attacking you'))+' is Killing me.');
gtime := Now; gtime2 := Now;
end;
anything like that, in Injection we use: uo.getserial(UO.JournalSerial(uo.InJournal(...
in stealth I didnt find how to do that,
anyone can help me?
thx =)
+
function LineID : Cardinal;
=
profit!
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: Function getname from journal, how?
better then this is impossible! profit
did it!
if (InJournalBetweenTimes('attacking you',gtime,Now) <> -1) then begin
uosay('\Help '+GetName(LineID)+' is killing me');
...
best and easir way...
thanks too much genius
did it!
if (InJournalBetweenTimes('attacking you',gtime,Now) <> -1) then begin
uosay('\Help '+GetName(LineID)+' is killing me');
...
best and easir way...
thanks too much genius
Vizit0r wrote:InJournalBetweenTimesLadok wrote:Hello,
how can I get name from journal?
if (InJournalBetweenTimes('attacking you',gtime,Now) <> -1) then begin
uosay('\ Help guild, '+IntToStr(GetName(InJournal('attacking you'))+' is Killing me.');
gtime := Now; gtime2 := Now;
end;
anything like that, in Injection we use: uo.getserial(UO.JournalSerial(uo.InJournal(...
in stealth I didnt find how to do that,
anyone can help me?
thx =)
+
function LineID : Cardinal;
=
profit!