Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(
- table.getn(queue) > 0
- and GS:IsCurrentState()
- ) then
- local item = table.remove(queue, 1);
- local rule = item['rule']
- local reason, value, currency, player = fail_bot_get_rule_as_string(rule), rule['value'], rule['currency'], item['player', true]
- if( currency == 'GP' ) then
- if( EPGP:CanIncGPBy(reason, value) ) then
- EPGP:IncGPBy( player, reason, value )
- else
- print("Unabe to charge GP", player, reason, value)
- end
- else
- if( EPGP:CanIncEPBy(reason, value) ) then
- EPGP:IncEPBy( player, reason, value )
- else
- print("Unabe to charge EP", player, reason, value)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement