![]() |
![]() |
#2 |
中级会员
![]() ![]() 注册: 06年07月21日
帖子: 50
声望力: 19
声望:
10
![]() 现金:9两梁山币
资产:9两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
这么便宜是真的还是假的啊
|
![]() |
![]() |
![]() |
#3 |
初级会员
![]() ![]() 注册: 06年07月28日
帖子: 14
声望力: 0
声望:
10
![]() 现金:2180两梁山币
资产:2180两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
呵呵是 真的 7.21版本使用 地图数据map.db 需要根据你现在玩的游戏来导入. 我在sjsh文明站 mud.sanjie.org 地图不太一样.
|
![]() |
![]() |
![]() |
#4 |
初级会员
![]() ![]() 注册: 06年07月28日
帖子: 14
声望力: 0
声望:
10
![]() 现金:2180两梁山币
资产:2180两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
以下列出一个两个关键的triggers,要有map和map数据库 1.pattern: (%x)仿佛在(%x)一处有(*)出口的地方 triggers: room_goto="" killnpcid="" wupin_zone=0 wupin_success=0 wupin_name=%1 wupin_zone=%zonenum( %2) wupinzone_panduan=%pos( %2, @tiangongzone) //判断地点是否在天宫,天宫的每一个地点叫法都不同 #if {@wupinzone_panduan>0} {wupin_zone=24} //还不只天宫,lanling也要判断,我没加进来, wupin_exit=%3 hp wupin_exit=%replace( @wupin_exit, "、", "|") //以下把实际出口替换为map及数据库等效出口 wupin_exit=%replace( @wupin_exit, "eastdown", "f") wupin_exit=%replace( @wupin_exit, "eastup", "q") wupin_exit=%replace( @wupin_exit, "northdown", "x") wupin_exit=%replace( @wupin_exit, "northup", "c") wupin_exit=%replace( @wupin_exit, "westdown", "a") wupin_exit=%replace( @wupin_exit, "westup", "r") wupin_exit=%replace( @wupin_exit, "southdown", "v") wupin_exit=%replace( @wupin_exit, "southup", "z") wupin_exit=%replace( @wupin_exit, "northwest", "h") wupin_exit=%replace( @wupin_exit, "northeast", "j") wupin_exit=%replace( @wupin_exit, "southwest", "k") wupin_exit=%replace( @wupin_exit, "southeast", "l") wupin_exit=%replace( @wupin_exit, "east", "e") wupin_exit=%replace( @wupin_exit, "west", "w") wupin_exit=%replace( @wupin_exit, "north", "n") wupin_exit=%replace( @wupin_exit, "south", "s") wupin_exit=%replace( @wupin_exit, "down", "d") wupin_exit=%replace( @wupin_exit, "up", "u") wupin_exit=%replace( @wupin_exit, "out", "g") wupin_exit=%replace( @wupin_exit, "enter", "t") wupin_exit=%expandlist( @wupin_exit, /) //没用,纯粹是不想用|改的 wupin_exitnum=%numwords( @wupin_exit, "/") wupin_exitlen=%len( @wupin_exit) //取出口长度,为了更准确的判断地点 #add maxmana 100 #add maxforce 300 #if (@mana<@maxmana) { #wa 1000 mingsi 50 } #if (@force<@maxforce) { #wa 1000 dazuo 50 } #if (@water<100) { #walk 2726 #wa 1000 buy dan from langzhong eat dan } #show %ansi( blink, gray)开始搜索,请稍后...... #add locatenumber 1 #if (@locatenumber>94) {locatenumber=1} #dbload task //调入map数据库 #show "" #query ((&nRoomZoneNum=@wupin_zone) & (&nRoomExitNum=@wupin_exitnum)& (&nRoomExitLen=@wupin_exitlen)) //取房间号 #dbreset #dbclose task #wa 3000 goroom //走到符合的房间 2.pattern:%d%s(%d)%s%d%s%x%s%d%s%d%s(*) //从数据库中调出基本符合的数据再判断 triggers: room_id=%1 room_exit=%2 temp_numword=%eval( @wupin_exitnum) panduan_exit=1 #until (@temp_numword=0) { //判断所有出口均符合,就放入room_goto sort_wupinexit=%word( @wupin_exit, @temp_numword, "/") panduan_temp=%pos( @sort_wupinexit, @room_exit) #if (@panduan_temp=0) {panduan_exit=0} #add temp_numword -1 } #if (@panduan_exit=1) {#additem room_goto {@room_id}} room_gotonum=%numwords( @room_goto, "|") 补充一点,针对jyg的特点,可以locate后用triggers (*)触发,最长的出口southeast也就9位吧,判断所抓到的长度,如果>9,停止抓出口,符合的都放入wupin_exit,用|分隔,其它的可以不变 |
![]() |
![]() |
![]() |
#5 |
初级会员
![]() ![]() ![]() ![]() 注册: 06年08月18日
帖子: 30
声望力: 0
声望:
10
![]() 现金:-100两梁山币
资产:-100两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
sdsdddddddddddddddddddddd
|
![]() |
![]() |
![]() |
#6 |
初级会员
![]() ![]() ![]() ![]() 注册: 06年08月18日
帖子: 30
声望力: 0
声望:
10
![]() 现金:-100两梁山币
资产:-100两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
sdddddddddddddddddd
|
![]() |
![]() |
![]() |
#7 |
中级会员
![]() ![]() ![]() ![]() ![]() ![]() 注册: 06年08月22日
帖子: 336
声望力: 22
声望:
10
![]() 现金:92两梁山币
资产:92两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
![]()
多学点东西哦 下了看看 ![]() |
![]() |
![]() |
![]() |
#8 |
中级会员
![]() ![]() ![]() 注册: 06年11月02日
帖子: 63
声望力: 19
声望:
10
![]() 现金:4两梁山币
资产:107两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
看不太明白,算了吧 ![]() |
![]() |
![]() |
![]() |
#9 |
初级会员
![]() ![]() ![]() 注册: 06年11月16日
帖子: 26
声望力: 0
声望:
10
![]() 现金:32两梁山币
资产:32两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
不是那个站的,恐怕用不到了
|
![]() |
![]() |
![]() |
#10 |
中级会员
![]() ![]() ![]() ![]() ![]() ![]() ![]() 注册: 05年11月04日
帖子: 121
声望力: 21
声望:
10
![]() 现金:-54两梁山币
资产:-54两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0 |
回复: sjsh-Task机器人-数据库
这么复杂啊,map数据怎么得来的?
|
![]() |
![]() |