yuhsing

Untitled

Jan 19th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1.  
  2. prontera,155,173,4 script Republic Anarchy#menace 100,{
  3.  
  4. if( !getcharid(1) ){
  5. mes "You need a party.";
  6. close;
  7. }
  8.  
  9. set .@itemid,512;
  10. set .@amount,10;
  11. set .@rid,getcharid(3);
  12.  
  13. getpartymember getcharid(1),0;
  14. getpartymember getcharid(1),2;
  15.  
  16. while( .@i < $@partymembercount ){
  17. if( attachrid( $@partymemberaid[ .@i ] ) )
  18. if( countitem( .@itemid ) < .@amount ){
  19. attachrid( .@rid );
  20. mes "Your member "+$@partymembername$[.@i]+" didnt have "+.@amount+" "+getitemname( .@itemid )+".";
  21. close;
  22. }
  23. set .@i,.@i+1;
  24. }
  25. .@i = 0;
  26. while( .@i < $@partymembercount ){
  27. if( attachrid( $@partymemberaid[ .@i ] ) )
  28. delitem .@itemid,.@amount;
  29. set .@i,.@i+1;
  30. }
  31. attachrid( .@rid );
  32. mes "All got items.";
  33. close;
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment