Page 1 of 1

EU XP Event - Autouse dropped XP Serums

Posted: Thu Feb 02, 2017 7:04 am
by nucular
Hi Guys,

if you play on EU.

Add this to your class script Pause function to auto use the dropped XP serums on EU.

Code: Select all

function Pause( )
	for Inventory in ListIterator( InventoryList:GetList()) do
	-- Check if this is an xp serum.
	if string.find( Inventory:GetName(), "Growth Serum" ) ~= nil and Inventory:GetCooldown() == 0 then
		PlayerInput:Inventory( Inventory:GetName());
			return false;
		end
	end
	return true;
end

Re: EU XP Event - Autouse dropped XP Serums

Posted: Fri Jul 21, 2017 9:27 pm
by ewerson2
New EventDrop liquid XP

Code: Select all

function Pause()

    if Helper:CheckAvailableInventory( "[Event] Drop of Liquid Experience" ) and Player:GetLevel() <= 64 then
        PlayerInput:Inventory( "[Event] Drop of Liquid Experience" );
        return false;
    end
	
    if Helper:CheckAvailableInventory( "[Event] Vial of Liquid Experience" ) and Player:GetLevel() <= 64 then
        PlayerInput:Inventory( "[Event] Vial of Liquid Experience" );
        return false;
    end
	
    if Helper:CheckAvailableInventory( "[Event] Bottle of Liquid Experience" ) and Player:GetLevel() <= 64 then
        PlayerInput:Inventory( "[Event] Bottle of Liquid Experience" );
        return false;
    end
    
	-- Nothing was executed, continue with other functions.
	return true;	
end

08/08 Script clean