Code: Select all
function hear_say(NPC, Spawn, Msg)
Say(NPC, GetName(Spawn) .. " says: " .. Msg)
end
Moderator: Team Members
Code: Select all
function hear_say(NPC, Spawn, Msg)
Say(NPC, GetName(Spawn) .. " says: " .. Msg)
end
Not going to happen for the official emu server. All you need to do is target the mob and /say something, hailed is on a different channel then /say so if you wanted to run up and hit h this won't work.Gangrenous wrote:we might need to think about removing the hailed event.
Yeah after doing some testing I see that, hail is rather hard coded. But if you do /say hail it works fine.Jabantiz wrote:Not going to happen for the official emu server. All you need to do is target the mob and /say something, hailed is on a different channel then /say so if you wanted to run up and hit h this won't work.Gangrenous wrote:we might need to think about removing the hailed event.
This is client side so out of our control.Scribble wrote:Can we not just hard code button h to mean /say hail?
Code: Select all
--[[
Script Name: Rations for the Ardent Needle
Script Purpose: SpawnScripts/antonica/CaptainEitoa.lua
Script Author: Provocating
Script Date: 2016.07
NPC ID: 120233
Zone: Antonica
Preceded By:
Followed By:
--]]
function respawn(NPC, Player)
spawn(NPC)
end
function hear_say(NPC, Player, Msg)
Msg = string.lower(Msg)
if Msg == "hail" then
Say(NPC, "Hello stranger, are you [new] to these parts?")
elseif string.match(Msg, "new") then
Say(NPC, "Well I will be on duty a while and our Eastern outpost is running out of rations. I know you are new to these parts but if you can [deliver] these rations to the Ardent Needle Keep, I would be in your debt!")
elseif string.match(Msg, "deliver") then
Say(NPC, "The Ardent Needle keep is to the NorthEast of us. This winding road runs by the keep. Take this crate of rations to Watchman Loxley, be very careful and do not leave the trail!")
if not (HasItem(Player, 1000311)) then
SummonItem(Player, 1000311, 1) -- Crate of Supplies
end
end
end
Users browsing this forum: No registered users and 1 guest