leloush 7 Posted March 4, 2014 (edited) - script summoner -1,{ OnInit: monster "fildz",0,0,"Kill Me !",2319,300,"hjkl::OnMobDead"; end; } hi this is for my farm room... (why i used this instead of permanent monster commands - because as u can see there is a event level on the monster i have a something on it that every kill there something to gain. thanks~.) and im wondering if its possible to make this work like(the permanent monster script) prt_fild08,0,0,0,0 monster Poring 1002,70,0,0,0 @edit solved (using onpckillevent instead) just one more question anyone. is it possible too to make partycount and if the party has 7members instead of getitem 25300,1; it changed to getitem +getpartymembercount 1(the killer) + 6(member) = 7 pcs http://upaste.me/6445109384d0264e6 thanks Edited March 4, 2014 by leloush Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 6, 2014 2. member#1 killed 1 mob and recieve 10(red potions) and 1 each for members on this party. (not yet) 3. member#2 killed 1 mob and recieve 10(red potions) and 1 for each members on this party. (including member#1 will recieve 1(501) only and not 10)(not yet) 6. if possible to add check idle.(not yet) - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { .@killer = getcharid(3); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { .@count++; } } } if ( .@count < 4 ) .@itemget = 1; else if ( .@count < 8 ) .@itemget = 2; else if ( .@count < 12 ) .@itemget = 3; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( .@killer == getcharid(3) ) { getitem .itemid, 10; } else if ( strcharinfo(3) == "guild_vs2" && checkidle() < 10 ) { // must not idle more than 10 seconds getitem .itemid, .@itemget; } } } } end;}.. the rest is impossible . . 4. (scenario) member#1 & member#2 kill a mob in the same time. they will get 10(itemid) for they killed 1 mobs. but the sharing will be 1(itemid) only.currently there is only 1 player can attach to the scriptthere is no way to get 2 players trigger the kills its either the one who landed last hit ... or the one dealt the most damage, depends on mob_npc_event_type in confbattlemonster.conf and very exploitable script =/ 1 leloush reacted to this Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 4, 2014 - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { getitem .itemid, 1; } } } } end;} Quote Share this post Link to post Share on other sites
0 leloush 7 Posted March 4, 2014 - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { getitem .itemid, 1; } } } } end;} @annie thanks.. i tested the script but the party leader or party member doesnt get an item, and is this include in the script u provided? prt_fild08,0,0,0,0 monster Poring 1002,70,0,0,0 @edit solved (using onpckillevent instead) just one more question anyone. is it possible too to make partycount and if the party has 7members instead of getitem 25300,1; it changed to getitem +getpartymembercount 1(the killer) + 6(member) = 7 pcs http://upaste.me/6445109384d0264e6 thanks for giving too much work annie.. Quote Share this post Link to post Share on other sites
0 leloush 7 Posted March 5, 2014 (edited) just one more question anyone. is it possible too to make partycount and if the party has 7members instead of getitem 25300,1; it changed to getitem +getpartymembercount 1(the killer) + 6(member) = 7 pcs its a real time update, if someone leave the party example (1 member leave the party) it will decrease to 6pcs per kill of the killer. http://upaste.me/6445109384d0264e6 thanks a little bump for this anyone ? thanks Edited March 5, 2014 by leloush Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 5, 2014 i tested the script but the party leader or party member doesnt get an item, how come you didn't get ... show your edited script Quote Share this post Link to post Share on other sites
0 leloush 7 Posted March 6, 2014 (edited) i tested the script but the party leader or party member doesnt get an item, how come you didn't get ... show your edited script i ddnt edit the script , except the map where i test this script and the mobs as well @edit: i just forgot something it works now.. annie is there a way to make this possible a real time update on how many party member is online in the same map will add another +1 .itemid will get depends on how many party is online and how many is in the map? Edited March 6, 2014 by leloush Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 6, 2014 - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { .@count++; } } } if ( .@count < 4 ) .@itemget = 1; else if ( .@count < 8 ) .@itemget = 2; else if ( .@count < 12 ) .@itemget = 3; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { getitem .itemid, .@itemget; } } } } end;}wonder whats so special about this script and, in case you don't know, an alchemist can summon homunculus and set it to aggressive afk inside there as many as possible and get maximum income like this, kinda exploitable 1 leloush reacted to this Quote Share this post Link to post Share on other sites
0 leloush 7 Posted March 6, 2014 (edited) - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { .@count++; } } } if ( .@count < 4 ) .@itemget = 1; else if ( .@count < 8 ) .@itemget = 2; else if ( .@count < 12 ) .@itemget = 3; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { getitem .itemid, .@itemget; } } } } end;}wonder whats so special about this script and, in case you don't know, an alchemist can summon homunculus and set it to aggressive afk inside there as many as possible and get maximum income like this, kinda exploitable thank you so muaaah gonna try this now.. well about the eploitable issue.. i knew it, it will become an exploitable.. BTW annie. im looking for the line where i can edit these " the getitem for party member? i think we misunderstand the topic and sry about that " the real time update for +1 item is only for the killer and not for the whole party. so this is the ideal script.. 1. the party has a 10members (example) 2. member#1 killed 1 mob and recieve 10(red potions) and 1 each for members on this party. (not yet) 3. member#2 killed 1 mob and recieve 10(red potions) and 1 for each members on this party. (including member#1 will recieve 1(501) only and not 10) (not yet) 4. (scenario) member#1 & member#2 kill a mob in the same time. they will get 10(itemid) for they killed 1 mobs. but the sharing will be 1(itemid) only. 5. a checker for if how many is active in this party at the same map.(done) 6. if possible to add check idle.(not yet) so this will be the ideal script. again, thanks annie. and about what's so special. i think nothing is special in this script, but think.. if the server has a harmony/IG that blocking this dual client. this will be fun right. Edited March 6, 2014 by leloush Quote Share this post Link to post Share on other sites
0 leloush 7 Posted March 7, 2014 (edited) - script kjdfkjsdfhks -1,{OnInit: monster "guild_vs2", 0,0, "--ja--", 1002, 100, strnpcinfo(0)+"::Onaaa"; .itemid = 501; end;Onaaa: monster "guild_vs2", 0,0, "--ja--", 1002, 1, strnpcinfo(0)+"::Onaaa"; if ( !getcharid(1) ) { getitem .itemid, 1; } else { .@killer = getcharid(3); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) { .@count++; } } } if ( .@count < 4 ) .@itemget = 1; else if ( .@count < 8 ) .@itemget = 2; else if ( .@count < 12 ) .@itemget = 3; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( .@killer == getcharid(3) ) { getitem .itemid, 10; } else if ( strcharinfo(3) == "guild_vs2" && checkidle() < 10 ) { // must not idle more than 10 seconds getitem .itemid, .@itemget; } } } } end;} 1. Thank you so much annie i just edit some of the lines. to fit on my likings. 2. yeah exploitable. but not too much since the mobs are limited and not too many as hell. Thank you annie so much Edited March 7, 2014 by leloush Quote Share this post Link to post Share on other sites
prt_fild08,0,0,0,0 monster Poring 1002,70,0,0,0
thanks
Edited by leloushShare this post
Link to post
Share on other sites