Jump to content
  • 0

help in lms script


alkhaleej

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  09/21/12
  • Last Seen:  

Anyone can help with this lms modified script:

 

Problem: Whenever someone goes inside Mr. Banker is there and if he clicks him even if he is alone in the LMS map, he will get the prize even before starting the LMS.

 

-    script    LMSAnnouncer    -1,{
 
OnClock0005:
OnClock0605:
OnClock1205:
OnClock1805:
 
    enablenpc "lmswarp";
    delwaitingroom;
    waitingroom "Register LMS Now",0;
    announce "[ LMS Event ] : The Last Man Standing Event will be starting shortly.",0,0xFF6633;
        sleep2 3000;
    announce "[ LMS Event ] : Those who want to play, please proceed to the main town and look for the event portal.",0,0xFF6633;
        sleep2 2000;
    announce "[ LMS Event ] : The portal is going to close in one minute..",0,0xFF6633;
        sleep2 60000;
    announce "[ LMS Event ] : The portal has been closed.",0,0xFF6633;
        sleep 5000;
    announce "[ LMS Event ] : Next event will start in 2 hours.",0,0xFF6633;
        delwaitingroom;
        disablenpc "lmswarp";
        stopnpctimer;
        pvpoff "2009rwc_04";
            mapannounce "2009rwc_04","[ LMS Event ] : The Last Man Standing Event will start shortly.",0,0xFF6633;
                sleep2 5000;
            mapannounce "2009rwc_04","[ LMS Event ] : Before we start, please take note on some few reminders:",0,0xFF6633;
                sleep2 5000;
            mapannounce "2009rwc_04","[ LMS Event ] : Using Cloaking, Hiding or similar in nature skills is strictly prohibited.",0,0xFF6633;
                sleep2 5000;
            mapannounce "2009rwc_04","[ LMS Event ] : Only the Last Man Standing will win this event!!",0,0xFF6633;
                sleep2 5000;
            mapannounce "2009rwc_04","[ LMS Event ] : What are we waiting for?.. Let's get ready to rumble!!...",0,0xFF6633;
                sleep2 5000;
            mapannounce "2009rwc_04","[ LMS Event ] : Get ready at the count of 5 we will start!",0,0xFF6633;
                sleep2 5000;
                    for( set .@s,5; .@s > 0; set .@s,.@s - 1 ){
                        mapannounce "2009rwc_04","[ LMS Event ] : "+.@s+" seconds to go ~ !!",0,0xFF6633;
                            sleep2 1000;
                    }
 
    pvpon "2009rwc_04";
    enablenpc "Mr. Banker";
    initnpctimer;
end;
 
OnTimer5000:
    if(getmapusers("2009rwc_04") == 0){
        announce "[ LMS Event ] : Event cancelled due to lack of participants.",0,0xFF6633;
        stopnpctimer;
    }else if(getmapusers("2009rwc_04") == 1){
        mapannounce "2009rwc_04","Mr. Banker: Please talk to me to get your prize..",0,0xFF6633;
        pvpoff "2009rwc_04";
        stopnpctimer;
    }else if(getmapusers("2009rwc_04") == 2){
        mapannounce "2009rwc_04","[ LMS Event ] : Last 2 Brave warriors are still alive!",0,0xFF6633;
        initnpctimer;
    }
end;
 
OnInit:
    disablenpc "Mr. Banker";
    disablenpc "lmswarp";
end;
}
 
//--------------------------
2009rwc_04,43,58,6    script    Mr. Banker    56,{
    if(getmapusers("2009rwc_04") > 1){
    npctalk "Only the last Survivor can talk with me.";
end;
}
    mes "[Banker]";
    mes "Congrats. You've won.";
        next;
    announce "[ LMS Event ] : We have a winner! well done "+strcharinfo(0)+".",0,0xFF6633;
        set #CASHPOINTS, #CASHPOINTS + 50; // Change This item id to what ever you want . item id,amount
        set #kill_point,0;
        dispbottom "You have obtained 50 Cash Points.";
    mes "I will warp you now to the main town.";
        close2;
        warp "alexandria",158,139;
        disablenpc "Mr. Banker";
    end;
 
OnInit:
    while(1){
    delwaitingroom;
    waitingroom "["+getmapusers("2009rwc_04")+"] Participants ",0;
    sleep 1000;
    }
end;
 
 
OnPCDieEvent:
    if( strcharinfo(3) != "2009rwc_04")end;
        set #kill_point, 0;
        announce ""+strcharinfo(0)+" died and is out of the game!.",bc_all,0xFF6633;
        sleep2 100;
        atcommand "@alive";
        sleep2 100;
        warp "alexandria",158,139;
        end;
        
OnPCKillEvent:
    if( strcharinfo(3) != "2009rwc_04")end;
    set #kill_point,#kill_point+1;
        if ( #kill_point % 4 == 0) {
        announce ""+strcharinfo(0)+" have made 4 consecutive kills!! He will be granted an item.",bc_all,0xFF6633;
        getitem 7227, 1;
        }
    end;
    
}
 
//-----------------------------------------------------------------------------------
//------------------Warp Portal------------------------------------------------------
alexandria,158,134,0    warp    lmswarp    2,2,2009rwc_04,0,0
//-----------------------------------------------------------------------------------
// == Mapflags
2009rwc_04    mapflag    nowarp
2009rwc_04    mapflag    nowarpto
2009rwc_04    mapflag    noteleport
2009rwc_04    mapflag    nosave
2009rwc_04    mapflag    nomemo
2009rwc_04    mapflag    nobranch
2009rwc_04    mapflag    pvp_noparty
2009rwc_04    mapflag    pvp_noguild
2009rwc_04    mapflag    restricted    1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  09/21/12
  • Last Seen:  

Tried this one but not. I've managed to figure it out. line 42 after 


 


enablenpc "lmswarp";

 


i added:


 


disablenpc "Mr. Banker";

 


Thank you very much Lugia.


Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   2
  • Joined:  08/23/12
  • Last Seen:  

Line 42 :

 

    enablenpc "Mr. Banker";
 

Change it to :

 

    disablenpc "Mr. Banker";
 

Do the same to Line 61:

 

    disablenpc "Mr. Banker";
 

Change to :

 

    enablenpc "Mr. Banker";
 

 

Try it.

Link to comment
Share on other sites

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.

×
×
  • Create New...