-
Bot_romka
- Posts: 96
- Joined: Tue Apr 05, 2011 2:59 am
- Location: Russia
#1
Post
by Bot_romka » 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.
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>
Please help my.
-
ZZZZZ
- Posts: 513
- Joined: Sun Oct 21, 2012 1:42 am
#2
Post
by ZZZZZ » Sat Sep 06, 2014 4:04 am
Rock used this function to deal with inner castle gate in his GotoGuild userfunction. It's not what you are after, but its an option.
Code: Select all
castleGate = function(from, to)
local success = player:moveTo(CWaypoint(GuildPoints[to].X,GuildPoints[to].Z),true)
if success == false then
player:target_NPC(GetIdName(111577))
yrest(3000)
success = player:moveTo(CWaypoint(GuildPoints[to].X,GuildPoints[to].Z),true)
end
return success
end
Who is online
Users browsing this forum: Ahrefs [Bot] and 9 guests