今天无聊写个杀20个怪任务脚本给大家看看
5.1无聊写了一个脚本,每天杀20次怪得到杀怪的道具可以免费得到20W的经验,跑到不通的地方站到
======================
在QM适当位置声明自定义变量,脚本:
VAR Integer HUMAN 任务次数
LOADVAR HUMAN 任务次数 ..QuestDiary数据文件任务次数.txt
=======================
新建NPC ,内容: (这本来是我版本里每日20次的国家任务 ,仿梦幻)
#IF
#SAY
每位玩家每天可领取20次的国家任务...
每次完成任务都可获得一定的经验和荣誉值,运气好的话还能获得元宝!!!
<注>:领取后如果下线则此次任务自动视为放弃...
<领取任务/@领取任务> <完成任务/@完成任务> <放弃任务/@放弃任务>
今日已进行了<$HUMAN(国家任务)>次国家任务...
<返回/@main>
[@完成任务]
;#IF
;EQUAL N35 1
;#ACT
;goto @完成送信
;break
#IF
EQUAL N35 2
#ACT
goto @完成杀怪
close
break
#IF
EQUAL N35 3
#ACT
goto @完成礼仪
close
break
#IF
EQUAL N35 4
#ACT
goto @完成物品
close
break
#ELSEACT
MESSAGEBOX 你没有任务在身,完成什么?
close
[@完成杀怪]
#IF
EQUAL M13 1
large M50 49
#ACT
MOV M13 0
MOV M50 0
goto @领取奖励
break
#IF
EQUAL M13 2
LARGE M51 199
#ACT
MOV M13 0
MOV M51 0
goto @领取奖励
break
#IF
EQUAL M13 3
LARGE M52 199
#ACT
MOV M13 0
MOV M52 0
goto @领取奖励
break
#IF
EQUAL M13 4
LARGE M53 29
#ACT
MOV M13 0
MOV M53 0
goto @领取奖励
break
#IF
EQUAL M13 5
LARGE M54 49
#ACT
MOV M13 0
MOV M54 0
goto @领取奖励
break
#IF
EQUAL M13 6
LARGE M55 49
#ACT
MOV M13 0
MOV M55 0
goto @领取奖励
break
#IF
EQUAL M13 7
LARGE M56 29
#ACT
MOV M13 0
MOV M56 0
goto @领取奖励
break
#IF
EQUAL M13 8
LARGE M57 29
#ACT
MOV M13 0
MOV M57 0
goto @领取奖励
break
#IF
EQUAL M13 9
LARGE M58 29
#ACT
MOV M13 0
MOV M58 0
goto @领取奖励
break
#IF
EQUAL M13 10
LARGE M59 39
#ACT
MOV M13 0
MOV M59 0
goto @领取奖励
break
#ELSEACT
MESSAGEBOX 你没完成任务,消遣我来着?
close
[@完成礼仪]
#IF
EQUAL N42 <$MAPCODE>
EQUAL N43 <$SELFX>
EQUAL N44 <$SELFY>
#ACT
SetOffTimer 7
goto @领取奖励
close
[@完成物品]
#IF
checkitem <$STR(S12)> 1
#ACT
take <$STR(S12)> 1
goto @领取奖励
close
[@放弃任务]
#IF
#ACT
SET [300] 0
SET [301] 0
SET [302] 0
SET [303] 0
SET [304] 0
SET [305] 0
SET [306] 0
SET [307] 0
SET [308] 0
SET [309] 0
MOV M12 0
MOV M13 0
MOV M50 0
MOV M51 0
MOV M52 0
MOV M53 0
MOV M54 0
MOV M55 0
MOV M56 0
MOV M57 0
MOV M58 0
MOV M59 0
MOV M60 0
MOV N1 0
MOV N35 0
MOV N41 0
MOV N42 0
MOV N43 0
MOV N44 0
MOV N46 0
MOV N47 0
MOV N48 0
MOV N49 0
MOV N30 0
MOV N31 0
MOV N32 0
MOV N33 0
MOV N34 0
MOV N35 0
MOV N22 0
MOV S12
SetOffTimer 7
MESSAGEBOX 任务信息已清空...
goto @国家任务
[@领取任务]
#IF
CHECKVAR HUMAN 国家任务 < 20
EQUAL M60 0
#ACT
CALCVAR HUMAN 国家任务 + 1
SAVEVAR HUMAN 国家任务 ..QuestDiary数据文件任务次数.txt
MOV M60 1
SetOffTimer 7
SET [300] 0
SET [301] 0
SET [302] 0
SET [303] 0
SET [304] 0
SET [305] 0
SET [306] 0
SET [307] 0
SET [308] 0
SET [309] 0
MOV M12 0
MOV M13 0
MOV M50 0
MOV M51 0
MOV M52 0
MOV M53 0
MOV M54 0
MOV M55 0
MOV M56 0
MOV M57 0
MOV M58 0
(责任编辑:admin) |