yuhsing

Untitled

Jul 18th, 2013
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1.  
  2. - script Sample -1,{
  3. OnNPCKillEvent:
  4. if( killedrid == 1170 || killedrid == 1956 ){
  5. if( killedrid == 1170 ) set .@point,50;
  6. if( killedrid == 1956 ) set .@point,100;
  7.  
  8. set .@party_id,getcharid(1);
  9. if( !.@party_id ){
  10. set #CASHPOINTS,#CASHPOINTS + .@point;
  11. dispbottom "Gained "+.@point+" Cashpoints.";
  12.  
  13. }else{
  14. getpartymember .@party_id,1;
  15. getpartymember .@party_id,2;
  16. set .@acc_id, getcharid(3);
  17. set .@map$,strcharinfo(3);
  18. for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
  19. if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
  20. if( attachrid( $@partymemberaid[.@i] ) )
  21. if( HP && strcharinfo(3) == .@map$ )
  22. set .@online_count,.@online_count + 1;
  23.  
  24. for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
  25. if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
  26. if( attachrid( $@partymemberaid[.@i] ) )
  27. if( HP && strcharinfo(3) == .@map$ ){
  28. set #CASHPOINTS, #CASHPOINTS + ( .@point / .@online_count );
  29. dispbottom "Party Online : "+.@online_count+" - Gained "+( .@point / .@online_count )+" Cash Points.";
  30. }
  31. attachrid( .@acc_id );
  32. dispbottom "All Your party member gained "+( .@point / .@online_count )+" cash point/s.";
  33. }
  34. }
  35. end;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment