GM: Dye Plant Collection meta
Posted: February 18th, 2015, 6:42 pm
Decided to finally get around to playing with expressions and meta functions and figured this would be a good test/learning expreience. Tutorial for how to set this up at other locations coming soon to the Meta tips and tricks thread.
see documentation for plant locations and commands, only require for this meta is to have Aphus recall or to start in TN annex side when you issue the !command.
Functions used -- see http://www.immortalbob.com/phpBB3/viewt ... f=24&t=120 for better explanation on how to add this to a hunting metas for locations such as neftet
Verifying ObjectClass=18(BasicCooking) is the proper plant type
Evaluating distance between playerCharacter and wobject, if less than 110 then triggers condition
Adding navpt on nearest wobject with ObjectClass==BasicCooking using Chat Expression action
Picking up nearest ObjectClass=18(Basic Cooking)- used in a circular route with a 5s pause
Variable to determine if plant is close
Evaluating if plant has been picked up, if viarable for plantClose has been set and plant is no longer within 20m triggers condition.
see documentation for plant locations and commands, only require for this meta is to have Aphus recall or to start in TN annex side when you issue the !command.
Functions used -- see http://www.immortalbob.com/phpBB3/viewt ... f=24&t=120 for better explanation on how to add this to a hunting metas for locations such as neftet
Verifying ObjectClass=18(BasicCooking) is the proper plant type
Code: Select all
Expr wobjectgetname[wobjectfindnearestbyobjectclass[18]]==PlantName
Code: Select all
Expr coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[18]]]<=110
Code: Select all
ChatExpr \/vt\ addnavpt\ +coordinatetostring[wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[18]]]
Code: Select all
ExprAct actiontryuseitem[wobjectfindnearestbyobjectclass[18]]
Code: Select all
Expr coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[18]]]<=18
Expr Act setvar[plantClose, 1]
Code: Select all
All:{getvar[plantClose]==1, Expr coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[18]]]>20}