NGSoft Forums

Go Back   NGSoft Forums > TibiaBot NG > Scripts

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2007, 07:39 AM
StingRayNL StingRayNL is offline
Dwarf Soldier
 
Join Date: Mar 2006
Posts: 214
Default FACC + PACC Chicken Waypoint!! [Script]

Well here it is, i don't know if it's already made by someone else... But this waypoint goes from Pacc to Facc for chicken feathers.

Here is the chicken attack script for the ones who doesn't have it
EDIT: If there is a bug or something, please tell me cause i'll make another one

Quote:
var
MotherSlime: integer;

function Attacking: boolean;
var
x: integer;
begin
Result := False;
for x := 0 to Creatures.Count - 1 do
begin
if x >= Creatures.Count then Break;

if Creatures.Creature[x].Attacking then
begin
Result := True;
Exit;
end;
end;
end;

function GetFollowedCreatureID: integer;
var
x: integer;
begin
Result := False;
for x := 0 to Creatures.Count - 1 do
begin
if x >= Creatures.Count then Break;
if Creatures.Creature[x].Following then
begin
Result := Creatures.Creature[x].ID;
Exit;
end;
end;
end;

function GetCreatureByNameExcludeID(Name: string; 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].Name = Name) and (Creatures.Creature[x].ID <> ID)) then
begin
Result := Creatures.Creature[x];
Exit;
end;
end;
end;

begin
UpdateWorld;
MotherSlime := GetFollowedCreatureID;
while not Terminated do
begin
UpdateWorld;
if not Attacking then
begin
Creature := GetCreatureByNameExcludeID('Chicken', MotherSlime);
if Creature <> nil then
begin
Creature.Attacking := True;
end;
end;
Sleep(1000);
end;
end;
Attached Files
File Type: wpt Pacc + FreeAcc Chickens.wpt (1.2 KB, 2524 views)

Last edited by StingRayNL; 02-11-2007 at 07:40 AM. Reason: Bug Reporting
Reply With Quote
  #2  
Old 02-11-2007, 10:01 AM
Eddie1337 Eddie1337 is offline
Giant Spider
 
Join Date: Dec 2006
Location: Exiva "Eddie1337
Posts: 481
Default

PHP Code:
var
MotherSlimeinteger;

function 
Attackingboolean;
var
xinteger;
begin
Result 
:= False;
for 
:= 0 to Creatures.Count do
begin
if >= Creatures.Count then Break;

if 
Creatures.Creature[x].Attacking then
begin
Result 
:= True;
Exit;
end;
end;
end;

function 
GetFollowedCreatureIDinteger;
var
xinteger;
begin
Result 
:= False;
for 
:= 0 to Creatures.Count do
begin
if >= Creatures.Count then Break;
if 
Creatures.Creature[x].Following then
begin
Result 
:= Creatures.Creature[x].ID;
Exit;
end;
end;
end;

function 
GetCreatureByNameExcludeID(NamestringIDinteger): TCreature;
var
xinteger;
begin
Result 
:= nil;
for 
:= 0 to Creatures.Count do
begin
if >= Creatures.Count then Break;
if ((
Creatures.Creature[x].Name Name) and (Creatures.Creature[x].ID <> ID)) then
begin
Result 
:= Creatures.Creature[x];
Exit;
end;
end;
end;

begin
UpdateWorld
;
MotherSlime := GetFollowedCreatureID;
while 
not Terminated do
begin
UpdateWorld
;
if 
not Attacking then
begin
Creature 
:= GetCreatureByNameExcludeID('Chicken'MotherSlime);
if 
Creature <> nil then
begin
Creature
.Attacking := True;
end;
end;
Sleep(1000);
end;
end

***
Reply With Quote
  #3  
Old 02-12-2007, 06:35 AM
StingRayNL StingRayNL is offline
Dwarf Soldier
 
Join Date: Mar 2006
Posts: 214
Default

Uhm, what's the difference?
Reply With Quote
  #4  
Old 02-12-2007, 07:28 AM
Eddie1337 Eddie1337 is offline
Giant Spider
 
Join Date: Dec 2006
Location: Exiva "Eddie1337
Posts: 481
Default

php not quote =]
Reply With Quote
  #5  
Old 02-12-2007, 05:00 PM
StingRayNL StingRayNL is offline
Dwarf Soldier
 
Join Date: Mar 2006
Posts: 214
Default

So, somebody tested it already, it worked fine for me but as i suggested in Low's scrip request, i hope somebody can make a script that pause's the cavebotter/waypoints when you're attacking something, this way you would make more profit on hunting chickens
Reply With Quote
  #6  
Old 02-20-2007, 02:58 PM
ass ass is offline
Rat
 
Join Date: Dec 2006
Posts: 2
Angry

some reason it wont collect feathers on mine
Reply With Quote
  #7  
Old 02-20-2007, 04:37 PM
Imba Imba is offline
Orc Berserker
 
Join Date: Dec 2006
Location: Sweden
Posts: 246
Default

Really nice script
Got 100 Feathers in 1day with this , awsome !
Reply With Quote
  #8  
Old 02-20-2007, 04:39 PM
Imba Imba is offline
Orc Berserker
 
Join Date: Dec 2006
Location: Sweden
Posts: 246
Default

Quote:
Originally Posted by ass View Post
some reason it wont collect feathers on mine
I need to Add Item Number 5890 to ur Loot List
Reply With Quote
  #9  
Old 04-11-2007, 08:59 AM
Bulaa Bulaa is offline
Rat
 
Join Date: Apr 2007
Posts: 5
Default

Where that waypoint starts?
Reply With Quote
  #10  
Old 04-11-2007, 09:24 AM
Robstah Robstah is offline
Orc
 
Join Date: Apr 2007
Location: Sweden!
Posts: 62
Default

where do i put in this commandos? ngbot scripts att tools?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.