传奇正传中,传送NPC。脚本如下。

module(...,package.seeall)
local Money = 2000;    --去各个城市的费用;
function OnClick(Self, Sender, Menu)
    --点击 去各个地图
    if (Menu == "gomap") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(1, 623, 600);
            return    "";
elseif (Menu == "gomap1") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(1, 284, 613);
            return    "";
elseif (Menu == "gomap2") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(2, 503, 485);
            return    "";
elseif (Menu == "gomap3") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(1, 327, 270);
            return    "";
elseif (Menu == "gomap4") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(3, 330, 330);
            return    "";
elseif (Menu == "gomap5") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(6, 164, 337);
            return    "";
elseif (Menu == "gomap6") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(4, 239, 202);
            return    "";
elseif (Menu == "gomap7") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(5, 140, 334);
            return    "";
elseif (Menu == "gomap8") then
        if(Global.takeGold_1(Sender,Self,Money) == false) then
        return    "金币不足,无法移动";
    end;
            Sender:MapMove(3, 368, 335);
            return    "";
    end;

    return     "你想移动到哪里去呢?路途遥远,需要缴纳一定的金币。</br></br>"..
            "<link text=\"银杏山谷\" data=\"gomap\"/>&nbsp;&nbsp;<link text=\"边界村\" data=\"gomap1\"/>&nbsp;&nbsp;<link text=\"毒蛇山谷\" data=\"gomap2\"/>&nbsp;&nbsp;<link text=\"比奇城\" data=\"gomap3\"/></br></br>"..
            "<link text=\"盟重省\" data=\"gomap4\"/>&nbsp;&nbsp;&nbsp;<link text=\"白日门\" data=\"gomap5\"/>&nbsp;&nbsp;&nbsp;<link text=\"封魔谷\" data=\"gomap6\"/>&nbsp;&nbsp;&nbsp;<link text=\"苍月岛\" data=\"gomap7\"/></br></br>"..
            "<link text=\"沙城区域\" data=\"gomap8\"/></br>";
end;


传奇2中,传送NPC。脚本如下。

()
%100
+10
+11
+15
[@main]
╔┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╗\
┆ <比奇大城/@bwmove>    <银杏山谷/@gnmove>    <新手小村/@bdmove>    <白日天门/@wwmove> ┆免费传送\
┆ <盟重土城/@jhmove>    <封魔神谷/@fmmove>    <毒蛇山谷/@sbkmove>    <苍月海岛/@cymove> ┆免费传送\
╚-┄┄┄┄┄┄┄┄┄┄-----┄┄┄┄┄┄┄┄┄┄╝\


[@bwmove]
#IF 
#ACT
mapmove 0 333 268 


[@gnmove]
#IF 
#ACT
mapmove 0 634 612

[@bdmove]
#IF 
#ACT
mapmove 0 288 615


[@wwmove]
#IF 
#ACT
mapmove 11 177 324


[@jhmove]
#IF 
#ACT
mapmove 3 333 333



[@fmmove]
#IF 
#ACT
mapmove 4 241 202


[@sbkmove]
#IF 
#ACT
mapmove 2 503 483
break


[@cymove]
#IF 
#ACT
mapmove 5 140 338




最后修改:2017 年 12 月 18 日
如果觉得我的文章对你有用,请随意赞赏