Jump to content
  • 0

H> Last Man Standing


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

hello master after killing the player its not warping in prontera or not exiting the map can someone help me heres the script and the error
 

-    script    LMS#disable    -1,{

OnInit:
disablenpc "Mr. Banker";
disablenpc "All Job Manager";
end;
}

-    script    LMS    -1,{

OnClock000:
OnClock0300:
OnClock0600:
OnClock0900:
OnClock1200:
OnClock1500:
OnClock1821:
OnClock2100:// Edit this to what ever you want. note : OnClock0000 is 12 midnight and OnClock1200 is 12 Noon
goto startlmsevent;

startlmsevent:
announce "Mr. Manager: The Last Man Standing event will be starting shortly.",0;
sleep 10000;
announce "Mr. Manager: Those who want to play, please proceed to Prontera and Register.",0;
sleep 10000;
announce "Mr. Manager: After 1 Minute the Registration will close.",0;
sleep 10000;
announce "Mr. Manager: Please go to Prontera and Register now if you want to join.",0;
enablenpc "All Job Manager";
initnpctimer;
end;

OnTimer30000:
announce "Mr. Manager: Last 30 seconds.",0;
sleep 5000;
announce "Mr. Manager: If you want to join please Register in Prontera.",0;
end;

OnTimer50000:
announce "Mr. Manager: Last 10 seconds.",0;
end;

OnTimer55000:
announce "Mr. Manager: 5.",0;
end;

OnTimer56000:
announce "Mr. Manager: 4.",0;
end;

OnTimer57000:
announce "Mr. Manager: 3.",0;
end;

OnTimer58000:
announce "Mr. Manager: 2.",0;
end;

OnTimer59000:
announce "Mr. Manager: 1.",0;
end;

OnTimer60000:
announce "Mr. Manager: Time's up.",0;
end;

OnTimer61000:
disablenpc "All Job Manager";
donpcevent "Mr. Banker::OnEnable";
stopnpctimer;
end;
}
//---------All Job Registration---------------
prontera,153,193,5    script    All Job Manager    106,{

mes "[Mr. Manager]";
mes "Hello What can I do for you?";
next;
menu "Register",-,"What is LMS?",what,"Leave",leave;
next;
mes "[Mr. Manager]";
mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
warp "guild_vs1-1",50,50;
end;
what:
mes "[Mr. Manager]";
mes "LMS is also known as Last Man Standing Event";
next;
mes "[Mr. Manager]";
mes "LMS is also like a PvP.";
mes "The only difference is at LMS you will get 10 PC Point if you are the Last Man Standing at the arena.";
next;
mes "[Mr. Manager]";
mes "That's all";
close;
leave:
mes "[Mr. Manager]";
mes "I hope you will register next time";
close;


}

//--------------------------

//--------------------------
guild_vs1-1,50,50,6    script    Mr. Banker    56,{

mes "[banker]";
mes "Congrats. You've won.";
next;
announce "Mr. Manager: We have a winner! well done "+strcharinfo(0)+".",0;
getitem 7227,1; // Change This item id to what ever you want . item id,amount
dispbottom "+1 TCG";
mes "You will return now";
warp "prontera",155,182;
disablenpc "Mr. Banker";
close;
end;
OnEnable:
pvpoff "guild_vs1-1";
mapannounce "guild_vs1-1","Mr. Manager:The Last Man Standing Event will start shortly",0;
sleep 10000;
mapannounce "guild_vs1-1","Mr. Manager:But before we start this is just a few reminders..",0;
sleep 10000;
mapannounce "guild_vs1-1","Mr. Manager:Using Cloaking , Hiding is strictly not allowed..",0;
sleep 10000;
mapannounce "guild_vs1-1","Mr. Manager: Only the Last Man Standing will win this event!!",0;
sleep 10000;
mapannounce "guild_vs1-1","Mr. Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
sleep 10000;
goto L_Start;
end;
L_Start:
if(getmapusers("guild_vs1-1") == 1) goto L_Champ;
if(getmapusers("guild_vs1-1") == 0) goto L_None;
if(getmapusers("guild_vs1-1") > 1) {
mapannounce "guild_vs1-1","Mr. Manager: Get ready at the count of 5 we will start!....",0;
sleep 10000;
mapannounce "guild_vs1-1","Mr. Manager: 5",0;
sleep 5000;
mapannounce "guild_vs1-1","Mr. Manager: 4",0;
sleep 4000;
mapannounce "guild_vs1-1","Mr. Manager: 3",0;
sleep 3000;
mapannounce "guild_vs1-1","Mr. Manager: 2",0;
sleep 2000;
mapannounce "guild_vs1-1","Mr. Manager: 1",0;
sleep 1000;
pvpon "guild_vs1-1";
goto timer;
end;
}
timer:
initnpctimer;
end;

OnTimer1000:
end;

OnTimer1100:
if(getmapusers("guild_vs1-1") == 1) goto L_Champ;
if(getmapusers("guild_vs1-1") > 2) goto timer;
if(getmapusers("guild_vs1-1") == 2) goto champ;
stopnpctimer;
end;

champ:
announce "Mr. Manager: Last 2 Brave warriors are still alive!",0;
sleep 10000;
if(getmapusers("guild_vs1-1") == 1) goto L_Champ;
if(getmapusers("guild_vs1-1") > 1) goto timer;
end;

L_Champ:
mapannounce "guild_vs1-1","Mr. Banker: Please talk to me to get your prize..",0;
pvpoff "guild_vs1-1";
enablenpc "Mr. Banker";
end;

L_None:
disablenpc "Banker";
pvpoff "guild_vs1-1";
end;
}
//----- Die = warp prt -----
-    script    Kill_warp    -1,{

OnPCDieEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="guild_vs1-1")
{
    set #kill_point, 0;
    announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
    warp "prontera",156,195;
    end;
}
OnPCKillEvent:
getmapxy(.@map$,.@x,.@y,0);
if(.@map$=="guild_vs1-1")
{
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;
//getitem 7539, 20;
end;
}
}
}


// == Mapflags
guild_vs1-1    mapflag    nowarp
guild_vs1-1    mapflag    nowarpto
guild_vs1-1    mapflag    noteleport
guild_vs1-1    mapflag    nosave
guild_vs1-1    mapflag    nomemo
guild_vs1-1    mapflag    nobranch
guild_vs1-1    mapflag    pvp_noparty
guild_vs1-1    mapflag    restricted    1


image.thumb.png.032530083dde6be2f98250bfe89c052a.png
 

Edited by Mael
Use a codebox
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

change all 

getmapxy(.@map$,.@x,.@y,0);

into

getmapxy(.@map$,.@x,.@y,BL_PC);

always read the latest rAthena changelog after you updated the server revisions.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   8
  • Joined:  09/16/18
  • Last Seen:  

not a answer to your question but i think use  this event manager its easier. 

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

6 hours ago, lelouchxv said:

not a answer to your question but i think use  this event manager its easier. 

 

i will try this thanks anyway

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

1 hour ago, Emistry said:

change all 

getmapxy(.@map$,.@x,.@y,0);

into

getmapxy(.@map$,.@x,.@y,BL_PC);

always read the latest rAthena changelog after you updated the server revisions.

always thanks to you sir @Emistry

 

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