Jump to content
  • 0

Hello, Please Help Me!


083193

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/05/14
  • Last Seen:  

Hello, can someone give me Last Man Standing Script?

With NPC. Please Complete Script like maps, the reward script line.

i have sample here, can you please help me, it seems that i can't understand this. im new by the way

by the way i will put "<--" on the line i can't understand.

if there's something wrong with these script kindly make me a new one.

THANKS!   /no1

prontera,154,178,5    script    Last Man Standing    100,{
    if ( !.start ) {
        mes "no event atm";
        close;
    }
    if ( .start == 2 ) {
        mes "event is running";
        close;
    }
    if ( .register_count >= .register_limit ) {                     <--
        mes "this event has reach the maximum player participations";
        close;
    }
    percentheal 100,100;
    warp "guild_vs5", 0,0;
    .register_aid <-- [ .register_count ] = getcharid(3); <--
    .register_count+++;
    end;
OnWhisperGlobal:
    if ( getgmlevel() < 60 ) end;
//OnClock0000: // put all your start timer here  <--
OnMinute00:
    if ( .start == 2 )
        callsub L_resetmap;
    else if ( .start == 1 )
        end;
    announce "LMS event registration start", 0;
    .start = 1;
    sleep 10000; // registration timer here   <--
    announce "LMS event registration close", 0;
    .start = 2;
    sleep 3000;
    mapannounce "guild_vs5", "THIS IS SPARTA !!!!!", 0;
    if ( .register_count < .register_min ) {  <--
        announce "not enough participants for LMS event", 0;
        mapwarp "guild_vs5", .map$, .x, .y;
        callsub L_resetmap;
        end;
    }
    pvpon "guild_vs5";
    end;
OnPCDieEvent:
OnPCLogoutEvent:
    if ( .start != 2 || strcharinfo(3) != "guild_vs5" ) end;
    while ( .register_aid != getcharid(3) && .@i < .register_count ) .@i++;
    deletearray .register_aid[.@i], 1;
    .register_count--;
    warp "SavePoint", 0,0;
    if ( .register_count > 1 ) end;
    killmonsterall "guild_vs5";
    announce "congratulations ~ the winner of LMS event is "+ rid2name( .register_aid ), 0;
    getitem .reward_item_id <-- , .reward_item_amount <--, .register_aid; // winner prize
    warpchar "SavePoint", 0,0, getcharid( 0, rid2name( .register_aid ) );
    callsub L_reset;
    end;
L_resetmap:
    mapwarp "guild_vs5", .map$, .x, .y;
L_reset:
    .start = 0;
    deletearray .register_aid;
    .register_count = 0;
    pvpoff "guild_vs5";
    return;
OnInit:
    getmapxy .map$, .x, .y, 1;
    .register_min = 2; // minimum amount of players to start this event, or else it auto-abort
    .register_limit = 100; // maximum amount of players able to participate in this event
    .reward_item_id = 9524;
    .reward_item_amount = 500;
    end;
}
guild_vs5    mapflag    nosave    SavePoint
guild_vs5    mapflag    nowarp
guild_vs5    mapflag    nowarpto
guild_vs5    mapflag    noteleport
guild_vs5    mapflag    nomemo
guild_vs5    mapflag    nopenalty
//guild_vs5    mapflag    nobranch
guild_vs5    mapflag    noicewall
guild_vs5    mapflag    pvp_noparty
guild_vs5    mapflag    pvp_noguild

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

if ( .register_count >= .register_limit ) {                     <--  max player on the event   

 

search

 

.register_limit = 100;  this is max event player

 

 

.register_aid <-- [ .register_count ] = getcharid(3); <-- count the Player the played the event , getcharid(3) is Account ID number

.register_count+++;

 

 

//OnClock0000: // put all your start timer here  <-- the time to event start xD

 

z.b

 

OnClock1200:  <--- 12 clock server time

OnClock1600:  <---  16

OnClock2230:  <--- 22:30

 

OnMinute00:  <---- start of each hour

 

 

   

    sleep 10000; // registration timer here   <--  the time the npc waiting to he  Start    

 

     sleep 10000; //pause the script for 10 seconds

   

    if ( .register_count < .register_min ) {  <-- min. player number

       

search 

 

.register_min = 2; <--- 2 player to start the event

    

 

    getitem .reward_item_id <-- , .reward_item_amount <--, .register_aid; // winner prize

    

 is the

 

    .reward_item_id = 9524;  <-- Item ID

    .reward_item_amount = 500;  <--- Item amount

 

 

sorry for bad englisch  /oops

Edited by EL Dragon
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...