Jump to content
  • 0
Sign in to follow this  
leloush

[how to make this work]

Question

- 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 
 

 

thanks

Edited by leloush

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0
-	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;}

Share this post


Link to post
Share on other sites
  • 0

 

-	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 
 

 

thanks

:sry:  for giving too much work annie..

Share this post


Link to post
Share on other sites
  • 0

 

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.
 

 

thanks

a little bump for this anyone ?

thanks

Edited by leloush

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

 

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 by leloush

Share this post


Link to post
Share on other sites
  • 0

-	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

Share this post


Link to post
Share on other sites
  • 0

 

-	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 :D

 

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 :P 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 by leloush

Share this post


Link to post
Share on other sites
  • 0

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 script

there 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 =/

Share this post


Link to post
Share on other sites
  • 0

 

 


-	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  :thx:

Edited by leloush

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.