Search found 59 matches

by Liposo
04 Sep 2015, 15:23
Forum: Resolved Questions
Topic: Hook when HP or SP changed
Replies: 6
Views: 6097

Re: Hook when HP or SP changed

c4c1n6kr3m1 wrote:usually i added this line

message("this line is working\n");
Yes I've added that line in the file. Still no message printed in console.
by Liposo
24 Aug 2015, 07:10
Forum: Resolved Questions
Topic: Hook when HP or SP changed
Replies: 6
Views: 6097

Re: Hook when HP or SP changed

Any way?
by Liposo
22 Aug 2015, 07:02
Forum: Resolved Questions
Topic: Hook when HP or SP changed
Replies: 6
Views: 6097

Hook when HP or SP changed

I'm trying to write a plugin to hook when your HP/SP got changed.
I've found

Code: Select all

sub hp_sp_changed {...}
in ServerType0.pm. But somehow this function never triggers when your HP/SP got changed.

Please recommend how to know when HP/SP got changed using Plugin's hook.
by Liposo
31 Jul 2015, 07:29
Forum: Macro Plugin
Topic: [guide/help] Macro usefulls
Replies: 23
Views: 110615

Re: [guide/help] Macro usefulls

How to check if a cell is not occupied by a player? So I can cast warp portal on that cell.
by Liposo
21 Jul 2015, 15:28
Forum: Macro Plugin
Topic: [guide/help] Macro usefulls
Replies: 23
Views: 110615

Re: [guide/help] Macro usefulls

How can I check if: - you are not dead - you are wearing a specific item in specific equipment slot (headgear/weapon/etc) - you are a target of specific skill or in range of specific skill using macro's @eval(), not automacro conditions? And for checking if HP is below 80% or not. Is it correct to u...
by Liposo
11 Jul 2015, 01:52
Forum: Bug reports
Topic: r8983 - Use of uninitialized value $userID in unpack...
Replies: 0
Views: 2069

r8983 - Use of uninitialized value $userID in unpack...

From this bug: http://forums.openkore.com/viewtopic.php?f=56&t=210995

That one was fixed in r8983. But a new bug was introduced.
The message was shown in console as following.
Use of uninitialized value $userID in unpack at src/ChatQueue.pm line 90.
by Liposo
09 Jul 2015, 01:33
Forum: Bug reports
Topic: r8977 - uninitialized value $ChatQueue::config{"callSign"}
Replies: 7
Views: 4815

Re: r8977 - uninitialized value $ChatQueue::config{"callSign"}

It's exactly r8977 that the problem was introduced. It was no issue in the earlier revisions. Also r8977 changelog clearly mentions that ChatQueue.pm was changed. Code cleanup in aisle /openkore/openkore/trunk/src/ChatQueue.pm !! This commit is a perfect example showing why we MUST have both use war...
by Liposo
22 Jun 2015, 07:53
Forum: Bug reports
Topic: r8977 - uninitialized value $ChatQueue::config{"callSign"}
Replies: 7
Views: 4815

Re: uninitialized value $ChatQueue::config{"callSign"}

No, I haven't made any change after updating to that revision.