Jump to content
  • 0

help on this script


myieee

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

I requested this script last month and emistry made this for me. so i just want some changes here. is there any posible like if the party is failed they need to wait for like 5mins , and if someone afk in the event , the afk player will be warped out if someone party clicked the NPC because i edited some part of this script like this

OnMobKilled:

set .monsterhunt,0;

if( getmapusers("pvp_n_1-3") != 10 ){

announce "Monster Hunt failed by the party <<"+strcharinfo(1)+">>.",bc_all;

warpparty "prontera",156,126,getcharid(1);

goto OnClear;

and this
OnClear:

set .monsterhunt,1;

set .@PartyCount, $@partymembercount;

if (.@PartyCount == 10) {

monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",2017,1,"Monster Hunt::OnMobKilled";

}

end;

and also in the main page. instead of this
mes "[Monster Hunt]";

if( !.monsterhunt ){

mes "No event for the moment.";

i just want to change in to (how many players in inside like mapchecker , and if the event is on going like (This area is invaded) if its not (This area is empty)

prontera,146,162,5 script Monster Hunt 986,{
mes "[Monster Hunt]";
if( !.monsterhunt ){
mes "No event for the moment.";
}else if( getmapusers("pvp_n_1-3") ){
mes "There is someone/party inside.";
}else if( !getcharid(1) || getpartyleader(getcharid(1),2) != getcharid(0) ){
mes "You're not a Leader in a Party.";
}else{
getpartymember( getcharid(1) );
set .@PartyCount, $@partymembercount;
if (.@PartyCount == 10) {
mes "Would you like to join?";
menu "Yes",-,"No",M_Exit;
 warpparty "pvp_n_1-3",100,139,getcharid(1);
 end;
}else{
 mes "Dont have enough player/s on your party. You need 10 Member.";
}
}
close;
OnMinute00:
if( rand(100) < 50 ){
announce "Monster hunt is now open! First party of 10 players (all level 255).",0;
killmonsterall "pvp_n_1-3";
monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",2017,1,"Monster Hunt::OnMobKilled";
set .monsterhunt,1;
}
end;
OnMobKilled:
set .monsterhunt,0;
if( getmapusers("pvp_n_1-3") != 10 ){
announce "Monster Hunt failed by the party <<"+strcharinfo(1)+">>.",bc_all;
warpparty "prontera",156,126,getcharid(1);
goto OnClear;
}else{
getpartymember( getcharid(1),0 );
for( set .@i, 0; .@i < getarraysize($@partymembername$); set .@i, .@i+1 )
 getitem 7227,50,getcharid(3, $@partymembername$[.@i]);
announce "Monster Hunt event finished <<"+strcharinfo(1)+">> ,the monster will be respawn maybe in an hour",bc_all;
}
warpparty "prontera",156,126,getcharid(1);
end;
OnClear:
set .monsterhunt,1;
set .@PartyCount, $@partymembercount;
if (.@PartyCount == 10) {
monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",2017,1,"Monster Hunt::OnMobKilled";
}
end;
M_Exit:
close;
}
pvp_n_1-3 mapflag restricted 5

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

uhhh, what exactly do you want i could barley understand what you wrote about what you wanted :X

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

Ok . in the 1st request . if the party failed to finish that event . the party needs to wait for 5mins,and they are able to join again.

2nd . if there are 3 players in the event , they will warped out in the event , but the party leader needs to click the MH npc before they'll warp out in the arena.

3rd. if there;s no MH event i just want to change the message. from this

mes "[Monster Hunt]";

if( !.monsterhunt ){

mes "No event for the moment.";

to this

"There are (Players in inside of the map) <--- its like a mapchecker and if there;s an MH event . it will be like this *This Area is invaded" if its not , "This area is empty"

just like that. sorry for my bad english :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

1st i understand

2nd. If their is 3 players in the event you want them warped out? but party leader of the 3 players needs to click the npc to leave?

3rd. you want me to change, mes "No event for the moment"; to, mes "There are x players in the map this area is empty?

you really arent making urself clear here :D

Edited by lilcooldude69
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

in my 2nd request The event needs to finish with 10 members right ? so for example if someone got disconnected or afk player how to warp them out from the arena so the waiting party in outside can join again. . in the 3rd . yup .. its like a map checker .

bunp

Edited by Arcenciel
Merged
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

So the requirements for the Monster Hunt are:

  • The party must have 10 members if they failed to follow the required members they cant join.
  • Disconnected player can join again once they login again and also the party is currently Monster Hunting.
  • AFK players will be warped out
  • Party can join again every 5 minutes

am I right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

ok here are the info.

1st . instead of this

mes "[Monster Hunt]";
if( !.monsterhunt ){
mes "No event for the moment.";

I want a mapchecker like how many players in inside of arena and also if there is an event The npc says "The area is invaded" if its not "The area is empty"

2nd. about the afk players . for example if there are 3 players or less in inside of arena. you need to trigger the Monster Hunt NPC so they will warped out .

3rd. if the party is failed . they need to wait for 5mins to they can join again..

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