Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Sat May 25, 2013 11:43 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Advanced Chicken -- character specific configuration support
PostPosted: Sat Sep 17, 2011 7:09 pm 
 
User
User

Joined: Sun Jun 22, 2008 7:40 pm
I have always wanted to write chicken for D2 but I lately discovered method to write code that works effectively. So here's what i've got. This chicken is little different from others because it allows you to create character specific settings.

Setup tutorial:
1) Open Settings.lua
2) You will find section ["YourCharacterName"]. You can edit this if you wish. YourCharacterName is what chicken uses when it cant fund proper section for your character. so DO NOT remove or rename this section.
3) copy this section:
   ["YourCharacterName"] = {
      DrinkRed = 75,
      DrinkBlue = 50,
      DrinkPurpleForMana = 0,
      DrinkPurpleForLife = 50,
      ChickenToTown = 30, --life only
      ChickenExit = 20, --life only
      OnHostile = true,
      UseTeleport = false,
      Belt = {"Blue", "Red", "Purple", "Purple"},
   },

and paste it after last },
4) in newly pasted section rename YourCharacterName to your Diablo II character name and edit values for your your needs.

Here's 1 example done for you:
Settings = {
   ["YourCharacterName"] = {
      DrinkRed = 75,
      DrinkBlue = 50,
      DrinkPurpleForMana = 0,
      DrinkPurpleForLife = 50,
      ChickenToTown = 30, --life only
      ChickenExit = 20, --life only
      OnHostile = true,
      UseTeleport = false,
      Belt = {"Blue", "Red", "Purple", "Purple"},
   },
   ["lol"] = {
      DrinkRed = 75,
      DrinkBlue = 50,
      DrinkPurpleForMana = 0,
      DrinkPurpleForLife = 50,
      ChickenToTown = 30, --life only
      ChickenExit = 20, --life only
      OnHostile = true,
      UseTeleport = false,
      Belt = {"Blue", "Red", "Purple", "Purple"},
   },
}


This example above demonstrates how create settings section your character named "lol" .

Download:
Binary: http://autoit.net.ee/downloads/Chicken.zip
Source: http://autoit.net.ee/downloads/Chicken-src.zip

Note: Program is Tabbed Dia completable

You can discuss this chicken in it's discussion topic : http://www.blizzhackers.cc/viewtopic.php?f=182&t=483931

_________________
Discuss: Copy-Paste [url=http://www.blizzhackers.cc/viewtopic.php?f=182&t=483257&p=4520230#p4520230]Tabbed Dia
Download: Copy-Paste Tabbed Dia D2 function caller

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron