viewing paste Unknown #34148 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
lhz_dun03,2,2,0 script  summon_boss_lt  -1,{
OnInit:
    initnpctimer;
    end;
 
OnTimer6000000:
    if (rand(1,6) == 1) {
        donpcevent "summon_boss_lt::Onsummon";
        stopnpctimer;
    }
    end;
 
OnTimer6300000:
    if (rand(1,6) == 2) {
        donpcevent "summon_boss_lt::Onsummon";
        stopnpctimer;
    }
    end;
 
OnTimer6600000:
    if (rand(1,6) == 3) {
        donpcevent "summon_boss_lt::Onsummon";
        stopnpctimer;
    }
    end;
 
OnTimer6900000:
    if (rand(1,6) == 4) {
        donpcevent "summon_boss_lt::Onsummon";
        stopnpctimer;
    }
    end;
 
OnTimer7200000:
    if (rand(1,6) == 5) {
        donpcevent "summon_boss_lt::Onsummon";
        stopnpctimer;
    }
    end;
 
OnTimer7500000:
    if (rand(1,6) == 6) {
        donpcevent "summon_boss_lt::Onsummon";
        stopnpctimer;
    }
    end;
 
OnTimer7800000:
    donpcevent "summon_boss_lt::Onsummon";
    stopnpctimer;
    end;
 
Onsummon:
    // Select Coordinates to summon a random MVP on
    switch(rand(1,6)) {
    case 1: set .@x,140;    set .@y,232;    break;
    case 2: set .@x,75; set .@y,138;    break;
    case 3: set .@x,140;    set .@y,87;     break;
    case 4: set .@x,205;    set .@y,140;    break;
    case 5: set .@x,123;    set .@y,137;    break;
    case 6: set .@x,175;    set .@y,137;    break;
    }
    set .@mob,rand(1646,1651);
    monster "lhz_dun03",.@x,.@y,strmobinfo(1,.@mob),.@mob,1,"summon_boss_lt::OnMyMvPDead";
 
    // Select Coordinates to summon a random 99 on
    switch(rand(1,6)) {
    case 1: set .@x2,183;   set .@y2,97;    break;
    case 2: set .@x2,97;    set .@y2,96;    break;
    case 3: set .@x2,47;    set .@y2,139;   break;
    case 4: set .@x2,231;   set .@y2,140;   break;
    case 5: set .@x2,139;   set .@y2,211;   break;
    case 6: set .@x2,139;   set .@y2,259;   break;
    }
    set .@mob2,rand(1640,1645);
    monster "lhz_dun03",.@x2,.@y2,strmobinfo(1,.@mob2),.@mob2,1,"summon_boss_lt::OnMVP";
    end;
 
OnMyMvPDead:
    killmonster "lhz_dun03","summon_boss_lt::OnMVP";
    initnpctimer;
    end;
 
//Required to keep from erroring
OnMVP:
    end;
}
 
Viewed 1009 times, submitted by Guest.