Signup Now
Results 1 to 1 of 1
  1. #1
    Free User
    Join Date
    May 2017
    Posts
    22
    Reputation
    10
    Rep Power
    0

    [Solved] m.content pattern check for Imbuement

    Hey everyone,

    EDIT: SOLUTION!
    It will look at an equipped rhand item, and see if the phrase 'Basic Void' is present.
    Using part of code from mana leech analyzer that Donatello made https://forums.tibiawindbot.com/show...Leech-Analyser

    This seems to be working.
    local patternToFind = 'Basic Void' --or enter whichever imbuement you're using, has to be exact. copy paste from Server Log 

    contextmenu('Look', $rhand.id, 'rhand') --you can change these to whichever part of eq you want to check
    wait(800,1600)
    foreach newmessage m do
    if m.type == MSG_INFO then
    if m.content:match(patternToFind) then
    printerror("item imbued")
    else
    printerror("item no longer imbued")
    --here you can add action to remove weapon and equip imbued one from a bp etc..
    end
    end
    end
    Last edited by GimmePancakes; 07-14-2017 at 12:21 AM.

 

 

Posting Permissions

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