prontera,183,213,5 script Monster Hunter 483,{
// monster_hunt_deny = 0;
if ( .start == 2 ) {
mes "Sorry somebody already started";
close;
}
if ( .start == 0 ) {
mes "^FF0000 Talk to the Hand ^000000";
close;
}
mes "open";
next;
select "register";
if ( getcharid(1) == 0 ) {
mes "you must be in a party";
close;
}
if ( getpartyleader( getcharid(1), 2 ) != getcharid(0) ) {
mes "you are not party leader";
close;
}
getpartymember getcharid(1), 1;
if ( $@partymembercount < .partysize ) {
mes "you must form a party of "+ .partysize;
close;
}
getpartymember getcharid(1), 2;
for ( .@i = 0; .@i < $@partymembercount; .@i++ )
if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) )
.@count++;
if ( .@count < .partysize ) {
mes "you must have "+ .partysize +" party members online";
close;
}
.@origin = getcharid(3);
for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
attachrid $@partymemberaid[.@i];
if ( baselevel < .baselevel || joblevel < .joblevel ) {
.@name$ = strcharinfo(0);
attachrid .@origin;
mes .@name$ +" does not meet the level requirement";
close;
}
if ( monster_hunt_deny + .deny > gettimetick(2) ) {
.@name$ = strcharinfo(0);
attachrid .@origin;
mes .@name$ +" are still under 5 min cooldown";
close;
}
}
}
for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
attachrid $@partymemberaid[.@i];
monster_hunt_deny = gettimetick(2);
}
}
warpparty "pvp_n_1-3", 100, 109, getcharid(1);
monster "this", -1,-1, "--ja--", 1002, 1, strnpcinfo(3)+"::Onmobdead";
announce strcharinfo(1) +" has started monster hunting", 0;
.start = 2;
.partyid = getcharid(1);
close;
Onmobdead:
announce strcharinfo(1) +" has completed monster hunting", 0;
getpartymember getcharid(1), 2;
for ( .@i = 0; .@i < $@partymembercount; .@i++ )
getitem 7227, 5, $@partymemberaid[.@i];
warpparty "SavePointAll", 0,0, .partyid;
.start = 0;
.partyid = 0;
end;
//OnWhisperGlobal:
OnMinute00:
if ( .start == 2 )
warpparty "SavePointAll", 0,0, .partyid;
announce "monster hunting is open", 0;
.start = 1;
end;
OnPCDieEvent:
OnPCLogoutEvent:
if ( strcharinfo(3) != "pvp_n_1-3" ) end;
announce strcharinfo(1) +" has failed monster hunting", 0;
warpparty "SavePointAll", 0,0, .partyid;
.start = 1;
.partyid = 0;
end;
OnInit:
.deny = 300; // 300 seconds to deny players going in again
.partysize = 3; // 10 player members needed to start
.baselevel = 99; .joblevel = 1; // level requirement
end;
I want it to broadcast the event every 4 hours and also to broadcast what party is going in, also i want it to take 5 players on a party instead of 3 also to make 5 levels of it so that they can battle more powerful mobs. after they finish it i want an npc to appear on the middle to teleport them back to prontera. also i want only 5 mobs per level to drop 2 tcg ea. one more thing is that only 2 parties can enter the event they have to be split on an another map doing the same thing. if 1 member dies or logs off then all the other members will be kicked off the map.
Question
Newbie Scripter
HI i need help on this script of mine
I want it to broadcast the event every 4 hours and also to broadcast what party is going in, also i want it to take 5 players on a party instead of 3 also to make 5 levels of it so that they can battle more powerful mobs. after they finish it i want an npc to appear on the middle to teleport them back to prontera. also i want only 5 mobs per level to drop 2 tcg ea. one more thing is that only 2 parties can enter the event they have to be split on an another map doing the same thing. if 1 member dies or logs off then all the other members will be kicked off the map.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.