| 
 | 
 
chat.lua里面需要改一下 
 
chat_trigger=function() 
    DeleteTriggerGroup("chat") 
    create_trigger_t('chat1',"^(> )*(\\! )*【(江湖传闻|官府通告|嵩山派|古墓派|闲聊|丐帮|昆仑派|铁掌帮|天龙寺|大轮寺|明教|星宿派|姑苏慕容|神龙教|华山派|武当派|桃花岛|少林派|峨嵋派|队伍|谣言|书剑|新闻|表决)】",'','color_chats') 
    create_triggerex_lvl('chat3',"^(> )*(\\! )*【谣言】某人:(\\D*)弄到了一(件|条|支|把|副|根|柄|对|本|个)(\\D*)!$",'','chat_unique',99) 
    create_triggerex_lvl('chat4',"^(> )*(\\! )*【谣言】某人:有人带着(\\D*)在(\\D*)一带出现!$",'','rumor_unique',99) 
    create_triggerex_lvl('chat5',"^(> )*(\\! )*【谣言】某人:(\\D*)从(\\D*)处得到了一(件|条|支|把|副|根|柄|对|本|个)(\\D*)!$",'','chat_Unique',99) 
   -- create_triggerex_lvl('chat6',"^(> )*(\\! )*【谣言】某人:据说有人看到财神在(\\D*)出现!",'','caishenbegin',99) 
    create_triggerex_lvl('chat2',"^(> )*(\\! )*【闲聊】(\\D*)\\((\\D*)\\):【官府任务】:通缉犯【(\\D*)】被接取",'','guanfuBlackSet',90)  
    create_triggerex_lvl('chat7',"^(> )*(\\! )*【闲聊】(\\D*)\\((\\D*)\\):(.*)",'','chatUser',95) 
        create_triggerex_lvl('chat8',"^(> )*(\\! )*【谣言】某人:据说有人看到财神在(\\D*)出现!",'','rumor_caishen',99) 
    SetTriggerOption("chat1","group","chat") 
    SetTriggerOption("chat1","keep_evaluating","y") 
    SetTriggerOption("chat2","group","chat") 
    SetTriggerOption("chat3","group","chat") 
    SetTriggerOption("chat4","group","chat") 
    SetTriggerOption("chat5","group","chat") 
    --SetTriggerOption("chat6","group","chat") 
    SetTriggerOption("chat6","keep_evaluating","y") 
    SetTriggerOption("chat7","group","chat") 
    SetTriggerOption("chat8","group","chat") 
end 
 
function chatUser(name, line, wildcards, styles) 
   color_chats(name, line, wildcards, styles) 
   local l_name=tostring(wildcards[3]) 
   local l_id=string.lower(tostring(wildcards[4])) 
   local l_words=tostring(wildcards[5]) 
    if string.len(l_id)>8 then return end 
        if (l_id=='watcher' or l_id=='bpy' or l_id=='mrguo') and guanfu_flag==1 and job.name~='songmoya' then 
                if string.find(l_words,"榜单更新") then guanfuDo=1 end 
        end 
   if score.id and MudUser[score.name] and l_words then 
        if string.find(l_words,score.id) or string.find(l_words,score.name) then 
                        if string.find(l_words,"在哪里") then 
                                locate() 
                                chatChat(l_id,l_name..'同学,全球定位系统前一次定位地点为【'.. locl.area .. locl.room ..'】,如需更准确的信息,请再查询一次!') 
                                return  
                        end 
        end 
        end 
end 
function chat_Guanfu(n,l,w) 
   local l_name=tostring(wildcards[3]) 
   local l_id=string.lower(tostring(wildcards[4])) 
   local B_name=tostring(wildcards[5]) 
   local B_id=string.lower(tostring(wildcards[6])) 
        if l_id=='bpy' or l_id=='watcher' then 
                print('屏蔽官府任务名字为:'..B_name..',ID为:'..B_id) 
        end 
end 
 |   
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册  
 
×
 
 
评分
- 
1
查看全部评分 
 
- 
 
 
 
 
 |