PDA

View Full Version : Sewer Grate option?



Machaveli
06-16-2012, 06:32 PM
Hi.

I'm requesting if you can add 'going down a sewer grate' option, similar to going up a ladder, but instead going down a sewer grate as this option does not work.

It should be in the walker sections with the other options.

I am un-able to make a depositer for my script because this features is missing, and I do believe it's an essential.

Thank you for your work, and don't get me wrong.. I really do appreciate it so much, but I would really like you to add this feature, as I'm guessing it is no hard work.

Sorry if I am sounding rude in any way too!

/Thanks!

XtrmJosh
06-16-2012, 10:57 PM
Can't use ladder function?

If not, try this:


Self.UseItemFromGround(Self.Position().x, Self.Position().y, Self.Position().z)

It will use the ground item below you. You'll need to set a stand wpt on the sewer grate, and add an action. Call it "sewer1". Then create .lua file, call it something relevant. Save it in the folder %userdata%/My Documents/XenoBot/Scripts. FYI my folder is: C:\Users\Josh\Documents\XenoBot\Scripts. Yours will vary depending on your computer user name (mine is Josh, ofc).

Now in the lua file put this code:


function onWalkerSelectLabel(sewer1)
if (labelName == "OpenS") then
Self.UseItemFromGround(Self.Position().x, Self.Position().y, Self.Position().z)
end
end

Now save it, and in the bot open up the "Scripter" window, execute your .lua file, and it should automatically "use" the tile you stand on, to take you down the sewer.

You can use this in other ways, for example to use the gates in yalahar. Some modifications are needed.

This, for instance, uses the item on the square to the north of your character:

Self.UseItemFromGround(Self.Position().x, Self.Position().y + 1, Self.Position().z)

Good luck (Y)

Machaveli
06-16-2012, 10:59 PM
I thought about using the ladder function and it worked perfectly, thanks for your script.. saved it as it may come in handy!

Summ
06-19-2012, 01:17 PM
However adding "Use ground" or "Use: West", "Use: North" etc. would make waypoints more structured.