1.禁止扔 2.禁止交易 4.禁止存 8.禁止修 16.禁止出售 32.禁止爆出 64.丢弃消失 128.死亡必爆 256.禁止拍卖 512.禁止挑战
256+64+32+16+2=370
require("Envir/Market_Def/NpcLua/zh.lua")
--------升级触发段
local equ_t1 = {
[0] = {{"修罗",1},{"重盔甲(男)",0},{"蓝翡翠项链",3},{"死神手套",5},{"死神手套",6},{"骷髅戒指",7},{"骷髅戒指",8},{"道士头盔",4}},
[1] = {{"偃月",1},{"魔法长袍(男)",0},{"放大镜",3},{"黑檀手镯",5},{"黑檀手镯",6},{"蛇眼戒指",7},{"蛇眼戒指",8},{"道士头盔",4}},
[2] = {{"降魔",1},{"灵魂战衣(男)",0},{"竹笛",3},{"道士手镯",5},{"道士手镯",6},{"道德戒指",7},{"道德戒指",8},{"道士头盔",4}}
}
local equ_t2 = {
[0] = {{"修罗",1},{"重盔甲(女)",0},{"蓝翡翠项链",3},{"死神手套",5},{"死神手套",6},{"骷髅戒指",7},{"骷髅戒指",8},{"道士头盔",4}},
[1] = {{"偃月",1},{"魔法长袍(女)",0},{"放大镜",3},{"黑檀手镯",5},{"黑檀手镯",6},{"蛇眼戒指",7},{"蛇眼戒指",8},{"道士头盔",4}},
[2] = {{"降魔",1},{"灵魂战衣(女)",0},{"竹笛",3},{"道士手镯",5},{"道士手镯",6},{"道德戒指",7},{"道德戒指",8},{"道士头盔",4}},
}
function plevelup(actor)
if getlevel(actor) == 26 then
local sex = getsex(actor) --获取性别
local job = getjob(actor) --获取职业
local t = {}
if sex == 0 then
t = equ_t1
else
t = equ_t2
end
local tab = t[job]
for i=1,#tab do
local item = giveitem(actor,tab[i][1], 1, 370)
takeonitem(actor,tab[i][2], getiteminfo(actor, item, 1))
end
takeitem(actor,"木剑",1)
takeitem(actor,"布衣(男)",1)
takeitem(actor,"布衣(女)",1)
end
end