L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant find ID of custom NPC tab
Author Message
nahaku Offline
Expired VIP Member

Posts: 10
Joined: Jul 2012
Reputation: 2
Post: #1
Cant find ID of custom NPC tab

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:
-- L2TOWER:LUA | Voting on Ireal
ShowToClient("Vote","Voting : Enabled!");
TargetNpc("Denkus", 30082);
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!")

    DeleteItems(15393); -- Vitality Belt

    Sleep(320*1000); -- 10 sec
until false;
(This post was last modified: 05-04-2018 13:13 PM by nahaku.)
05-04-2018 13:08 PM
Find all posts by this user Quote this message in a reply
Post Reply 

User(s) browsing this thread: 1 Guest(s)