Jump to content
  • 0

lms no party help


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

my problem is you are not allowed to have a party inside the LMS zone..but what they do.. they will have a party outside the LMS zone so when they are in a party they will join the LMS..

i want that may script will check if the character is in a party and he/she will be prohibited from entering the event..


prontera,156,175,3 script LMS Manager 106,{

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


OnClock0200:
OnClock0600:
OnClock1000:
OnClock1400:
OnClock1800:
enablenpc "LMS Manager";
delwaitingroom;
waitingroom "L.M.S. Registration",0;
pvpoff "poring_c01";
announce "LMS Manager: The Last Man Standing event will be starting shortly.",0;
sleep2 1000;
announce "LMS Manager: Those who want to play, please proceed to Prontera and Register.",0;
sleep2 1000;
announce "LMS Manager: After 1 Minute the Registration will close.",0;
sleep2 60000;
announce "LMS Manager: Please go to prontera and Register now if you want to join.",0;
disablenpc "Mr. Banker";
sleep2 1500;
announce "LMS Manager: Last 30 seconds.",0;
sleep2 30000;
announce "LMS Manager: If you want to join please Register in Prontera.",0;
sleep2 5000;
for( set .@s,10; .@s > 0 ; set .@s,.@s - 1 ){
announce "LMS Manager: "+.@s+" Seconds to go ~ Hurry Up !!",0;
sleep2 1000;
}
announce "LMS Manager: Time's up.",0;
delwaitingroom;
disablenpc "LMS Manager";
stopnpctimer;
pvpoff "poring_c01";
mapannounce "poring_c01","LMS Manager: The Last Man Standing Event will start shortly",0;
sleep2 1000;
if(getmapusers("poring_c01") == 1){
mapannounce "poring_c01","LMS Manager: Event Ended 1 Participant Only..",0;
pvpoff "poring_c01";
mapwarp "poring_c01","prontera",156,191;
stopnpctimer;
}
mapannounce "poring_c01","LMS Manager:But before we start this is just a few reminders..",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager:Using Cloaking , Hiding is strictly not allowed..",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager: Only the Last Man Standing will win this event!!",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager: Get ready at the count of 5 we will start!....",0;
sleep2 1000;
for( set .@s,5; .@s > 0; set .@s,.@s - 1 ){
mapannounce "poring_c01","LMS Manager: "+.@s+" Seconds to go ~ !!",0;
sleep2 1000;
}
pvpon "poring_c01";
enablenpc "Mr. Banker";
initnpctimer;
end;

OnTimer5000:
if(getmapusers("poring_c01") == 0){
Announce "Event Cancelled due to lack of participants.",0;
stopnpctimer;
}else if(getmapusers("poring_c01") == 1){
mapannounce "poring_c01","Mr. Banker: Please talk to me to get your prize..",0;
pvpoff "poring_c01";
stopnpctimer;
}else if(getmapusers("poring_c01") == 2){
mapannounce "poring_c01","Mr. Banker: Last 2 Brave warriors are still alive!",0;
initnpctimer;
}else if(getmapusers("poring_c01") > 2){ 
initnpctimer;
}
end;

OnInit:
disablenpc "Mr. Banker";
disablenpc "LMS Manager";
end;
}
//------------------------

poring_c01,101,108,3 script Checker 780,{

mes "[Checker]";
mes "Hi " + strcharinfo(0) + ", Want to check how many are you here?";
next;
mes "There are currently ["+getmapusers("poring_c01")+"]players on map";
close;

OnInit:
waitingroom "Map Checker",0;
end;
}

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

//--------------------------
poring_c01,106,108,3 script Mr. Banker 56,{
if(getmapusers("poring_c01") > 1){
npctalk "Only the last Survivor can talk with me.";
end;
}
mes "[banker]";
mes "Congrats. You've won.";
next;
announce "Mr. Banker: We have a winner! well done "+strcharinfo(0)+".",0;
getitem 7227, 10;
mes "You will return now";
close2;
warp "prontera",156,191;
disablenpc "Mr. Banker";
end;

OnInit:
while(1){
delwaitingroom;
waitingroom "["+getmapusers("poring_c01")+"] Participants ",0;
sleep 1000;
}
end;


OnPCDieEvent:
if( strcharinfo(3) != "poring_c01")end;
announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
sleep2 100;
warp "prontera",156,191;
end;

}


// == Mapflags
poring_c01 mapflag pvp
poring_c01 mapflag nowarp
poring_c01 mapflag nowarpto
poring_c01 mapflag noteleport
poring_c01 mapflag nosave
poring_c01 mapflag nomemo
poring_c01 mapflag nobranch
poring_c01 mapflag pvp_noparty

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

if(getcharid(1))
{
//reject
close;
}

npctalk ""+strcharinfo(0)+" has registered for the Last Man Standing.";
warp "poring_c01",103,99;

also, add some mapflag like partylock

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

so it will be like this sir??


prontera,156,175,3 script LMS Manager 106,{

mes "[LMS Manager]";
mes "Hello What can I do for you?";
next;
menu "Register",-,"What is LMS?",what,"Leave",leave;
next;
mes "[LMS Manager]";
mes "Thank you for registering Mr. " + strcharinfo(0) + ", Have fun!";
close2;

if(getcharid(1))
{
//reject
close;
}
npctalk ""+strcharinfo(0)+" has registered for the Last Man Standing.";
warp "poring_c01",103,99;
end;
what:
mes "[LMS Manager]";
mes "LMS is also known as Last Man Standing Event";
next;
mes "[LMS Manager]";
mes "LMS is also like a PvP.";
mes "The only difference is at LMS you will get 10 TCG if you are the Last Man Standing at the arena.";
next;
mes "[LMS Manager]";
mes "That's all";
close;
leave:
mes "[LMS Manager]";
mes "I hope you will register next time";
close;


OnClock0200:
OnClock0600:
OnClock1000:
OnClock1400:
OnClock1800:
enablenpc "LMS Manager";
delwaitingroom;
waitingroom "L.M.S. Registration",0;
pvpoff "poring_c01";
announce "LMS Manager: The Last Man Standing event will be starting shortly.",0;
sleep2 1000;
announce "LMS Manager: Those who want to play, please proceed to Prontera and Register.",0;
sleep2 1000;
announce "LMS Manager: After 1 Minute the Registration will close.",0;
sleep2 60000;
announce "LMS Manager: Please go to prontera and Register now if you want to join.",0;
disablenpc "Mr. Banker";
sleep2 1500;
announce "LMS Manager: Last 30 seconds.",0;
sleep2 30000;
announce "LMS Manager: If you want to join please Register in Prontera.",0;
sleep2 5000;
for( set .@s,10; .@s > 0 ; set .@s,.@s - 1 ){
announce "LMS Manager: "+.@s+" Seconds to go ~ Hurry Up !!",0;
sleep2 1000;
}
announce "LMS Manager: Time's up.",0;
delwaitingroom;
disablenpc "LMS Manager";
stopnpctimer;
pvpoff "poring_c01";
mapannounce "poring_c01","LMS Manager: The Last Man Standing Event will start shortly",0;
sleep2 1000;
if(getmapusers("poring_c01") == 1){
mapannounce "poring_c01","LMS Manager: Event Ended 1 Participant Only..",0;
pvpoff "poring_c01";
mapwarp "poring_c01","prontera",156,191;
stopnpctimer;
}
mapannounce "poring_c01","LMS Manager:But before we start this is just a few reminders..",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager:Using Cloaking , Hiding is strictly not allowed..",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager: Only the Last Man Standing will win this event!!",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager: What are we waiting for?..Let's Get Ready to Rumble!!...",0;
sleep2 1000;
mapannounce "poring_c01","LMS Manager: Get ready at the count of 5 we will start!....",0;
sleep2 1000;
for( set .@s,5; .@s > 0; set .@s,.@s - 1 ){
mapannounce "poring_c01","LMS Manager: "+.@s+" Seconds to go ~ !!",0;
sleep2 1000;
}
pvpon "poring_c01";
enablenpc "Mr. Banker";
initnpctimer;
end;

OnTimer5000:
if(getmapusers("poring_c01") == 0){
Announce "Event Cancelled due to lack of participants.",0;
stopnpctimer;
}else if(getmapusers("poring_c01") == 1){
mapannounce "poring_c01","Mr. Banker: Please talk to me to get your prize..",0;
pvpoff "poring_c01";
stopnpctimer;
}else if(getmapusers("poring_c01") == 2){
mapannounce "poring_c01","Mr. Banker: Last 2 Brave warriors are still alive!",0;
initnpctimer;
}else if(getmapusers("poring_c01") > 2){
initnpctimer;
}
end;

OnInit:
disablenpc "Mr. Banker";
disablenpc "LMS Manager";
end;
}
//------------------------

poring_c01,101,108,3 script Checker 780,{

mes "[Checker]";
mes "Hi " + strcharinfo(0) + ", Want to check how many are you here?";
next;
mes "There are currently ["+getmapusers("poring_c01")+"]players on map";
close;

OnInit:
waitingroom "Map Checker",0;
end;
}

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

//--------------------------
poring_c01,106,108,3 script Mr. Banker 56,{
if(getmapusers("poring_c01") > 1){
npctalk "Only the last Survivor can talk with me.";
end;
}
mes "[banker]";
mes "Congrats. You've won.";
next;
announce "Mr. Banker: We have a winner! well done "+strcharinfo(0)+".",0;
getitem 7227, 10;
mes "You will return now";
close2;
warp "prontera",156,191;
disablenpc "Mr. Banker";
end;

OnInit:
while(1){
delwaitingroom;
waitingroom "["+getmapusers("poring_c01")+"] Participants ",0;
sleep 1000;
}
end;


OnPCDieEvent:
if( strcharinfo(3) != "poring_c01")end;
announce ""+strcharinfo(0)+" died, and out of the game!.",bc_all;
sleep2 100;
warp "prontera",156,191;
end;

}


// == Mapflags
poring_c01 mapflag pvp
poring_c01 mapflag nowarp
poring_c01 mapflag nowarpto
poring_c01 mapflag noteleport
poring_c01 mapflag nosave
poring_c01 mapflag nomemo
poring_c01 mapflag nobranch
poring_c01 mapflag pvp_noparty

also if thats correct how will i edit may script so that when they are in a party then they will join the LMS...a message will show that YOU ARE IN A PARTY YOU ARE NOT ALLOWED TO JOIN

Edited by glemor123
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

prontera,156,175,3    script    LMS Manager    106,{
   if(getcharid(1))
   {
//reject
       mes "[LMS Manager]";
       mes "YOU ARE IN A PARTY YOU ARE NOT ALLOWED TO JOIN.";
       close;
   }

   mes "[LMS Manager]";
   mes "Hello What can I do for you?";
   next;
   menu "Register",-,"What is LMS?",what,"Leave",leave;
   next;
   mes "[LMS Manager]";
   mes "Thank you for registering Mr. " + strcharinfo(0) + ", Have fun!";
   close2;
   npctalk ""+strcharinfo(0)+" has registered for the Last Man Standing.";
...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

poring_c01 mapflag pvp
poring_c01 mapflag pvp_noparty
poring_c01 mapflag pvp_noguild
poring_c01 mapflag partylock

and add the check like Capuche did...

or perhaps its better to add that check after this line

menu "Register",-,"What is LMS?",what,"Leave",leave;

next;

if ( getcharid(1) ) <-- here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

saying something.

if you put no party mapflag, you cant stop the players team play to get the prize ^_^.... 5 friends join the event without killing each other kill others 1st...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

saying something.

if you put no party mapflag, you cant stop the players team play to get the prize ^_^.... 5 friends join the event without killing each other kill others 1st...

you don't say :D

Edited by goddameit
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...