• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

ON_LEAVE_COMBAT

Status
Not open for further replies.

uDev

Illustrious Member
Umm is it working? Did i do something wrong? No error, and yet when i leave combat i dont get message? :S Strange huh?

Code:
function LeftCombat(event, player)
	player:SendBroadcastMessage("|cFFFF0000You left combat!|r")
end
    
RegisterServerHook(79, LeftCombat)
 

Hyperion

Founder
Umm is it working? Did i do something wrong? No error, and yet when i leave combat i dont get message? :S Strange huh?

Code:
function LeftCombat(event, player)
	player:SendBroadcastMessage("|cFFFF0000You left combat!|r")
end
    
RegisterServerHook(79, LeftCombat)

I don't see that hook on Eluna's wiki..
 

ToxicDev

Banned
Your script looks fine to me anyway.

I tested it as well no luck assuming that the hook is not finished "which may be the reason its not on the wiki" or something is wrong with it.

Maybe tommy or foereaper will help ya out later.
 
Last edited:

Rochet2

Moderator / Eluna Dev
Hmm, seems to work fine for me:

Code:
Eluna.RegisterServerHook(79, print)
Code:
TC> reload eluna
Eluna Lua Engine loaded.
Eluna::Loaded 3 Lua scripts..
Reloaded Eluna Lua Engine
TC> 79  <Player userdata: 2CC3E2C8>

Note that I am using the SWIG branch that differs a little from normal eluna .. but the hook code is the same nevertheless.
 

uDev

Illustrious Member
It doesn't at me. let me recompile core again

My Eluna is already up to date :S
 

Tommy

Founder
The code is fine and your script is fine. Are you sure you actually left combat? You know 'In Combat' can get stuck sometimes..
 

uDev

Illustrious Member
I did killed wolf at start area of humans and nothing happened even waited some time
 

uDev

Illustrious Member
Nope without gm on will test now and with normal account

It doesnt work guys :/
 
Last edited:
Status
Not open for further replies.
Top