-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblocker.mod
More file actions
67 lines (62 loc) · 2.34 KB
/
blocker.mod
File metadata and controls
67 lines (62 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
blocker={}
blocker["虚通"]={id="xu tong",exp=50000}
blocker["虚明"]={id="xu ming",exp=50000}
blocker["校尉"]={id="xiao wei",exp=50000}
blocker["采花子"]={id="caihua zi",exp=0}
blocker["衙役"]={id="ya yi",exp=50000}
blocker["宋兵"]={id="song bing",exp=50000}
blocker["侍女"]={id="shi nu",exp=50000}
blocker["亲兵"]={id="qin bing",exp=50000}
blocker["大汉"]={id="qin bing",exp=100000}
blocker["摘星子"]={id="zhaixing zi",exp=800000}
blocker["出尘子"]={id="wuchen zi",exp=-1}
blocker["劳德诺"]={id="lao denuo",exp=1500000}
blocker["鳌府侍卫"]={id="shi wei",exp=50000}
blocker["鳌拜"]={id="ao bai",exp=200000}
blocker["心砚"]={id="xin yan",exp=790000}
blocker["周绮"]={id="zhou yi",exp=790000}
blocker["蒋四根"]={id="jiang sigen",exp=790000}
blocker["石双英"]={id="shi shuangying",exp=790000}
blocker["卫春华"]={id="wei chunhua",exp=790000}
blocker["杨成协"]={id="yang chengxie",exp=790000}
blocker["徐天宏,"]={id="xu tianhong",exp=790000}
blocker["常伯志"]={id="chang bozhi",exp=790000}
blocker["常赫志"]={id="chang hezhi",exp=790000}
blocker["安健刚"]={id="an jiangang",exp=790000}
blocker["孟健雄"]={id="meng jianxiong",exp=790000}
blocker["赵半山"]={id="zhao banshan",exp=790000}
blocker["周仲英"]={id="zhou zhongying",exp=790000}
blocker["陆菲青"]={id="lu feiqing",exp=790000}
blocker["空见"]={id="kong jian",exp=5000000}
blocker["道一"]={id="kong jian",exp=50000}
blocker["无尘"]={id="wuchen daozhang",exp=1190000}
blocker["拓跋"]={id="tuoba",exp=300000}
blocker["张富贵"]={cmd="give 10 gold to zhang fugui"}
block_onnpc=function(n,l,w)
-- if not(hashook(hooks.steptimeout)) then return end
if not(hashook(hooks.step)) then return end
if blocker[w[2]]==nil then return end
if blocker[w[2]].cmd~=nil and blocker[w[2]].cmd~="" then
run(blocker[w[2]].cmd)
if not hashook(hooks.steptimeout) then
delay(1,walkagain)
end
return
end
if blocker[w[2]].exp>getnum(me.hp.exp) or blocker[w[2]].exp==-1 then
if not hashook(hooks.steptimeout) then
delay(1,walkagain)
end
return
end
if GetVariable("pfm")==nil or GetVariable("pfm")=="" then return end
fightpreper()
do_kill(blocker[w[2]].id,block_step,block_step)
end
block_step=function()
run(walking.step)
end
walkagain=function()
eatdrink()
run(walking["step"])
end