Lineage 2 Tower Forum

Full Version: Cant find ID of custom NPC tab
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I am trying to make automatic Vote script for L2Ireal but I am stucked on one vote window where i am not able to select thing.

Image : https://imgur.com/RaH52Z6

I need Click on that Vitality Belt in Vitality item window, But when i try record it with .recstart it wont record this part, Anyone can help me? Thank you
This is what i have:
Code:
-- L2TOWER:LUA | Voting on Ireal
ShowToClient("Vote","Voting : Enabled!");
repeat
TargetNpc("Denkus", 30082);
Talk();
ClickAndWait("npc_268498820_cm_getreward", "Get Premium Item.");


function DeleteItems(ItemId)
    local invList = GetInventory();
        for item in invList.list do
            if(item.displayId == ItemId) then
                DeleteItem(item.objectId, item.ItemNum);
                ShowToClient("GOD","Item found and delete!")
            end;
        end
end;


    DeleteItems(15393); -- Vitality Belt
    Sleep(1000)
    

    Sleep(320*1000); -- 10 sec
until false;
[/php]
Reference URL's