trojan
2011-05-11 17:33:39
After running my own program to see which items were equipped I got the following result…
Then I called IsEquippedID(13562) to find the result was false… I went into the equipment include and changed the function to…
Strangely this was returning the following
(the 13562 was what i sent..) any ideas anyone?
Equipment = -1
Equipment = -1
Equipment = -1
Equipment = 1275
Equipment = -1
Equipment = -1
Equipment = -1
Equipment = -1
Equipment = -1
Equipment = 13562
Equipment = -1Then I called IsEquippedID(13562) to find the result was false… I went into the equipment include and changed the function to…
function IsEquippedIDEx(IDs: TIntegerArray): boolean;
var
Equipment: TEquipmentSet;
i, ii: integer;
begin
Result := False;
Equipment := GetEquipment;
for i := High(IDs) downto 0 do
for ii := 10 downto 0 do
begin
Writeln(IntToStr(IDs[i]) + ' ' + intToStr(Equipment.Items[i].ID)); // This
if (IDs[i] = Equipment.Items[i].ID) then
begin
Result := True;
Exit;
end;
end;
end; Strangely this was returning the following
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1
13562 -1(the 13562 was what i sent..) any ideas anyone?