Witam ;p Szukam skryptu na otwieranie drzwi :D proszę o pomoc
Oczywiscie Tibia BOT NG
Const
X1 = 32319
Y1 = 32253
Var
Tile:TTile;
function GetTileFromXYZ(X, Y, Z: integer): TTile;
begin
Result := nil;
if abs((Self.X - 7) - X) > 14 then Exit;
if abs((Self.Y - 5) - Y) > 11 then Exit;
if Self.Z <> Z then Exit;
Result := Screen.Tile[abs((Self.X - 7) - X), abs((Self.Y - 5) - Y)];
end;
while not terminated do
begin
UpdateWorld;
Tile := GetTileFromXYZ(X1,Y1,Self.Z);
if Tile <> nil then
if tile.count > 1 then
if Tile.Item[1].Properties.door then
if not tile.item[1].properties.walkable then
Tile.Item[1].Use;
sleep(1000);
end;
Ostatnio zmieniony przez Mag Samurai : 16-01-2009, 21:09
Ostatnio zmieniony przez Adios666 : 16-01-2009, 20:56
Const
SafeList = ['Gracz1','Gracz2','Gracz3'] // podajesz nicki postaci, na ktore bot nie ma reagowac.
PlayerToMessage = 'Nick drugiej postaci'
MessageToSend = 'bot bot bot' // tego nie zmieniaj, musi zostac tak jak jest!!
while not terminated do
begin
G := false;
UpdateWorld;
for i := 0 to Creatures.Count -1 do
begin
if i >= Creatures.Count then break;
if Creatures.Creature[i].Z = self.z then
if Creatures.Creature[i].NPC = false then
if Creatures.Creature[i].Name <> Self.Name then
begin
A := 0;
for B := Low(SafeList) to High(SafeList) do
begin
if SafeList[b] = Creatures.Creature[i].Name then
A := 1;
sleep(10);
end;
if A = 0 then
begin
G := true;
Creature := Creatures.Creature[i];
end;
end;
sleep(10);
end;
if G then
begin
Self.PrivateMessage(PlayerToMessage,MessageToSend);
Sleep(2000);
PlaySound('C:/Windows/Media/Notify.wav');
end;
sleep(100);
end;
procedure Event_Message(Channel:integer;Name,Text:String);
begin
if (channel = 1) or (channel = 4) then
if pos('bot',text) then
Self.Logout(true);
end;
while not terminated do
begin
UpdateWorld;
ProcessEvents;
sleep(100);
end;
Ostatnio zmieniony przez jazo_tron : 17-01-2009, 16:57
X1 = 565
Y1 = 564
Ostatnio zmieniony przez albert02 : 18-01-2009, 11:05
Var
Creature:TCreature;
function GetCreatureByID(ID: integer): TCreature;
var
x: integer;
begin
Result := nil;
for x := 0 to Creatures.Count - 1 do
begin
if x >= Creatures.Count then Break;
if Creatures.Creature[x].ID = ID then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;
procedure Event_KeyDown(Key: integer);
Begin
If key=$11 then //change the number here for any other virtul key number
begin
updateworld;
Creature := GetCreatureByID(Self.Attacking);
if Creature <> nil then
begin
case Creature.Direction of
0: Self.Containers.UseItemWithGround(3180, Creature.X, Creature.Y - 2, Creature.Z);
1: Self.Containers.UseItemWithGround(3180, Creature.X + 2, Creature.Y, Creature.Z);
2: Self.Containers.UseItemWithGround(3180, Creature.X, Creature.Y + 2, Creature.Z);
3: Self.Containers.UseItemWithGround(3180, Creature.X - 2, Creature.Y, Creature.Z);
end;
end;
end;
end;
Begin
while not terminated do
begin
ProcessEvents;
Sleep(100);
end;
end;
Ostatnio zmieniony przez Filia the Dragon : 18-01-2009, 10:18
Ostatnio zmieniony przez Muuciek : 18-01-2009, 13:36
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki