PDA

View Full Version : How to setup .lua files to bolts and crossbow instead of spears?



Ignacio Hud
07-16-2014, 01:04 PM
I was wondering if its possibe to config in a .lua setup file to use a crossbow, and how to do it :)

Fatality
07-16-2014, 05:05 PM
uhhhhh, very very vague, but if you supply me with a lua, i will beable to make it buy bolts instead of spears.

or you can add it yourself.

on the top of the lua add

BoltID = 1337 -- ID Of Bolt.
BoltMin = 100 -- Bolts to leave spawn
BoltMax = 500 -- buy up to X bolts.

then add this to your bank label,

Self.WithdrawMoney((Item.GetCost(BoltID)*BoltMax-Self.ItemCount(BoltID)))

and then in equipment manager, add refill ammo, with your ID and enable it and you should be good :D or supply me with the lua and i will add it for you :D

Ignacio Hud
07-16-2014, 07:45 PM
uhhhhh, very very vague, but if you supply me with a lua, i will beable to make it buy bolts instead of spears.

or you can add it yourself.

on the top of the lua add

BoltID = 1337 -- ID Of Bolt.
BoltMin = 100 -- Bolts to leave spawn
BoltMax = 500 -- buy up to X bolts.

then add this to your bank label,

Self.WithdrawMoney((Item.GetCost(BoltID)*BoltMax-Self.ItemCount(BoltID)))

and then in equipment manager, add refill ammo, with your ID and enable it and you should be good :D or supply me with the lua and i will add it for you :D


I tried but its too complicated for me xD.

this is the script im trying to config

http://www.jxscripts.com/paladin/rp-edron-bog-raiders-script

-----------------------------------------------------------------------------------------------------------------------------------------------------------------


if not __ then return print 'You do not need to execute the config.' end

------------------------------------------------------------------------------------------------------------------
-- G E N E R A L |
------------------------------------------------------------------------------------------------------------------

-- General Setup --
_Player.LevelScreenshot = true -- Do you want to take a screenshot when you level up? (true/false)
_Player.SkullScreenshot = true -- Do you want to take a screenshot if you get skulled? (true/false)
_Player.PlayerScreenshot = false -- Do you want to take a screenshot when a player enters your view while in spawn? (true/false)
_Player.PlayerAlarm = false -- Do you want to trigger an alarm when a player enters your view while in spawn? (true/false)
_Player.MinimizeMainBP = true -- Do you want to minimize your main backpack? CAUTION: Move your health/mana bars in-game to as south as possible. (true/false)
_Player.SpeedLooter = 'off' -- The speed at which the speed looter operates. (off/fast/med/slow)

-- Spawn Setup --
_Spawn.LureAmount = 0 -- The amount of creatures to activate lure mode. (0 to disable)
_Spawn.LureCreatures = "Bog Raider"
_Spawn.LureRange = 7 -- The distance around your character to check for creatures.
_Spawn.LureTime = 120 -- The amount of time you have to kill the lured creatures before moving on.
_Spawn.AntiTargetTime = 30 -- The amount of time targeting one specific creature to trigger if-stuck targeting. (0 to disable)
_Spawn.AntiTargetSwitch = 5 -- The amount of time until you return to regular targeting.


------------------------------------------------------------------------------------------------------------------
-- I N V E N T O R Y |
------------------------------------------------------------------------------------------------------------------
-- AUTOMATIC WITHDRAWING IS ENABLED BUT IS NOT REQUIRED TO REFILL.
-- Add supplies, listed in the setup below, to depot backpack #3 to automatically withdraw from the your depot.
-- The script will purchase supplies from NPCs if it fails to withdraw from the depot.

-- IF POTIONS, AMMO OR RUNES INDEPENDENTLY EQUAL MORE THAN 100, YOU WILL NEED TO CARRY A BACKPACK FOR THOSE ITEMS.
-- Example: If you change ammunition from spears to arrows and you increase the max limit to above 100,
-- you will be required to have an ammunition backpack.
-- Example: If runes max count is set to above 100, you will be required to have a rune backpack.

-- AUTOMATIC BACKPACK PRIORITY: Main, Loot, Gold, Potions, Runes, Ammunition.

-- Health Potions Setup --
_Potion.HealthID = 'strong health potion' -- ID/Name of health potion.
_Potion.HealthCost = 100 -- The price of a single health potion.
_Potion.HealthMin = 20 -- The amount of health potions at which you will leave to go refill.
_Potion.HealthMax = 30 -- The amount of health potions you want to buy.
_Potion.HealthWithdraw = true -- Do you want to withdraw health potions from the depot?
_Potion.HealthAlarm = 0 -- The amount of health potions to trigger an alarm. (0 to disable)

-- Mana Potions Setup --
_Potion.ManaID = 'strong mana potion' -- ID/Name of mana potion.
_Potion.ManaCost = 80 -- The price of a single mana potion.
_Potion.ManaMin = 100 -- The amount of mana potions at which you will leave to go refill.
_Potion.ManaMax = 200 -- The amount of mana potions you want to buy.
_Potion.ManaWithdraw = true -- Do you want to withdraw mana potions from the depot?
_Potion.ManaAlarm = 0 -- The amount of mana potions to trigger an alarm. (0 to disable)

-- Ammunition Setup --
_Ammo.AmmoID = 'royal spear' -- ID/Name of ammunition.
_Ammo.AmmoCost = 15 -- The price of a single ammunition.
_Ammo.AmmoMin = 15 -- The amount of ammunition at which you will leave to go refill.
_Ammo.AmmoMax = 30 -- The amount of ammunition you want to buy.
_Ammo.AmmoWithdraw = true -- Do you want to withdraw ammunition from the depot?
_Ammo.AmmoAlarm = 0 -- The amount of ammunition to trigger an alarm. (0 to disable)

-- Ring Setup --
_Ring.RingEnabled = false -- Do you want to use rings? (requires a normal ring)
_Ring.RingLimit = 4 -- How many creatures at which you will equip the ring? (0 to disable)
_Ring.RingHealth = 30 -- The health percentage in which you equip the ring? (0 to disable)
_Ring.RingMana = 10 -- The mana percentage in which you equip the ring? (0 to disable)
_Ring.RingID = 'time ring' -- ID/Name of a ring.
_Ring.RingMin = 0 -- The amount of rings at which you leave to go refill.
_Ring.RingMax = 3 -- The amount of rings you want to withdraw from the depot.

-- Amulet Setup --
_Amulet.AmuletEnabled = false -- Do you want to use amulets? (requires a normal necklace)
_Amulet.AmuletLimit = 6 -- How many creatures at which you will equip the amulet? (0 to disable)
_Amulet.Health = 30 -- The health percentage in which you equip the amulet? (0 to disable)
_Amulet.Mana = 10 -- The mana percentage in which you eqiup the amulet? (0 to disable)
_Amulet.AmuletID = 'protection amulet' -- ID/Name of the amulet.
_Amulet.AmuletMin = 1 -- The amount of amulets at which you leave to go refill.
_Amulet.AmuletMax = 3 -- The amount of amulets you want to withdraw from the depot.
_Amulet.AmuletAlarm = 0 -- The amount of amulets to trigger an alarm. (0 to disable)

-- Food Setup --
_Food.Enabled = true -- Do you want to buy food? (true/false)
_Food.Min = 10 -- The amount of food at which you refill.
_Food.Max = 50 -- The amount of food you want to buy.


------------------------------------------------------------------------------------------------------------------
-- S U P P O R T |
------------------------------------------------------------------------------------------------------------------

-- Softboot Equipper
_SoftBoots.Enabled = false -- Would you like to switch to softboots at a certain mana percent? (true/false)
_SoftBoots.ManaPercent = 30 -- What mana percent to use softboots at.

-- Mana Restorer --
_Mana.RestorePercent = 90 -- Mana percent to restore mana up to while no creatures on-screen. (0 to disable)


------------------------------------------------------------------------------------------------------------------
-- S T A T U S C H E C K S |
------------------------------------------------------------------------------------------------------------------

-- Capacity Checks --
_Cap.HuntMinimum = 100 -- If capacity goes below this number it will exit spawn. (0 to disable)
_Cap.DropFlasks = true -- Drop flasks when capacity drops below this number (true/false)
_Cap.DropGold = false -- Drop gold when capacity drops below this number (true/false)

-- Stamina Check --
_Stamina.Logout = true -- Would you like to log when low on stamina? (true/false)
_Stamina.Hours = 16 -- At what stamina level would you like to log out? (in hours)
_Stamina.ServerSave = 0 -- How many hours before server save would you like to logout? (0 to disable)
_Stamina.TimeLimit = 0 -- The maximum hours to hunt if Logout is enabled (0 to disable)
_Stamina.Trainer = false -- Would you like to log at the trainer when low on stamina? (true/false)
_Stamina.TrainSkill = 'spear' -- The skill statue to use: sword, axe, club, spear, magic.


------------------------------------------------------------------------------------------------------------------
-- R U N E / S P E L L S H O O T E R |
------------------------------------------------------------------------------------------------------------------
-- MAKE SURE YOUR CHARACTER CAN CAST THE SPELLS CORRESPONDING TO EACH SECTION PRIOR TO ENABLING.

_Shooter.ExevoMas = false -- Would you like to use exevo mas san? (true/false)
_Shooter.ExoriSan = false -- Would you like to use exori san? (true/false)
_Shooter.ExoriCon = false -- Would you like to use exori con? (true/false)


------------------------------------------------------------------------------------------------------------------
-- H U D |
------------------------------------------------------------------------------------------------------------------
_HUD.ShowIcons = true -- Whether to show the loot icons in the HUD or not. (true/false)
_HUD.UseOutfitTheme = false -- Enable to use your player's outfit as the HUD colors. (true/false)
_HUD.LogStatistics = false -- Logs your statistics in a CSV file. (directory 'XenoBot/SynLog' must exist)

Fatality
07-17-2014, 03:43 PM
replace royal spears in this line
_Ammo.AmmoID = 'royal spear' -- ID/Name of ammunition.
with your ammo id.

Ignacio Hud
07-17-2014, 03:45 PM
replace royal spears in this line
_Ammo.AmmoID = 'royal spear' -- ID/Name of ammunition.
with your ammo id.

Thanks alot :D