Jump to content

stunkiller

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by stunkiller

  1. 5 hours ago, Kreustoo said:

    Hello,

    There's an error in OnBossDead.@event$ is a temporary variable and you're using it on OnBossDead without giving it a value (so either you replace by .event$ or copy paste your initalisation).

    Hi,

    Im sorry I still don't understand, could you perhaps guide me about this?

    Thanks.

  2. Hello,

    Im trying to make the mvp spawn in a specific map (pvp_y_1-1)

    when the mvps is alive, pvp will be turned on and off when all mvps are dead

    and there will be an announcement of remaining mvps inside.

     

    Here are my problems,

    When the mvps is dead, the pvp wont turn off.

    And there are no announcement about how many mvps are remaining.

     

    I really need some help

    Thank you in advance!

     

    Quote

    -    script    mvpspawner    -1,{


    OnClock1130:
    OnClock2330:
        .@event$ = strnpcinfo(0)+"::OnBossDead";
        if( mobcount( "pvp_y_1-1",.@event$ ) )
        killmonster "pvp_y_1-1",.@event$;
        pvpon "pvp_y_1-1";
        monster "pvp_y_1-1",100,119,"Faceworm Queen",2529,1,.@event$;    
        monster "pvp_y_1-1",44,204,"Faceworm Queen (Yellow)",2535,1,.@event$;                   
        monster "pvp_y_1-1",156,315,"Faceworm Queen (Red)",2532,1,.@event$; 
        monster "pvp_y_1-1",268,204,"Faceworm Queen (Blue)",2534,1,.@event$; 
        monster "pvp_y_1-1",237,79,"Faceworm Queen (Green)",2533,1,.@event$; 
        announce "FACEWORM QUEENS HAS AWAKEN! DEAR ADVENTURE, PLEASE PUT THEM TO SLEEP.",bc_all;
    end;

    OnBossDead:

        set .@mob_dead,mobcount("pvp_y_1-1", .@event$);
        if (.@mob_dead < 1) {
            pvpoff "pvp_y_1-1";
        }
        else
            announce "Remaining" + .@mob_dead + "MVPs left.",bc_all;
        end;
    }

     

×
×
  • Create New...