-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdfcspath.mod
More file actions
44 lines (40 loc) · 1.45 KB
/
dfcspath.mod
File metadata and controls
44 lines (40 loc) · 1.45 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
dfcspatch=function(n,l,w)
Simulate("\n"..w[4].."\n")
end
masterquest.questgive=function()
initmq()
run("give head to "..familys[me.fam].masterid..";mastercmd")
busytest(masterquest.testask)
end
masterquest.giveheadcmd=function()
run("give head to "..familys[me.fam].masterid..";drop head;mastercmd")
busytest(masterquest.main)
end
masterquest.case=function()
if masterquest.die==false and masterquest.npc~="" then
if (masterquest.far==true or masterquest["city"]=="西域") and me.score.yueli>4000 and me.score.weiwang>400 then
initmq()
busytest(masterquest.askquest)
elseif masterquest.far==true then
busytest(mqfar.main)
elseif masterquest.flee==true then
do_mqask(masterquest.maincmd,masterquest.findfar)
else
do_mqkill(masterquest["city"],3,masterquest_end_ok,masterquest.asknpc)
end
elseif checkstudy(masterquest["main"],masterquest["main"]) then
else
masterquest.askquest()
end
end
checkbow=function(check_ok,check_fail)
if getnum(me.hp.exp)<50000 or getnum(me.hp.exp)>400000 then return false end
if GetVariable("pfm")=="shot" and itemsnum("狼牙箭")<10 then
item["go"]("狼牙箭",30,check_ok,check_fail)
return true
elseif GetVariable("pfm")=="shot" and itemsnum("点金盘龙弓")==0 and itemsnum("长弓")==0 and itemsnum("短弓")==0 and itemsnum("赤鸳弩")==0 and itemsnum("弩")==0 then
item["go"]("长弓",1,check_ok,check_fail)
return true
end
return false
end