Jump to content
  • 0

Script Request with dynamic cash shop


ItsFree

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   7
  • Joined:  04/11/15
  • Last Seen:  

Well i have these scripts, the first woks fine no problem i guess... the problem is the second


-	script	Sample	-1,{
OnNPCKillEvent:
if( killedrid == 1312 || killedrid == 1751 ){
	if( killedrid == 1312 ) set .@point,100;
	if( killedrid == 1751 ) set .@point,100;

	set .@party_id,getcharid(1);
	if( !.@party_id ){
		set #MOBPOINTS,#MOBPOINTS + .@point;
		dispbottom "Gained "+.@point+" Mob Points.";

	}else{
		getpartymember .@party_id,1;
		getpartymember .@party_id,2;
		set .@acc_id, getcharid(3);
		set .@map$,strcharinfo(3);
		for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
			if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
				if( attachrid( $@partymemberaid[.@i] ) )
					if( HP && strcharinfo(3) == .@map$ )
						set .@online_count,.@online_count + 1;
		
		for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
			if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
				if( attachrid( $@partymemberaid[.@i] ) )
					if( HP && strcharinfo(3) == .@map$ ){
						set #MOBPOINTS, #MOBPOINTS + ( .@point / .@online_count );
						dispbottom "Party Online : "+.@online_count+" - Gained "+( .@point / .@online_count )+" Mob Points.";
					}
		attachrid( .@acc_id );
		dispbottom "All Your party member gained "+( .@point / .@online_count )+" Mob Point/s.";
	}
}
end;
}
izlude,134,138,4	pointshop	Monster Killing Rewards	667,#MOBPOINTS,14156:50

i gonna attach a image that show the problem.... i dont know why but just dont keep/read my points what could i do to solve this?


bump c:

post-32373-0-47305600-1447804099_thumb.jpg

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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