Advertisement
Winterfox

Untitled

Jul 7th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 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. set( .@died, 1 );
  7. OnPCKillEvent:
  8. for( set( .@i, 0 ); .@i < getarraysize( .royalWeaponIds ); set( .@i, ( .@i + 1) ) ) {
  9. if( getequipid( EQI_HAND_L ) == .royalWeaponIds[ .@i ] || getequipid( EQI_HAND_R ) == .royalWeaponIds[ .@i ] ) {
  10. set .@royalWeaponEquipped, 1;
  11. break;
  12. }
  13. }
  14.  
  15. if( !.@royalWeaponEquipped ) end;
  16.  
  17. if( .@died )
  18. if ( @kill > 0 )
  19. set @kill, @kill/2;
  20.  
  21. if( !.@died )
  22. if ( @kill < 10 )
  23. set @kill, @kill + 1;
  24.  
  25. message( strcharinfo(0), "You got " + @kill + " Kill" + ( ( @kill > 1 ) ? "s" : "" ) );
  26. end;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement