Jump to content
Angelix

Mission Triggers

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...