Advertisement
Winterfox

Untitled

Jul 7th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. - script RoyalWeapon -1,{
  2. OnInit:
  3. setarray( .@royalWeaponIds, 25621, 25622, 25623, 25624, 25625, 25626, 25627, 25628, 25629, 25630, 25631, 25632, 25633 );
  4. end;
  5. OnPCDieEvent:
  6. .@died = 1;
  7. OnPCKillEvent:
  8. for( .@i = 0; .@i < getarraysize( .@royalWeaponIds ); .@i++ ) {
  9. if( getequipid( EQI_HAND_L ) == .@royalWeaponIds[ .@i ] || getequipid( EQI_HAND_R ) == .@royalWeaponIds[ .@i ] ) {
  10. .@royalWeaponEquipped = 1;
  11. break;
  12. }
  13. }
  14.  
  15. if( !.@royalWeaponEquipped ) end;
  16.  
  17. if( .@died == 1 )
  18. if ( @kill > 0 )
  19. @kill = @kill / 2;
  20.  
  21. if( !.@died )
  22. if ( @kill < 10 )
  23. @kill += 1;
  24.  
  25. message( strcharinfo(0), "You got " + @kill + " Kills" );
  26. end;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement