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

全套保存分解记录拾取所有装备代码07-02更新

[复制链接]
门派:华山派
发表于 2018-6-26 14:25:51 | 显示全部楼层
好东西啊! 一会盯着试试看   谢谢封神
门派:大轮寺
发表于 2018-6-27 13:20:24 | 显示全部楼层
离了你我怎么活。。。。。
门派:古墓派
发表于 2018-6-27 16:23:44 | 显示全部楼层
fqyy@tj 发表于 2018-6-25 11:05
没问题,可以去分解,我设置的是value》500也就是50护甲以上的去分解,如果已经有好的甲了就设成value ...

<!-- Produced by MUSHclient v 4.84 - www.mushclient.com -->


06/27/18 16:14:06【midnight】雪山任务:任务地点【苗疆前厅】不可到达,任务放弃。
06/27/18 16:14:08【midnight】雪山任务:任务放弃!
06/27/18 16:17:29【midnight】雪山任务:开始前往【成都城大西门】,寻找美女!
06/27/18 16:17:34【midnight】雪山任务:开始寻找【成都城大西门】的美女!
06/27/18 16:17:41【midnight】雪山任务:搞定保镖【牟晶】!战斗用时:【6】秒。
06/27/18 16:17:41【midnight】xueshan中获得装备。
06/27/18 16:17:42【midnight】拾取蔷薇甲胄。
06/27/18 16:17:42【midnight】装备属性:防御力+30
06/27/18 16:17:44【midnight】雪山任务:任务完成,用时:【16】秒。
06/27/18 16:17:44【midnight】雪山任务奖励:经验:【四百一十八】点,潜能:【二十八】点!
06/27/18 16:17:56【midnight】分解了蔷薇甲胄
06/27/18 16:17:59【midnight】华山任务:开始任务。
06/27/18 16:18:02【midnight】华山任务:追杀逃跑到【千尺幢】的【慕容学友】。
06/27/18 16:18:09【midnight】华山任务:战斗用时:【3】秒,搞定蒙面人:【慕容学友】。
06/27/18 16:18:27【midnight】华山任务:追杀逃跑到【成都城关帝庙】的【蒋务山】。
06/27/18 16:18:47【midnight】华山任务:战斗用时:【14】秒,搞定蒙面人:【蒋务山】。
06/27/18 16:18:55【midnight】华山任务:完成任务,用时:【30】秒。
06/27/18 16:18:55【midnight】华山任务奖励:经验:【四百八十一】点,潜能:【一百二十二】点!


风神,这个记录怎么才能单独分开呢
门派:古墓派
发表于 2018-6-27 18:03:01 | 显示全部楼层
midnight@tj 发表于 2018-6-27 16:23
风神,这个记录怎么才能单独分开呢

自己做个窗口,把chat里面的 chat_xxx 复制一份,用messageShow替换就行了
例如我的是下面代码,用item_log替换messageShow就行了
function item_log(logs,color,bcolor)
        local w = GetWorld ("itemlog")   -- get "chat" world
        local c_text= color or "#eadb76"
        local c_back= bcolor or "#272822"
        local log_world='itemlog'

       
   --if not flag.log or flag.log=="no" then return end
   
   if score.id then
      logs='【'..score.id..'】'..logs
   end

   if flag.log and flag.log=="yes" then
      -- if not found, try to open it
      if first_time and not w then
        local filename = GetInfo (67) .. log_world .. ".mcl"
        Note(filename)
        --local filename = GetInfo (67) .. "log.mcl"
        Open (filename)
        w = GetWorld (log_world)   -- try again
        if not w then
          ColourNote ("white", "red", "Can't open chat world file: " .. filename)
          first_time = false   -- don't repeatedly show failure message
        end -- can't find world
      end -- can't find world first time around
      
      if color~=nil then c_text=color end
      
      if w then
         w:ColourTell ("white","black",os.date())
         w:ColourTell (c_text,c_back,logs)
         w:Note("")
      end
   else
      if GetVariable("flagnote") then
             flag.note = tonumber(GetVariable("flagnote"))
          end
          if flag.note and flag.note==1 then
         ColourTell ("white","black",os.date())
         ColourTell (c_text,c_back,logs)
         Note("")
          end
   end
end

评分

1

查看全部评分

门派:古墓派
发表于 2018-6-27 23:12:46 | 显示全部楼层
fqyy@tj 发表于 2018-6-27 18:03
自己做个窗口,把chat里面的 chat_xxx 复制一份,用messageShow替换就行了
例如我的是下面代码,用item_ ...

谢谢风神,这代码是复制在chat里还是armor里?
门派:古墓派
 楼主| 发表于 2018-6-28 08:49:36 | 显示全部楼层
midnight@tj 发表于 2018-6-27 23:12
谢谢风神,这代码是复制在chat里还是armor里?

chat.lua里                    
门派:华山派
发表于 2018-6-29 00:00:47 | 显示全部楼层
本帖最后由 toxic@tj 于 2018-6-29 11:38 编辑

  1. function messageShow_log(logs,color,bcolor)
  2.         local w = GetWorld ("messageShow")   -- get "chat" world
  3.         local c_text= color or "#eadb76"
  4.         local c_back= bcolor or "#272822"
  5.         local log_world='messageShow'

  6.         
  7.    --if not flag.log or flag.log=="no" then return end
  8.    
  9.    if score.id then
  10.       logs='【'..score.id..'】'..logs
  11.    end

  12.    if flag.log and flag.log=="yes" then
  13.       -- if not found, try to open it
  14.       if first_time and not w then
  15.         local filename = GetInfo (67) .. log_world .. ".mcl"
  16.         Note(filename)
  17.         --local filename = GetInfo (67) .. "log.mcl"
  18.         Open (filename)
  19.         w = GetWorld (log_world)   -- try again
  20.         if not w then
  21.           ColourNote ("white", "red", "Can't open chat world file: " .. filename)
  22.           first_time = false   -- don't repeatedly show failure message
  23.         end -- can't find world
  24.       end -- can't find world first time around
  25.       
  26.       if color~=nil then c_text=color end
  27.       
  28.       if w then
  29.          w:ColourTell ("white","black",os.date())
  30.          w:ColourTell (c_text,c_back,logs)
  31.          w:Note("")
  32.       end
  33.    else
  34.       if GetVariable("flagnote") then
  35.              flag.note = tonumber(GetVariable("flagnote"))
  36.           end
  37.           if flag.note and flag.note==1 then
  38.          ColourTell ("white","black",os.date())
  39.          ColourTell (c_text,c_back,logs)
  40.          Note("")
  41.           end
  42.    end
  43. end
复制代码


我这个代码改的对吗???整个代码都加到chat.lu里 然后出提示依然在奖励的LOG里 没有单独出窗口啊?
门派:星宿派
发表于 2018-6-29 09:28:56 | 显示全部楼层
错误号: 0
事件:        Run-time error
描述:  [string "Script file"]:1881: attempt to index global 'fqyytmp' (a nil value)

stack traceback:

        [string "Script file"]:1881: in function <[string "Script file"]:1880>

        (tail call): ?
调用者:    Function/Sub: haltok called by trigger

Reason: 正在处理触发器 "check_halt1"
门派:华山派
发表于 2018-6-29 10:57:44 | 显示全部楼层
  ['伤害力']=5,
        ['防御力']=10,
        ['悟性']=100,
        ['力量']=100,
        ['身法']=100,
        ['根骨']=100,

能解释下这个数值大小是啥意思吗?
如果我想保存30点以上的护甲该怎么改?
门派:古墓派
发表于 2018-6-30 10:02:55 | 显示全部楼层
toxic@tj 发表于 2018-6-29 10:57
['伤害力']=5,
        ['防御力']=10,
        ['悟性']=100,

貌似防御力改成10*5/3就是30点以上就保存了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-13 10:31 , Processed in 0.033628 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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