SHARE
TWEET

Untitled

a guest Jun 19th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(
  2.         table.getn(queue) > 0
  3.         and GS:IsCurrentState()
  4.     ) then
  5.         local item = table.remove(queue, 1);
  6.         local rule = item['rule']
  7.         local reason, value, currency, player = fail_bot_get_rule_as_string(rule), rule['value'], rule['currency'], item['player', true]
  8.        
  9.         if( currency == 'GP' ) then
  10.             if( EPGP:CanIncGPBy(reason, value) ) then
  11.                 EPGP:IncGPBy( player, reason, value )
  12.             else
  13.                 print("Unabe to charge GP", player, reason, value)
  14.             end
  15.         else
  16.             if( EPGP:CanIncEPBy(reason, value) ) then
  17.                 EPGP:IncEPBy( player, reason, value )
  18.             else
  19.                 print("Unabe to charge EP", player, reason, value)
  20.             end
  21.         end
  22.     end
RAW Paste Data
Top