Search found 43 matches

by Drevarr
Fri May 13, 2022 1:52 pm
Forum: Help Forum
Topic: which container to use for this and how
Replies: 2
Views: 3282

Re: which container to use for this and how

something like this? assuming 25% for sidebar. myBorderSize = (WindowWidth*.25) rightSideBar = Geyser.Container:new({ name = "rightSideBar", x = -myBorderSize, y = 0, width = myBorderSize, height = "100%", }) function resizeMapContainer() local getWidth, getHeight = getMainWindow...
by Drevarr
Thu Dec 31, 2020 4:24 pm
Forum: Help Forum
Topic: If /Then Alias?
Replies: 1
Views: 6689

Re: If /Then Alias?

The attached Glances target to spell up Stone, Haste and Globe. Should be an easy mod to gsay shields on a glance target.
Glance_Spells_Triggers.xml
(8.24 KiB) Downloaded 218 times
Glance_Spells_Alias.xml
(526 Bytes) Downloaded 204 times
Don't know if Front/Back rank code is still in on Duris, may impact in some situations if still active.
by Drevarr
Sun Feb 12, 2017 12:38 pm
Forum: Help Forum
Topic: Comparing 2 variables became variable and string
Replies: 5
Views: 4169

Re: Comparing 2 variables became variable and string

tonumber( )
Code: [show] | [select all] lua
abi=tonumber(matches[2])
bdee=tonumber(matches[3])
echo(abi)
echo(bdee)
by Drevarr
Thu Jul 28, 2016 12:34 am
Forum: Help Forum
Topic: Working with Multiple Variables
Replies: 4
Views: 4547

Re: Working with Multiple Variables

You could use a table with the long description as keys. InfTable = { ["some mineral dust"] = "Stone", ["a small chunk of stone"] = "Stone", ["a large, polished stone"] = "Stone", ["a small piece of meteorite"] = "Stone"...
by Drevarr
Sun May 22, 2016 5:35 pm
Forum: Help Forum
Topic: Interesting concept but... need help.
Replies: 6
Views: 5969

Re: Interesting concept but... need help.

Insert capture groups in your regex to align with your desired variables, then build a string from the matches and echo the string to the miniConsole. myExample: local Hps=tonumber(matches[4]) local Mvs=tonumber(matches[5]) local Name=matches[2] local CharClass=matches[3] SetHPcolor() SetMVcolor() G...
by Drevarr
Sun May 15, 2016 5:44 pm
Forum: Help Forum
Topic: Windows VS MiniConsole
Replies: 2
Views: 3172

Re: Windows VS MiniConsole

You can control the FontSize but not the Font for a miniConsole. They utilize the default font. calcFontSize(fontSize) Used to calculate the number of pixels wide and high a character would be on a mini console at fontSize. As the primary intended usage is for calculating the needed dimensions of a ...
by Drevarr
Sat Jan 23, 2016 12:08 am
Forum: Help Forum
Topic: Using deleteLine() at the tail of other trigger processing
Replies: 4
Views: 3646

Re: Using deleteLine() at the tail of other trigger processi

Any chance you trigger is multi-line? or otherwise allowing the cursor to get beyond the line your wanting to delete? Regarding you follow up, this works for me which uses matches[3]: Pattern: (Head|Front|Back)\)\s(.*)$ local xName = string.trim(matches[3]) groupMate = xName GroupCount = GroupCount ...
by Drevarr
Fri Jan 22, 2016 1:02 am
Forum: Help Forum
Topic: Using deleteLine() at the tail of other trigger processing
Replies: 4
Views: 3646

Re: Using deleteLine() at the tail of other trigger processi

I would suggest checking your logic without the deleteLine() to make sure you have things working appropriately. I use deleteLine() a lot to remove text from the main window that I have routed to miniconsoles. example: if not string.starts(line, "Zone:") then if not string.starts(line, &qu...
by Drevarr
Sun Jan 17, 2016 3:33 am
Forum: Help Forum
Topic: [help] replacing words
Replies: 2
Views: 2994

Re: [help] replacing words

how about gsub?
Code: [show] | [select all] lua
str = string.gsub(matches[2], "Hello", "Greetings")
send("GT "..str)
by Drevarr
Sat Jan 02, 2016 10:17 pm
Forum: Help Forum
Topic: Newbie Rescue Trigger Question
Replies: 1
Views: 2710

Re: Newbie Rescue Trigger Question

Assuming you have the exact code in your post your issue is with the variable: Brasidas. I'm assuming you really wanted "Brasidas" rather than a variable Brasidas. target = matches[2] display (target) if target ~= "Brasidas" then send("stand") send("rescue " ....