Jump to content
  • 0

MVP Doesn't Spawn in different map


Question

Posted (edited)

Hello Everyone,

Need some guide to fix MVP only spawn at Prontera doesn't spawn in different map can some 1 guide to fix?

 

Thanks in advance..!!!

//================================================================//
//    World Boss Script
//    Created by PottScilgrim
//================================================================//
-    script    WorldBossEvent    -1,{ 


//================================================================//
//    Change the "OnClock" times to be when you want the event to begin
//================================================================//
//OnClock<hour><minute>:
//OnMinute<minute>:
//OnHour<hour>:
//On<weekday><hour><minute>:
//OnDay<month><day>:
OnClock0005:
OnClock0200:
OnClock0400:
OnClock0600:
OnClock0800:
OnClock1000:
OnClock1200:
OnClock1400:
OnClock1600:
OnClock1800:
OnClock2000:
OnClock2200:
    if(.WBMAPS$[1] == "") { 
        if(.WBMOBID[1] == 0){
            monster .WBMAPS$[0],0,0,"[World Boss]",.WBMOBID[0],1,"WorldBossEvent::OnWBDead",2;
        } else {
            monster .WBMAPS$[0],0,0,"[World Boss]",.WBMOBID[rand(getarraysize(.WBMOBID))],1,"WorldBossEvent::OnWBDead",2;
        }
    } else {
        if(.WBMOBID[1] == 0){
            monster .WBMAPS$[rand(getarraysize(.WBMAPS$))],0,0,"[World Boss]",.WBMOBID[0],1,"WorldBossEvent::OnWBDead",2;
        } else {
            monster .WBMAPS$[rand(getarraysize(.WBMAPS$))],0,0,"[World Boss]",.WBMOBID[rand(getarraysize(.WBMOBID))],1,"WorldBossEvent::OnWBDead",2;
        }
    }
    //announce "[World Boss]: The world boss has spawned!",bc_all;
    announce ("[World Boss Event]: The world boss has spawned atspawn at "+.WBMAPS$+"",bc_all);
    end;

//================================================================//
//    This event fires off when the world boss is killed
//================================================================//
OnWBDead:
    announce "[World Boss]: "+ strcharinfo(0)+" landed the final blow against the world boss!",bc_all;
    getitem .sprize,.sprizeamt; // Gives only the winning player this prize
    addrid 1,0;    // Attaches all players on the current map 
    getitem .mprize,.mprizeamt;    // Gives all players a prize
    end;

//================================================================//
//    These are the NPC settings
//================================================================//
OnInit:
    // Add your world boss mob ID's here. If you only need one, just put one.
    setarray .WBMOBID, 1848,1847;

    // Add the maps for your world boss event here. If you only want one, just add one.
    setarray .WBMAPS$, "prontera","geffen";
    
    // This is the special prize for the player that lands the final hit.
    .sprize = 22654;
    .sprizeamt = 100;

    // This is the prize that gets given to all players on the event map when it is killed
    .mprize = 22654;
    .mprizeamt = 20;
    end;
}

Worldbossevent2.txt

Edited by Emistry
codebox

2 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, DEsMOn said:
    setarray .WBMAPS$, "prontera","geffen";
    

I've added Map but seems doesn't working his spawning on same map Prontera ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...