Is there a way to use Virindi Item Tool with a meta?
Is there a way to use Virindi Item Tool with a meta?
Basically I want to hand items over at a fast rate, I know I can somewhat do this with just running a meta state over and over until an item count in inventory is met but I was wondering if there was a way to control VIT directly?
- Immortalbob
- Site Admin
- Posts: 676
- Contact:
nothing listed on the vwiki about it...
http://www.virindi.net/wiki/index.php/Virindi_Item_Tool
however @hellswrath might know more than the vwiki, haha
http://www.virindi.net/wiki/index.php/Virindi_Item_Tool
however @hellswrath might know more than the vwiki, haha
Immortalbob of MT
not directly no, the only way to use VIT with meta is by using magtools /mt clicks which honestly is not a very foolproof solution.
an alternate solution is to hand the item using a nav route and /mt givep instead of restarting meta state over and over then react to low item count.
an alternate solution is to hand the item using a nav route and /mt givep instead of restarting meta state over and over then react to low item count.
You could make up your own little VIT type meta.. I'll see if I have time today to whip up an example.
I thought about how you could apply expressions to make something like VIT using expressions and magtools /mt give command this is what I came up with, kind of a rough idea, needs a way to vary time between gives also perhaps a max number of items handed over? items handed over would be easy enough just add a counter each time you hand an item but how to set the max number I haven't figured out a good way yet.
if only we could use getvar[ItemName] in a inventory item count then you could set it to stop whenever you run out of the item.
Code: Select all
Chat Message: !setItem
ExprAct setvar[ItemName, wobjectgetname[wobjectgetselection[]]]
Code: Select all
Chat Message: !setTarget
ExprAct setvar[TargetName, wobjectgetname[wobjectgetselection[]]]
Code: Select all
Chat Message: !giveItem
ExprChat \/mt\ give\ +getvar[ItemName]+\ to\ +getvar[TargetName]
Damn you.. that's exactly what I was going to do.
lol mine wouldn't work very well however at least not yet. heh I wish we had a actiontrygiveitem[2] command in meta functions, wouldn't that be awesome? no more magtools requirement for most quests.yaroz wrote:Damn you.. that's exactly what I was going to do.
Yup.. that'd be awesome.
Plus.. there's no way to set the max or timer without editing the meta..
Plus.. there's no way to set the max or timer without editing the meta..
yaroz wrote:Yup.. that'd be awesome.
Plus.. there's no way to set the max or timer without editing the meta..
hmm not quite, you could have it setup like this I suppose
each time it gives an item if a counter is set -1
Code: Select all
Expr testvar[Counter]==1
ExprAct setvar[Counter, getvar[Counter]-1]
Code: Select all
All{Expr testvar[Counter]==1, getvar[Counter]==0}
ExprAct clearvar[Counter]
timer would be similar you could set a timer variable /vt mexec setvar[Timer, 60]
then when timer=stopwatch clearvars
Id probably use clearallvars[] and react to Expr testvar[TargetName]==0 to stopping the meta
Code: Select all
all{Expr testvar[Timer]==1, Expr testvar[StopwatchTimer]==0}
ExprAct setvar[StopwatchTimer, stopwatchcreate[]];stopwatchstart[getvar[StopwatchTimer]]
Code: Select all
All{Expr testvar[StopwatchTimer]==1, Expr getvar[Timer]==stopwatchelapsedseconds[getvar[StopwatchTimer]]}
ExprAct clearvar[Timer];clearvar[StopwatchTimer]