level 7
好吧我赢了,我让金矿可以升级成闹鬼金矿,然后发布建造升级命令给金矿并改变所属。。。
2011年06月27日 07点06分
7
level 7
嗯,可以了,刚才不行是因为金矿保护的原因,被别的农民采过的金矿n秒内不能建造。
2011年06月27日 08点06分
10
level 7
我扒了一下BJ函数,发现最后扒出了一个
IssueTargetOrderById(whichPeon, 'ugol', goldMine)
那么这个ugol命令就是建造不死金矿命令了。
2011年06月27日 08点06分
11
level 7
function IssueHauntOrderAtLocBJ takes unit whichPeon, location loc returns boolean
local group g = null
local unit goldMine = null
// Search for a gold mine within a 1-cell radius of the specified location.
set g = CreateGroup()
call GroupEnumUnitsInRangeOfLoc(g, loc, 2*bj_CELLWIDTH, filterIssueHauntOrderAtLocBJ)
set goldMine = FirstOfGroup(g)
call DestroyGroup(g)
// If no mine was found, abort the request.
if (goldMine == null) then
return false
endif
// Issue the Haunt Gold Mine order.
return IssueTargetOrderById(whichPeon, 'ugol', goldMine)
endfunction
2011年06月27日 08点06分
12
level 6
ugol是不死金矿的id
看来和学习技能发布的命令即技能id是一个道理了
2011年06月27日 08点06分
13