NGSoft Forums

Go Back   NGSoft Forums > TibiaBot NG > Scripts

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2006, 09:56 AM
Danny_Boi Danny_Boi is offline
Elf
 
Join Date: Jun 2006
Location: Narnia
Posts: 104
Default Chickens in rook [Script]

I decided to make a chicken script in Rook. Tell me what you think about it

Also I noticed that none of the scripts here go to Al Dee's shop. This is my first script I've ever done
This script is for the facc area of Rook..

The loot number for feathers is : 5890

Credits to Mahamad_4u for making the chicken attacker!

To make this script work go to Tools, Scripter, then paste in the code below and press execute.

Code:
Const
  Monster = 'Chicken'

function GetCreatureByName(Name: string): 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].Z <> Self.Z then Continue;
    if Creatures.Creature[x].Name = Name then
    begin
      Result := Creatures.Creature[x];
      Exit;
    end;
  end;
end;

while not Terminated do
begin
  UpdateWorld;
  if not Self.Attacking then
  begin
    Creature := GetCreatureByName(Monster);
    if Creature <> nil then Creature.Attacking := True;
  end;
  Sleep(1000);
end;
Attached Files
File Type: wpt My Chickens.wpt (140 Bytes, 1920 views)

Last edited by Danny_Boi; 03-01-2008 at 08:25 AM. Reason: Edited the script to make it work properly.
Reply With Quote
  #2  
Old 10-28-2006, 10:47 AM
windoo windoo is offline
Minotaur
 
Join Date: Apr 2006
Posts: 116
Default

might im wrong... but you need include chicken atack script ;s
That'll not atack chickens :S
Reply With Quote
  #3  
Old 10-28-2006, 12:57 PM
Sea Sea is offline
Demon
 
Join Date: May 2006
Location: Netherlands
Posts: 1,595
Default

eerm thats supposed to be a .ng script
Reply With Quote
  #4  
Old 11-01-2006, 03:40 PM
pczudo pczudo is offline
Troll
 
Join Date: Sep 2006
Posts: 28
Default

it rox eheheh nice ty for all
Reply With Quote
  #5  
Old 11-24-2006, 06:06 AM
ben909 ben909 is offline
Rotworm
 
Join Date: Sep 2006
Posts: 58
Default

plx tell me how u open the script i opened scripter but i cnt find the script help me plx
Reply With Quote
  #6  
Old 11-24-2006, 01:50 PM
LoW_fan LoW_fan is offline
Demon
 
Join Date: Feb 2006
Location: Poland
Posts: 4,146
Send a message via MSN to LoW_fan
Default

options->script..paste->execute
Reply With Quote
  #7  
Old 11-25-2006, 05:13 AM
ben909 ben909 is offline
Rotworm
 
Join Date: Sep 2006
Posts: 58
Default

yeh i worked it out thx
Reply With Quote
  #8  
Old 11-25-2006, 11:08 AM
Danny_Boi Danny_Boi is offline
Elf
 
Join Date: Jun 2006
Location: Narnia
Posts: 104
Default

ty guys, if u like it give me rep please
Reply With Quote
  #9  
Old 11-25-2006, 11:55 AM
Hugo Hugo is offline
Rat
 
Join Date: Sep 2006
Posts: 2
Default Where is that??

Omg...where do I find these god damn chikens??
Reply With Quote
  #10  
Old 11-25-2006, 01:51 PM
Jinchuu Jinchuu is offline
Orc
 
Join Date: Aug 2006
Posts: 78
Default

In rookgaard
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:39 PM.


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