Jump to content
  • 0
Sign in to follow this  
maynard

goldroom party

Question

can you edit this script by emistry, I want the player to have 1 gold if the party member is offline. My problem with this script is they can abuse it because if you invite 5 people on a party, You will get 5 gold everytime you kill a monster and that is what it should be but if the player is offline you still get 5 even if all the remaining player log out or offline.

prontera,155,181,5	script	Sample	757,{mes "Enter Gold Room?";if( select( "Yes","cancel" ) == 1 ){	warp .map$,0,0;}close;OnMobKill:.@party_id = getcharid(1);if( !.@party_id ){	.@gain_gold = 1;}else{		.@aid = getcharid(3);	getpartymember .@party_id;	getpartymember .@party_id,2;	.@gain_gold = ( ( $@partymembercount > 5 )? 5:$@partymembercount );	for( .@i = 0; .@i < $@partymembercount; .@i++ )		if( $@partymemberaid[.@i] != .@aid && isloggedin( $@partymemberaid[.@i] ) ){			getmapxy( .@map$,.@x,.@y,0,$@partymembername$[.@i] );			if( .@map$ == .map$ )				getitem 969,1,$@partymemberaid[.@i];		}}getitem 969,.@gain_gold;end;OnInit:.map$ = "guild_vs5";end;}guild_vs5,0,0	monster	Poring	1002,100,0,0,"Sample::OnMobKill"

 

Share this post


Link to post
Share on other sites

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

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.