hello, im using something like this from the given ahead
can someone help
- script partygetitem -1,{
OnNPCKillEvent:
if( killedrid == 1170 || killedrid == 1956 ){ //entweihen/sieger
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
set .@acc_id, getcharid(3);
for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
if( attachrid( $@partymemberaid[.@i] ) )
set #CASHPOINTS, #CASHPOINTS + ( 100 / $@partymembercount );
//getitem 5379,1,$@partymemberaid[.@i];
attachrid( .@acc_id );
dispbottom "All Your party member gained cash point/s.";
end;
}
}
my problems are:
1. other party members not on same map where the monster is killed still gets their share (supposed to be not)
2. other party members offline will still be part of the math(division)/ (a party of 2, 1 is offline and one online, when the online one kills the monster he will only get half of the points) supposed to be 100%
3. when your not on a party, you wont get anything but the dispbottom message still shows after killing the mob
4. dead players still get their share (i want them not to get any & excluded in the calculation if they are dead)
5. requesting also this to work w/ or w/out a party (so whether you kill it solo or on party, you can get cash)
6. requesting a check for each monster (i want ID1170 to give 50 cash only and ID1956 to give 100 cash)
7. supposedly i put/enable the getitem(which i commented out). will that be correct?
tnx if anyone helps