奶奶的lua怎么都修改不了,可以调用txt的
; LINKPICKUPITEM
; ChangeitemaddvaLue -1 5 = 0
; GETITEMADDVALUE 3 5 M10
; SENDUPGRADEITEM
; SENDMSG 9 你的衣服附加了<$STR(M10)>点防御属性.
或者lua
callscriptex(actor,"LINKPICKUPITEM")
callscriptex(actor,"LINKPICKUPITEM")
-- -1是任意装备
callscriptex(actor,"ChangeitemaddvaLue", -1,5,"=",0)
callscriptex(actor,"SENDUPGRADEITEM")
注意:两个都要再穿戴之后触发
穿装备之后触发函数:[@TakeOnEX]
脱下之后触发函数:[@TakeOff1]