- 精华
- 阅读权限
- 40
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2011-6-2
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-6-4 14:02:04
|
显示全部楼层
本帖最后由 封仙 于 2011-6-4 14:50 编辑
关于绿装任务
下载了义哥征途的后续补丁,发现里面绿装任务有些问题。
比如,105级的“调查木人”任务,原来是要求杀掉4750个粗糙木人",但是,服务器端设置出了问题。
接下这个任务时显示的是要求消灭400个粗糙木人,但实际上还是需要消灭4750个才可以完成任务。
为什么?让我们来分析一下吧!
1,打开服务端\quest\quests.xml
2,在quests.xml搜索“调查木人”
3,找到如下文字
<quest id="20820" name="调查木人">
<description>
<body>
<p>
<n color="255,239,196,0">任务:调查木人</n>
</p>
<p>
<n> 去机械工厂四层(127,34)消灭400个105级的粗糙木人,完成后去找清源村的</n>
<a href="goto 114,93">清源村-村长(114,93)</a>
<n>领取奖赏。</n>
</p>
<p>
<n color="255,239,196,0"> 粗糙木人:</n>
<n var="kill_粗糙木人" task="20820"/>
<n>/400</n>
</p>
<p>
<n color="255,239,196,0">任务描述:</n>
</p>
<p>
<n> 机械工厂四层的粗糙木人数量一下子增加了好多,燕北飞担心有人故意操纵,叫你帮他去机械工厂四层查探一下实情。</n>
</p>
<p>
<n> 完成后去找清源村的村长(114,93)领取奖赏。</n>
</p>
<p>
<n color="255,0,0,240">任务奖励:</n>
</p>
<p>
<object id="10771"> 夜魔盔(魔)</object>
</p>
<p>
<object id="10772"> 夜魔盔(物)</object>
</p>
<p>
<n color="255,239,196,0">经验奖励:</n>
<n> 105000</n>
</p>
<p>
<n color="255,239,196,0">银子奖励:</n>
<n> 18锭</n>
</p>
<diffcult level="105"/>
<message color="255,255,255,20">
<n>粗糙木人:</n>
<n var="kill_粗糙木人" task="20820"/>
<n>/400</n>
</message>
</body>
</description>
<events>
<event type="on_visit" source="5067.xml"/>
<event type="on_visit" source="56000.xml"/>
<event type="on_kill" source="10216.xml"/>
</events>
</quest>
上面的所有设定都是要求消灭400个木人。
从上面关于任务设定中可以知道,有关消灭木人数量的设定应该在10216.xml文件中。
4,打开服务端\quest\on_kill\10216.xml
<event id="10216" name="机械工厂四层-粗糙木人">
<!--new means new quest, default is quest on user-->
<quest id="406" new="1">
<embranchment id="1">
<conditions>
<var type="Equal" name="state" value="1"/>
</conditions>
<actions>
<additem value="1" id="2175" odds="3000"/>
</actions>
</embranchment>
</quest>
<quest id="20820" new="1">
<embranchment id="1">
<conditions>
<var type="Equal" name="state" value="1"/>
<var type="Less" name="kill_粗糙木人" value="4750"/>
</conditions>
<actions>
<var type="Add" name="kill_粗糙木人" value="1"/>
<refresh name="kill_粗糙木人"/>
</actions>
</embranchment>
<embranchment id="2">
<conditions>
<var type="Equal" name="state" value="1"/>
<var type="Great" name="kill_粗糙木人" value="4749"/>
</conditions>
<actions>
<var type="Set" name="state" value="-3"/>
<refresh name="state"/>
<refresh name="kill_粗糙木人"/>
<notify content="恭喜你,你已经击败了4750个105级的粗糙木人,去找清源村的村长(181,287)领取奖赏吧!"/>
<notify1 content="去找清源村的村长(181,287)吧!"/>
</actions>
</embranchment>
</quest>
</event>
从上面的内容可以知道,此文件和两个任务相关,其中一个id="20820" 的就是我们所要修改的。
从里面,可以看出,此处设定仍然是要求消灭4750个木人。
5,下面可以按照您的想法来设定了。
如果想只消灭400个木人,在
服务端\quest\on_kill\10216.xml
文件中,把4749改作399,4750改作400,存盘即可。
如果想回复原版设定,则需要修改
服务端\quest\quests.xml
把400改回4750。
6,修改雁北飞的一些提示语
打开服务端\quest\on_visit\l5067.xml
找到相应部分,主要是看木人数量是否和您想修改的一致。如果不一致,改成一致。
7,修改清源村村长的任务文件
打开服务端\quest\on_visit\5067.xml
<quest id="30820">
<embranchment id="10">
<conditions>
<var type="Equal" name="state" value="1" id="20820"/>
<var type="Differ" name="state" value="-3" id="20820"/>
<var type="Differ" name="state" value="-1" id="20820"/>
</conditions>
<actions>
<menu>
function TaskDialog()
this:AddTalk(" (GetName),你还没有消灭500个105级的粗糙木人,我已经等的有点不耐烦了。");
this:AddCloseItem("离开")
end
</menu>
<var type="Set" name="state" value="-2"/>
</actions>
</embranchment>
<embranchment id="7">
<conditions>
<space size="1"/>
<var type="Equal" name="state" value="-3" id="20820"/>
<var type="Differ" name="state" value="-1" id="20820"/>
</conditions>
<actions>
<menu>
function TaskDialog()
this:AddDialogItem("完成任务:调查木人(2)", "Dialog62")
end
function Dialog62()
this:AddTalk("<p><n color=\"255,239,196,0\">完成任务:</n><n>调查木人\n \n</n><n> 是皇城的燕北飞(867,706)叫你来找我的吗?呵呵!原来你做了这么多了不起的事!自从你离开清源村,已经好久没来看我了。\n\n</n><n color=\"255,0,0,240\">任务奖励:\n</n></p><p><object id=\"10771\" group=\"0\" OnClick=\"SelectObject1\"> 夜魔盔(魔)</object><n> </n><object id=\"10772\" group=\"0\" OnClick=\"SelectObject2\"> 夜魔盔(物)</object></p><p><n color=\"255,0,0,0\"> \n以上物品单击选择,每人只能选一种</n></p><p><n color=\"255,239,196,0\">经验奖励:</n><n> 10500</n></p>")
this:AddScriptButton("我今天就是来看您的!{10002}","FinalTask")
end
SelectObject = -1
function SelectObject1()
SelectObject = 1
end
function SelectObject2()
SelectObject = 2
end
function FinalTask()
if(SelectObject ~= -1) then
this:SendTaskCmd("v56000",20820,SelectObject)
this:CloseNpcDialog()
end
end
</menu>
</actions>
</embranchment>
<embranchment id="17">
<conditions>
<var type="Equal" name="state" value="-3" id="20820"/>
<var type="Differ" name="state" value="-1" id="20820"/>
</conditions>
<actions>
<menu>
function TaskDialog()
this:AddDialogItem("完成任务:调查木人(2)", "Dialog63")
end
function Dialog63()
this:AddTalk(" 对不起,你的包裹满了,请清空一些再来吧。");
this:AddCloseItem("离开")
end </menu>
</actions>
</embranchment>
</quest>
<quest id="20820" new="1">
<embranchment id="1" active="1">
<conditions>
<var type="Equal" name="state" value="-3" id="20820"/>
</conditions>
<actions>
<addgreenbinditem value="1" id="10771"/>
<exp value="1050000"/>
<gold type="Add" value="700000"/>
<notify content="恭喜你完成了“调查木人”任务"/>
<notify content="你得到了一顶夜魔盔(魔)"/>
<notify1 content="夜魔盔(魔)"/>
<notify1 content="经验+1050000"/>
<notify1 content="恭喜你完成任务,系统赠送您70锭银子"/>
<var type="Set" name="state" value="-1" id="20820"/>
</actions>
</embranchment>
<embranchment id="2" active="1">
<conditions>
<var type="Equal" name="state" value="-3" id="20820"/>
</conditions>
<actions>
<addgreenbinditem value="1" id="10772"/>
<exp value="1050000"/>
<gold type="Add" value="700000"/>
<notify content="恭喜你完成了“调查木人”任务"/>
<notify content="你得到了一顶夜魔盔(物)"/>
<notify1 content="夜魔盔(物)"/>
<notify1 content="经验+1050000"/>
<notify1 content="恭喜你完成任务,系统赠送您70锭银子"/>
<var type="Set" name="state" value="-1" id="20820"/>
</actions>
</embranchment>
</quest>
核对是否其中数据和要求一致。如果不一致,修改保存。
8,重启服务端和客户端,看看效果如何?
|
|