Yep we do.
Code: Select all
AddQuestPrereqRace(Quest, race id) Moderator: Team Members
Code: Select all
AddQuestPrereqRace(Quest, race id) Well you already have the GetSpawn command, so one NPC can easily have another NPC do something:John Adams wrote:Ok, I think the cheese has officially slid off my cracker... I could have sworn LE posted a message *somewhere* telling us of the ability (via LUA) to have 2 NPCs communicate with one another. In EQEmu, it was called Signalling. Where one NPC's script would be set to monitor for a signal_id to be fired off, and if any other NPC "talked" on that signal_id, that NPC would respond.
Example would be the Schmendrick and the whole fire elemental fight for the cleric epic, for instance. Or simpler, an NPC at one end of a zone would say "MARCO" and an NPC at the other end could reply "POLO"... I think LE may remember that, if not, I can dig up the old EQEmu docs on that Perl function.
At any rate, did we not have this in EQ2Emu, or was I just dreaming it? The latter is very possible... anyway, toss it on the list somewhere if you will.We have lots of opportunity to use such interactions between NPCs eventually. For now, we're going to "Time" the responses and hope for zero latency.
Code: Select all
function hailed(NPC, Spawn)
Spawn2 = GetSpawn(Spawn, 1234)
Emote(Spawn, "laughs at " .. GetName(Spawn2))
Say(Spawn2, " Laugh at me again " .. GetName(Spawn) .. " and I will have the last laugh.")
endCode: Select all
AddQuestStepLocation(Quest, 1, "Found a soldier!", 114, -4, 156, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 2, "Found a soldier!", 117, -3, 182, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 3, "Found a soldier!", 123, -4, 193, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 4, "Found a soldier!", 130, -4, 183, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 5, "Found a soldier!", 141, -3, 150, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 6, "Found a soldier!", 152, -4, 213, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 7, "Found a soldier!", 154, -3, 151, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 8, "Found a soldier!", 156, -3, 135, 10, "TaskGroupText")
AddQuestStepLocation(Quest, 9, "Found a soldier!", 171, -3, 186, 10, "TaskGroupText")Users browsing this forum: No registered users and 0 guests