function Corpse(Status,CorpseID)
if Status == "open"
then
UO.NextCPosX = 666
UO.NextCPosY = 369
wait(100)
UO.LObjectID = CorpseID
wait(100)
UO.Macro(17,0)
wait(100)
end
if Status == "Close"
then
UO.LObjectID = CorpseID
wait(vswait)
UO.Click(741,525,false,true,true,false)
wait(vswait)
end
end
CorpseID=1107006339
Status=open
Corpse ()
[code\]
ok when i do this it does not trigger the open section of the function
i have tried
Corpse (open)
Corpse (open,CorpseID)
Corpse (Status,CorpseID)
and
Corpse (open,1107006339)
and none are triggering the open section. I step through it with the f7 so it is going.
I will keep at it and sooner or later i will get it.
or am i thinking all wrong. I read the example on easyuo site and still just not grasping it