XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: Shaelex's scripts.

  1. #1
    fioletowya's Avatar
    Join Date
    Nov 2015
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Shaelex's scripts.

    Everywhere I am Shaelex, but not here, that's why I am writing that scripts are made by Shaelex (it's me :D)
    I will post here my lua scripts, they are made for players which are asking me for it in game. I hope it will be useful for someone from forum.



    1. Simple Task Checker


    lua code:
    ----TASKER----
    --BY SHAELEX--
    -----2015-----

    registerEventListener(WALKER_SELECTLABEL, "onLabel")

    print('---TASKER---\n--by SHAELEX--\n----2015----')
    local monster = "Kongra" -- monster name
    local kills = 500 -- kills for task

    function onLabel(label)
    if(label == "CheckTasks") then
    print('Checking tasks...')
    wait(100,300)
    if (Self.GetCreatureKills(monster)>=kills) then
    print('Task is done, going to Grizzly Adams...')
    Walker.Goto("GoToTask")
    Self.ResetCreatureKills(monster)
    else
    print('Not enough kills for task...')
    wait(100,300)
    Walker.Goto("NoTask")
    end
    end
    end




    2. Simple seller

    lua code:
    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    function onWalkerSelectLabel(labelName)
    if (labelName == "SellItems") then
    local items = {11661, 11660, 11659, 11316, 10277, 10386, 10388, 10387, 10384, 10390, 10392, 4033, 11657}
    Walker.Stop()
    Self.SayToNpc({"hi", "trade"}, 65)
    for i=1, #items do
    if (Self.ItemCount(items[i])>0 ) then
    Self.ShopSellAllItems(items[i])
    wait(500)
    end
    end
    Walker.Start()
    end
    end
    Attached Files Attached Files
    Last edited by shadowart; 12-19-2015 at 06:26 AM. Reason: xcode

  2. #2

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    need script to heal my friend next to me by potion can ?

  3. #3
    fioletowya's Avatar
    Join Date
    Nov 2015
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sholh View Post
    need script to heal my friend next to me by potion can ?
    I am not creating more scripts because I don't have enough time to do it, sorry. Anyway you can do what you want with Container:UseItemWithCreature(spot, creature). If you have problems with it feel free to send me private message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •