artek007
11-07-2016, 11:39 PM
Hi i need the simple script for paladin -
Change Ammo Type when X monsters on screen
If more than x monsters use ammo type ID
anyone got something like this ? similiar to change weapon type to shield + stars, tried to change the script but didnt worked
artek007
11-22-2016, 03:27 PM
Something like this but with ammo type
-------------
-- Weapon Settings
local WeaponID = 3449 -- Item ID of the your default weapon. (Default: Mycological Bow)
local StarID = 15793 -- Item ID of your stars. (Default: Assassin Star)
-- Shield Settings
local ShieldID = 3449 -- Item ID of your shield. (Default: Demon Shield)
-- Creature Settings
local CreatureList = {"Bug", "Rat", "Elephant", "Nomad", "Hyaena","Bug", "Bandit"}
local CreatureCount = 3 -- How many monsters until you equip stars?
local CreatureRange = 6 -- Range of the monsters until you equip stars?
-- Do not edit anything below
Module.New('equip bow or stars and shield', function(module)
local mob = Self.GetTargets(CreatureRange)
local count = 0
for i =1, #mob do
if table.contains(CreatureList, mob[i]:Name()) then
count = count + 1
end
end
if count >= CreatureCount then
if (Self.Weapon().id ~= StarID) or (Self.Shield().id ~= ShieldID) then
if (Self.ItemCount(StarID) > 0) then
Self.Equip(StarID, "ammo", 100)
else Self.Equip(WeaponID, "ammo")
end
module:Delay(1000)
if (Self.ItemCount(ShieldID) > 0) then
Self.Equip(ShieldID, "ammo")
end
module:Delay(3000)
end
elseif (Self.Weapon().id ~= WeaponID) then
if (Self.ItemCount(WeaponID) > 0) then
Self.Equip(WeaponID, "ammo")
else Self.Equip(StarID, "ammo", 100)
end
end
module:Delay(3000)
end)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.