cloudstar69
New Member
- Joined
- Feb 9, 2015
- Messages
- 9
- Reaction score
- 0
Trying to put down a bed "Gilt Blackwood Coffin" with ID = 8000059 then sleep in it and pick it back up
I put it down on my own first then looked up the X, Y, Z and turnAngle
But then when I try to make the bot put the bed down in same way:
It returns error: InvalidParam
Anyone know what I am doing wrong?
I put it down on my own first then looked up the X, Y, Z and turnAngle
Code:
var CoffinDoodad = getDoodads().Where(x => x.name.Contains("Gilt Blackwood Coffin") && x.dist(me)<30).OrderBy(x => x.distNoZ(me)).ToList()[0];
double xPos = CoffinDoodad.X, yPos = CoffinDoodad.Y, zPos = CoffinDoodad.Z, Rot = CoffinDoodad.turnAngle;
But then when I try to make the bot put the bed down in same way:
Code:
UseItem(8000059, xPos, yPos, zPos, 0, false, Rot)
It returns error: InvalidParam
Anyone know what I am doing wrong?