EU XP Event - Autouse dropped XP Serums

Post Reply
Online
User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

EU XP Event - Autouse dropped XP Serums

Post by nucular » Thu Feb 02, 2017 7:04 am

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

ewerson2
Posts: 8
Joined: Tue Apr 11, 2017 12:40 pm
Has thanked: 4 times
Been thanked: 3 times

Re: EU XP Event - Autouse dropped XP Serums

Post by ewerson2 » Fri Jul 21, 2017 9:27 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest