Aikanus
05-01-2016, 07:53 PM
plis I need scrip to change weapon speak low english ty :*
Werox
05-06-2016, 10:05 PM
Hello, I made one, I don't know if it works, try it and tell me.
local config = {
["WEAPON NAME TO SWITCH"] = {"MonsterName1", "MonsterName2", "MonsterName3", count = 2, defaultWeapon = "NORMAL WEAPON NAME"}
}
Module.New("Weapon Changer by Werox", function(module)
local tbl = {}
for weapon, creatures in pairs(config) do
for name in Creature.iMonsters() do
if (table.contains(creatures, name)) then
table.insert(tbl, name)
end
end
if (#tbl >= config[weapon].count) then
Self.Equip(weapon, "weapon")
elseif (#tbl < config[weapon].count) then
Self.Equip(config[weapon].defaultWeapon, "weapon")
end
end
end)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.