Angelix 375 Report post Posted November 4, 2016 So I want to make custom quests, like ask a player to kill 10 other players or kill 5 crusaders and such. The thing is, I can't get the following function to get called when killing a player, it only gets called when a monster is killed. function IsValue( id1, id2 ) if id1 == nil or id2 == nil then MISSDK_MISSIONSDK_LUA_000024 = GetResString("MISSDK_MISSIONSDK_LUA_000024") PRINT( MISSDK_MISSIONSDK_LUA_000024 ) MISSDK_MISSIONSDK_LUA_000024 = GetResString("MISSDK_MISSIONSDK_LUA_000024") LG( "mission_error", MISSDK_MISSIONSDK_LUA_000024 ) return LUA_ERROR end if id1 == id2 then return LUA_TRUE end return LUA_FALSE end So I'm guessing it's coded into the GameServer itself since I can't find any other place regarding the TE_KILL variable besides the Sdks. Does anyone know how I can make it so it shows up and registers them? I tried a work around, making additional characters named "Players", "Crusaders", etc. so it shows in the quest itself as "Hunt Players 0/10", just that I can't get it to register when killing a player, only the monster itself. Quote Share this post Link to post Share on other sites
Angelix 375 Report post Posted November 4, 2016 Ah never mind, thread can be closed. I found a alternate way, kinda pushed though, hahah. Use the "after_player_kill_player" function to add flags by correctly checking the needed mission and adding the correct trigger. Just in case anyone sees this. 1 Quote Share this post Link to post Share on other sites