Shout chat via quesf

10/19/2017 23:50 ElDiablo96#1
Hello guys, I'm trying to create an event but I'm stuck in a problem. Exist a function to send shout chat from server to client? For example: I have a npc and I pressed a button, this npc send a shout with name of player, is possibile? I don't want Notice_all.

Can someone help me please?

Sent from my SM-N920P using Tapatalk
10/20/2017 13:06 Lauling#2
hey, why du you do not use notice_all?

a quest where u need can look like this:

PHP Code:
quest global_info_chat.quest begin 
    state start begin 
        when xxx
.chat."Global Info" begin -- replace xxx with value of npc
            notice_all
("Player"..pc.get_name().." have find the npc"
        
end 
    end 
end 
but they use notice_all...
10/20/2017 13:08 ElDiablo96#3
Quote:
Originally Posted by Lauling View Post
hey, why du you do not use notice_all?

a quest where u need can look like this:

PHP Code:
quest global_info_chat.quest begin 
    state start begin 
        when xxx
.chat."Global Info" begin -- replace xxx with value of npc
            notice_all
("Player"..pc.get_name().." have find the npc"
        
end 
    end 
end 
but they use notice_all...
Yes i have see this but notice all work with all empire and I not need to notice to all empire

Sent from my SM-N920P using Tapatalk
10/20/2017 17:18 Lauling#4
ahh i understand...

u need to write a new questfunction.
open the quest_function and add a ne function exapmle empire_red_notice
then open the questlib.lua and add the function.
at the moment i dont now how is the code from that function, mabye someone knows.
I look for a solution in the next time.