找回密码
 注册
搜索
楼主: taot@tj

看来设置问题越来越大啊

[复制链接]
门派:武当派
发表于 2019-2-19 22:39:28 | 显示全部楼层
kjrwd@tj 发表于 2019-2-19 22:34
就是那些地名跟npc都重名的就会发呆了。。
  1. function songxin_find()
  2.     DeleteTriggerGroup("songxin_find")
  3.     create_trigger_t('songxin_find1','^>*\\s*\\D*'..job.target..'\\((\\D*)\\)','','songxin_send')
  4.     create_trigger_t('songxin_find2','^>*\\s*你要送给谁','','songxin_goon')
  5.     create_trigger_t('songxin_find3','^>*\\s*\\D*道:(这封信不是给我的,|你看清楚,)','','songxin_add')
  6.     create_trigger_t('songxin_find4','^>*\\s*(这封信不是送给这个人的。|看清楚点,那是活人吗?!)','','songxin_add')
  7.     create_trigger_t('songxin_find5','^>*\\s*你擦了一把额头的汗,从怀中掏出信交给','','songxin_finish')
  8.     SetTriggerOption("songxin_find1","group","songxin_find")
  9.     SetTriggerOption("songxin_find2","group","songxin_find")
  10.     SetTriggerOption("songxin_find3","group","songxin_find")
  11.     SetTriggerOption("songxin_find4","group","songxin_find")
  12.     SetTriggerOption("songxin_find5","group","songxin_find")
  13.     EnableTriggerGroup("songxin_find",false)
  14. end
复制代码

  1. function songxin_add()
  2.     sxjob.cnt=sxjob.cnt + 1
  3.     exe('halt;songxin '..sxjob.id..' '..sxjob.cnt)
  4.     tmp.cnt = 0
  5.         EnableTrigger("hp12",true)
  6.     create_timer_s('songxin',1,'songxin_act_set')
  7. end
复制代码

  1. function songxin_goon()
  2.     EnableTrigger("songxin_find1",true)
  3.     flag.wait=0
  4.     DeleteTimer('songxin')
  5.     return walk_wait()
  6.     --thread_resume(lookfor)
  7. end
复制代码


你没这三个函数?
门派:武当派
发表于 2019-2-19 22:46:41 | 显示全部楼层
freely@tj 发表于 2019-2-19 22:39
你没这三个函数?

有呀,如果刚好是那个地方的npc不会出错的,在其它地方的不会再继续去找呀。。
门派:武当派
 楼主| 发表于 2019-2-21 13:30:05 | 显示全部楼层
这个不知道我有没有用啊     
门派:武当派
发表于 2019-2-21 17:23:24 | 显示全部楼层
kjrwd@tj 发表于 2019-2-19 22:46
有呀,如果刚好是那个地方的npc不会出错的,在其它地方的不会再继续去找呀。。

这个问题好像比较复杂啊
门派:武当派
发表于 2019-2-21 17:44:00 | 显示全部楼层
gooy@tj 发表于 2019-2-21 17:23
这个问题好像比较复杂啊

是呀,就一个地方有同名的npc没问题的。
有重名的地点没同名的npc也没问题呀。
门派:武当派
 楼主| 发表于 2019-2-22 12:19:50 | 显示全部楼层
都开始研究这个了啊呵呵      
门派:武当派
发表于 2019-2-22 13:22:52 | 显示全部楼层
taot@tj 发表于 2019-2-22 12:19
都开始研究这个了啊呵呵

这个问题lujing没搞通之前是没戏了
门派:武当派
 楼主| 发表于 2019-2-22 14:12:43 | 显示全部楼层
gooy@tj 发表于 2019-2-22 13:22
这个问题lujing没搞通之前是没戏了

这个就要靠你们这些大佬了啊   
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-11-7 14:44 , Processed in 0.037814 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表