Thread Tools Display Modes
02-12-17, 08:49 AM   #1
n00bsteam
A Murloc Raider
Join Date: Feb 2017
Posts: 8
Question EPGP Battle Bot

Hi all!

Can somebody help to make this addon work in 7.1.5?

Now it work, but can give ep\gp only to players at split servers, i'm think that problem it name to EPGP (sent only name but need name-realmname.

I try to make it work by myself, but i cant make it work(

Here repo of addon - https://github.com/hurricup/WoW-EPGP-BattleBot

P.S. Author doesnt play now and cant help me.

Thx for reading!
  Reply With Quote
02-12-17, 11:11 PM   #2
n00bsteam
A Murloc Raider
Join Date: Feb 2017
Posts: 8
Ok, mb someone ca help whit code?

I have this:

Code:
local item = table.remove(queue, 1);
        local rule = item['rule']
        local reason, value, currency, player = battle_bot_get_rule_as_string(rule), rule['value'], rule['currency'], item['player']
        
        if( currency == 'GP' ) then
            if( EPGP:CanIncGPBy(reason, value) ) then
                EPGP:IncGPBy( player, reason, value )
            else
                print("Unabe to charge GP", player, reason, value) -- debugging
            end
        else
            if( EPGP:CanIncEPBy(reason, value) ) then
                EPGP:IncEPBy( player, reason, value )
            else
                print("Unabe to charge EP", player, reason, value) -- debugging
            end
        end
here "player" have only playerName, but it doesnt work, seems to be there playerName-RealmName

I have this code from EPGP Addone:

Code:
local ourRealmName = string.gsub(GetRealmName(), "%s+", "")     -- Realm name with no spaces
function EPGP:GetFullCharacterName(name)
	if string.find(name, "%-") then
		return name;
	else
		return name .. "-" .. ourRealmName;
	end
end
i try to make like this:

Code:
        local item = table.remove(queue, 1);
        local rule = item['rule']
		local ourRealmName = string.gsub(GetRealmName(), "%s+", "")
        local reason, value, currency, player = battle_bot_get_rule_as_string(rule), rule['value'], rule['currency'], item['player']
        
        if( currency == 'GP' ) then
			if string.find(player, "%-") then
		        fullname = player;
	        else
		        fullname = player .. "-" .. ourRealmName
	        end
	    else
            if( EPGP:CanIncGPBy(reason, value) ) then
                EPGP:IncGPBy( fullname, reason, value )
            else
                print("Unabe to charge GP", fullname, reason, value) -- debugging
            end
        else
            if( EPGP:CanIncEPBy(reason, value) ) then
                EPGP:IncEPBy( fullname, reason, value )
            else
                print("Unabe to charge EP", fullname, reason, value) -- debugging
            end
        end
But it doesnt work. What is wrong?
  Reply With Quote
02-12-17, 11:51 PM   #3
n00bsteam
A Murloc Raider
Join Date: Feb 2017
Posts: 8
WoW! I make it work! xD
  Reply With Quote
04-27-17, 11:17 AM   #4
Rozenkreicer
A Defias Bandit
Join Date: Apr 2017
Posts: 2
Same trouble here, can someone help?
  Reply With Quote
05-04-17, 07:46 PM   #5
Rozenkreicer
A Defias Bandit
Join Date: Apr 2017
Posts: 2
Took some time, but the problem is solved.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » EPGP Battle Bot

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off