Jump to content
  • 0

LMS script is not working


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

LMS script is not working.. the npc is not response when i clicked it.. i opened the mapserver and see but theres no error showing

 

 

 

prontera,156,152,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
//OnClock0030:
OnClock0144:
OnClock0344:
OnClock0544:
OnClock0744:
OnClock0944:
OnClock1044:
OnClock2144:
OnClock1244:
OnClock1544:
OnClock1844:
OnClock2144:
OnClock2344:


if ( .start == 2 )
callsub L_resetmap;
else if ( .start == 1 )
end;
announce "Last Man Standing Event registration starts now! Come to bottom of Prontera", 0;
.start = 1;
sleep 10000; // registration timer here
announce "Last Man Standing Event registration is now closed.", 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 = 969;
.reward_item_amount = 5;
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:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

bump

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...