mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
1.1 KiB
1.1 KiB
Function: StartConversation(conversation, source, player, text, mp3, key1, key2, language, can_close)
Description: Begin a conversation with the Player from the Source Spawn with the previously established conversation options.
Parameters:
conversation(Conversation) - Conversation object representingconversation.source(Spawn) - Spawn object representingsource.player(Spawn) - Spawn object representingplayer.text(string) - Stringtext.mp3(int32) - Integer valuemp3.key1(int32) - Integer valuekey1.key2(int32) - Integer valuekey2.language(int32) - Integer valuelanguage.can_close(bool) - Boolean flagcan_close.
Returns: None.
Example:
-- From Quests/Antonica/attack_of_the_killer_bear.lua
function Accepted(Quest, QuestGiver, Player)
FaceTarget(QuestGiver, Player)
local conversation = CreateConversation()
AddConversationOption(conversation, "I will be careful.")
StartConversation(conversation, QuestGiver, Player, "Be careful though! This one is big!")
end