How check Main Fortress Gate is closed in Guild Castle ?
Posted: Sat Sep 06, 2014 3:11 am
How check Main Fortress Gate is closed in Guild Castle ?
I try to use code for check indicator that the chest has loot but it not worked.
Please help my.
I try to use code for check indicator that the chest has loot but it not worked.
Code: Select all
<!-- # 8 --><waypoint x="-14" z="-125" y="5">
-- Check Main Fortress Gate
local FortressGate = player:findNearestNameOrId(111577);
if FortressGate then
local GateState = memoryReadRepeat("byte", getProc(), FortressGate.Address + 0x2F0) or 0
cprintf(cli.white, "GateState: %s\n", GateState);
if GateState ~= 0 then
player:target_Object(111577); -- Главные крепостные ворота
yrest(3000);
end
end;
</waypoint>