一键打卡🔥 龙鳞魔堡 金豆锻造 荣誉胸章 海底寻宝 非诚勿扰 虚拟刮奖 杂货道具 好友印象 心情随笔 中华银行 家族部落 积分兑换 图片上传 图片压缩 在线翻译 在线查毒
发表新帖 回帖
No.202944
👧 玫瑰天使
  

废弃都市组队任务NPC脚本,从XX端提取出来的(供高手研究)

中华游戏网 cnyouw写于:中华游戏网-CNYOUW 👧会员:玫瑰天使 🕘时间:2010-10-07 12:49 👀围观:19810人 💬回复:27
🔔 管理提醒: 本帖被 大粥粥 执行压帖操作(2013-06-03)
⚠ 提醒:该帖发布已超过3年,信息资源可能已失效,资源谨慎下载以免浪费积分。反馈请前往站务版块
该隐藏帖已经发布超过60天,已自动取消隐藏功能,无需回复即可查看!
importPackage(net.貌似会被和谐自己打上去.odinms.tools); cIB[D.  
importPackage(net.貌似会被和谐自己打上去.odinms.server.life); 9`|~- b  
importPackage(java.awt); P+(q38f[  
jlb=]hp8%  
var status; $e/[!3CASP  
var curMap; N}X7g0>hV  
var playerStatus; bVW2Tjc:  
var chatState; t<H@c9{;*  
var questions = Array("首先给你出一个问题!请仔细听好:作为一名战士,他在1转的时候需要达到的等级是多少,那么请交给我同样数量的通行证。", #4wia%}u  
            "首先给你出一个问题! 请仔细听好:作为一名战士,他在1转的时候需要力量的能力值最小是多少点,那么请交给我同样数量的通行证。", GSaU:A  
            "首先给你出一个问题!请仔细听好: 作为一名法师,他在1转的时候需要智力的能力值最小是多少点,那么请交给我同样数量的通行证。", ^hyp}WN  
            "首先给你出一个问题!请仔细听好: 作为一名弓箭手,他在1转的时候需要敏捷的能力值最小是多少点,那么请交给我同样数量的通行证。", !Jk|ha~r  
            "首先给你出一个问题!请仔细听好: 作为一名飞侠,他在1转的时候需要敏捷的能力值最小是多少点,那么请交给我同样数量的通行证。", T@gm0igW/;  
            "首先给你出一个问题!请仔细听好: 所有职业在2转的时候需要达到的等级是多少,那么请交给我同样数量的通行证。"); ^#p+#_*V  
var qanswers = Array(10, 35, 20, 25, 25, 30); y%@C-:  
var party; bc%N !d  
var preamble; k35E,?T  
var stage2rects = Array(Rectangle(-755,-132,4,218),Rectangle(-721,-340,4,166), p)YI8nW  
            Rectangle(-586,-326,4,150),Rectangle(-483,-181,4,222)); 2/f!{lz](  
var stage2combos = Array(Array(0,1,1,1),Array(1,0,1,1),Array(1,1,0,1),Array(1,1,1,0)); tXW7G@  
var stage3rects = Array(Rectangle(608,-180,140,50),Rectangle(791,-117,140,45), Cw,;>>Y_b<  
            Rectangle(958,-180,140,50),Rectangle(876,-238,140,45), 5"^Z7+6  
            Rectangle(702,-238,140,45)); . yN.  
var stage3combos = Array(Array(0,0,1,1,1),Array(0,1,0,1,1),Array(0,1,1,0,1), mY0FewwTy  
            Array(0,1,1,1,0),Array(1,0,0,1,1),Array(1,0,1,0,1), >A*BRX"4C  
            Array(1,0,1,1,0),Array(1,1,0,0,1),Array(1,1,0,1,0), NKRI|'Y,  
            Array(1,1,1,0,0)); "[Hn G(gA  
var stage4rects = Array(Rectangle(910,-236,35,5),Rectangle(877,-184,35,5), 7Ug^aA  
            Rectangle(946,-184,35,5),Rectangle(845,-132,35,5), Og/@w&  
            Rectangle(910,-132,35,5),Rectangle(981,-132,35,5)); z3C@0v=u>  
var stage4combos = Array(Array(0,0,0,1,1,1),Array(0,0,1,0,1,1),Array(0,0,1,1,0,1), y8/+kn +  
            Array(0,0,1,1,1,0),Array(0,1,0,0,1,1),Array(0,1,0,1,0,1), <}n"gk1is  
            Array(0,1,0,1,1,0),Array(0,1,1,0,0,1),Array(0,1,1,0,1,0), Q/y"W,H#  
            Array(0,1,1,1,0,0),Array(1,0,0,0,1,1),Array(1,0,0,1,0,1), w)Wg 8  
            Array(1,0,0,1,1,0),Array(1,0,1,0,0,1),Array(1,0,1,0,1,0), 54>gr1B  
            Array(1,0,1,1,0,0),Array(1,1,0,0,0,1),Array(1,1,0,0,1,0), ^M7pCetjdW  
            Array(1,1,0,1,0,0),Array(1,1,1,0,0,0)); OiJz?G:m  
var eye = 9300002; bP HtP\)  
var necki = 9300000; i+4!nf{K  
var slime = 9300003; ! ~3zp L  
var monsterIds = Array(eye, eye, eye, 8%#pv}  
            necki, necki, necki, necki, necki, necki, c^ W \0  
            slime); V 2/?1  
var prizeIdScroll = Array(2040502,2040505,2040514,2040517,     // overall w[hT,$n  
            2040802, 2040805,            // glove x/,(G~  
            2040002, 2040402, 2040602, 2040902,     // armor def (top/bottom/shield/hat) Y9ipy_@_?  
            2044502, 2044702, 2044602, 2043302,     // weapon atk !6pE0(V^+4  
            2043102, 2043202, 2043002, 2044402, "D[/o8Hk  
            2044302, 2044102, 2044202, 2044002); i=aK ?^+  
var prizeIdUse = Array( 2000001, 2000002, 2000003, 2000006,    // orange white blue manalixir pots |>!tqgq  
            2000004, 2000005, 2001000, 2001001,    // elix/p.elix, watermelon/sundae &eY&6I  
            2002006, 2002007, 2002008, 2002010);    // warrior/sniper/magic/speed pills 6  5>}Q.p  
var prizeQtyUse = Array(100, 75, 100, 45, I6.}r2?;A  
            20, 10, 35, 30, -0:Equ?pz  
            10, 10, 10, 10); %}1v-z  
var prizeIdEquip = Array(1032000, 1032009, 1032004, 1032005,     // 20-25 earrings "C'T>^qw*  
            1032006, 1032007, 1032010,        // 30 earrings hVf;{p &  
            1032002, 1032008,            // 35 earrings U%H6jVE  
            1002026, 1002089, 1002090);        // bamboo hats {"n=t`E)3  
var prizeIdEtc = Array( 4010000, 4010001, 4010002, 4010003,    // Mineral ores 2x<4&^  
            4010004, 4010005, 4010006,        // Mineral ores + gold uraT$Q}  
            4020000, 4020001, 4020002, 4020003,    // Jewel ores 6o=Q;Mezl  
            4020004, 4020005, 4020006,        // Jewel ores C)qy=lx%  
            4020007, 4020007, 4003000);        // Diamond/BC/screws     HqoCl  
var prizeQtyEtc = Array(15, 15, 15, 15, =, G^GMi'  
            15, 15, 8, 3}gf %U]L  
            15, 15, 15, 15, r"_SL!,^  
            15, 15, 15, ql2O%B.6?  
            8, 5, 20); xG~7kj3  
             #"KaRh  
wgFAPZr  
function start() { *z6m644H  
    status = -1; #-9@*FFL,  
    mapId = cm.getChar().getMapId(); tVqc!][   
    if (mapId == 103000800) 0.lOSAq  
        curMap = 1; &N:`Rler  
    else if (mapId == 103000801) rJUXIV>z  
        curMap = 2; fYUbr"Oe  
    else if (mapId == 103000802) kcio]@#  
        curMap = 3; y_}jf,b4  
    else if (mapId == 103000803) -H9WwFk  
        curMap = 4; PCZ%<>v  
    else if (mapId == 103000804) L{uQ: ;w1  
        curMap = 5; a1 .+L  
    playerStatus = cm.isLeader(); P^J#;{R  
    preamble = null; 6 TSC7jO  
    action(1, 0, 0); ~%d*#Yxq  
} 5rlZ'>I.  
mz?1J4rt  
function action(mode, type, selection) { b|E1>TkY  
    if (mode == -1) { t;L7H E@Y  
        cm.dispose(); " 'TEBkj|u  
    } else { JLu>w:\  
        if (mode == 0 && status == 0) { ;'P<#hM[$  
            cm.dispose(); '-NHu +  
            return; Wj"GS!5  
        } (M nK \^Y  
        if (mode == 1) e%EE|  
            status++; ' T%70)CM~  
        else tA{?-5  
            status--; }/g1s71  
        if (curMap == 1) { // First Stage. HsRQiai*  
            if (playerStatus) { // party leader _(0GAz%9  
                if (status == 0) { ~?<VT k  
                    var eim = cm.getChar().getEventInstance(); C[s='v~}  
                    party = eim.getPlayers(); WeE1 \  
                    preamble = eim.getProperty("leader1stpreamble"); D9;s%  
                    if (preamble == null) { !7y:|k,ac  
                        cm.sendNext("Hello,欢迎您的第一阶段。环顾四周,你会看到很多鳄鱼游荡。当你打败他们,他们就会咳嗽了#bpasses#k队长应该对我说话,收集了相同数量的#bpasses#k为回答这个问题我给他们。\r\n如果你收集的数额#bpasses#k,我给了#bpass#k该成员。当所有的队员聚集了#bpasses#k和给他们的队长,队长将交出#bpasses#k对我来说,清理阶段的进程。更快你照顾的阶段,更多的阶段就可以挑战。因此,我建议你照顾快速和迅速。那么,最好的你好运。"); M.0N`NmS  
                        eim.setProperty("leader1stpreamble","done"); GjeRp|_Qd<  
                        cm.dispose(); X].Igb)2  
                    } 87q~ nk  
                    else { // check how many they have compared to number of party members =x5k5NIF  
                                    // check for stage completed 3U&r K)F  
                                    var complete = eim.getProperty(curMap.toString() + "stageclear"); 6y   
                                    if (complete != null) { :!<U"AC  
                                        cm.sendNext("请赶紧去下一关,们已经打开了"); m 7/b.B}  
                                        cm.dispose(); 8G?OZ47k#  
                                    } J8#3?Lp  
                                    else { 1qd(3A41  
                            var numpasses = party.size()-1; `VD7VX,rp*  
                            var passes = cm.haveItem(4001008,numpasses); `~+[pY 1r  
                            var strpasses = "#b" + numpasses.toString() + " passes#k"; *28:|blbL  
                            if (!passes) { f3"sKL4|  
                                cm.sendNext("对不起,你的通行证没有达到指定的数目。你需要给指定的通行证数目给我;应当的队员数目减去你的队长, " + strpasses + ",以明确的阶段。告诉您的队员解决问题,收集了通行证,并让他们给你."); |jJ9dTD8/  
                                cm.dispose(); -$tf`   
                            } yR4++yk  
                            else { HrH! 'bd  
                                cm.sendNext("你们已经通过 " + strpasses + "! 恭喜大家完成本阶段的挑战! 我将打开传送门,带大家进入到下一关的挑战.因为本次任务有时间限制,请大家抓紧时间,祝大家好运!"); o6c>sh  
                                clear(1,eim,cm); 6'6,ySo]  
                                cm.givePartyExp(100, party); 0p[-M`D  
                                cm.gainItem(4001008,-numpasses); >%i]p  
                                cm.dispose(); .qg 2zE$0  
                                // TODO: make the shiny thing flash .y^T 3?}I  
                            } H#FH '@J  
                        } D,&o=EU  
                    } Rn5{s3?F~2  
                } #B &%Y6E5  
                /*debug 0S$6j-"  
                cm.sendNext("你好,这仅仅只是一个测试."); xF])NZy|  
                cm.dispose();*/ xay~fD  
            } R(W}..U0R"  
            else { // non leader `z~L0h  
                var eim = cm.getChar().getEventInstance(); ,<O|Iis  
                pstring = "member1stpreamble" + cm.getChar().getId().toString(); N5|wBm>m  
                preamble = eim.getProperty(pstring); `PI?RU[g*  
                if (status == 0 && preamble == null) { *D:uFo,xn  
                    var qstring = "member1st" + cm.getChar().getId().toString(); @@} ]qT*  
                    var question = eim.getProperty(qstring); Lu9`(+  
                    if (question == null) { i f!   
                        // Select a random question to ask the player. {D7v[P+  
                        var questionNum = Math.floor(Math.random() * questions.length); #Pe|}!)u  
                        eim.setProperty(qstring, questionNum.toString()); ZZJ<JdD  
                    } DE!P[$J  
                    cm.sendNext("在这里,你需要收集#bcoupons#k击败同样数目的Ligators作为回答提问个别。"); }CB9H$FkCY  
                     08F~6e6a8  
                } pu,|_N[xq8  
                else if (status == 0) {// otherwise Ah Rvyj  
                                // check for stage completed +puF0]TR,i  
                                var complete = eim.getProperty(curMap.toString() + "stageclear"); Pe)SugCs  
                                if (complete != null) { RE.t<VasP  
                                    cm.sendNext("请赶紧去下一关,们已经打开了"); jzAXC^FS  
                                    cm.dispose(); . E? a  
                                } bPUldkB:  
                                else { /{ FSG!  
                        // else correct/incorrect response to question here  MKZq*  
                        var qstring = "member1st" + cm.getChar().getId().toString(); 9MUg/  
                        var numcoupons = qanswers[parseInt(eim.getProperty(qstring))]; :BpXi|n;  
                        var qcorr = cm.haveItem(4001007,(numcoupons+1)); Bl/Z _@  
                        var enough = false; 3"p'WZ>  
                        if (!qcorr) { // not too many FN"Ye*d  
                            qcorr = cm.haveItem(4001007,numcoupons); NNn sq@?6  
                            if (qcorr) { // just right ^Q5advxuq  
                                cm.sendNext("这是正确的答案!对于你刚才收到了#bpass#k请交给你的队长。"); `i{p6-U3  
                                cm.gainItem(4001007,-numcoupons); ]/c!;z  
                                cm.gainItem(4001008,1); WI\jm&H r  
                                enough = true; $[{YE[a  
                            } /MV2#P@  
                        } 7O\Qxc\  
                        if (!enough) { CjZIBMGc  
                            cm.sendNext("很抱歉,你数量错误! 请仔细对照问题,再来给我正确数量的通行证吧."); prO ~g  
                        } R&FO-{S  
                        cm.dispose(); xa$4P [  
                    } Bf8[(oc~  
                } )POU58$  
                else if (status == 1) { !1[ZfTX^a  
                    if (preamble == null) {  re@;6o  
                        var qstring = "member1st" + cm.getChar().getId().toString(); EN;4EC7tE  
                        var question = parseInt(eim.getProperty(qstring)); +!eh\.u|]  
                        cm.sendNextPrev(questions[question]); *r].EBJ\  
                    } UB3hC`N\  
                    else { // shouldn't happen, if it does then just dispose U_<k*o@:  
                        cm.dispose(); )2: ,E  
                    } c%5Suu( J6  
                         {I]>!V0j!  
                } ak$D1#hY  
                else if (status == 2) { // preamble completed 0^mCj<g  
                    eim.setProperty(pstring,"done"); uow{a*q d6  
                    cm.dispose(); C1po]Ott*  
                } `tH :oP0=  
                else { // shouldn't happen, but still... E<r<ObeRv`  
                    eim.setProperty(pstring,"done"); // just to be sure , ^@z;xF  
                    cm.dispose(); zr^"zcfz&  
                } p}(pIoyUF  
            } )8 %lZ {  
        } // end first map scripts gaU1A"S}  
         }-T :   
        else if (2 <= curMap && 4 >= curMap) { Q 1[E iM3  
            rectanglestages(cm); [,Fu2j]  
        } (\M+E tU<9  
        else if (curMap == 5) { // Final stage Y?xc#'  
            var eim = cm.getChar().getEventInstance(); buA/G-<e  
            var stage5done = eim.getProperty("5stageclear"); eoxEnCU  
            if (stage5done == null) { AGK{t+`  
                if (playerStatus) { // Leader qX:Y I3:,@  
                    var map = eim.getMapInstance(cm.getChar().getMapId()); dr^MW?{a\  
                    var passes = cm.haveItem(4001008,10); \fJ _,  
                    if (passes) { yt1dYF0Xq  
                        // clear p"d_+  
                        cm.sendNext("这是个任务,导致您在过去,奖金阶段。这是一个阶段,可让您打败怪物经常变得更轻松。您可以一套大量的时间来寻找尽可能多的,但您随时可以离开该阶段中。同样,祝贺结算的所有阶段。"); *IIuGtS  
                        party = eim.getPlayers(); ]7J*(,sp  
                        cm.gainItem(4001008,-10); <Xb$YB-c  
                        clear(5,eim,cm); .'zcD^  
                        cm.givePartyExp(1500, party); cd]def[d  
                        cm.dispose(); %z"n}|%!  
                    } bEli!N$  
                    else { // not done yet 2|$G<f  
                        cm.sendNext("欢迎您到第5次和最后阶段。步行游览地图,你可以找到一些怪物。打败所有的人,收集了#bthepasses#k,并请您给我。在队长下将收集,然后让他们给我一旦#bpasses#k聚集了。怪物可能是熟悉的你,但他们可能会远远超出你觉得,所以请小心。祝您好运!由于投诉,现在是强制性的要杀死所有的泥!做到这一点! "); 21 N!?DR  
                    } ewVks>lbz  
                    cm.dispose(); L-VisZ-FK  
                } "P8( R  
                else { // Members .9@y*_ 9  
                    cm.sendNext("欢迎您到第5次和最后阶段。步行游览地图,你将能够找到一些怪物。打败他们所有,收集了#bpasses#k,并给予他们到您的队长。一旦您完成时,返回给我,收集您的奖励。 "); y_{fc$_&  
                    cm.dispose(); CMC9%uq  
                } &Rt^G  
            } m\@q2l-  
            else { // give rewards and warp out (gjCm0#_%  
                if (status == 0) { LZ z]4Mf  
                    cm.sendNext("难以置信!您通过了所有阶段进入了这一点。这里有一个小奖为您所做的出色工作。在您接受它,但是,请确保您的使用等物品栏要有空格 \r\n#b你将无法收到奖品,如果您有没有空格!#k"); LjPpnjU  
                } uy8mhB+]  
                if (status == 1) { PXo^SHJ+gt  
                    getPrize(eim,cm); 2}U:6w  
                    cm.dispose(); O ~D]C  
                } L^e%oQ>s  
            } Z=zD~ka  
        } !]l;n Fd  
        // etc 37 d-!  
                else { // no map found ^EcwY- Qr  
                        cm.sendNext("无效的计划,这意味着在现阶段是不完整的."); DH!_UV  
                        cm.dispose(); tLzKM+Ct#  
                } ,Y`TP4Ip  
    } 8DcIM(;Z  
} }$@E pM  
v?s%qb=T  
function clear(stage, eim, cm) { !n|4w$t"V  
    eim.setProperty(stage.toString() + "stageclear","true"); ie}?}s  
    var packetef = MaplePacketCreator.showEffect("quest/party/clear"); !a^'Jbb  
    var packetsnd = MaplePacketCreator.playSound("Party1/Clear"); O]80";Uv  
    var packetglow = MaplePacketCreator.environmentChange("gate",2); nJcY>Rp?  
    var map = eim.getMapInstance(cm.getChar().getMapId()); _6]c f!H  
    map.broadcastMessage(packetef); {)PgN  
    map.broadcastMessage(packetsnd); } bm ^`QY  
    map.broadcastMessage(packetglow); .wf$]oQQ  
    var mf = eim.getMapFactory(); 1R"Z+tNB  
    map = mf.getMap(103000800 + stage); (\H^ KEy  
    var nextStage = eim.getMapInstance(103000800 + stage); F&$~]R=&  
    var portal = nextStage.getPortal("next00"); e|eWV{Dsz  
    if (portal != null) { Cp^`-=r+  
        portal.setScriptName("kpq" + (stage+1).toString()); ~qkn1N%'  
    } T~)R,OA7m  
    else { // into final stage #BwOWra  
        //cm.sendNext("Initiating final stage monsters..."); {9XQ~t"m^  
        // spawn monsters - removed since lerks patch makes -1 monsters spawn ONCE anyway +%? \#EQJ  
        // var map = eim.getMapInstance(103000804); ->`R[k  
        // map.spawnMonsters(monsterIds); R/jHH{T3  
    } AQTV1f_  
} q" @%WK  
!XQ)>T^G5  
function failstage(eim, cm) { h7J4 p  
    var packetef = MaplePacketCreator.showEffect("quest/party/wrong_kor"); ,"?xy-6  
    var packetsnd = MaplePacketCreator.playSound("Party1/Failed"); 8XD_p);Oy  
    var map = eim.getMapInstance(cm.getChar().getMapId()); 5v"Sv  
    map.broadcastMessage(packetef); :&BE-f  
    map.broadcastMessage(packetsnd); ~RRS{\,  
} <8BNqbX  
mO&zE;/[  
function rectanglestages (cm) { O:jaA3  
    // debug makes these stages clear without being correct D| g{]nO  
    var debug = false; ,L-G-V+  
    var eim = cm.getChar().getEventInstance(); Vw+RRi(  
    if (curMap == 2) { +k\cmDcb  
        var nthtext = "2nd"; @o>3 Bv.  
        var nthobj = "ropes"; b_']S0$c\  
        var nthverb = "hang"; !NTt' 4/F{  
        var nthpos = "hang on the ropes too low"; _bSn YhS  
        var curcombo = stage2combos; !xE@r,'oN  
        //var curtestcombo = [0,0,0,1]; RSBk^  
        var currect = stage2rects; J=Hyoz+9  
        var objset = [0,0,0,0]; <uvA([r=Vq  
    } ="P&!lu  
    else if (curMap == 3) { S=qx,<J 39  
        var nthtext = "3rd"; :Hj #1-U  
        var nthobj = "platforms"; [WO>}rGw4  
        var nthverb = "stand"; x,UP7=6  
        var nthpos = "stand too close to the edges"; V=)' CCi{  
        var curcombo = stage3combos; lf}%^od~6  
        //var curtestcombo = [0,0,1,0,0]; Qq3UC%Z1  
        var currect = stage3rects; *Ke\Yb  
        var objset = [0,0,0,0,0]; 2q ~y\fe  
    } #]z_pp:  
    else if (curMap == 4) { k;Ask#rs  
        var nthtext = "4th"; /7igPNhx  
        var nthobj = "barrels"; M?QX'fia  
        var nthverb = "stand"; Ir6g"kwCKq  
        var nthpos = "stand too close to the edges"; [U_  
        var curcombo = stage4combos; l(d3N4iz  
        //var curtestcombo = [0,1,0,0,0,0]; qKk|2ecTB5  
        var currect = stage4rects; 0X4I-xx#  
        var objset = [0,0,0,0,0,0]; FY"csZ  
    } MS;^@>|wj  
        if (playerStatus) { // leader u1ahAk7  
                if (status == 0) { m.ejGm?  
                        // check for preamble i/RA/q  
                     WB3YN+Xl3  
                        party = eim.getPlayers(); )wCV]TdF  
                        preamble = eim.getProperty("leader" + nthtext + "preamble"); (lt{$0   
                        if (preamble == null) { ?wREX[Tqs  
                                cm.sendNext("嗨。欢迎您到" + nthtext + " 的阶段。我旁边,你会看到一些" + nthobj + ". 在这些" + nthobj +",  #b第3关,向您发送到下一阶段#k所有您需要做的是有#b的队员找到正确的" + nthobj + "和" + nthverb +"上.#k\r\nBUT ,但这不能作为答案如果您" + nthobj + ";请靠近中间的" + nthobj +"算作一个正确的答案。此外,只有3名队员是不被允许的" + nthobj + " 。一旦" + nthverb +"技术对他们来说,队长必须双击我来检查,看看答案的正确与否#k现在,找到正确的" + nthobj + "到" + nthverb +"对!"); f7I!o, /  
                                eim.setProperty("leader" + nthtext + "preamble","done"); e`zCz`R  
                                var sequenceNum = Math.floor(Math.random() * curcombo.length); N `[ ?db-%  
                                eim.setProperty("stage" + nthtext + "combo",sequenceNum.toString()); s=hao4v7z  
                                cm.dispose(); +lZvj=gW  
                        } .~fov8  
                        else { Aaz2._:/-m  
                            // otherwise (W5JVk_o  
                            // check for stage completed Z4369  
                            var complete = eim.getProperty(curMap.toString() + "stageclear"); 2X6L'!=  
                            if (complete != null) {     4D sHUc6  
                                var mapClear = curMap.toString() + "stageclear"; F&a)mpFv3c  
                                eim.setProperty(mapClear,"true"); // Just to be sure dWiX_&g  
                                cm.sendNext("Please hurry on to the next stage, the portal opened!"); 9](RZ6A+o  
                            } R})b%y`]  
                            // check for people on ropes uA~?z :~=  
                            else { U3BhoD#f\  
                                    // check for people on ropes(objset) 4P^CqD&i  
                                    var totplayers = 0; IC+!XZqS  
                                    for (i = 0; i < objset.length; i++) { m.Ki4NUm  
                                            for (j = 0; j < party.size(); j++) { fT.MglJcb  
                                                    var present = currect.contains(party.get(j).getPosition()); $y,tR.5.)[  
                                                        if (present) { Zty9O8g  
                                                            objset = objset + 1; bp>M&1^KY  
                                                            totplayers = totplayers + 1; r b*;4a  
                                                    } sE!$3|Q  
                                            } 75eZhs[b  
                                    } a LJ d1Q  
                                    // compare to correct qe|U*K 2_  
                                    // first, are there 3 players on the objset? R7/ET"  
                                    if (totplayers == 3 || debug) { /&W~:F  
                                            var combo = curcombo[parseInt(eim.getProperty("stage" + nthtext + "combo"))]; mq+<2 S  
                                            // debug remRm Y?  
                                            // combo = curtestcombo; x+EEMv3u:  
                                            var testcombo = true; =)nJ'}x  
                                            for (i = 0; i < objset.length; i++) { $Z<x r  
                                                if (combo != objset) yZc#@R[0  
                                                    testcombo = false; _FkIg>s  
                                            } >J/8lS{#  
                                            if (testcombo || debug) { Lmw4  
                                                    // do clear .zsY VtK  
                                                    clear(curMap,eim,cm); uMX\Y;N  
                                                    var exp = (Math.pow(2,curMap) * 50); w+iI ay  
                                                    cm.givePartyExp(exp, party); "~L$oji  
                                                    cm.dispose(); :*MR$Jf  
                                            } >1hhz  
                                            else { // wrong I-m Bj8^;  
                                                    // do wrong _2w8S\  
                                                    failstage(eim,cm); d[oHjWk  
                                                    cm.dispose(); T l8`3`e  
                                            } /i(R~7;?  
                                    } pyp0SGCM:  
                                    else { Suy +XHV  
                                            // oops, it doesn't display fail if you're not on the ropes m(Iy W734I  
                                            // failstage(eim,cm); #,9#x]U#v  
                                            if (debug) { LvNulMEK  
                                                   var outstring = "Objects contain:" QBb%$_Z  
                                                   for (i = 0; i < objset.length; i++) { xM![  
                                                       outstring += "\r\n" + (i+1).toString() + ". " + objset.toString(); 7KN+ @6!x  
                                                   } *M'/z=V?%  
                                                cm.sendNext(outstring); W~/{ct$Y  
                                            } ;),vUu,k  
                                            else ;e$YM;;d  
                            cm.sendNext("看来你还没有发现3个" + nthobj + "呀。请考虑一个不同的组合" + nthpos + "  。只有3个可以" + nthverb+ "上" + nthobj + " ,如果你“ + nthpos + ”它可能不能算作一个答案,所以请记住这一点。继续下去!");  VM<$!Aaz  
                                             5A+r^xN  
                                            cm.dispose(); vr } -u  
                                    } u,./,:O%=  
                            } s&1}^'|  
                        } ^9 ^DA!'  
                        // just in case. {\gpXVrn_  
                } gjk;An  
                else { wY"BPl]b  
                    var complete = eim.getProperty(curMap.toString() + "stageclear"); /6:qmh2  
                           if (complete != null) {     VcLzv{  
                        var target = eim.getMapInstance(103000800 + curMap); 8wMwS6s:  
                var targetPortal = target.getPortal("st00"); e'r-o~1eN  
                        cm.getChar().changeMap(target, targetPortal); :Z+J t=;  
                    } lr]C'dD  
                    cm.dispose(); >1$Vh=\OI  
                } 'cA(-ghY/E  
        } E_\V^  
        else { // not leader #U.6HBuQa  
            if (status == 0) { f([d/  
                    var complete = eim.getProperty(curMap.toString() + "stageclear"); 1AQy 8n*  
                    if (complete != null) { ?X$*8;==6  
                        cm.sendNext("请赶紧到下一阶段,门已经开通!"); Qcn;:6_&W  
                    } i':a|#e>  
                    else { .mplML0oW  
                        cm.sendNext("请队长对我说话。"); m]Mm (7v(  
                        cm.dispose(); "-S@R=bi  
                    } 77-G*PI*I  
            } eV j7%9  
        else { p3 V?n[/}  
                    var complete = eim.getProperty(curMap.toString() + "stageclear"); ~.CmiG.7  
                   if (complete != null) {     d ;i@9+  
                var target = eim.getMapInstance(103000800 + curMap); *d9RD~Ee  
                var targetPortal = target.getPortal("st00"); U#|6n ,  
                        cm.getChar().changeMap(target, targetPortal); #fb &51  
            } "(Nt9K%P)  
                    cm.dispose(); q4Mv2SPT  
                } Z=oGyA  
        } ij?Ww'p9>  
} f$qkb$?]}  
o{3>n" \w3  
function getPrize(eim,cm) { &]pY~zVc  
    var itemSetSel = Math.random(); %Z*N /nU  
    var itemSet; L;v.X'f  
    var itemSetQty; n?"("Fiw  
    var hasQty = false; &r2\P6J  
    if (itemSetSel < 0.3) ZFs xsg^r  
        itemSet = prizeIdScroll; tGF3Hw^mS  
    else if (itemSetSel < 0.6) "O~kIT?/v  
        itemSet = prizeIdEquip; 9I(00t_  
    else if (itemSetSel < 0.9) { E6zPN?\ <  
        itemSet = prizeIdUse; ~SS3gLv  
        itemSetQty = prizeQtyUse; mJYD"WgY  
        hasQty = true; klnk{R.>|  
    } B +MnT{  
    else { V3ExS1fNf  
        itemSet = prizeIdEtc; ^Hz1z_[X@  
        itemSetQty = prizeQtyEtc; <u/(7H  
        hasQty = true; zbjV>5  
    } Y|buQQ|  
    var sel = Math.floor(Math.random()*itemSet.length); a\&g;n8jA  
    var qty = 1; Zgo%Jo  
    if (hasQty) +[}<u--  
        qty = itemSetQty[sel]; I3u)y|Y=  
    cm.gainItem(itemSet[sel],qty); e xkPu-[W  
    var map = eim.getMapInstance(103000805); &0]5zQ  
    var portal = map.getPortal("sp"); 0~ o,^AW  
    cm.getPlayer().changeMap(map,portal); + ]iK^y-.r  
}
)KOIf{  
高手用法就不用我说了吧 *,28@_EwY  
中华游戏网 cnyouw.cn中华游戏网 cnyouw
SIGNATURE
http://www.youkia.com/index.php/share?key=f29eaf1d4a914a7de3b732477c43b822
植物大战僵尸网页版,类似农场,欢迎一起来玩
No.247049
👹 风向背吹
  
冒险岛.....
SIGNATURE
中华游戏网 — 玩你所玩,乐你所乐!cnyouw.cn
No.101304
👦 被遗忘的心
  
这是啥游戏·
SIGNATURE
No.216428
👹 jjaimimi
  
彩虹岛吧?
SIGNATURE
中华游戏网 — 玩你所玩,乐你所乐!cnyouw.cn
No.242965
👦 tianshifeiyi
  
哦?我看一下!感谢分享
SIGNATURE
No.238262
👹 sj211266
  
几个意思~~~~
SIGNATURE
SJ绘梦
....
No.63705
👦 ml37379244
  
好东西啊 $Ny:At  
<l eE.hhf.  
一个人能做任务么
SIGNATURE
No.58399
👦 741993529
  
虾米地??
SIGNATURE
No.247104
👦 123456789@qq
  
踩踩,路过看看。
SIGNATURE
中华游戏网 — 玩你所玩,乐你所乐!cnyouw.cn
No.247104
👦 123456789@qq
  
踩踩,路过看看
SIGNATURE
中华游戏网 — 玩你所玩,乐你所乐!cnyouw.cn