repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
kidaa/Awakening-Core3
bin/scripts/object/tangible/food/crafted/dish_fried_endwa.lua
3
2240
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_food_crafted_dish_fried_endwa = object_tangible_food_crafted_shared_dish_fried_endwa:new { } ObjectTemplates:addTemplate(object_tangible_food_crafted_dish_fried_endwa, "object/tangible/food/crafted/dish_fried_endwa.iff")
lgpl-3.0
FerdinandoLM/telegram-bot
plugins/youtube.lua
4
1040
do local BASE_URL = 'http://gdata.youtube.com/feeds/api/' function get_yt_data (yt_code) local url = BASE_URL..'/videos/'..yt_code..'?v=2&alt=jsonc' local res,code = http.request(url) if code ~= 200 then return "HTTP ERROR" end local data = json:decode(res).data return data end function send_youtube_data(data, receiver) local title = data.title local description = data.description local uploader = data.uploader local text = title..' ('..uploader..')\n'..description local image_url = data.thumbnail.hqDefault local cb_extra = { receiver = receiver, url = image_url } send_msg(receiver, text, send_photo_from_url_callback, cb_extra) end function run(msg, matches) local yt_code = matches[1] local data = get_yt_data(yt_code) local receiver = get_receiver(msg) send_youtube_data(data, receiver) end return { description = "Sends YouTube info and image.", usage = "", patterns = { "youtu.be/([_A-Za-z0-9-]+)", "youtube.com/watch%?v=([_A-Za-z0-9-]+)", }, run = run } end
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/loot/quest/hero_of_tatooine/serverobjects.lua
3
2394
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --Children folder includes -- Server Objects includeFile("tangible/loot/quest/hero_of_tatooine/mark_altruism.lua") includeFile("tangible/loot/quest/hero_of_tatooine/mark_courage.lua") includeFile("tangible/loot/quest/hero_of_tatooine/mark_honor.lua") includeFile("tangible/loot/quest/hero_of_tatooine/mark_intellect.lua") includeFile("tangible/loot/quest/hero_of_tatooine/squill_skull.lua")
lgpl-3.0
Richard857/BadRotations
System/Libs/LibRangeCheck-2.0/LibRangeCheck-2.0.lua
6
32636
--[[ Name: LibRangeCheck-2.0 Revision: $Revision: 168 $ Author(s): mitch0 Website: http://www.wowace.com/projects/librangecheck-2-0/ Description: A range checking library based on interact distances and spell ranges Dependencies: LibStub License: Public Domain ]] --- LibRangeCheck-2.0 provides an easy way to check for ranges and get suitable range checking functions for specific ranges.\\ -- The checkers use spell and item range checks, or interact based checks for special units where those two cannot be used.\\ -- The lib handles the refreshing of checker lists in case talents / spells / glyphs change and in some special cases when equipment changes (for example some of the mage pvp gloves change the range of the Fire Blast spell), and also handles the caching of items used for item-based range checks.\\ -- A callback is provided for those interested in checker changes. -- @usage -- local rc = LibStub("LibRangeCheck-2.0") -- -- rc.RegisterCallback(self, rc.CHECKERS_CHANGED, function() print("need to refresh my stored checkers") end) -- -- local minRange, maxRange = rc:GetRange('target') -- if not minRange then -- print("cannot get range estimate for target") -- elseif not maxRange then -- print("target is over " .. minRange .. " yards") -- else -- print("target is between " .. minRange .. " and " .. maxRange .. " yards") -- end -- -- local meleeChecker = rc:GetFriendMaxChecker(rc.MeleeRange) -- 5 yds -- for i = 1, 4 do -- -- TODO: check if unit is valid, etc -- if meleeChecker("party" .. i) then -- print("Party member " .. i .. " is in Melee range") -- end -- end -- -- local safeDistanceChecker = rc:GetHarmMinChecker(30) -- -- negate the result of the checker! -- local isSafelyAway = not safeDistanceChecker('target') -- -- @class file -- @name LibRangeCheck-2.0 local MAJOR_VERSION = "LibRangeCheck-2.0" local MINOR_VERSION = tonumber(("$Revision: 168 $"):match("%d+")) + 100000 local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) if not lib then return end -- << STATIC CONFIG local UpdateDelay = .5 local ItemRequestTimeout = 10.0 -- interact distance based checks. ranges are based on my own measurements (thanks for all the folks who helped me with this) local DefaultInteractList = { [3] = 8, [2] = 9, [4] = 28, } -- interact list overrides for races local InteractLists = { ["Tauren"] = { [3] = 6, [2] = 7, [4] = 25, }, ["Scourge"] = { [3] = 7, [2] = 8, [4] = 27, }, } local MeleeRange = 5 -- list of friendly spells that have different ranges local FriendSpells = {} -- list of harmful spells that have different ranges local HarmSpells = {} FriendSpells["DEATHKNIGHT"] = { 47541, -- ["Death Coil"], -- 40 } HarmSpells["DEATHKNIGHT"] = { 47541, -- ["Death Coil"], -- 40 49576, -- ["Death Grip"], -- 30 } FriendSpells["DEMONHUNTER"] = { } HarmSpells["DEMONHUNTER"] = { 185123, -- ["Throw Glaive"], -- 30 } FriendSpells["DRUID"] = { 774, -- ["Rejuvenation"], -- 40 2782, -- ["Remove Corruption"], -- 40 } HarmSpells["DRUID"] = { 5176, -- ["Wrath"], -- 40 339, -- ["Entangling Roots"], -- 35 6795, -- ["Growl"], -- 30 33786, -- ["Cyclone"], -- 20 106839, -- ["Skull Bash"], -- 13 22568, -- ["Ferocious Bite"], -- 5 } FriendSpells["HUNTER"] = {} HarmSpells["HUNTER"] = { 75, -- ["Auto Shot"], -- 40 } FriendSpells["MAGE"] = { } HarmSpells["MAGE"] = { 44614, --["Frostfire Bolt"], -- 40 5019, -- ["Shoot"], -- 30 } FriendSpells["MONK"] = { 115450, -- ["Detox"], -- 40 115546, -- ["Provoke"], -- 30 } HarmSpells["MONK"] = { 115546, -- ["Provoke"], -- 30 115078, -- ["Paralysis"], -- 20 100780, -- ["Tiger Palm"], -- 5 } FriendSpells["PALADIN"] = { 19750, -- ["Flash of Light"], -- 40 } HarmSpells["PALADIN"] = { 62124, -- ["Reckoning"], -- 30 20271, -- ["Judgement"], -- 30 853, -- ["Hammer of Justice"], -- 10 35395, -- ["Crusader Strike"], -- 5 } FriendSpells["PRIEST"] = { 527, -- ["Purify"], -- 40 17, -- ["Power Word: Shield"], -- 40 } HarmSpells["PRIEST"] = { 589, -- ["Shadow Word: Pain"], -- 40 5019, -- ["Shoot"], -- 30 } FriendSpells["ROGUE"] = {} HarmSpells["ROGUE"] = { 2764, -- ["Throw"], -- 30 2094, -- ["Blind"], -- 15 } FriendSpells["SHAMAN"] = { 8004, -- ["Healing Surge"], -- 40 546, -- ["Water Walking"], -- 30 } HarmSpells["SHAMAN"] = { 403, -- ["Lightning Bolt"], -- 40 370, -- ["Purge"], -- 30 73899, -- ["Primal Strike"],. -- 5 } FriendSpells["WARRIOR"] = {} HarmSpells["WARRIOR"] = { 355, -- ["Taunt"], -- 30 100, -- ["Charge"], -- 8-25 5246, -- ["Intimidating Shout"], -- 8 } FriendSpells["WARLOCK"] = { 5697, -- ["Unending Breath"], -- 30 } HarmSpells["WARLOCK"] = { 686, -- ["Shadow Bolt"], -- 40 5019, -- ["Shoot"], -- 30 } -- Items [Special thanks to Maldivia for the nice list] local FriendItems = { [5] = { 37727, -- Ruby Acorn }, [6] = { 63427, -- Worgsaw }, [8] = { 34368, -- Attuned Crystal Cores 33278, -- Burning Torch }, [10] = { 32321, -- Sparrowhawk Net }, [15] = { 1251, -- Linen Bandage 2581, -- Heavy Linen Bandage 3530, -- Wool Bandage 3531, -- Heavy Wool Bandage 6450, -- Silk Bandage 6451, -- Heavy Silk Bandage 8544, -- Mageweave Bandage 8545, -- Heavy Mageweave Bandage 14529, -- Runecloth Bandage 14530, -- Heavy Runecloth Bandage 21990, -- Netherweave Bandage 21991, -- Heavy Netherweave Bandage 34721, -- Frostweave Bandage 34722, -- Heavy Frostweave Bandage -- 38643, -- Thick Frostweave Bandage -- 38640, -- Dense Frostweave Bandage }, [20] = { 21519, -- Mistletoe }, [25] = { 31463, -- Zezzak's Shard }, [30] = { 1180, -- Scroll of Stamina 1478, -- Scroll of Protection II 3012, -- Scroll of Agility 1712, -- Scroll of Spirit II 2290, -- Scroll of Intellect II 1711, -- Scroll of Stamina II 34191, -- Handful of Snowflakes }, [35] = { 18904, -- Zorbin's Ultra-Shrinker }, [40] = { 34471, -- Vial of the Sunwell }, [45] = { 32698, -- Wrangling Rope }, [50] = { 116139, -- Haunting Memento }, [60] = { 32825, -- Soul Cannon 37887, -- Seeds of Nature's Wrath }, [70] = { 41265, -- Eyesore Blaster }, [80] = { 35278, -- Reinforced Net }, } local HarmItems = { [5] = { 37727, -- Ruby Acorn }, [6] = { 63427, -- Worgsaw }, [8] = { 34368, -- Attuned Crystal Cores 33278, -- Burning Torch }, [10] = { 32321, -- Sparrowhawk Net }, [15] = { 33069, -- Sturdy Rope }, [20] = { 10645, -- Gnomish Death Ray }, [25] = { 24268, -- Netherweave Net 41509, -- Frostweave Net 31463, -- Zezzak's Shard }, [30] = { 835, -- Large Rope Net 7734, -- Six Demon Bag 34191, -- Handful of Snowflakes }, [35] = { 24269, -- Heavy Netherweave Net 18904, -- Zorbin's Ultra-Shrinker }, [40] = { 28767, -- The Decapitator }, [45] = { -- 32698, -- Wrangling Rope 23836, -- Goblin Rocket Launcher }, [50] = { 116139, -- Haunting Memento }, [60] = { 32825, -- Soul Cannon 37887, -- Seeds of Nature's Wrath }, [70] = { 41265, -- Eyesore Blaster }, [80] = { 35278, -- Reinforced Net }, [100] = { 33119, -- Malister's Frost Wand }, } -- This could've been done by checking player race as well and creating tables for those, but it's easier like this for k, v in pairs(FriendSpells) do tinsert(v, 28880) -- ["Gift of the Naaru"] end -- >> END OF STATIC CONFIG -- cache local setmetatable = setmetatable local tonumber = tonumber local pairs = pairs local tostring = tostring local print = print local next = next local type = type local wipe = wipe local tinsert = tinsert local tremove = tremove local BOOKTYPE_SPELL = BOOKTYPE_SPELL local GetSpellInfo = GetSpellInfo local GetSpellBookItemName = GetSpellBookItemName local GetNumSpellTabs = GetNumSpellTabs local GetSpellTabInfo = GetSpellTabInfo local GetItemInfo = GetItemInfo local UnitAura = UnitAura local UnitCanAttack = UnitCanAttack local UnitCanAssist = UnitCanAssist local UnitExists = UnitExists local UnitIsDeadOrGhost = UnitIsDeadOrGhost local CheckInteractDistance = CheckInteractDistance local IsSpellInRange = IsSpellInRange local IsItemInRange = IsItemInRange local UnitClass = UnitClass local UnitRace = UnitRace local GetInventoryItemLink = GetInventoryItemLink local GetSpecialization = GetSpecialization local GetSpecializationInfo = GetSpecializationInfo local GetTime = GetTime local HandSlotId = GetInventorySlotInfo("HandsSlot") local math_floor = math.floor -- temporary stuff local itemRequestTimeoutAt local foundNewItems local cacheAllItems local friendItemRequests local harmItemRequests local lastUpdate = 0 -- minRangeCheck is a function to check if spells with minimum range are really out of range, or fail due to range < minRange. See :init() for its setup local minRangeCheck = function(unit) return CheckInteractDistance(unit, 2) end local checkers_Spell = setmetatable({}, { __index = function(t, spellIdx) local func = function(unit) if IsSpellInRange(spellIdx, BOOKTYPE_SPELL, unit) == 1 then return true end end t[spellIdx] = func return func end }) local checkers_SpellWithMin = setmetatable({}, { __index = function(t, spellIdx) local func = function(unit) if IsSpellInRange(spellIdx, BOOKTYPE_SPELL, unit) == 1 then return true elseif minRangeCheck(unit) then return true, true end end t[spellIdx] = func return func end }) local checkers_Item = setmetatable({}, { __index = function(t, item) local func = function(unit) return IsItemInRange(item, unit) end t[item] = func return func end }) local checkers_Interact = setmetatable({}, { __index = function(t, index) local func = function(unit) if CheckInteractDistance(unit, index) then return true end end t[index] = func return func end }) -- helper functions local function copyTable(src, dst) if type(dst) ~= "table" then dst = {} end if type(src) == "table" then for k, v in pairs(src) do if type(v) == "table" then v = copyTable(v, dst[k]) end dst[k] = v end end return dst end local function initItemRequests(cacheAll) friendItemRequests = copyTable(FriendItems) harmItemRequests = copyTable(HarmItems) cacheAllItems = cacheAll foundNewItems = nil end local function getNumSpells() local _, _, offset, numSpells = GetSpellTabInfo(GetNumSpellTabs()) return offset + numSpells end -- return the spellIndex of the given spell by scanning the spellbook local function findSpellIdx(spellName) if not spellName or spellName == "" then return nil end for i = 1, getNumSpells() do local spell, rank = GetSpellBookItemName(i, BOOKTYPE_SPELL) if spell == spellName then return i end end return nil end -- minRange should be nil if there's no minRange, not 0 local function addChecker(t, range, minRange, checker) local rc = { ["range"] = range, ["minRange"] = minRange, ["checker"] = checker } for i = 1, #t do local v = t[i] if rc.range == v.range then return end if rc.range > v.range then tinsert(t, i, rc) return end end tinsert(t, rc) end local function createCheckerList(spellList, itemList, interactList) local res = {} if spellList then for i = 1, #spellList do local sid = spellList[i] local name, _, _, _, minRange, range = GetSpellInfo(sid) local spellIdx = findSpellIdx(name) if spellIdx and range then minRange = math_floor(minRange + 0.5) range = math_floor(range + 0.5) -- print("### spell: " .. tostring(name) .. ", " .. tostring(minRange) .. " - " .. tostring(range)) if minRange == 0 then -- getRange() expects minRange to be nil in this case minRange = nil end if range == 0 then range = MeleeRange end if minRange then addChecker(res, range, minRange, checkers_SpellWithMin[spellIdx]) else addChecker(res, range, minRange, checkers_Spell[spellIdx]) end end end end if itemList then for range, items in pairs(itemList) do for i = 1, #items do local item = items[i] if GetItemInfo(item) then addChecker(res, range, nil, checkers_Item[item]) break end end end end if interactList and not next(res) then for index, range in pairs(interactList) do addChecker(res, range, nil, checkers_Interact[index]) end end return res end -- returns minRange, maxRange or nil local function getRange(unit, checkerList) local min, max = 0, nil for i = 1, #checkerList do local rc = checkerList[i] if not max or max > rc.range then if rc.minRange then local inRange, inMinRange = rc.checker(unit) if inMinRange then max = rc.minRange elseif inRange then min, max = rc.minRange, rc.range elseif min > rc.range then return min, max else return rc.range, max end elseif rc.checker(unit) then max = rc.range elseif min > rc.range then return min, max else return rc.range, max end end end return min, max end local function updateCheckers(origList, newList) if #origList ~= #newList then wipe(origList) copyTable(newList, origList) return true end for i = 1, #origList do if origList[i].range ~= newList[i].range or origList[i].checker ~= newList[i].checker then wipe(origList) copyTable(newList, origList) return true end end end local function rcIterator(checkerList) local curr = #checkerList return function() local rc = checkerList[curr] if not rc then return nil end curr = curr - 1 return rc.range, rc.checker end end local function getMinChecker(checkerList, range) local checker, checkerRange for i = 1, #checkerList do local rc = checkerList[i] if rc.range < range then return checker, checkerRange end checker, checkerRange = rc.checker, rc.range end return checker, checkerRange end local function getMaxChecker(checkerList, range) for i = 1, #checkerList do local rc = checkerList[i] if rc.range <= range then return rc.checker, rc.range end end end local function getChecker(checkerList, range) for i = 1, #checkerList do local rc = checkerList[i] if rc.range == range then return rc.checker end end end local function null() end local function createSmartChecker(friendChecker, harmChecker, miscChecker) miscChecker = miscChecker or null friendChecker = friendChecker or miscChecker harmChecker = harmChecker or miscChecker return function(unit) if not UnitExists(unit) then return nil end if UnitIsDeadOrGhost(unit) then return miscChecker(unit) end if UnitCanAttack("player", unit) then return harmChecker(unit) elseif UnitCanAssist("player", unit) then return friendChecker(unit) else return miscChecker(unit) end end end -- OK, here comes the actual lib -- pre-initialize the checkerLists here so that we can return some meaningful result even if -- someone manages to call us before we're properly initialized. miscRC should be independent of -- race/class/talents, so it's safe to initialize it here -- friendRC and harmRC will be properly initialized later when we have all the necessary data for them lib.checkerCache_Spell = lib.checkerCache_Spell or {} lib.checkerCache_Item = lib.checkerCache_Item or {} lib.miscRC = createCheckerList(nil, nil, DefaultInteractList) lib.friendRC = createCheckerList(nil, nil, DefaultInteractList) lib.harmRC = createCheckerList(nil, nil, DefaultInteractList) lib.failedItemRequests = {} -- << Public API --- The callback name that is fired when checkers are changed. -- @field lib.CHECKERS_CHANGED = "CHECKERS_CHANGED" -- "export" it, maybe someone will need it for formatting --- Constant for Melee range (5yd). -- @field lib.MeleeRange = MeleeRange function lib:findSpellIndex(spell) if type(spell) == 'number' then spell = GetSpellInfo(spell) end return findSpellIdx(spell) end -- returns the range estimate as a string -- deprecated, use :getRange(unit) instead and build your own strings -- (checkVisible is not used any more, kept for compatibility only) function lib:getRangeAsString(unit, checkVisible, showOutOfRange) local minRange, maxRange = self:getRange(unit) if not minRange then return nil end if not maxRange then return showOutOfRange and minRange .. " +" or nil end return minRange .. " - " .. maxRange end -- initialize RangeCheck if not yet initialized or if "forced" function lib:init(forced) if self.initialized and (not forced) then return end self.initialized = true local _, playerClass = UnitClass("player") local _, playerRace = UnitRace("player") minRangeCheck = nil -- first try to find a nice item we can use for minRangeCheck if HarmItems[15] then local items = HarmItems[15] for i = 1, #items do local item = items[i] if GetItemInfo(item) then minRangeCheck = function(unit) return IsItemInRange(item, unit) end break end end end if not minRangeCheck then -- ok, then try to find some class specific spell if playerClass == "WARRIOR" then -- for warriors, use Intimidating Shout if available local name = GetSpellInfo(5246) -- ["Intimidating Shout"] local spellIdx = findSpellIdx(name) if spellIdx then minRangeCheck = function(unit) return (IsSpellInRange(spellIdx, BOOKTYPE_SPELL, unit) == 1) end end elseif playerClass == "ROGUE" then -- for rogues, use Blind if available local name = GetSpellInfo(2094) -- ["Blind"] local spellIdx = findSpellIdx(name) if spellIdx then minRangeCheck = function(unit) return (IsSpellInRange(spellIdx, BOOKTYPE_SPELL, unit) == 1) end end end end if not minRangeCheck then -- fall back to interact distance checks if playerClass == "HUNTER" or playerRace == "Tauren" then -- for hunters, use interact4 as it's safer -- for Taurens interact4 is actually closer than 25yd and interact2 is closer than 8yd, so we can't use that minRangeCheck = checkers_Interact[4] else minRangeCheck = checkers_Interact[2] end end local interactList = InteractLists[playerRace] or DefaultInteractList self.handSlotItem = GetInventoryItemLink("player", HandSlotId) local changed = false if updateCheckers(self.friendRC, createCheckerList(FriendSpells[playerClass], FriendItems, interactList)) then changed = true end if updateCheckers(self.harmRC, createCheckerList(HarmSpells[playerClass], HarmItems, interactList)) then changed = true end if updateCheckers(self.miscRC, createCheckerList(nil, nil, interactList)) then changed = true end if changed and self.callbacks then self.callbacks:Fire(self.CHECKERS_CHANGED) end end --- Return an iterator for checkers usable on friendly units as (**range**, **checker**) pairs. function lib:GetFriendCheckers() return rcIterator(self.friendRC) end --- Return an iterator for checkers usable on enemy units as (**range**, **checker**) pairs. function lib:GetHarmCheckers() return rcIterator(self.harmRC) end --- Return an iterator for checkers usable on miscellaneous units as (**range**, **checker**) pairs. These units are neither enemy nor friendly, such as people in sanctuaries or corpses. function lib:GetMiscCheckers() return rcIterator(self.miscRC) end --- Return a checker suitable for out-of-range checking on friendly units, that is, a checker whose range is equal or larger than the requested range. -- @param range the range to check for. -- @return **checker**, **range** pair or **nil** if no suitable checker is available. **range** is the actual range the returned **checker** checks for. function lib:GetFriendMinChecker(range) return getMinChecker(self.friendRC, range) end --- Return a checker suitable for out-of-range checking on enemy units, that is, a checker whose range is equal or larger than the requested range. -- @param range the range to check for. -- @return **checker**, **range** pair or **nil** if no suitable checker is available. **range** is the actual range the returned **checker** checks for. function lib:GetHarmMinChecker(range) return getMinChecker(self.harmRC, range) end --- Return a checker suitable for out-of-range checking on miscellaneous units, that is, a checker whose range is equal or larger than the requested range. -- @param range the range to check for. -- @return **checker**, **range** pair or **nil** if no suitable checker is available. **range** is the actual range the returned **checker** checks for. function lib:GetMiscMinChecker(range) return getMinChecker(self.miscRC, range) end --- Return a checker suitable for in-range checking on friendly units, that is, a checker whose range is equal or smaller than the requested range. -- @param range the range to check for. -- @return **checker**, **range** pair or **nil** if no suitable checker is available. **range** is the actual range the returned **checker** checks for. function lib:GetFriendMaxChecker(range) return getMaxChecker(self.friendRC, range) end --- Return a checker suitable for in-range checking on enemy units, that is, a checker whose range is equal or smaller than the requested range. -- @param range the range to check for. -- @return **checker**, **range** pair or **nil** if no suitable checker is available. **range** is the actual range the returned **checker** checks for. function lib:GetHarmMaxChecker(range) return getMaxChecker(self.harmRC, range) end --- Return a checker suitable for in-range checking on miscellaneous units, that is, a checker whose range is equal or smaller than the requested range. -- @param range the range to check for. -- @return **checker**, **range** pair or **nil** if no suitable checker is available. **range** is the actual range the returned **checker** checks for. function lib:GetMiscMaxChecker(range) return getMaxChecker(self.miscRC, range) end --- Return a checker for the given range for friendly units. -- @param range the range to check for. -- @return **checker** function or **nil** if no suitable checker is available. function lib:GetFriendChecker(range) return getChecker(self.friendRC, range) end --- Return a checker for the given range for enemy units. -- @param range the range to check for. -- @return **checker** function or **nil** if no suitable checker is available. function lib:GetHarmChecker(range) return getChecker(self.harmRC, range) end --- Return a checker for the given range for miscellaneous units. -- @param range the range to check for. -- @return **checker** function or **nil** if no suitable checker is available. function lib:GetMiscChecker(range) return getChecker(self.miscRC, range) end --- Return a checker suitable for out-of-range checking that checks the unit type and calls the appropriate checker (friend/harm/misc). -- @param range the range to check for. -- @return **checker** function. function lib:GetSmartMinChecker(range) return createSmartChecker( getMinChecker(self.friendRC, range), getMinChecker(self.harmRC, range), getMinChecker(self.miscRC, range)) end --- Return a checker suitable for in-of-range checking that checks the unit type and calls the appropriate checker (friend/harm/misc). -- @param range the range to check for. -- @return **checker** function. function lib:GetSmartMaxChecker(range) return createSmartChecker( getMaxChecker(self.friendRC, range), getMaxChecker(self.harmRC, range), getMaxChecker(self.miscRC, range)) end --- Return a checker for the given range that checks the unit type and calls the appropriate checker (friend/harm/misc). -- @param range the range to check for. -- @param fallback optional fallback function that gets called as fallback(unit) if a checker is not available for the given type (friend/harm/misc) at the requested range. The default fallback function return nil. -- @return **checker** function. function lib:GetSmartChecker(range, fallback) return createSmartChecker( getChecker(self.friendRC, range) or fallback, getChecker(self.harmRC, range) or fallback, getChecker(self.miscRC, range) or fallback) end --- Get a range estimate as **minRange**, **maxRange**. -- @param unit the target unit to check range to. -- @return **minRange**, **maxRange** pair if a range estimate could be determined, **nil** otherwise. **maxRange** is **nil** if **unit** is further away than the highest possible range we can check. -- Includes checks for unit validity and friendly/enemy status. -- @usage -- local rc = LibStub("LibRangeCheck-2.0") -- local minRange, maxRange = rc:GetRange('target') function lib:GetRange(unit) if not UnitExists(unit) then return nil end if UnitIsDeadOrGhost(unit) then return getRange(unit, self.miscRC) end if UnitCanAttack("player", unit) then return getRange(unit, self.harmRC) elseif UnitCanAssist("player", unit) then return getRange(unit, self.friendRC) else return getRange(unit, self.miscRC) end end -- keep this for compatibility lib.getRange = lib.GetRange -- >> Public API function lib:OnEvent(event, ...) if type(self[event]) == 'function' then self[event](self, event, ...) end end function lib:LEARNED_SPELL_IN_TAB() self:scheduleInit() end function lib:CHARACTER_POINTS_CHANGED() self:scheduleInit() end function lib:PLAYER_TALENT_UPDATE() self:scheduleInit() end function lib:GLYPH_ADDED() self:scheduleInit() end function lib:GLYPH_REMOVED() self:scheduleInit() end function lib:GLYPH_UPDATED() self:scheduleInit() end function lib:SPELLS_CHANGED() self:scheduleInit() end function lib:UNIT_INVENTORY_CHANGED(event, unit) if self.initialized and unit == "player" and self.handSlotItem ~= GetInventoryItemLink("player", HandSlotId) then self:scheduleInit() end end function lib:UNIT_AURA(event, unit) if self.initialized and unit == "player" then self:scheduleAuraCheck() end end function lib:processItemRequests(itemRequests) while true do local range, items = next(itemRequests) if not range then return end while true do local i, item = next(items) if not i then itemRequests[range] = nil break elseif self.failedItemRequests[item] then tremove(items, i) elseif GetItemInfo(item) then if itemRequestTimeoutAt then foundNewItems = true itemRequestTimeoutAt = nil end if not cacheAllItems then itemRequests[range] = nil break end tremove(items, i) elseif not itemRequestTimeoutAt then itemRequestTimeoutAt = GetTime() + ItemRequestTimeout return true elseif GetTime() > itemRequestTimeoutAt then if cacheAllItems then print(MAJOR_VERSION .. ": timeout for item: " .. tostring(item)) end self.failedItemRequests[item] = true itemRequestTimeoutAt = nil tremove(items, i) else return true -- still waiting for server response end end end end function lib:initialOnUpdate() self:init() if friendItemRequests then if self:processItemRequests(friendItemRequests) then return end friendItemRequests = nil end if harmItemRequests then if self:processItemRequests(harmItemRequests) then return end harmItemRequests = nil end if foundNewItems then self:init(true) foundNewItems = nil end if cacheAllItems then print(MAJOR_VERSION .. ": finished cache") cacheAllItems = nil end self.frame:Hide() end function lib:scheduleInit() self.initialized = nil lastUpdate = 0 self.frame:Show() end function lib:scheduleAuraCheck() lastUpdate = UpdateDelay self.frame:Show() end -- << load-time initialization function lib:activate() if not self.frame then local frame = CreateFrame("Frame") self.frame = frame frame:RegisterEvent("LEARNED_SPELL_IN_TAB") frame:RegisterEvent("CHARACTER_POINTS_CHANGED") frame:RegisterEvent("PLAYER_TALENT_UPDATE") frame:RegisterEvent("GLYPH_ADDED") frame:RegisterEvent("GLYPH_REMOVED") frame:RegisterEvent("GLYPH_UPDATED") frame:RegisterEvent("SPELLS_CHANGED") local _, playerClass = UnitClass("player") if playerClass == "MAGE" or playerClass == "SHAMAN" then -- Mage and Shaman gladiator gloves modify spell ranges frame:RegisterUnitEvent("UNIT_INVENTORY_CHANGED", "player") end end initItemRequests() self.frame:SetScript("OnEvent", function(frame, ...) self:OnEvent(...) end) self.frame:SetScript("OnUpdate", function(frame, elapsed) lastUpdate = lastUpdate + elapsed if lastUpdate < UpdateDelay then return end lastUpdate = 0 self:initialOnUpdate() end) self:scheduleInit() end --- BEGIN CallbackHandler stuff do local lib = lib -- to keep a ref even though later we nil lib --- Register a callback to get called when checkers are updated -- @class function -- @name lib.RegisterCallback -- @usage -- rc.RegisterCallback(self, rc.CHECKERS_CHANGED, "myCallback") -- -- or -- rc.RegisterCallback(self, "CHECKERS_CHANGED", someCallbackFunction) -- @see CallbackHandler-1.0 documentation for more details lib.RegisterCallback = lib.RegisterCallback or function(...) local CBH = LibStub("CallbackHandler-1.0") lib.RegisterCallback = nil -- extra safety, we shouldn't get this far if CBH is not found, but better an error later than an infinite recursion now lib.callbacks = CBH:New(lib) -- ok, CBH hopefully injected or new shiny RegisterCallback return lib.RegisterCallback(...) end end --- END CallbackHandler stuff lib:activate() lib = nil
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/corellia/corsec_captain.lua
1
1170
corsec_captain = Creature:new { objectName = "@mob/creature_names:corsec_captain", socialGroup = "corsec", pvpFaction = "corsec", faction = "corsec", level = 22, chanceHit = 0.35, damageMin = 210, damageMax = 220, baseXp = 2219, baseHAM = 5900, baseHAMmax = 7200, armor = 0, resists = {10,10,10,10,10,10,10,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK + KILLER, optionsBitmask = 128, diet = HERBIVORE, templates = { "object/mobile/dressed_corsec_captain_human_female_01.iff", "object/mobile/dressed_corsec_captain_human_male_01.iff"}, lootGroups = { { groups = { {group = "junk", chance = 4000000}, {group = "wearables_common", chance = 2000000}, {group = "corsec_weapons", chance = 2500000}, {group = "tailor_components", chance = 1500000} }, lootChance = 3000000 } }, weapons = {"corsec_police_weapons"}, conversationTemplate = "", attacks = merge(brawlernovice,marksmannovice) } CreatureTemplates:addCreatureTemplate(corsec_captain, "corsec_captain")
lgpl-3.0
digicoop/kaiwa-server
modules/mod_turncredentials.lua
36
1415
-- XEP-0215 implementation for time-limited turn credentials -- Copyright (C) 2012-2013 Philipp Hancke -- This file is MIT/X11 licensed. local st = require "util.stanza"; local hmac_sha1 = require "util.hashes".hmac_sha1; local base64 = require "util.encodings".base64; local os_time = os.time; local secret = module:get_option_string("turncredentials_secret"); local host = module:get_option_string("turncredentials_host"); -- use ip addresses here to avoid further dns lookup latency local port = module:get_option_number("turncredentials_port", 3478); local ttl = module:get_option_number("turncredentials_ttl", 86400); if not (secret and host) then module:log("error", "turncredentials not configured"); return; end module:add_feature("urn:xmpp:extdisco:1"); module:hook("iq-get/host/urn:xmpp:extdisco:1:services", function(event) local origin, stanza = event.origin, event.stanza; if origin.type ~= "c2s" then return; end local now = os_time() + ttl; local userpart = tostring(now); local nonce = base64.encode(hmac_sha1(secret, tostring(userpart), false)); origin.send(st.reply(stanza):tag("services", {xmlns = "urn:xmpp:extdisco:1"}) :tag("service", { type = "stun", host = host, port = port }):up() :tag("service", { type = "turn", host = host, port = port, username = userpart, password = nonce, ttl = ttl}):up() ); return true; end);
mit
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/shoes/shoes_s02.lua
3
4404
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_shoes_shoes_s02 = object_tangible_wearables_shoes_shared_shoes_s02:new { playerRaces = { "object/creature/player/bothan_male.iff", "object/creature/player/bothan_female.iff", "object/creature/player/human_male.iff", "object/creature/player/human_female.iff", "object/creature/player/moncal_male.iff", "object/creature/player/moncal_female.iff", "object/creature/player/rodian_male.iff", "object/creature/player/rodian_female.iff", "object/creature/player/sullustan_male.iff", "object/creature/player/sullustan_female.iff", "object/creature/player/twilek_male.iff", "object/creature/player/twilek_female.iff", "object/creature/player/zabrak_male.iff", "object/creature/player/zabrak_female.iff", "object/mobile/vendor/aqualish_female.iff", "object/mobile/vendor/aqualish_male.iff", "object/mobile/vendor/bith_female.iff", "object/mobile/vendor/bith_male.iff", "object/mobile/vendor/bothan_female.iff", "object/mobile/vendor/bothan_male.iff", "object/mobile/vendor/devaronian_male.iff", "object/mobile/vendor/gran_male.iff", "object/mobile/vendor/human_female.iff", "object/mobile/vendor/human_male.iff", "object/mobile/vendor/ishi_tib_male.iff", "object/mobile/vendor/moncal_female.iff", "object/mobile/vendor/moncal_male.iff", "object/mobile/vendor/nikto_male.iff", "object/mobile/vendor/quarren_male.iff", "object/mobile/vendor/rodian_female.iff", "object/mobile/vendor/rodian_male.iff", "object/mobile/vendor/sullustan_female.iff", "object/mobile/vendor/sullustan_male.iff", "object/mobile/vendor/twilek_female.iff", "object/mobile/vendor/twilek_male.iff", "object/mobile/vendor/weequay_male.iff", "object/mobile/vendor/zabrak_female.iff", "object/mobile/vendor/zabrak_male.iff" }, numberExperimentalProperties = {1, 1, 1, 1}, experimentalProperties = {"XX", "XX", "XX", "XX"}, experimentalWeights = {1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints"}, experimentalMin = {0, 0, 0, 1000}, experimentalMax = {0, 0, 0, 1000}, experimentalPrecision = {0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 4}, } ObjectTemplates:addTemplate(object_tangible_wearables_shoes_shoes_s02, "object/tangible/wearables/shoes/shoes_s02.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/townsperson/businessman.lua
1
2639
businessman = Creature:new { objectName = "@mob/creature_names:businessman", generateRandomName =true, socialGroup = "townsperson", pvpFaction = "townsperson", faction = "townsperson", level = 4, chanceHit = 0.24, damageMin = 40, damageMax = 45, baseXp = 62, baseHAM = 113, baseHAMmax = 138, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = NONE, creatureBitmask = NONE, optionsBitmask = 128, diet = HERBIVORE, templates = { "object/mobile/dressed_commoner_fat_zabrak_male_01.iff", "object/mobile/dressed_commoner_tatooine_ishitib_male_01.iff", "object/mobile/dressed_commoner_tatooine_aqualish_female_07.iff", "object/mobile/dressed_commoner_naboo_twilek_female_01.iff", "object/mobile/dressed_commoner_old_zabrak_male_01.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_03.iff", "object/mobile/dressed_commoner_naboo_human_male_08.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_03.iff", "object/mobile/dressed_commoner_old_human_female_02.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_07.iff", "object/mobile/dressed_commoner_tatooine_bith_male_05.iff", "object/mobile/dressed_commoner_tatooine_ishitib_male_01.iff", "object/mobile/dressed_commoner_naboo_human_male_03.iff", "object/mobile/dressed_commoner_tatooine_bith_male_02.iff", "object/mobile/dressed_commoner_tatooine_trandoshan_male_02.iff", "object/mobile/dressed_commoner_naboo_human_female_07.iff", "object/mobile/dressed_commoner_tatooine_bith_male_01.iff", "object/mobile/dressed_commoner_tatooine_trandoshan_female_04.iff", "object/mobile/dressed_diplomat_human_female_01.iff", "object/mobile/dressed_diplomat_human_female_02.iff", "object/mobile/dressed_diplomat_human_female_03.iff", "object/mobile/dressed_diplomat_human_male_01.iff", "object/mobile/dressed_diplomat_human_male_02.iff", "object/mobile/dressed_diplomat_human_male_03.iff", "object/mobile/dressed_diplomat_trando_female_01.iff", "object/mobile/dressed_diplomat_trando_male_01.iff", "object/mobile/dressed_diplomat_zabrak_female_01.iff", "object/mobile/dressed_diplomat_zabrak_female_02.iff", "object/mobile/dressed_diplomat_zabrak_male_01.iff", "object/mobile/dressed_diplomat_zabrak_male_02.iff" }, lootGroups = {}, weapons = {}, conversationTemplate = "", attacks = { } } CreatureTemplates:addCreatureTemplate(businessman, "businessman")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/weapon/ranged/pistol/pistol_dx2.lua
2
6173
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_weapon_ranged_pistol_pistol_dx2 = object_weapon_ranged_pistol_shared_pistol_dx2:new { playerRaces = { "object/creature/player/bothan_male.iff", "object/creature/player/bothan_female.iff", "object/creature/player/human_male.iff", "object/creature/player/human_female.iff", "object/creature/player/ithorian_male.iff", "object/creature/player/ithorian_female.iff", "object/creature/player/moncal_male.iff", "object/creature/player/moncal_female.iff", "object/creature/player/rodian_male.iff", "object/creature/player/rodian_female.iff", "object/creature/player/sullustan_male.iff", "object/creature/player/sullustan_female.iff", "object/creature/player/trandoshan_male.iff", "object/creature/player/trandoshan_female.iff", "object/creature/player/twilek_male.iff", "object/creature/player/twilek_female.iff", "object/creature/player/wookiee_male.iff", "object/creature/player/wookiee_female.iff", "object/creature/player/zabrak_male.iff", "object/creature/player/zabrak_female.iff" }, -- RANGEDATTACK, MELEEATTACK, FORCEATTACK, TRAPATTACK, GRENADEATTACK, HEAVYACIDBEAMATTACK, -- HEAVYLIGHTNINGBEAMATTACK, HEAVYPARTICLEBEAMATTACK, HEAVYROCKETLAUNCHERATTACK, HEAVYLAUNCHERATTACK attackType = RANGEDATTACK, -- ENERGY, KINETIC, ELECTRICITY, STUN, BLAST, HEAT, COLD, ACID, FORCE, LIGHTSABER damageType = ACID, -- NONE, LIGHT, MEDIUM, HEAVY armorPiercing = LIGHT, -- combat_rangedspecialize_bactarifle, combat_rangedspecialize_rifle, combat_rangedspecialize_pistol, combat_rangedspecialize_heavy, combat_rangedspecialize_carbine -- combat_meleespecialize_unarmed, combat_meleespecialize_twohand, combat_meleespecialize_polearm, combat_meleespecialize_onehand, combat_general, -- combat_meleespecialize_twohandlightsaber, combat_meleespecialize_polearmlightsaber, combat_meleespecialize_onehandlightsaber xpType = "combat_rangedspecialize_pistol", -- See http://www.ocdsoft.com/files/certifications.xls certificationsRequired = { "cert_pistol_dx2" }, -- See http://www.ocdsoft.com/files/accuracy.xls creatureAccuracyModifiers = { "pistol_accuracy" }, creatureAimModifiers = { "pistol_aim", "aim" }, -- See http://www.ocdsoft.com/files/defense.xls defenderDefenseModifiers = { "ranged_defense" }, -- Leave as "dodge" for now, may have additions later defenderSecondaryDefenseModifiers = { "dodge" }, -- See http://www.ocdsoft.com/files/speed.xls speedModifiers = { "pistol_speed" }, -- Leave blank for now damageModifiers = { }, -- The values below are the default values. To be used for blue frog objects primarily healthAttackCost = 20, actionAttackCost = 35, mindAttackCost = 13, forceCost = 0, pointBlankRange = 0, pointBlankAccuracy = 25, idealRange = 8, idealAccuracy = -30, maxRange = 64, maxRangeAccuracy = -90, minDamage = 60, maxDamage = 90, attackSpeed = 3.5, woundsRatio = 12, numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2}, experimentalProperties = {"XX", "XX", "CD", "OQ", "CD", "OQ", "CD", "OQ", "CD", "OQ", "CD", "OQ", "CD", "OQ", "CD", "OQ", "XX", "XX", "XX", "CD", "OQ", "CD", "OQ", "CD", "OQ"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "expDamage", "expDamage", "expDamage", "expDamage", "expEffeciency", "exp_durability", "expRange", "null", "null", "null", "expEffeciency", "expEffeciency", "expEffeciency"}, experimentalSubGroupTitles = {"null", "null", "mindamage", "maxdamage", "attackspeed", "woundchance", "roundsused", "hitpoints", "zerorangemod", "maxrangemod", "midrange", "midrangemod", "attackhealthcost", "attackactioncost", "attackmindcost"}, experimentalMin = {0, 0, 42, 79, 4.6, 8, 15, 750, 18, -90, 16, 14, 26, 46, 17}, experimentalMax = {0, 0, 78, 117, 3.2, 16, 60, 1500, 33, -90, 16, 30, 14, 25, 9}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_weapon_ranged_pistol_pistol_dx2, "object/weapon/ranged/pistol/pistol_dx2.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/mobskills/colossal_blow.lua
2
1053
--------------------------------------------------- -- Colossal_Blow -- Deals damage to a single target. -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onMobSkillCheck(target,mob,skill) local currentForm = mob:getLocalVar("form") -- this var is only set for proto-omega if (currentForm == 2) then return 0; end return 1; end; function onMobWeaponSkill(target, mob, skill) local currentHP = target:getHP(); -- remove all by 5% local damage = 0; -- if have more hp then 30%, then reduce to 5% if (target:getHPP() > 30) then damage = currentHP * .95; else -- else you die damage = currentHP; end local dmg = MobFinalAdjustments(damage,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_PIERCE,MOBPARAM_IGNORE_SHADOWS); target:delHP(dmg); mob:resetEnmity(target); return dmg; end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/components/booster/bst_mandal_jbj_mk5.lua
3
2292
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_ship_components_booster_bst_mandal_jbj_mk5 = object_tangible_ship_components_booster_shared_bst_mandal_jbj_mk5:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_mandal_jbj_mk5, "object/tangible/ship/components/booster/bst_mandal_jbj_mk5.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/hair/rodian/hair_rodian_female_s16.lua
3
2260
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_hair_rodian_hair_rodian_female_s16 = object_tangible_hair_rodian_shared_hair_rodian_female_s16:new { } ObjectTemplates:addTemplate(object_tangible_hair_rodian_hair_rodian_female_s16, "object/tangible/hair/rodian/hair_rodian_female_s16.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/building/general/parking_garage_general.lua
2
2273
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_building_general_parking_garage_general = object_building_general_shared_parking_garage_general:new { planetMapCategory = "garage" } ObjectTemplates:addTemplate(object_building_general_parking_garage_general, "object/building/general/parking_garage_general.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/screenplays/tasks/ajuva_vanasterin.lua
1
1753
ajuva_vanasterin_missions = { { missionType = "deliver", primarySpawns = { { npcTemplate = "jinderliss_prason", planetName = "rori", npcName = "Jinderliss Prason" } }, secondarySpawns = { }, itemSpawns = { { itemTemplate = "object/tangible/mission/quest_item/ajuva_vamasterin_q1_needed.iff", itemName = "" } }, rewards = { { rewardType = "credits", amount = 25 }, { rewardType = "faction", faction = "naboo", amount = 5 }, } }, { missionType = "deliver", primarySpawns = { { npcTemplate = "art_dealer", planetName = "rori", npcName = "Art Dealer" } }, secondarySpawns = { }, itemSpawns = { { itemTemplate = "object/tangible/mission/quest_item/ajuva_vamasterin_q2_needed.iff", itemName = "" } }, rewards = { { rewardType = "credits", amount = 25 }, { rewardType = "faction", faction = "naboo", amount = 5 } } } } npcMapAjuvaVanasterin = { { spawnData = { planetName = "rori", npcTemplate = "ajuva_vanasterin", x = 5203, z = 80, y = 5700, direction = 180, cellID = 0, position = STAND }, npcNumber = 1, stfFile = "@static_npc/rori/rori_restuss_ajuva_vanasterin", missions = ajuva_vanasterin_missions }, } AjuvaVanasterin = ThemeParkLogic:new { numberOfActs = 1, npcMap = npcMapAjuvaVanasterin, permissionMap = {}, className = "AjuvaVanasterin", screenPlayState = "ajuva_vanasterin_quest", distance = 600, missionDescriptionStf = "", missionCompletionMessageStf = "" } registerScreenPlay("AjuvaVanasterin", true) ajuva_vanasterin_mission_giver_conv_handler = mission_giver_conv_handler:new { themePark = AjuvaVanasterin } ajuva_vanasterin_mission_target_conv_handler = mission_target_conv_handler:new { themePark = AjuvaVanasterin }
lgpl-3.0
upsoft/avbot
extension/luascript/libs/luascript/rss.lua
3
2534
require("curl") --require("LuaXML") --require("bit") --require("lanes") sites={} sites["mydrivers"]="http://rss.mydrivers.com/rss.aspx?Tid=1" sites["solidot"]="http://feeds.feedburner.com/solidot" function rss(msg,msg_time,buddy_name,buddy_num,qun_name,qun_num) if string.match(msg,"^%.rss")==nil then return end command=string.match(msg,"^%.rss (.*)") if command=="refresh" or command=="¸üÐÂ" then for i,j in pairs(sites) do get_rss(i,j) end say_qun("¿ªÊ¼¸üÐÂrss",qun_num) return end if command=="read" or command=="ÏÔʾ" then local result="" for i,j in pairs(sites) do result=result.."-=="..i.."==-"..":\n"..read_rss(i) end for i=1,string.len(result),513 do --if string.byte(result,i+512)>127 then --end result_piece=string.sub(result,i,i+512) if qun_num==nil then say_buddy(result_piece,buddy_num) else say_qun(result_piece,qun_num) end end return end end lock=0 function get_rss(name,url) lock=1 co=coroutine.create(function() print("start") rssfile=io.open(name.."_rss.xml","w+") connection=curl.easy_init() connection:setopt(curl.OPT_URL,url) --connection:setopt(curl.OPT_TIMEOUT,3) connection:setopt(curl.OPT_USERAGENT,"MyQqDicebot/4.0") connection:setopt(curl.OPT_WRITEFUNCTION, function(buffer) rssfile:write(buffer) return #buffer end) connection:perform() print("done") lock=0 end) --result=co() --print("yes?") --co() --print("yes?") coroutine.resume(co) end function read_rss(name) --print(lock) local items={} local result="" while(lock==1) do end local xfile=io.open(name.."_rss.xml","r") local xcontent=xfile:read("*a") if is_utf8(xcontent) then xcontent=to_gb(xcontent) end --xml.registerCode("Ò»","Ò»") for item in string.gmatch(xcontent,"%<item%>.-%<%/item%>") do --print(item) table.insert(items,item) end local i=1 while items[i]~=nil do item=items[i] if item~=nil then if string.match(item,"%<title%>%<%!%[CDATA%[(.-)%]%]%>%<%/title%>")~=nil then result=result..string.match(item,"%<title%>%<%!%[CDATA%[(.-)%]%]%>%<%/title%>").."\n" else result=result..string.match(item,"%<title%>(.-)%<%/title%>").."\n" end end i=i+1 if i>4 then break end end --print(result) return result end function is_utf8(html_string) --»ñÈ¡±àÂ뷽ʽ --for a,html in pairs(html_string) do charset=string.match(html_string,"[uU][tT][fF]%-8") if charset~=nil then return true end --end return false end --get_rss("mydrivers","http://rss.mydrivers.com/rss.aspx?Tid=1") --print(read_rss("solidot"))
agpl-3.0
eraffxi/darkstar
scripts/zones/Cloister_of_Gales/bcnms/trial-size_trial_by_wind.lua
7
2123
----------------------------------- -- Area: Cloister of Gales -- BCNM: Trial-size Trial by Wind -- @zone -361 1 -381 201 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ------------------------------------- require("scripts/globals/shop"); require("scripts/globals/quests"); require("scripts/zones/Cloister_of_Gales/TextIDs"); ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) end; -- Physically entering the BCNM via bcnmEnter(bcnmid) function onBcnmEnter(player,instance) end; -- Leaving the BCNM by every mean possible, given by the LeaveCode -- 1=Select Exit on circle -- 2=Winning the BC -- 3=Disconnected or warped out -- 4=Losing the BC -- via bcnmLeave(1) or bcnmLeave(2). LeaveCodes 3 and 4 are called -- from the core when a player disconnects or the time limit is up, etc function onBcnmLeave(player,instance,leavecode) -- print("leave code "..leavecode); if (leavecode == 2) then -- play end CS. Need time and battle id for record keeping + storage player:startEvent(32001,1,1,1,instance:getTimeInside(),1,0,0); elseif (leavecode == 4) then player:setVar("TrialSizeWind_date",tonumber(os.date("%j"))); -- If you loose, you need to wait 1 real day player:startEvent(32002); end end; function onEventUpdate(player,csid,option) -- print("bc update csid "..csid.." and option "..option); end; function onEventFinish(player,csid,option) -- print("bc finish csid "..csid.." and option "..option); if (csid == 32001) then if (player:hasSpell(301) == false) then player:addSpell(301); -- Garuda player:messageSpecial(GARUDA_UNLOCKED,0,0,3); end if (player:hasItem(4181) == false) then player:addItem(4181); player:messageSpecial(ITEM_OBTAINED,4181); -- Scroll of instant warp end player:setVar("TrialSizeWind_date", 0); player:addFame(RABAO,30); player:completeQuest(OUTLANDS,TRIAL_SIZE_TRIAL_BY_WIND); end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/creature/npc/base/ithorian_base_male.lua
3
2232
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_creature_npc_base_ithorian_base_male = object_creature_npc_base_shared_ithorian_base_male:new { } ObjectTemplates:addTemplate(object_creature_npc_base_ithorian_base_male, "object/creature/npc/base/ithorian_base_male.iff")
lgpl-3.0
eraffxi/darkstar
scripts/zones/Temenos/mobs/Thunder_Elemental.lua
2
1782
----------------------------------- -- Area: Temenos E T -- NPC: Thunder_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ----------------------------------- -- onMobEngaged ----------------------------------- function onMobEngaged(mob,target) end; ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob, player, isKiller) local mobID = mob:getID(); local mobX = mob:getXPos(); local mobY = mob:getYPos(); local mobZ = mob:getZPos(); switch (mobID): caseof { -- 100 a 106 inclut (Temenos -Northern Tower ) [16928876] = function (x) GetNPCByID(16928768+183):setPos(mobX,mobY,mobZ); GetNPCByID(16928768+183):setStatus(dsp.status.NORMAL); end , [16928877] = function (x) GetNPCByID(16928768+261):setPos(mobX,mobY,mobZ); GetNPCByID(16928768+261):setStatus(dsp.status.NORMAL); end , [16928878] = function (x) GetNPCByID(16928768+393):setPos(mobX,mobY,mobZ); GetNPCByID(16928768+393):setStatus(dsp.status.NORMAL); end , [16928879] = function (x) GetNPCByID(16928768+68):setPos(mobX,mobY,mobZ); GetNPCByID(16928768+68):setStatus(dsp.status.NORMAL); end , [16929037] = function (x) if (IsMobDead(16929038)==false) then DespawnMob(16929038); SpawnMob(16929044); end end , } end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/corellia/meatlump_stooge.lua
1
1905
meatlump_stooge = Creature:new { objectName = "@mob/creature_names:meatlump_stooge", socialGroup = "meatlump", pvpFaction = "meatlump", faction = "meatlump", level = 7, chanceHit = 0.260000, damageMin = 55, damageMax = 65, baseXp = 187, baseHAM = 270, baseHAMmax = 330, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0.000000, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK, diet = HERBIVORE, templates = { "object/mobile/dressed_criminal_thug_aqualish_female_01.iff", "object/mobile/dressed_criminal_thug_aqualish_female_02.iff", "object/mobile/dressed_criminal_thug_aqualish_male_01.iff", "object/mobile/dressed_criminal_thug_aqualish_male_02.iff", "object/mobile/dressed_criminal_thug_human_female_01.iff", "object/mobile/dressed_criminal_thug_human_female_02.iff", "object/mobile/dressed_criminal_thug_human_male_01.iff", "object/mobile/dressed_criminal_thug_human_male_02.iff", "object/mobile/dressed_criminal_thug_rodian_female_01.iff", "object/mobile/dressed_criminal_thug_rodian_male_01.iff", "object/mobile/dressed_criminal_thug_trandoshan_female_01.iff", "object/mobile/dressed_criminal_thug_trandoshan_male_01.iff", "object/mobile/dressed_criminal_thug_zabrak_female_01.iff", "object/mobile/dressed_criminal_thug_zabrak_male_01.iff"}, lootGroups = { { groups = { {group = "junk", chance = 2900000}, {group = "loot_kit_parts", chance = 1500000}, {group = "color_crystals", chance = 100000}, {group = "tailor_components", chance = 500000}, {group = "meatlump_common", chance = 5000000} }, lootChance = 2200000 } }, weapons = {"pirate_weapons_light"}, attacks = merge(brawlernovice,marksmannovice) } CreatureTemplates:addCreatureTemplate(meatlump_stooge, "meatlump_stooge")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_noble_human_male_01.lua
3
2224
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_dressed_noble_human_male_01 = object_mobile_shared_dressed_noble_human_male_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_noble_human_male_01, "object/mobile/dressed_noble_human_male_01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/building/poi/tatooine_jawa_tradesmen_camp_medium1.lua
1
2284
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_building_poi_tatooine_jawa_tradesmen_camp_medium1 = object_building_poi_shared_tatooine_jawa_tradesmen_camp_medium1:new { } ObjectTemplates:addTemplate(object_building_poi_tatooine_jawa_tradesmen_camp_medium1, "object/building/poi/tatooine_jawa_tradesmen_camp_medium1.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_bth_spynet_pilot_m_02.lua
3
2232
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_dressed_bth_spynet_pilot_m_02 = object_mobile_shared_dressed_bth_spynet_pilot_m_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_bth_spynet_pilot_m_02, "object/mobile/dressed_bth_spynet_pilot_m_02.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/spells/aspir.lua
2
1696
----------------------------------------- -- Spell: Aspir -- Drain functions only on skill level!! ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,spell) --calculate raw damage (unknown function -> only dark skill though) - using http://www.bluegartr.com/threads/44518-Drain-Calculations -- also have small constant to account for 0 dark skill local dmg = 5 + 0.375 * caster:getSkillLevel(dsp.skill.DARK_MAGIC); --get resist multiplier (1x if no resist) local params = {}; params.diff = caster:getStat(dsp.mod.INT)-target:getStat(dsp.mod.INT); params.attribute = dsp.mod.INT; params.skillType = dsp.skill.DARK_MAGIC; params.bonus = 1.0; local resist = applyResistance(caster, target, spell, params); --get the resisted damage dmg = dmg*resist; --add on bonuses (staff/day/weather/jas/mab/etc all go in this function) dmg = addBonuses(caster,spell,target,dmg); --add in target adjustment dmg = adjustForTarget(target,dmg,spell:getElement()); --add in final adjustments if (dmg < 0) then dmg = 0 end dmg = dmg * DARK_POWER; if (target:isUndead()) then spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT); -- No effect return dmg; end if (target:getMP() > dmg) then caster:addMP(dmg); target:delMP(dmg); else dmg = target:getMP(); caster:addMP(dmg); target:delMP(dmg); end return dmg; end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/robe/robe_jedi_dark_s04.lua
1
3561
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_robe_robe_jedi_dark_s04 = object_tangible_wearables_robe_shared_robe_jedi_dark_s04:new { playerRaces = { "object/creature/player/bothan_male.iff", "object/creature/player/bothan_female.iff", "object/creature/player/human_male.iff", "object/creature/player/human_female.iff", "object/creature/player/ithorian_male.iff", "object/creature/player/ithorian_female.iff", "object/creature/player/moncal_male.iff", "object/creature/player/moncal_female.iff", "object/creature/player/rodian_male.iff", "object/creature/player/rodian_female.iff", "object/creature/player/sullustan_male.iff", "object/creature/player/sullustan_female.iff", "object/creature/player/trandoshan_male.iff", "object/creature/player/trandoshan_female.iff", "object/creature/player/twilek_male.iff", "object/creature/player/twilek_female.iff", "object/creature/player/wookiee_male.iff", "object/creature/player/wookiee_female.iff", "object/creature/player/zabrak_male.iff", "object/creature/player/zabrak_female.iff" }, skillMods = { {"jedi_force_power_max", 250}, {"jedi_force_power_regen", 10} }, noTrade = 1, templateType = ROBEOBJECT, objectMenuComponent = {"cpp", "RobeObjectMenuComponent"}, skillRequired = "force_rank_dark_rank_08", attributeListComponent = "RobeObjectAttributeListComponent", } ObjectTemplates:addTemplate(object_tangible_wearables_robe_robe_jedi_dark_s04, "object/tangible/wearables/robe/robe_jedi_dark_s04.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/medicine/crafted/medpack_poison_area_action_c.lua
1
3377
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_medicine_crafted_medpack_poison_area_action_c = object_tangible_medicine_crafted_shared_medpack_poison_area_action_c:new { gameObjectType = 8240, templateType = DOTPACK, useCount = 10, medicineUse = 5, effectiveness = 100, duration = 300, range = 15, rangeMod = 0.3, pool = 3, dotType = POISONED, potency = 350, commandToExecute = "/applypoison", area = 10, numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 2, 2, 1}, experimentalProperties = {"XX", "XX", "OQ", "PE", "OQ", "UT", "CD", "OQ", "CD", "OQ", "OQ", "PE", "OQ", "PE", "DR", "OQ", "XX"}, experimentalWeights = {1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 2, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "exp_effectiveness", "exp_charges", "exp_charges", "exp_effectiveness", "expEaseOfUse", "expEaseOfUse", "exp_effectiveness", "null"}, experimentalSubGroupTitles = {"null", "null", "power", "charges", "range", "area", "skillmodmin", "potency", "duration", "hitpoints"}, experimentalMin = {0, 0, 10, 15, 15, 5, 100, 25, 30, 1000}, experimentalMax = {0, 0, 200, 35, 30, 20, 60, 150, 240, 1000}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 4}, } ObjectTemplates:addTemplate(object_tangible_medicine_crafted_medpack_poison_area_action_c, "object/tangible/medicine/crafted/medpack_poison_area_action_c.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/structure/tatooine/objects.lua
3
116041
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --which carries forward this exception. object_static_structure_tatooine_shared_antenna_tatt_style_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_antenna_tatt_style_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_imprv_tato_antenna_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "clientdata/client_shared_antenna_tatt_style_1.cdf", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1093255506, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_antenna_tatt_style_1, "object/static/structure/tatooine/shared_antenna_tatt_style_1.iff") object_static_structure_tatooine_shared_antenna_tatt_style_2 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_antenna_tatt_style_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_imprv_tato_antenna_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "clientdata/client_shared_antenna_tatt_style_2.cdf", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2587781573, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_antenna_tatt_style_2, "object/static/structure/tatooine/shared_antenna_tatt_style_2.iff") object_static_structure_tatooine_shared_beam_tatooine_overhead_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_beam_tatooine_overhead_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_over_beam_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 4012796711, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_beam_tatooine_overhead_style_01, "object/static/structure/tatooine/shared_beam_tatooine_overhead_style_01.iff") object_static_structure_tatooine_shared_beam_tatooine_overhead_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_beam_tatooine_overhead_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_over_beam_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 876200880, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_beam_tatooine_overhead_style_02, "object/static/structure/tatooine/shared_beam_tatooine_overhead_style_02.iff") object_static_structure_tatooine_shared_bridge_tatooine_small_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_bridge_tatooine_small_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_bridge_sml_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1188632964, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_bridge_tatooine_small_style_01, "object/static/structure/tatooine/shared_bridge_tatooine_small_style_01.iff") object_static_structure_tatooine_shared_bridge_tatooine_small_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_bridge_tatooine_small_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_bridge_sml_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2647568659, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_bridge_tatooine_small_style_02, "object/static/structure/tatooine/shared_bridge_tatooine_small_style_02.iff") object_static_structure_tatooine_shared_bridge_tatooine_small_style_03 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_bridge_tatooine_small_style_03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_bridge_sml_s03.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3569604254, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_bridge_tatooine_small_style_03, "object/static/structure/tatooine/shared_bridge_tatooine_small_style_03.iff") object_static_structure_tatooine_shared_concrete_slab_tatooine_16x8 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_concrete_slab_tatooine_16x8.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_concrete_slab_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3926077524, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_concrete_slab_tatooine_16x8, "object/static/structure/tatooine/shared_concrete_slab_tatooine_16x8.iff") object_static_structure_tatooine_shared_debris_tatt_crate_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_crate_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s07.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2802480216, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_crate_1, "object/static/structure/tatooine/shared_debris_tatt_crate_1.iff") object_static_structure_tatooine_shared_debris_tatt_crate_metal_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_crate_metal_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s08.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 640052328, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_crate_metal_1, "object/static/structure/tatooine/shared_debris_tatt_crate_metal_1.iff") object_static_structure_tatooine_shared_debris_tatt_drum_dented_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_drum_dented_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s09.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2065777367, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_drum_dented_1, "object/static/structure/tatooine/shared_debris_tatt_drum_dented_1.iff") object_static_structure_tatooine_shared_debris_tatt_drum_storage_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_drum_storage_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s05.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1759237578, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_drum_storage_1, "object/static/structure/tatooine/shared_debris_tatt_drum_storage_1.iff") object_static_structure_tatooine_shared_debris_tatt_drum_storage_2 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_drum_storage_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s06.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3016523101, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_drum_storage_2, "object/static/structure/tatooine/shared_debris_tatt_drum_storage_2.iff") object_static_structure_tatooine_shared_debris_tatt_pipe_dual_unconnected = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_pipe_dual_unconnected.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "clientdata/client_shared_steam_rise.cdf", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3869966709, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_pipe_dual_unconnected, "object/static/structure/tatooine/shared_debris_tatt_pipe_dual_unconnected.iff") object_static_structure_tatooine_shared_debris_tatt_pipe_narrow_1 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_pipe_narrow_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s03.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2912961482, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_pipe_narrow_1, "object/static/structure/tatooine/shared_debris_tatt_pipe_narrow_1.iff") object_static_structure_tatooine_shared_debris_tatt_pipe_narrow_2 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_pipe_narrow_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s04.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "clientdata/client_shared_steam_rise.cdf", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1991764829, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_pipe_narrow_2, "object/static/structure/tatooine/shared_debris_tatt_pipe_narrow_2.iff") object_static_structure_tatooine_shared_debris_tatt_pipe_widemouth = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_pipe_widemouth.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 734378137, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_pipe_widemouth, "object/static/structure/tatooine/shared_debris_tatt_pipe_widemouth.iff") object_static_structure_tatooine_shared_debris_tatt_radar_dish = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_debris_tatt_radar_dish.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_debris_s10.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 509333295, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_debris_tatt_radar_dish, "object/static/structure/tatooine/shared_debris_tatt_radar_dish.iff") object_static_structure_tatooine_shared_guild_ball_free_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_guild_ball_free_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_guild_golden_ball_freestand_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 4217839607, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_guild_ball_free_style_01, "object/static/structure/tatooine/shared_guild_ball_free_style_01.iff") object_static_structure_tatooine_shared_guild_banner_free_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_guild_banner_free_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_guild_banner_freestand_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3370382065, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_guild_banner_free_style_01, "object/static/structure/tatooine/shared_guild_banner_free_style_01.iff") object_static_structure_tatooine_shared_guild_statue_free_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_guild_statue_free_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_guild_statue_freestand_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3311933250, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_guild_statue_free_style_01, "object/static/structure/tatooine/shared_guild_statue_free_style_01.iff") object_static_structure_tatooine_shared_luke_farm_dome = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_luke_farm_dome.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_luke_farm_dome.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 833921892, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_luke_farm_dome, "object/static/structure/tatooine/shared_luke_farm_dome.iff") object_static_structure_tatooine_shared_luke_farm_garage = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_luke_farm_garage.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_luke_farm_garage.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2599767179, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_luke_farm_garage, "object/static/structure/tatooine/shared_luke_farm_garage.iff") object_static_structure_tatooine_shared_orchard_tatooine_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_orchard_tatooine_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_orchard_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:orchard", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:orchard", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2565487141, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_orchard_tatooine_style_01, "object/static/structure/tatooine/shared_orchard_tatooine_style_01.iff") object_static_structure_tatooine_shared_orchard_tatooine_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_orchard_tatooine_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_orchard_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:orchard", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:orchard", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1140691634, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_orchard_tatooine_style_02, "object/static/structure/tatooine/shared_orchard_tatooine_style_02.iff") object_static_structure_tatooine_shared_palette_tatooine_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_palette_tatooine_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_palette_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 964260108, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_palette_tatooine_style_01, "object/static/structure/tatooine/shared_palette_tatooine_style_01.iff") object_static_structure_tatooine_shared_pillar_damaged_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_damaged_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_pillar_damaged_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 241421707, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_damaged_large_style_01, "object/static/structure/tatooine/shared_pillar_damaged_large_style_01.iff") object_static_structure_tatooine_shared_pillar_pristine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_pristine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_pillar_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 4292692970, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_pristine_large_style_01, "object/static/structure/tatooine/shared_pillar_pristine_large_style_01.iff") object_static_structure_tatooine_shared_pillar_pristine_small_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_pristine_small_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_pillar_sml_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3757161564, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_pristine_small_style_01, "object/static/structure/tatooine/shared_pillar_pristine_small_style_01.iff") object_static_structure_tatooine_shared_pillar_pristine_tall_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_pristine_tall_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_pillar_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3787857912, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_pristine_tall_style_01, "object/static/structure/tatooine/shared_pillar_pristine_tall_style_01.iff") object_static_structure_tatooine_shared_pillar_ruined_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_ruined_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_pillar_ruin_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1598087847, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_ruined_large_style_01, "object/static/structure/tatooine/shared_pillar_ruined_large_style_01.iff") object_static_structure_tatooine_shared_pillar_ruined_small_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_ruined_small_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_pillar_ruin_sml_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2137789713, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_ruined_small_style_01, "object/static/structure/tatooine/shared_pillar_ruined_small_style_01.iff") object_static_structure_tatooine_shared_pillar_watto_junkshop = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_pillar_watto_junkshop.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_jnkshp_pillar.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 4197410545, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_pillar_watto_junkshop, "object/static/structure/tatooine/shared_pillar_watto_junkshop.iff") object_static_structure_tatooine_shared_planter_hanging_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_planter_hanging_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_planter_hanging_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 965371099, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_planter_hanging_style_01, "object/static/structure/tatooine/shared_planter_hanging_style_01.iff") object_static_structure_tatooine_shared_planter_window_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_planter_window_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_planter_window_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3602181980, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_planter_window_style_01, "object/static/structure/tatooine/shared_planter_window_style_01.iff") object_static_structure_tatooine_shared_shed_junkshop_watto = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_shed_junkshop_watto.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_jnkshp_bldg.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:shed_junkshop_watto", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:shed_junkshop_watto", noBuildRadius = 0, objectName = "@string_table:shed_junkshop_watto", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3540340474, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_shed_junkshop_watto, "object/static/structure/tatooine/shared_shed_junkshop_watto.iff") object_static_structure_tatooine_shared_skeleton_greater_krayt_head = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_greater_krayt_head.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_grtr_krayt_head_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2360757218, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_greater_krayt_head, "object/static/structure/tatooine/shared_skeleton_greater_krayt_head.iff") object_static_structure_tatooine_shared_skeleton_greater_krayt_spine_large = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_greater_krayt_spine_large.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_grtr_krayt_spine_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1968966439, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_greater_krayt_spine_large, "object/static/structure/tatooine/shared_skeleton_greater_krayt_spine_large.iff") object_static_structure_tatooine_shared_skeleton_greater_krayt_spine_medium = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_greater_krayt_spine_medium.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_grtr_krayt_spine_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3765108574, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_greater_krayt_spine_medium, "object/static/structure/tatooine/shared_skeleton_greater_krayt_spine_medium.iff") object_static_structure_tatooine_shared_skeleton_greater_krayt_spine_small = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_greater_krayt_spine_small.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_grtr_krayt_spine_s03.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1095212814, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_greater_krayt_spine_small, "object/static/structure/tatooine/shared_skeleton_greater_krayt_spine_small.iff") object_static_structure_tatooine_shared_skeleton_krayt_arm_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_arm_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_arm_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2765616042, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_arm_style_01, "object/static/structure/tatooine/shared_skeleton_krayt_arm_style_01.iff") object_static_structure_tatooine_shared_skeleton_krayt_arm_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_arm_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_arm_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2143312701, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_arm_style_02, "object/static/structure/tatooine/shared_skeleton_krayt_arm_style_02.iff") object_static_structure_tatooine_shared_skeleton_krayt_foot = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_foot.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_foot.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3709855452, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_foot, "object/static/structure/tatooine/shared_skeleton_krayt_foot.iff") object_static_structure_tatooine_shared_skeleton_krayt_head_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_head_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_head_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1206320755, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_head_style_01, "object/static/structure/tatooine/shared_skeleton_krayt_head_style_01.iff") object_static_structure_tatooine_shared_skeleton_krayt_head_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_head_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_head_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2633062116, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_head_style_02, "object/static/structure/tatooine/shared_skeleton_krayt_head_style_02.iff") object_static_structure_tatooine_shared_skeleton_krayt_leg_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_leg_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_leg_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 244287544, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_leg_style_01, "object/static/structure/tatooine/shared_skeleton_krayt_leg_style_01.iff") object_static_structure_tatooine_shared_skeleton_krayt_leg_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_leg_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_leg_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3583516847, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_leg_style_02, "object/static/structure/tatooine/shared_skeleton_krayt_leg_style_02.iff") object_static_structure_tatooine_shared_skeleton_krayt_ribcage = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_ribcage.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_ribcage.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3011148946, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_ribcage, "object/static/structure/tatooine/shared_skeleton_krayt_ribcage.iff") object_static_structure_tatooine_shared_skeleton_krayt_tail = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_skeleton_krayt_tail.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/poi_tato_skel_krayt_tail.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2336540846, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_skeleton_krayt_tail, "object/static/structure/tatooine/shared_skeleton_krayt_tail.iff") object_static_structure_tatooine_shared_stair_tatooine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_stair_tatooine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_stair_large_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1322132974, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_stair_tatooine_large_style_01, "object/static/structure/tatooine/shared_stair_tatooine_large_style_01.iff") object_static_structure_tatooine_shared_stair_tatooine_large_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_stair_tatooine_large_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_stair_large_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2514062713, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_stair_tatooine_large_style_02, "object/static/structure/tatooine/shared_stair_tatooine_large_style_02.iff") object_static_structure_tatooine_shared_stair_tatooine_small_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_stair_tatooine_small_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_stair_sml_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1860358744, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_stair_tatooine_small_style_01, "object/static/structure/tatooine/shared_stair_tatooine_small_style_01.iff") object_static_structure_tatooine_shared_stair_tatooine_small_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_stair_tatooine_small_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_stair_sml_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3052763855, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_stair_tatooine_small_style_02, "object/static/structure/tatooine/shared_stair_tatooine_small_style_02.iff") object_static_structure_tatooine_shared_stone_hovel_tatooine_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_stone_hovel_tatooine_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_sandstone_hovel_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3200019712, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_stone_hovel_tatooine_style_01, "object/static/structure/tatooine/shared_stone_hovel_tatooine_style_01.iff") object_static_structure_tatooine_shared_streetsign_upright_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_streetsign_upright_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_street_sign_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1684082876, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_streetsign_upright_style_01, "object/static/structure/tatooine/shared_streetsign_upright_style_01.iff") object_static_structure_tatooine_shared_streetsign_wall_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_streetsign_wall_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_street_sign_wall_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 3198539542, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_streetsign_wall_style_01, "object/static/structure/tatooine/shared_streetsign_wall_style_01.iff") object_static_structure_tatooine_shared_tato_imprv_bannerpole_s01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_tato_imprv_bannerpole_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/mun_corl_imprv_bannerpole_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "clientdata/structure/tato_imprv_bannerpole_s01.cdf", clientGameObjectType = 5, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "", gameObjectType = 5, lookAtText = "", noBuildRadius = 1, objectName = "@item_n:banner_corellia", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 2616904837, derivedFromTemplates = {} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_tato_imprv_bannerpole_s01, "object/static/structure/tatooine/shared_tato_imprv_bannerpole_s01.iff") object_static_structure_tatooine_shared_tato_imprv_flagpole_s01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_tato_imprv_flagpole_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/mun_corl_imprv_flagpole_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "clientdata/structure/tato_imprv_flagpole_s01.cdf", clientGameObjectType = 5, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "", gameObjectType = 5, lookAtText = "", noBuildRadius = 1, objectName = "@item_n:flag_corellia", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 1, totalCellNumber = 0, clientObjectCRC = 1474884262, derivedFromTemplates = {} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_tato_imprv_flagpole_s01, "object/static/structure/tatooine/shared_tato_imprv_flagpole_s01.iff") object_static_structure_tatooine_shared_tent_house_tatooine_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_tent_house_tatooine_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_tent_house_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1417975984, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_tent_house_tatooine_style_01, "object/static/structure/tatooine/shared_tent_house_tatooine_style_01.iff") object_static_structure_tatooine_shared_wall_archway_tatooine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_archway_tatooine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_archway_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 380331488, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_archway_tatooine_large_style_01, "object/static/structure/tatooine/shared_wall_archway_tatooine_large_style_01.iff") object_static_structure_tatooine_shared_wall_archway_tatooine_wide_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_archway_tatooine_wide_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_archway_wide_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 757634419, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_archway_tatooine_wide_style_01, "object/static/structure/tatooine/shared_wall_archway_tatooine_wide_style_01.iff") object_static_structure_tatooine_shared_wall_cleft_tatooine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_cleft_tatooine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_cleft_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3117988515, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_cleft_tatooine_large_style_01, "object/static/structure/tatooine/shared_wall_cleft_tatooine_large_style_01.iff") object_static_structure_tatooine_shared_wall_damaged_tatooine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_damaged_tatooine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_damaged_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3482982112, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_damaged_tatooine_large_style_01, "object/static/structure/tatooine/shared_wall_damaged_tatooine_large_style_01.iff") object_static_structure_tatooine_shared_wall_gate_tatooine_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_gate_tatooine_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wallgate_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3317597393, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_gate_tatooine_style_01, "object/static/structure/tatooine/shared_wall_gate_tatooine_style_01.iff") object_static_structure_tatooine_shared_wall_gate_tatooine_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_gate_tatooine_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wallgate_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 514403398, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_gate_tatooine_style_02, "object/static/structure/tatooine/shared_wall_gate_tatooine_style_02.iff") object_static_structure_tatooine_shared_wall_gate_tatooine_style_03 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_gate_tatooine_style_03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wallgate_s03.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1470385099, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_gate_tatooine_style_03, "object/static/structure/tatooine/shared_wall_gate_tatooine_style_03.iff") object_static_structure_tatooine_shared_wall_gate_tatooine_wide_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_gate_tatooine_wide_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wallgate_wide_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 107098437, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_gate_tatooine_wide_style_01, "object/static/structure/tatooine/shared_wall_gate_tatooine_wide_style_01.iff") object_static_structure_tatooine_shared_wall_junkshop_watto = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_junkshop_watto.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_jnkshp_wall.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:wall_junkshop_watto", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:wall_junkshop_watto", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3988863044, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_junkshop_watto, "object/static/structure/tatooine/shared_wall_junkshop_watto.iff") object_static_structure_tatooine_shared_wall_pristine_tatooine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_pristine_tatooine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2746619484, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_pristine_tatooine_large_style_01, "object/static/structure/tatooine/shared_wall_pristine_tatooine_large_style_01.iff") object_static_structure_tatooine_shared_wall_pristine_tatooine_large_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_pristine_tatooine_large_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2023866059, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_pristine_tatooine_large_style_02, "object/static/structure/tatooine/shared_wall_pristine_tatooine_large_style_02.iff") object_static_structure_tatooine_shared_wall_pristine_tatooine_small_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_pristine_tatooine_small_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_sml_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 2207965674, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_pristine_tatooine_small_style_01, "object/static/structure/tatooine/shared_wall_pristine_tatooine_small_style_01.iff") object_static_structure_tatooine_shared_wall_pristine_tatooine_tall_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_pristine_tatooine_tall_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_s03.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 1229804318, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_pristine_tatooine_tall_style_01, "object/static/structure/tatooine/shared_wall_pristine_tatooine_tall_style_01.iff") object_static_structure_tatooine_shared_wall_ruined_tatooine_large_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_ruined_tatooine_large_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_ruin_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 3589895396, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_ruined_tatooine_large_style_01, "object/static/structure/tatooine/shared_wall_ruined_tatooine_large_style_01.iff") object_static_structure_tatooine_shared_wall_ruined_tatooine_large_style_02 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_ruined_tatooine_large_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_ruin_s02.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 250535027, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_ruined_tatooine_large_style_02, "object/static/structure/tatooine/shared_wall_ruined_tatooine_large_style_02.iff") object_static_structure_tatooine_shared_wall_ruined_tatooine_small_style_01 = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/structure/tatooine/shared_wall_ruined_tatooine_small_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_tato_imprv_wall_sml_ruin_s01.apt", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 5, collisionActionBlockFlags = 255, collisionActionFlags = 1, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "@string_table:pristine wall", gameObjectType = 5, locationReservationRadius = 0, lookAtText = "@string_table:pristine wall", noBuildRadius = 0, objectName = "@obj_n:unknown_object", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, surfaceType = 2, totalCellNumber = 0, clientObjectCRC = 4124410706, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/static/base/shared_static_base.iff", "object/static/structure/base/shared_static_structure_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_static_structure_tatooine_shared_wall_ruined_tatooine_small_style_01, "object/static/structure/tatooine/shared_wall_ruined_tatooine_small_style_01.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/weaponskills/last_stand.lua
2
1864
----------------------------------- -- Last Stand -- Skill Level: 357 -- Description: Attacks once or twice, depending on remaining ammunition. Damage dealt varies with TP. -- If the first shot of the weapon skill does enough damage to defeat the target, the second shot will not be used. -- To obtain Last Stand, the quest Martial Mastery must be completed. -- This Weapon Skill's first hit fTP is duplicated for all additional hits. -- Aligned with the Flame Gorget, Light Gorget & Aqua Gorget. -- Properties -- Element: N/A -- Skillchain Properties: Fusion/Reverberation -- Modifiers: AGI:100% -- Damage Multipliers by TP: -- 100%TP 200%TP 300%TP -- 2.0 2.125 2.25 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/globals/weaponskills"); ----------------------------------- function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar) local params = {}; params.numHits = 2; params.ftp100 = 2; params.ftp200 = 2.125; params.ftp300 = 2.25; params.str_wsc = 0.0; params.dex_wsc = 0.0; params.vit_wsc = 0.0; params.agi_wsc = 0.85 + (player:getMerit(dsp.merit.LAST_STAND) / 100); params.int_wsc = 0.0; params.mnd_wsc = 0.0; params.chr_wsc = 0.0; params.crit100 = 0.0; params.crit200 = 0.0; params.crit300 = 0.0; params.canCrit = false; params.acc100 = 0.0; params.acc200= 0.0; params.acc300= 0.0; params.atkmulti = 1; params.multiHitfTP = true if (USE_ADOULIN_WEAPON_SKILL_CHANGES == true) then params.ftp200 = 3; params.ftp300 = 4; params.agi_wsc = 0.7 + (player:getMerit(dsp.merit.LAST_STAND) / 100); end local damage, criticalHit, tpHits, extraHits = doRangedWeaponskill(player, target, wsID, params, tp, primary, action); return tpHits, extraHits, criticalHit, damage; end;
gpl-3.0
russakkyo/GitHub
src/scripts/lua/Lua/0Misc/0LCF_Includes/LCF_Gameobject.lua
18
2928
--[[ * ArcEmu MMORPG Server * Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/> * Copyright (C) 2008-2010 <http://www.ArcEmu.org/> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. *]] local GAMEOBJECT = LCF.GOMethods assert(GAMEOBJECT) function GAMEOBJECT:SetUnclickable() self:SetUInt32Value(LCF.GAMEOBJECT_FLAGS,0x1) end function GAMEOBJECT:SetClickable() self:SetUInt32Value(LCF.GAMEOBJECT_FLAGS,0x0) end function GAMEOBJECT:IsUnclickable() local flags = self:SetUInt32Value(LCF.GAMEOBJECT_FLAGS,0x1) if(bit_and(flags,0x1) ) then return true end return false end function GAMEOBJECT:IsClickable() local flags = self:SetUInt32Value(LCF.GAMEOBJECT_FLAGS,0x1) if(bit_and(flags,0x1) == 0 or bit_and(flags, 0x2) ~= 0) then return true end return false end function GAMEOBJECT:Respawn() self:SetPosition(self:GetX(),self:GetY(),self:GetZ(),self:GetO()) end function GAMEOBJECT:Close() self:SetByte(LCF.GAMEOBJECT_BYTES_1,0,1) end function GAMEOBJECT:IsOpen() return (self:GetByte(LCF.GAMEOBJECT_BYTES_1,0) == 0) end function GAMEOBJECT:IsClosed() return (self:GetByte(LCF.GAMEOBJECT_BYTES_1,0) == 1) end function GAMEOBJECT:Open() self:SetByte(LCF.GAMEOBJECT_BYTES_1,0,0) end function GAMEOBJECT:RegisterLuaEvent(func,delay,repeats,...) self:RegisterEvent(LCF:CreateClosure(func,self,unpack(arg)),delay,repeats) end function GAMEOBJECT:SetCreator(creator) local guid = creator:GetGUID() self:SetUInt64Value(LCF.OBJECT_FIELD_CREATED_BY,guid) end function GAMEOBJECT:GetLocalCreature(entry) local x,y,z = self:GetLocation() local crc = self:GetCreatureNearestCoords(x,y,z,entry) return crc end function GAMEOBJECT:GetLocalGameObject(entry) local x,y,z = self:GetLocation() local go = self:GetGameObjectNearestCoords(x,y,z,entry) return go end function GAMEOBJECT:SpawnLocalCreature(entry,faction,duration) local x,y,z,o = self:GetLocation() self:SpawnCreature(entry,x,y,z,o,faction,duration) end function GAMEOBJECT:SpawnLocalGameObject(entry,duration) local x,y,z,o = self:GetLocation() self:SpawnGameObject(entry,x,y,z,o,duration) end function GAMEOBJECT:GetCreator() local creator_guid = self:GetUInt64Value(LCF.UNIT_FIELD_CREATEDBY) if(creator_guid == nil) then creator_guid = self:GetUInt64Value(LCF.UNIT_FIELD_SUMMONEDBY) end return self:GetObject(creator_guid) end
agpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/rori/rorgungan_boss.lua
1
1124
rorgungan_boss = Creature:new { objectName = "@mob/creature_names:rorgungan_boss", socialGroup = "rorgungan", pvpFaction = "rorgungan", faction = "rorgungan", level = 22, chanceHit = 0.330000, damageMin = 190, damageMax = 200, baseXp = 2006, baseHAM = 5000, baseHAMmax = 6100, armor = 0, resists = {25,25,0,-1,30,0,-1,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0.000000, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK + HERD, diet = HERBIVORE, templates = {"object/mobile/gungan_s03_male.iff"}, lootGroups = { { groups = { {group = "junk", chance = 5500000}, {group = "gungan_common", chance = 2000000}, {group = "tailor_components", chance = 500000}, {group = "loot_kit_parts", chance = 1500000}, {group = "color_crystals", chance = 250000}, {group = "crystals_poor", chance = 250000} }, lootChance = 3200000 } }, weapons = {}, attacks = merge(brawlernovice,marksmannovice) } CreatureTemplates:addCreatureTemplate(rorgungan_boss, "rorgungan_boss")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/ship/player/player_blacksun_light_s01.lua
3
2236
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_ship_player_player_blacksun_light_s01 = object_ship_player_shared_player_blacksun_light_s01:new { } ObjectTemplates:addTemplate(object_ship_player_player_blacksun_light_s01, "object/ship/player/player_blacksun_light_s01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/lair/laa/serverobjects.lua
3
2151
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --Children folder includes -- Server Objects includeFile("tangible/lair/laa/lair_laa.lua") includeFile("tangible/lair/laa/lair_laa_underwater.lua")
lgpl-3.0
eraffxi/darkstar
scripts/zones/Port_San_dOria/npcs/Answald.lua
2
1169
----------------------------------- -- Area: Port San d'Oria -- NPC: Answald -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/quests"); function onTrade(player,npc,trade) if (player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) == QUEST_ACCEPTED) then if (trade:hasItemQty(532,1) and trade:getItemCount() == 1 and player:getVar("tradeAnswald") == 0) then player:messageSpecial(ANSWALD_DIALOG); player:messageSpecial(FLYER_ACCEPTED); player:tradeComplete(); player:setVar("FFR",player:getVar("FFR") - 1); player:setVar("tradeAnswald",1); player:messageSpecial(FLYERS_HANDED, 17 - player:getVar("FFR")); elseif (player:getVar("tradeAnswald") ==1) then player:messageSpecial(FLYER_ALREADY); end end end; function onTrigger(player,npc) player:startEvent(584); end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) end;
gpl-3.0
Whit3Tig3R/telegrambot2
plugins/qr.lua
637
1730
--[[ * qr plugin uses: * - http://goqr.me/api/doc/create-qr-code/ * psykomantis ]] local function get_hex(str) local colors = { red = "f00", blue = "00f", green = "0f0", yellow = "ff0", purple = "f0f", white = "fff", black = "000", gray = "ccc" } for color, value in pairs(colors) do if color == str then return value end end return str end local function qr(receiver, text, color, bgcolor) local url = "http://api.qrserver.com/v1/create-qr-code/?" .."size=600x600" --fixed size otherways it's low detailed .."&data="..URL.escape(text:trim()) if color then url = url.."&color="..get_hex(color) end if bgcolor then url = url.."&bgcolor="..get_hex(bgcolor) end local response, code, headers = http.request(url) if code ~= 200 then return "Oops! Error: " .. code end if #response > 0 then send_photo_from_url(receiver, url) return end return "Oops! Something strange happened :(" end local function run(msg, matches) local receiver = get_receiver(msg) local text = matches[1] local color local back if #matches > 1 then text = matches[3] color = matches[2] back = matches[1] end return qr(receiver, text, color, back) end return { description = {"qr code plugin for telegram, given a text it returns the qr code"}, usage = { "!qr [text]", '!qr "[background color]" "[data color]" [text]\n' .."Color through text: red|green|blue|purple|black|white|gray\n" .."Colors through hex notation: (\"a56729\" is brown)\n" .."Or colors through decimals: (\"255-192-203\" is pink)" }, patterns = { '^!qr "(%w+)" "(%w+)" (.+)$', "^!qr (.+)$" }, run = run }
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/item/component/serverobjects.lua
3
2528
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --Children folder includes -- Server Objects includeFile("draft_schematic/item/component/item_electronic_control_unit.lua") includeFile("draft_schematic/item/component/item_electronic_energy_distributor.lua") includeFile("draft_schematic/item/component/item_electronic_power_conditioner.lua") includeFile("draft_schematic/item/component/item_electronics_gp_module.lua") includeFile("draft_schematic/item/component/item_electronics_memory_module.lua") includeFile("draft_schematic/item/component/item_micro_sensor_suite.lua")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/space/special_loot/objects.lua
3
19412
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --which carries forward this exception. object_tangible_space_special_loot_shared_encoded_document = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_encoded_document.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:encoded_document", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:encoded_document", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1384769825, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_encoded_document, "object/tangible/space/special_loot/shared_encoded_document.iff") object_tangible_space_special_loot_shared_firespray_schematic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_tool_engineering_analysis_board.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_item_ingredients_d:firespray_schematic", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@craft_item_ingredients_n:firespray_schematic", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3265273647, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic, "object/tangible/space/special_loot/shared_firespray_schematic.iff") object_tangible_space_special_loot_shared_firespray_schematic_part1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3529502508, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part1, "object/tangible/space/special_loot/shared_firespray_schematic_part1.iff") object_tangible_space_special_loot_shared_firespray_schematic_part2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 155731899, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part2, "object/tangible/space/special_loot/shared_firespray_schematic_part2.iff") object_tangible_space_special_loot_shared_firespray_schematic_part3 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part3.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part3", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1078272054, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part3, "object/tangible/space/special_loot/shared_firespray_schematic_part3.iff") object_tangible_space_special_loot_shared_firespray_schematic_part4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part4.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part4", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3148221218, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part4, "object/tangible/space/special_loot/shared_firespray_schematic_part4.iff") object_tangible_space_special_loot_shared_firespray_schematic_part5 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part5.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part5", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4071320751, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part5, "object/tangible/space/special_loot/shared_firespray_schematic_part5.iff") object_tangible_space_special_loot_shared_firespray_schematic_part6 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part6.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part6", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 700236856, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part6, "object/tangible/space/special_loot/shared_firespray_schematic_part6.iff") object_tangible_space_special_loot_shared_firespray_schematic_part7 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part7.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part7", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1622254517, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part7, "object/tangible/space/special_loot/shared_firespray_schematic_part7.iff") object_tangible_space_special_loot_shared_firespray_schematic_part8 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part8.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_data_disk.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@space_item_d:firespray_schematic_part", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@space_item_n:firespray_schematic_part8", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3669725095, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part8, "object/tangible/space/special_loot/shared_firespray_schematic_part8.iff")
lgpl-3.0
isdom/kong
kong/plugins/hmac-auth/api.lua
5
1529
local crud = require "kong.api.crud_helpers" return{ ["/consumers/:username_or_id/hmac-auth/"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id end, GET = function(self, dao_factory, helpers) crud.paginated_set(self, dao_factory.hmacauth_credentials) end, PUT = function(self, dao_factory) crud.put(self.params, dao_factory.hmacauth_credentials) end, POST = function(self, dao_factory) crud.post(self.params, dao_factory.hmacauth_credentials) end }, ["/consumers/:username_or_id/hmac-auth/:id"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id local data, err = dao_factory.hmacauth_credentials:find_by_keys({ id = self.params.id }) if err then return helpers.yield_error(err) end self.credential = data[1] if not self.credential then return helpers.responses.send_HTTP_NOT_FOUND() end end, GET = function(self, dao_factory, helpers) return helpers.responses.send_HTTP_OK(self.credential) end, PATCH = function(self, dao_factory) crud.patch(self.params, self.credential, dao_factory.hmacauth_credentials) end, DELETE = function(self, dao_factory) crud.delete(self.credential, dao_factory.hmacauth_credentials) end } }
apache-2.0
kidaa/Awakening-Core3
bin/scripts/object/soundobject/soundobject_cantina_small.lua
3
2236
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_soundobject_soundobject_cantina_small = object_soundobject_shared_soundobject_cantina_small:new { } ObjectTemplates:addTemplate(object_soundobject_soundobject_cantina_small, "object/soundobject/soundobject_cantina_small.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_spice_collective_miner_human_female_01.lua
3
2300
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_dressed_spice_collective_miner_human_female_01 = object_mobile_shared_dressed_spice_collective_miner_human_female_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_spice_collective_miner_human_female_01, "object/mobile/dressed_spice_collective_miner_human_female_01.iff")
lgpl-3.0
NezzKryptic/Wire
lua/wire/gates/string.lua
5
9975
--[[ String gates ! :P ]] local MAX_LEN = 1024*1024 -- max string length of 1MB GateActions("String") GateActions["string_ceq"] = { name = "Equal", inputs = { "A" , "B" }, inputtypes = { "STRING" , "STRING" }, output = function(gate, A, B) if A == B then return 1 else return 0 end end, label = function(Out, A, B) return string.format ("(%s == %s) = %d", A, B, Out) end } GateActions["string_cineq"] = { name = "Inequal", inputs = { "A" , "B" }, inputtypes = { "STRING" , "STRING" }, output = function(gate, A, B) if A ~= B then return 1 else return 0 end end, label = function(Out, A, B) return string.format ("(%s != %s) = %d", A, B, Out) end } GateActions["string_index"] = { name = "Index", inputs = { "A" , "Index" }, inputtypes = { "STRING" , "NORMAL" }, outputtypes = { "STRING" }, output = function(gate, A, B) if !A then A = "" end if !B then B = 0 end return string.sub(A,B,B) end, label = function(Out, A, B) return string.format ("index(%s , %s) = %q", A, B, Out) end } GateActions["string_length"] = { name = "Length", inputs = { "A" }, inputtypes = { "STRING" }, output = function(gate, A) if !A then A = "" end return #A end, label = function(Out, A) return string.format ("length(%s) = %d", A, Out) end } GateActions["string_upper"] = { name = "Uppercase", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "STRING" }, output = function(gate, A) if !A then A = "" end return string.upper(A) end, label = function(Out, A) return string.format ("upper(%s) = %q", A, Out) end } GateActions["string_lower"] = { name = "Lowercase", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "STRING" }, output = function(gate, A) if !A then A = "" end return string.lower(A) end, label = function(Out, A) return string.format ("lower(%s) = %q", A, Out) end } GateActions["string_sub"] = { name = "Substring", inputs = { "A" , "Start" , "End" }, inputtypes = { "STRING" , "NORMAL" , "NORMAL" }, outputtypes = { "STRING" }, output = function(gate, A, B, C) if !A then A = "" end if !B then B = 1 end -- defaults to start of string if !C then C = -1 end -- defaults to end of string return string.sub(A,B,C) end, label = function(Out, A, B, C) return string.format ("%s:sub(%s , %s) = %q", A, B, C, Out) end } GateActions["string_explode"] = { name = "Explode", inputs = { "A" , "Separator" }, inputtypes = { "STRING" , "STRING" }, outputtypes = { "ARRAY" }, output = function(gate, A, B) if !A then A = "" end if !B then B = "" end return string.Explode(B,A) end, label = function(Out, A, B) return string.format ("explode(%s , %s)", A, B) end } GateActions["string_find"] = { name = "Find", inputs = { "A", "B", "StartIndex" }, inputtypes = { "STRING", "STRING" }, outputtypes = { "NORMAL" }, outputs = { "Out" }, output = function(gate, A, B, StartIndex) local r,_ = string.find(A,B,StartIndex,true) return r or 0 end, label = function(Out, A, B) if istable(Out) then Out = Out.Out end return string.format ("find(%s , %s) = %d", A, B, Out) end } GateActions["string_concat"] = { name = "Concatenate", inputs = { "A" , "B" , "C" , "D" , "E" , "F" , "G" , "H" }, inputtypes = { "STRING" , "STRING" , "STRING" , "STRING" , "STRING" , "STRING" , "STRING" , "STRING" }, outputtypes = { "STRING" }, output = function(gate, A, B, C, D, E, F, G, H) if (A and #A or 0) + (B and #B or 0) + (C and #C or 0) + (D and #D or 0) + (E and #E or 0) + (F and #F or 0) + (G and #G or 0) + (H and #H or 0) > MAX_LEN then return false end local T = {A,B,C,D,E,F,G,H} return table.concat(T) end, label = function(Out) return string.format ("concat = %q", Out) end } GateActions["string_trim"] = { name = "Trim", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "STRING" }, output = function(gate, A) if !A then A = "" end return string.Trim(A) end, label = function(Out, A) return string.format ("trim(%s) = %q", A, Out) end } GateActions["string_replace"] = { name = "Replace", inputs = { "String" , "ToBeReplaced" , "Replacer" }, inputtypes = { "STRING" , "STRING" , "STRING" }, outputtypes = { "STRING" }, output = function(gate, A, B, C) if !A then A = "" end if !B then B = "" end if !C then C = "" end return string.gsub(A,B,C) end, label = function(Out, A, B, C) return string.format ("%s:replace(%s , %s) = %q", A, B, C, Out) end } GateActions["string_reverse"] = { name = "Reverse", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "STRING" }, output = function(gate, A) if !A then A = "" end return string.reverse(A) end, label = function(Out, A) return string.format ("reverse(%s) = %q", A, Out) end } GateActions["string_tonum"] = { name = "To Number", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "NORMAL" }, output = function(gate, A) if !A then A = "" end return tonumber(A) end, label = function(Out, A) return string.format ("tonumber(%s) = %d", A, Out) end } GateActions["string_tostr"] = { name = "Number to String", inputs = { "A" }, inputtypes = { "NORMAL" }, outputtypes = { "STRING" }, output = function(gate, A) if !A then A = 0 end return tostring(A) end, label = function(Out, A) return string.format ("tostring(%s) = %q", A, Out) end } GateActions["string_tobyte"] = { name = "To Byte", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "NORMAL" }, output = function(gate, A) if !A then A = "" end return string.byte(A) end, label = function(Out, A) return string.format ("tobyte(%s) = %d", A, Out) end } GateActions["string_tochar"] = { name = "To Character", inputs = { "A" }, inputtypes = { "NORMAL" }, outputtypes = { "STRING" }, output = function(gate, A) if !A then A = 0 end return string.char(A) end, label = function(Out, A) return string.format ("tochar(%s) = %q", A, Out) end } GateActions["string_repeat"] = { name = "Repeat", inputs = { "A" , "Num"}, inputtypes = { "STRING" , "NORMAL" }, outputtypes = { "STRING" }, output = function(gate, A, B) if !A then A = "" end if !B or B<1 then B = 1 end if B * #A > MAX_LEN then return false end return string.rep(A,B) end, label = function(Out, A) return string.format ("repeat(%s) = %q", A, Out) end } GateActions["string_ident"] = { name = "Identity", inputs = { "A" }, inputtypes = { "STRING" }, outputtypes = { "STRING" }, output = function(gate, A ) return A end, label = function(Out, A) return string.format ("%s = %s", A, Out) end } GateActions["string_select"] = { name = "Select", inputs = { "Choice", "A", "B", "C", "D", "E", "F", "G", "H" }, inputtypes = { "NORMAL", "STRING", "STRING", "STRING", "STRING", "STRING", "STRING", "STRING", "STRING" }, outputtypes = { "STRING" }, output = function(gate, Choice, ...) return ({...})[math.Clamp(Choice,1,8)] end, label = function(Out, Choice) return string.format ("select(%s) = %s", Choice, Out) end } GateActions["string_to_memory"] = { name = "String => Memory", inputs = { "A" }, inputtypes = { "STRING" }, outputs = { "Memory" }, reset = function(gate) gate.stringQueued = false gate.stringChanged = false gate.currentString = "" end, output = function(gate, A) if (A ~= gate.currentString) then if (not gate.stringChanged) then gate.stringChanged = true gate.currentString = A gate.stringQueued = false else gate.stringQueued = true end end return gate.Outputs["Memory"].Value --This will prevent Wire_TriggerOutput from changing anything end, ReadCell = function(self, gate, Address) if (Address == 0) then --Clk if (gate.stringChanged) then return 1 else return 0 end elseif (Address == 1) then --String length return #(gate.currentString) else --Return string bytes local index = Address - 1 if (index > #(gate.currentString)) then -- Check whether requested address is outside the string return 0 else return string.byte(gate.currentString, index) end end end, WriteCell = function(self, gate, Address, value) if (Address == 0) and (value == 0) then --String got accepted gate.stringChanged = false if gate.stringQueued then --Get queued string gate.stringQueued = false gate.currentString = gate.Inputs["A"].Value gate.stringChanged = true end return true else return false end end } GateActions["string_from_memory"] = { name = "Memory => String", inputs = {}, outputs = { "Out", "Memory" }, outputtypes = { "STRING", "NORMAL" }, reset = function(gate) --initialize the gate gate.memory = {} gate.stringLength = 0 gate.currentString = "" gate.ready = true end, output = function(gate) return gate.currentString, gate.Outputs["Memory"].Value end, ReadCell = function(self, gate, address) if (address == 0) then return 0 elseif (address == 1) then return gate.stringLength else return gate.memory[address-1] or 0 -- "or 0" to prevent it from returning nil if index is outside the array end end, WriteCell = function(self, gate, address, value) if (value >= 0) then if (address == 0) and (value == 1) then -- Clk has been set local maxIndex = gate.stringLength for i=1,gate.stringLength,1 do if not gate.memory[i] then maxIndex = i-1 break end end gate.currentString = string.char(unpack(gate.memory, 1, maxIndex)) gate:CalcOutput() return true elseif (address == 1) then -- Set string length gate.stringLength = math.floor(value) return true elseif (address > 1) then -- Set memory cell gate.memory[address-1] = math.floor(value) return true end end return false; -- if (value < 0) or ((address == 0) and (value != 1)) end } GateActions()
apache-2.0
eraffxi/darkstar
scripts/zones/Port_Bastok/npcs/Ensetsu.lua
2
2876
----------------------------------- -- Area: Port Bastok -- NPC: Ensetsu -- Finish Quest: Ayame and Kaede -- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box -- !pos 33 -6 67 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Bastok/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/globals/status"); require("scripts/globals/titles"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) AyameAndKaede = player:getQuestStatus(BASTOK,AYAME_AND_KAEDE); if (AyameAndKaede == QUEST_ACCEPTED) then questStatus = player:getVar("AyameAndKaede_Event") if ((questStatus == 1 or questStatus == 2) and player:hasKeyItem(dsp.ki.STRANGELY_SHAPED_CORAL) == false) then player:startEvent(242); elseif (questStatus == 2 and player:hasKeyItem(dsp.ki.STRANGELY_SHAPED_CORAL) == true) then player:startEvent(245); elseif (questStatus == 3) then player:startEvent(243); elseif (player:hasKeyItem(dsp.ki.SEALED_DAGGER)) then player:startEvent(246,dsp.ki.SEALED_DAGGER); else player:startEvent(27); end elseif (AyameAndKaede == QUEST_COMPLETED and player:getQuestStatus(OUTLANDS,TWENTY_IN_PIRATE_YEARS) == QUEST_AVAILABLE) then player:startEvent(247); elseif (player:getVar("twentyInPirateYearsCS") == 2) then player:startEvent(262); elseif (player:getVar("twentyInPirateYearsCS") == 4) then player:startEvent(263); elseif (player:getQuestStatus(OUTLANDS,I_LL_TAKE_THE_BIG_BOX) == QUEST_ACCEPTED and player:getVar("illTakeTheBigBoxCS") == 0) then player:startEvent(264); elseif (player:getVar("illTakeTheBigBoxCS") == 1) then player:startEvent(265); else player:startEvent(27); end end; -- 27 0x00f0 242 243 245 246 247 262 263 264 265 0x0105 function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 242) then player:setVar("AyameAndKaede_Event", 2); elseif (csid == 245) then player:setVar("AyameAndKaede_Event", 3); elseif (csid == 246) then player:delKeyItem(dsp.ki.SEALED_DAGGER); player:addTitle(dsp.title.SHADOW_WALKER); player:unlockJob(dsp.job.NIN); player:messageSpecial(UNLOCK_NINJA); player:setVar("AyameAndKaede_Event", 0); player:addFame(BASTOK, 30); player:completeQuest(BASTOK,AYAME_AND_KAEDE); elseif (csid == 262) then player:setVar("twentyInPirateYearsCS",3); elseif (csid == 264) then player:setVar("illTakeTheBigBoxCS",1); end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/commands/healthShot2.lua
1
2678
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --which carries forward this exception. --true = 1, false = 0 HealthShot2Command = { name = "healthshot2", damageMultiplier = 3.0, speedMultiplier = 2.0, healthCostMultiplier = 0.5, actionCostMultiplier = 1.0, mindCostMultiplier = 0.5, accuracyBonus = 50, poolsToDamage = HEALTH_ATTRIBUTE, animationCRC = hashCode("fire_1_special_single_light"), combatSpam = "sapblast", stateEffects = { StateEffect( HEALTHDEGRADE_EFFECT, {}, {}, {}, 100, 100, 30 ) }, dotEffects = { DotEffect( BLEEDING, { "resistance_bleeding", "bleed_resist" }, HEALTH, true, 125, 100, 60, 60 ) }, range = -1 } AddCommand(HealthShot2Command)
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/pigmy_pugoriss.lua
3
2172
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_pigmy_pugoriss = object_mobile_shared_pigmy_pugoriss:new { } ObjectTemplates:addTemplate(object_mobile_pigmy_pugoriss, "object/mobile/pigmy_pugoriss.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/screenplays/caves/talus_giant_fynock_cave.lua
1
9173
TalusGiantFynockCaveScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "TalusGiantFynockCaveScreenPlay", lootContainers = { 7955671, 7955670, 7955663, 7955708, 7955728, 7955686 }, lootLevel = 25, lootGroups = { { groups = { {group = "color_crystals", chance = 160000}, {group = "junk", chance = 8240000}, {group = "melee_weapons", chance = 1000000}, {group = "clothing_attachments", chance = 300000}, {group = "armor_attachments", chance = 300000} }, lootChance = 8000000 } }, lootContainerRespawn = 1800 } registerScreenPlay("TalusGiantFynockCaveScreenPlay", true) function TalusGiantFynockCaveScreenPlay:start() if (isZoneEnabled("talus")) then self:spawnMobiles() self:initializeLootContainers() end end function TalusGiantFynockCaveScreenPlay:spawnMobiles() spawnMobile("talus", "fearful_fynock_youth", 300, 1550.4, 43.9, -912.0, -55, 0) spawnMobile("talus", "fearful_fynock_youth", 300, 1551.5, 43.2, -904.0, -150, 0) spawnMobile("talus", "fearful_fynock_youth", 300, 1543.8, 43.6, -907.4, 98, 0) spawnMobile("talus", "fearful_fynock_youth", 300, 1536.4, 40.4, -841.2, -32, 0) spawnMobile("talus", "fearful_fynock_youth", 300, 1527.7, 40.3, -839.5, 66, 0) spawnMobile("talus", "fearful_fynock_youth", 300, 1531.4, 40.0, -828.7, 152, 0) spawnMobile("talus", "clipped_fynock", 300, 1538.9, 42.5, -870.0, 24, 0) spawnMobile("talus", "clipped_fynock", 300, 1536.4, 42.3, -859.0, 124, 0) spawnMobile("talus", "fynock", 300, 1548.6, 42.7, -867.7, -55, 0) spawnMobile("talus", "frenzied_fynock_guardian", 300, 1570.4, 44.6, -868.4, -87, 0) spawnMobile("talus", "frenzied_fynock_guardian", 300, 9.1, -7.9, -9.4, -51, 5625516) spawnMobile("talus", "frenzied_fynock_guardian", 300, 11.7, -15.5, -27.6, -55, 5625517) spawnMobile("talus", "frenzied_fynock_guardian", 300, -10.3, -22.8, -27.5, -4, 5625517) spawnMobile("talus", "frenzied_fynock_guardian", 300, -8.2, -32.3, -59.3, -2, 5625518) spawnMobile("talus", "clipped_fynock", 300, 13.2, -32.2, -78.2, -117, 5625518) spawnMobile("talus", "clipped_fynock", 300, 9.9, -32.5, -76.1, -3, 5625518) spawnMobile("talus", "clipped_fynock", 300, 13.2, -32.2, -78.2, -117, 5625518) spawnMobile("talus", "fynock", 300, 9.0, -32.7, -72.0, 9, 5625518) spawnMobile("talus", "fynock", 300, 17.9, -32.9, -72.3, -125, 5625518) spawnMobile("talus", "fynock", 300, 46.6, -38.8, -51.1, -166, 5625519) spawnMobile("talus", "fynock", 300, 49.9, -38.9, -57.2, -145, 5625519) spawnMobile("talus", "feared_fynock_youth", 300, 51.8, -37.9, -91.5, -135, 5625519) spawnMobile("talus", "feared_fynock_youth", 300, 52.5, -37.8, -97.3, 175, 5625519) spawnMobile("talus", "feared_fynock_youth", 300, 50.8, -37.2, -102.4, -55, 5625519) spawnMobile("talus", "feared_fynock_youth", 300, 40.2, -38.0, -99.7, 60, 5625519) spawnMobile("talus", "feared_fynock_youth", 300, 45.1, -38.6, -89.9, 134, 5625519) spawnMobile("talus", "glutted_fynock_queen", 300, -9.1, -37.7, -147.4, 31, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, -4.0, -38.1, -148.4, -58, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 2.0, -37.0, -144.1, -63, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 1.7, -36.8, -137.5, -57, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, -12.7, -36.1, -136.2, 79, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 1.3, -36.7, -130.6, 59, 5625520) spawnMobile("talus", "fynock", 300, 70.2, -37.0, -122.8, -128, 5625520) spawnMobile("talus", "fynock", 300, 66.3, -37.2, -120.2, -172, 5625520) spawnMobile("talus", "fynock", 300, 63.2, -38.3, -123.4, 95, 5625520) spawnMobile("talus", "fynock", 300, 65.8, -39.1, -128.0, 17, 5625520) spawnMobile("talus", "fynock", 300, 72.0, -37.7, -126.5, -47, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 58.7, -48.8, -176.6, 71, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 60.7, -49.2, -181.3, 33, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 63.5, -49.1, -181.4, -29, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 65.5, -49.1, -178.6, -85, 5625520) spawnMobile("talus", "frenzied_fynock_guardian", 300, 64.8, -49.2, -174.7, -139, 5625520) spawnMobile("talus", "glutted_fynock_queen", 300, 62.0, -48.8, -178.1, -28, 5625520) spawnMobile("talus", "glutted_fynock_queen", 300, -10.8, -55.1, -261.8, -38, 5625522) spawnMobile("talus", "frenzied_fynock_guardian", 300, -23.9, -55.4, -257.1, 14, 5625522) spawnMobile("talus", "frenzied_fynock_guardian", 300, -20.7, -57.7, -241.6, 38, 5625522) spawnMobile("talus", "frenzied_fynock_guardian", 300, -4.5, -56.9, -241.1, -23, 5625522) spawnMobile("talus", "frenzied_fynock_guardian", 300, -1.3, -55.8, -231.3, -48, 5625522) spawnMobile("talus", "frenzied_fynock_guardian", 300, -18.7, -56.7, -220.1, 42, 5625522) spawnMobile("talus", "frenzied_fynock_guardian", 300, -6.0, -57.6, -209.5, -39, 5625522) spawnMobile("talus", "fynock", 300, -61.1, -62.0, -195.6, 30, 5625523) spawnMobile("talus", "fynock", 300, -55.6, -62.0, -195.3, -15, 5625523) spawnMobile("talus", "fynock", 300, -55.7, -63.0, -182.7, -143, 5625523) spawnMobile("talus", "fynock", 300, -61.0, -61.3, -161.9, -118, 5625523) spawnMobile("talus", "fynock", 300, -66.7, -62.2, -160.5, 134, 5625523) spawnMobile("talus", "fynock", 300, -66.0, -61.6, -168.2, 24, 5625523) spawnMobile("talus", "fynock", 300, -86.6, -64.3, -171.5, -89, 5625523) spawnMobile("talus", "fynock", 300, -87.9, -65.1, -176.5, -75, 5625523) spawnMobile("talus", "fynock", 300, -95.1, -64.4, -180.6, -25, 5625523) spawnMobile("talus", "fynock", 300, -101.4, -63.8, -178.1, 38, 5625523) spawnMobile("talus", "fynock", 300, -105.7, -62.8, -172.3, 63, 5625523) spawnMobile("talus", "fynock", 300, -101.6, -64.8, -162.5, 125, 5625523) spawnMobile("talus", "fynock", 300, -90.4, -65.4, -163.2, -143, 5625523) spawnMobile("talus", "clipped_fynock", 300, -93.7, -66.0, -167.7, -143, 5625523) spawnMobile("talus", "clipped_fynock", 300, -91.6, -65.3, -172.6, -85, 5625523) spawnMobile("talus", "clipped_fynock", 300, -96.5, -64.7, -177.8, -21, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -103.5, -61.2, -131.7, -161, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -108.3, -61.6, -126.7, -93, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -102.2, -62.3, -122.4, 0, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -95.0, -62.4, -125.7, 76, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -98.5, -61.4, -132.3, 143, 5625523) spawnMobile("talus", "fearful_fynock_youth", 300, -103.9, -62.5, -124.7, 140, 5625523) spawnMobile("talus", "fearful_fynock_youth", 300, -99.8, -62.4, -124.2, -151, 5625523) spawnMobile("talus", "fearful_fynock_youth", 300, -100.7, -62.0, -129.7, -20, 5625523) spawnMobile("talus", "fynock", 300, -65.9, -62.8, -85.6, -114, 5625524) spawnMobile("talus", "fynock", 300, -62.8, -60.7, -97.4, -115, 5625524) spawnMobile("talus", "fynock", 300, -61.7, -60.5, -107.9, -131, 5625524) spawnMobile("talus", "fynock", 300, -51.7, -60.8, -112.7, -142, 5625524) spawnMobile("talus", "fynock", 300, -53.8, -60.6, -102.5, -42, 5625524) spawnMobile("talus", "fynock", 300, -57.4, -61.3, -91.8, -3, 5625524) spawnMobile("talus", "fynock", 300, -53.1, -61.3, -79.0, 37, 5625524) spawnMobile("talus", "fynock", 300, -43.8, -61.9, -86.9, -16, 5625524) spawnMobile("talus", "fynock", 300, -40.8, -62.0, -98.4, 69, 5625524) spawnMobile("talus", "fynock", 300, -39.3, -61.9, -112.7, -52, 5625524) spawnMobile("talus", "fynock", 300, -28.3, -61.9, -111.6, 41, 5625524) spawnMobile("talus", "fynock", 300, -25.4, -61.1, -103.0, -49, 5625524) spawnMobile("talus", "fynock", 300, -30.8, -62.6, -83.8, -94, 5625524) spawnMobile("talus", "frenzied_fynock_guardian", 300, -24.1, -71.8, -145.7, -25, 5625525) spawnMobile("talus", "frenzied_fynock_guardian", 300, -18.9, -71.0, -139.9, -57, 5625525) spawnMobile("talus", "frenzied_fynock_guardian", 300, -18.9, -69.4, -132.0, -75, 5625525) spawnMobile("talus", "frenzied_fynock_guardian", 300, -28.2, -69.7, -131.3, -6, 5625525) spawnMobile("talus", "frenzied_fynock_guardian", 300, -32.4, -72.3, -143.2, -103, 5625525) spawnMobile("talus", "glutted_fynock_queen", 300, -73.3, -91.3, -160.7, 30, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -68.1, -88.5, -155.7, 26, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -74.1, -90.8, -151.7, -33, 5625523) spawnMobile("talus", "frenzied_fynock_guardian", 300, -83.3, -91.0, -154.4, 156, 5625523) spawnMobile("talus", "giant_fynock", 300, -91.9, -92.9, -97.5, 175, 5625526) end
lgpl-3.0
eraffxi/darkstar
scripts/globals/items/caestus.lua
2
2073
----------------------------------------- -- ID: 18263 -- Item: Caestus ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPONSKILL = "AFTERMATH_CAESTUS"; local NAME_EFFECT_LOSE = "AFTERMATH_LOST_CAESTUS"; -- https://www.bg-wiki.com/bg/Relic_Aftermath local aftermathTable = {}; -- Caestus 75 aftermathTable[18263] = { power=1, duration = function(tp) return math.floor(0.02 * tp); end, mods = { { id=dsp.mod.SUBTLE_BLOW, power=10 } } }; function onWeaponskill(user, target, wsid, tp, action) if (wsid == dsp.ws.FINAL_HEAVEN) then -- Final Heaven onry local itemId = user:getEquipID(dsp.slot.MAIN); if (aftermathTable[itemId]) then -- Apply the effect and add mods addAftermathEffect(user, tp, aftermathTable[itemId]); -- Add a listener for when aftermath wears (to remove mods) user:addListener("EFFECT_LOSE", NAME_EFFECT_LOSE, aftermathLost); end end end function aftermathLost(target, effect) if (effect:getType() == dsp.effect.AFTERMATH) then local itemId = target:getEquipID(dsp.slot.MAIN); if (aftermathTable[itemId]) then -- Remove mods removeAftermathEffect(target, aftermathTable[itemId]); -- Remove the effect listener target:removeListener(NAME_EFFECT_LOSE); end end end function onItemCheck(player, param, caster) if (param == dsp.itemCheck.EQUIP) then player:addListener("WEAPONSKILL_USE", NAME_WEAPONSKILL, onWeaponskill); elseif (param == dsp.itemCheck.UNEQUIP) then -- Make sure we clean up the effect and mods if (player:hasStatusEffect(dsp.effect.AFTERMATH)) then aftermathLost(player, player:getStatusEffect(dsp.effect.AFTERMATH)); end player:removeListener(NAME_WEAPONSKILL); end return 0; end
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/commands/insertItemIntoShipComponentSlot.lua
4
2186
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --which carries forward this exception. --true = 1, false = 0 InsertItemIntoShipComponentSlotCommand = { name = "insertitemintoshipcomponentslot", } AddCommand(InsertItemIntoShipComponentSlotCommand)
lgpl-3.0
eraffxi/darkstar
scripts/globals/weaponskills/blade_to.lua
2
1288
----------------------------------- -- Blade To -- Katana weapon skill -- Skill Level: 100 -- Deals ice elemental damage. Damage varies with TP. -- Aligned with the Snow Gorget & Breeze Gorget. -- Aligned with the Snow Belt & Breeze Belt. -- Element: Ice -- Modifiers: STR:30% ; INT:30% -- 100%TP 200%TP 300%TP -- 0.50 0.75 1.00 ----------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/globals/weaponskills"); ----------------------------------- function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar) local params = {}; params.ftp100 = 0.5; params.ftp200 = 0.75; params.ftp300 = 1; params.str_wsc = 0.3; params.dex_wsc = 0.0; params.vit_wsc = 0.0; params.agi_wsc = 0.0; params.int_wsc = 0.3; params.mnd_wsc = 0.0; params.chr_wsc = 0.0; params.ele = dsp.magic.ele.ICE; params.skill = dsp.skill.KATANA; params.includemab = true; if (USE_ADOULIN_WEAPON_SKILL_CHANGES == true) then params.str_wsc = 0.4; params.int_wsc = 0.4; end local damage, criticalHit, tpHits, extraHits = doMagicWeaponskill(player, target, wsID, tp, primary, action, params); return tpHits, extraHits, criticalHit, damage; end
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/ithorian/ith_pants_s08.lua
3
3451
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_ithorian_ith_pants_s08 = object_tangible_wearables_ithorian_shared_ith_pants_s08:new { playerRaces = { "object/creature/player/ithorian_male.iff", "object/creature/player/ithorian_female.iff", "object/mobile/vendor/ithorian_female.iff", "object/mobile/vendor/ithorian_male.iff" }, numberExperimentalProperties = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalProperties = {"XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints", "mod_idx_one", "mod_val_one", "mod_idx_two", "mod_val_two", "mod_idx_three", "mod_val_three", "mod_idx_four", "mod_val_four", "mod_idx_five", "mod_val_five", "mod_idx_six", "mod_val_six"}, experimentalMin = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalMax = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_wearables_ithorian_ith_pants_s08, "object/tangible/wearables/ithorian/ith_pants_s08.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/screenplays/caves/tatooine_hutt_hideout.lua
3
6260
HuttHideoutScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "HuttHideoutScreenPlay", lootContainers = { 134411, 8496263, 8496262, 8496261, 8496260 }, lootLevel = 26, lootGroups = { { groups = { {group = "color_crystals", chance = 200000}, {group = "junk", chance = 7600000}, {group = "heavy_weapons_consumable", chance = 500000}, {group = "rifles", chance = 500000}, {group = "carbines", chance = 500000}, {group = "pistols", chance = 500000}, {group = "clothing_attachments", chance = 100000}, {group = "armor_attachments", chance = 100000} }, lootChance = 8000000 } }, lootContainerRespawn = 1800 -- 30 minutes } registerScreenPlay("HuttHideoutScreenPlay", true) function HuttHideoutScreenPlay:start() if (isZoneEnabled("tatooine")) then self:spawnMobiles() self:initializeLootContainers() end end function HuttHideoutScreenPlay:spawnMobiles() spawnMobile("tatooine", "jabba_enforcer", 300, -3.5, -12.7, -6.7, 24, 4235585) spawnMobile("tatooine", "jabba_henchman", 300, 1.1, -14.4, -9.3, 15, 4235585) spawnMobile("tatooine", "jabba_compound_guard", 300, -12.1, -32.2, -34, 19, 4235586) spawnMobile("tatooine", "jabba_enforcer", 300, -10.5, -40.4, -81.3, -178, 4235587) spawnMobile("tatooine", "jabba_henchman", 300, 5.8, -40.9, -79.6, -37, 4235587) spawnMobile("tatooine", "jabba_enforcer", 300, 14.5, -40.5, -74.2, -131, 4235587) spawnMobile("tatooine", "jabba_enforcer", 300, 20, -39.6, -77.9, -50, 4235587) spawnMobile("tatooine", "jabba_henchman", 300, 10.7, -41.1, -60.3, -124, 4235587) spawnMobile("tatooine", "jabba_henchman", 300, 47, -46.7, -50.8, -163, 4235588) spawnMobile("tatooine", "jabba_henchman", 300, 50.4, -46.8, -58.6, -19, 4235588) spawnMobile("tatooine", "jabba_henchman", 300, 51.6, -46, -91.6, -126, 4235588) spawnMobile("tatooine", "jabba_enforcer", 300, 47.1, -46.2, -96.3, 46, 4235588) spawnMobile("tatooine", "jabba_compound_guard", 300, 44.9, -46.2, -102.8, -41, 4235588) spawnMobile("tatooine", "jabba_henchman", 300, 13.9, -45, -121.1, 30, 4235589) spawnMobile("tatooine", "jabba_enforcer", 300, 1.5, -45, -141.6, 117, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, -10, -45.6, -148, 26, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, -12.4, -45, -130.8, 125, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, 58.8, -47.1, -124.6, -21, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, 73.5, -52.9, -144.7, -178, 4235589) spawnMobile("tatooine", "jabba_enforcer", 300, 72.5, -54.4, -151.6, -20, 4235589) spawnMobile("tatooine", "jabba_enforcer", 300, 38.2, -55.7, -155.4, -78, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, 36.9, -56.1, -157.2, -53, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, 67.5, -57.3, -176.7, 62, 4235589) spawnMobile("tatooine", "jabba_enforcer", 300, 58.6, -57.7, -185.3, -70, 4235589) spawnMobile("tatooine", "jabba_henchman", 300, 53, -57, -185.3, 59, 4235589) spawnMobile("tatooine", "jabba_compound_guard", 300, 58.8, -56.4, -159.5, -60, 4235589) spawnMobile("tatooine", "jabba_compound_guard", 300, 53.3, -56.6, -160.2, 45, 4235589) spawnMobile("tatooine", "jabba_compound_guard", 300, 6, -63.9, -181.8, 90, 4235590) spawnMobile("tatooine", "jabba_compound_guard", 300, -8.1, -65.1, -201.3, -10, 4235590) spawnMobile("tatooine", "jabba_compound_guard", 300, -37.5, -67, -182.8, 91, 4235590) spawnMobile("tatooine", "jabba_henchman", 300, -18.7, -65.5, -210.3, -152, 4235591) spawnMobile("tatooine", "jabba_compound_guard", 300, -22.5, -64.6, -220.2, -131, 4235591) spawnMobile("tatooine", "jabba_henchman", 300, -17.6, -65.4, -216.8, -7, 4235591) spawnMobile("tatooine", "jabba_henchman", 300, -4.8, -64.2, -231.5, 178, 4235591) spawnMobile("tatooine", "jabba_assassin", 300, -1.3, -64.2, -238.5, 88, 4235591) spawnMobile("tatooine", "jabba_compound_guard", 300, -22.4, -65, -249.8, -174, 4235591) spawnMobile("tatooine", "jabba_henchman", 300, -19.3, -62.6, -261.6, 43, 4235591) spawnMobile("tatooine", "jabba_assassin", 300, -10.6, -63.3, -261.2, -77, 4235591) spawnMobile("tatooine", "jabba_henchman", 300, -57.1, -70.2, -193, -70, 4235592) spawnMobile("tatooine", "jabba_compound_guard", 300, -71.8, -68.6, -182.3, 99, 4235592) spawnMobile("tatooine", "jabba_henchman", 300, -59.3, -69.8, -170.9, -53, 4235592) spawnMobile("tatooine", "jabba_enforcer", 300, -71.5, -70, -166.7, 141, 4235592) spawnMobile("tatooine", "jabba_assassin", 300, -98.3, -72.4, -174.9, 72, 4235592) spawnMobile("tatooine", "jabba_henchman", 300, -112.2, -69.1, -119.7, 84, 4235592) spawnMobile("tatooine", "jabba_enforcer", 300, -106.1, -68.6, -112.2, -76, 4235592) spawnMobile("tatooine", "jabba_assassin", 300, -84.2, -70.3, -129.7, 83, 4235592) spawnMobile("tatooine", "jabba_enforcer", 300, -94.9, -102.6, -137.2, 154, 4235592) spawnMobile("tatooine", "jabba_enforcer", 300, -95.6, -102.1, -140.6, 0, 4235592) spawnMobile("tatooine", "jabba_henchman", 300, -51.4, -68.9, -95.4, 135, 4235593) spawnMobile("tatooine", "jabba_enforcer", 300, -47.6, -69.3, -95.4, -133, 4235593) spawnMobile("tatooine", "jabba_enforcer", 300, -46.3, -69.3, -99, -52, 4235593) spawnMobile("tatooine", "jabba_compound_guard", 300, -59.4, -70.1, -88, -179, 4235593) spawnMobile("tatooine", "jabba_henchman", 300, -69.4, -68.5, -101.7, 110, 4235593) spawnMobile("tatooine", "jabba_compound_guard", 300, -65.6, -68.3, -103.1, -74, 4235593) spawnMobile("tatooine", "jabba_assassin", 300, -8.6, -68.6, -97.1, -162, 4235593) spawnMobile("tatooine", "jabba_compound_guard", 300, -32.1, -80.2, -143.5, 80, 4235594) spawnMobile("tatooine", "jabba_henchman", 300, -19.7, -79.8, -146.9, -59, 4235594) spawnMobile("tatooine", "jabba_henchman", 300, -21.2, -79.6, -143.8, 160, 4235594) spawnMobile("tatooine", "jabba_compound_guard", 300, -78.6, -100.8, -125.9, -124, 4235595) spawnMobile("tatooine", "jabba_assassin", 300, -83.8, -100.6, -106.6, -1, 4235595) spawnMobile("tatooine", "jabba_enforcer", 300, -86.4, -100.5, -103.6, 123, 4235595) spawnMobile("tatooine", "jabba_assassin", 300, -100.4, -99.9, -114.2, 162, 4235595) spawnMobile("tatooine", "jabba_enforcer", 300, -98.3, -100, -105.2, -43, 4235595) end
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/components/booster/bst_corellian_promotional_standard_thrust_enhancer.lua
3
2420
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_ship_components_booster_bst_corellian_promotional_standard_thrust_enhancer = object_tangible_ship_components_booster_shared_bst_corellian_promotional_standard_thrust_enhancer:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_corellian_promotional_standard_thrust_enhancer, "object/tangible/ship/components/booster/bst_corellian_promotional_standard_thrust_enhancer.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/faction/rebel/crackdown_rebel_guard_captain.lua
1
1615
crackdown_rebel_guard_captain = Creature:new { objectName = "@mob/creature_names:crackdown_rebel_guard_captain", socialGroup = "rebel", pvpFaction = "rebel", faction = "rebel", level = 1, chanceHit = 0.36, damageMin = 240, damageMax = 250, baseXp = 45, baseHAM = 7200, baseHAMmax = 8800, armor = 0, resists = {0,0,40,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK + KILLER, optionsBitmask = 136, diet = HERBIVORE, templates = { "object/mobile/dressed_rebel_specforce_captain_moncal_female_01.iff", "object/mobile/dressed_rebel_specforce_captain_rodian_female_01.iff" }, lootGroups = { { groups = { {group = "color_crystals", chance = 100000}, {group = "junk", chance = 4250000}, {group = "rifles", chance = 1000000}, {group = "pistols", chance = 1000000}, {group = "melee_weapons", chance = 1000000}, {group = "carbines", chance = 1000000}, {group = "clothing_attachments", chance = 100000}, {group = "armor_attachments", chance = 100000}, {group = "rebel_officer_common", chance = 450000}, {group = "wearables_common", chance = 1000000} }, lootChance = 3000000 } }, weapons = {"rebel_weapons_heavy"}, conversationTemplate = "rebel_recruiter_convotemplate", attacks = merge(riflemanmaster,pistoleermaster,carbineermaster,brawlermaster) } CreatureTemplates:addCreatureTemplate(crackdown_rebel_guard_captain, "crackdown_rebel_guard_captain")
lgpl-3.0
airstruck/luigi
luigi/multiline.lua
3
1586
local Multiline = {} function Multiline.wrap (font, text, limit) local lines = {{ width = 0 }} local advance = 0 local lastSpaceAdvance = 0 local function append (word, space) local wordAdvance = font:getAdvance(word) local spaceAdvance = font:getAdvance(space) local words = lines[#lines] if advance + wordAdvance > limit then words.width = (words.width or 0) - lastSpaceAdvance advance = wordAdvance + spaceAdvance lines[#lines + 1] = { width = advance, word, space } else advance = advance + wordAdvance + spaceAdvance words.width = advance words[#words + 1] = word words[#words + 1] = space end lastSpaceAdvance = spaceAdvance end local function appendFrag (frag, isFirst) if isFirst then append(frag, '') else local wordAdvance = font:getAdvance(frag) lines[#lines + 1] = { width = wordAdvance, frag } advance = wordAdvance end end local leadSpace = text:match '^ +' if leadSpace then append('', leadSpace) end for word, space in text:gmatch '([^ ]+)( *)' do if word:match '\n' then local isFirst = true for frag in (word .. '\n'):gmatch '([^\n]*)\n' do appendFrag(frag, isFirst) isFirst = false end append('', space) else append(word, space) end end return lines end return Multiline
mit
kidaa/Awakening-Core3
bin/scripts/object/tangible/lair/snorbal_hill/serverobjects.lua
3
2112
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --Children folder includes -- Server Objects includeFile("tangible/lair/snorbal_hill/lair_snorbal_hill.lua")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/mission/quest_item/nurla_slinthiss_q3_needed.lua
3
2300
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_mission_quest_item_nurla_slinthiss_q3_needed = object_tangible_mission_quest_item_shared_nurla_slinthiss_q3_needed:new { } ObjectTemplates:addTemplate(object_tangible_mission_quest_item_nurla_slinthiss_q3_needed, "object/tangible/mission/quest_item/nurla_slinthiss_q3_needed.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/building/poi/lok_imperial_large5.lua
1
2216
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_building_poi_lok_imperial_large5 = object_building_poi_shared_lok_imperial_large5:new { } ObjectTemplates:addTemplate(object_building_poi_lok_imperial_large5, "object/building/poi/lok_imperial_large5.iff")
lgpl-3.0
JulianSchutsch/FuPower
fuconstruction/prototype/item.lua
1
1261
require "config" local function createAlienConstructionRobotItem() data:extend( { { type = "item", name = "fusion-construction-robot", icon = "__fupower__/graphics/icons/fusion-construction-robot.png", flags = {"goes-to-quickbar"}, subgroup = "fusion-robots", place_result = "fusion-construction-robot", order = "a", stack_size = 50 }, { type = "repair-tool", name = "fusion-repair-pack", icon = "__fupower__/graphics/icons/fusion-repair-pack.png", flags = {"goes-to-quickbar"}, subgroup = "tool", order = "z", speed = 100, durability = 10000, stack_size = 50 }, }) end local function createAlienLogisticRobotItem() data:extend( { { type = "item", name = "fusion-logistic-robot", icon = "__fupower__/graphics/icons/fusion-logistic-robot.png", flags = {"goes-to-quickbar"}, subgroup = "fusion-robots", place_result = "fusion-logistic-robot", order = "a", stack_size = 50 }, }) end if config.fuconstruction.alienConstructionRobot==true then createAlienConstructionRobotItem() end if config.fuconstruction.alienLogisticRobot==true then createAlienLogisticRobotItem() end
mit
kidaa/Awakening-Core3
bin/scripts/object/tangible/loot/bestine/bestine_painting_schematic_golden_flower_01.lua
1
2348
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_loot_bestine_bestine_painting_schematic_golden_flower_01 = object_tangible_loot_bestine_shared_bestine_painting_schematic_golden_flower_01:new { } ObjectTemplates:addTemplate(object_tangible_loot_bestine_bestine_painting_schematic_golden_flower_01, "object/tangible/loot/bestine/bestine_painting_schematic_golden_flower_01.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/weaponskills/one_inch_punch.lua
25
1590
----------------------------------- -- One Inch Punch -- Hand-to-Hand weapon skill -- Skill level: 75 -- Delivers an attack that ignores target's defense. Amount ignored varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget. -- Aligned with the Shadow Belt. -- Element: None -- Modifiers: VIT:100% -- 100%TP 200%TP 300%TP -- 1.00 1.00 1.00 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/globals/weaponskills"); ----------------------------------- function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar) local params = {}; params.numHits = 1; params.ftp100 = 1; params.ftp200 = 1; params.ftp300 = 1; params.str_wsc = 0.0; params.dex_wsc = 0.0; params.vit_wsc = 0.4; params.agi_wsc = 0.0; params.int_wsc = 0.0; params.mnd_wsc = 0.0; params.chr_wsc = 0.0; params.crit100 = 0.0; params.crit200 = 0.0; params.crit300 = 0.0; params.canCrit = false; params.acc100 = 0.0; params.acc200= 0.0; params.acc300= 0.0; params.atkmulti = 1; -- Defense ignored is 0%, 25%, 50% as per http://www.bg-wiki.com/bg/One_Inch_Punch params.ignoresDef = true; params.ignored100 = 0; params.ignored200 = 0.25; params.ignored300 = 0.5; if (USE_ADOULIN_WEAPON_SKILL_CHANGES == true) then params.vit_wsc = 1.0; end local damage, criticalHit, tpHits, extraHits = doPhysicalWeaponskill(player, target, wsID, tp, primary, action, taChar, params); return tpHits, extraHits, criticalHit, damage; end
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_tatooine_valarian_thug.lua
3
2236
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_dressed_tatooine_valarian_thug = object_mobile_shared_dressed_tatooine_valarian_thug:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_valarian_thug, "object/mobile/dressed_tatooine_valarian_thug.iff")
lgpl-3.0
houqp/koreader
frontend/ui/elements/refresh_menu_table.lua
1
2743
local UIManager = require("ui/uimanager") local util = require("ffi/util") local _ = require("gettext") local function custom_1() return G_reader_settings:readSetting("refresh_rate_1") or 12 end local function custom_2() return G_reader_settings:readSetting("refresh_rate_2") or 22 end local function custom_3() return G_reader_settings:readSetting("refresh_rate_3") or 99 end local function custom_input(name) return { title = _("Input page number for a full refresh"), type = "number", hint = "(1 - 99)", callback = function(input) local rate = tonumber(input) G_reader_settings:saveSetting(name, rate) UIManager:setRefreshRate(rate) end, } end return { text = _("Full refresh rate"), separator = true, sub_item_table = { { text = _("Every page"), checked_func = function() return UIManager:getRefreshRate() == 1 end, callback = function() UIManager:setRefreshRate(1) end, }, { text = _("Every 6 pages"), checked_func = function() return UIManager:getRefreshRate() == 6 end, callback = function() UIManager:setRefreshRate(6) end, }, { text_func = function() return util.template( _("Custom 1: %1 pages"), custom_1() ) end, checked_func = function() return UIManager:getRefreshRate() == custom_1() end, callback = function() UIManager:setRefreshRate(custom_1()) end, hold_input = custom_input("refresh_rate_1") }, { text_func = function() return util.template( _("Custom 2: %1 pages"), custom_2() ) end, checked_func = function() return UIManager:getRefreshRate() == custom_2() end, callback = function() UIManager:setRefreshRate(custom_2()) end, hold_input = custom_input("refresh_rate_2") }, { text_func = function() return util.template( _("Custom 3: %1 pages"), custom_3() ) end, checked_func = function() return UIManager:getRefreshRate() == custom_3() end, callback = function() UIManager:setRefreshRate(custom_3()) end, hold_input = custom_input("refresh_rate_3") }, { text = _("Every chapter"), checked_func = function() return UIManager:getRefreshRate() == -1 end, callback = function() UIManager:setRefreshRate(-1) end, }, } }
agpl-3.0
iosengineer/spidermod
lua/autorun/sm_client.lua
1
5906
--SpiderMod Addon clientside code --Author: ancientevil --Contact: facepunch.com --Date: 16th May 2009 --Purpose: The clientside magic of Spidermod. --the server runs this file (in shared) just to send it out to everyone if SERVER then AddCSLuaFile("sm_client.lua") return end --hooks --draw the jump charge indicator at the top right function SpiderHUDPaint() draw.SimpleText("Spider Jump: " .. tostring(LocalPlayer():GetNetworkedInt(JumpInfo.ChargeNWIntName)) .. "%", "ChatFont", ScrW()-100, 20, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER ) end --motion blur if you are falling fast (gets worse the faster you fall) --so low attachments after falling from a height are a challenge function SpiderRenderScreenspaceEffects() local fallingvelocity = GetFallingVelocity(LocalPlayer()) if (fallingvelocity > DamageInfo.MinFallVelocity) then DrawMotionBlur( 0.05, math.min(((fallingvelocity - DamageInfo.MinFallVelocity)/DamageInfo.MaxFallScale),0.8), 0.0005) end end --for the swep opmode - whenever a player picks up (spawns) the spiderweb, --this flags them as a spider and gives them the power function SpiderWeaponPickedUp(weap) if (weap:GetClass() == "weapon_spiderweb") then sm_debug:print(tostring(LocalPlayer()).." picked up the spiderweb weapon") LocalPlayer():ConCommand("sm_select_power smpSpider") end end --always hook this hook.Add("HUDWeaponPickedUp", "SpiderWeaponPickedUp", SpiderWeaponPickedUp) --enabling/disabling functions --adds the client side hooks when a player is a spider only function AddSpiderHooks() hook.Add("HUDPaint", "SpiderHUDPaint", SpiderHUDPaint) hook.Add("RenderScreenspaceEffects", "SpiderRenderScreenspaceEffects", SpiderRenderScreenspaceEffects) sm_debug:print('Client hooks added') end --removes clientside hooks function RemoveSpiderHooks() hook.Remove("HUDPaint", "SpiderHUDPaint") hook.Remove("RenderScreenspaceEffects", "SpiderRenderScreenspaceEffects") sm_debug:print('Client hooks removed') end --called when a choice has been made from the choice vgui local function FinaliseChooser(frame, ply) frame:Remove() if ply:GetNWBool("sm_remember_power_choice") then ply:PrintMessage(HUD_PRINTTALK, "Choice saved for this game - use sm_forget_power_choice in the console to reset") end end --displays the power scheme selection GUI --includes a little hack due to the delayed definition of LocalPlayer() function PowerSelectGUI(ply) --delay running this section of code until localplayer is defined if (ply == NULL) or (ply == nil) then timer.Simple(0.5, function() PowerSelectGUI(LocalPlayer()) end) return end --don't show the GUI if spidermod is not enabled --or if the player it is being shown to has asked us to remember --their last choice if not SpidermodEnabled() or ply:GetNWBool("sm_remember_power_choice") then return end local Frame = vgui.Create( "Frame" ); //Create a frame Frame:SetSize(490, 590) Frame:Center() Frame:SetVisible(true) Frame:MakePopup(); Frame:PostMessage("SetTitle", "text", "Spidermod - Choose your Power Scheme"); local picSpider = vgui.Create( "DImageButton", Frame ) picSpider:SetImage("vgui/sil_spider") picSpider:SizeToContents() picSpider:SetKeepAspect(true) picSpider:SetWide(200) picSpider:SetPos(30, 35) picSpider.DoClick = function() local ply = LocalPlayer() ply:EmitSound("WebFire1.mp3", 40.0) ply:ConCommand("sm_select_power smpSpider") ply:PrintMessage(HUD_PRINTTALK, 'Using spider abilities') FinaliseChooser(Frame, ply) end local picHuman = vgui.Create( "DImageButton", Frame ) picHuman:SetImage("vgui/sil_human") picHuman:SizeToContents() picHuman:SetKeepAspect(true) picHuman:SetWide(200) picHuman:SetPos(260, 35) picHuman.DoClick = function() ply:EmitSound("Weapon_Shotgun.Special1", 40.0) ply:ConCommand("sm_select_power smpHuman") ply:PrintMessage(HUD_PRINTTALK, 'Using regular abilities') FinaliseChooser(Frame, ply) end local cbRemember = vgui.Create("DCheckBoxLabel", Frame) cbRemember:SetPos(30, 559) cbRemember:SetText("Remember my choice for this game") cbRemember:SetValue(ply:GetNWBool("sm_remember_power_choice")) cbRemember:SizeToContents() function cbRemember:OnChange() ply:SetNWBool("sm_remember_power_choice", cbRemember:GetChecked()) end Frame:DoModal() end --console command for sm_forget_power_choice --just forget it so they can choose next time function ForgetPowerChoice(ply, cmd, args) ply:SetNWBool("sm_remember_power_choice", false) end --UMSG RECEIVER --launches the power select gui when asked by the server function LaunchPowerSelectGUI(usrmsg) PowerSelectGUI(LocalPlayer()) end --always add this hook usermessage.Hook("sm_launch_power_select_gui", LaunchPowerSelectGUI) --UMSG RECEIVER --adds relevant hooks if the spider state for this player has changed function PlayerSpiderStateChanged(usrmsg) if (usrmsg:ReadBool()) then AddSpiderHooks() else RemoveSpiderHooks() end end --always add this hook usermessage.Hook("sm_player_spider_state_changed", PlayerSpiderStateChanged) --UMSG RECEIVER --adds or removes hooks, informs player etc if spidermod has been enabled/disabled function SpidermodStatusChanged(usrmsg) local bEnabled = usrmsg:ReadBool() if (bEnabled) and PlayerIsSpider(LocalPlayer()) then AddSpiderHooks() else RemoveSpiderHooks() end if bEnabled then LocalPlayer():PrintMessage(HUD_PRINTTALK, 'Spidermod has been enabled') else LocalPlayer():PrintMessage(HUD_PRINTTALK, 'Spidermod has been disabled') end end --always add this hook usermessage.Hook("sm_spidermod_status_changed", SpidermodStatusChanged) --concommands concommand.Add(SpiderConCmd.ForgetPowerChoice, ForgetPowerChoice, SpiderAutoComplete); concommand.Add(SpiderConCmd.SelectGUIClient, PowerSelectGUI, SpiderAutoComplete);
mit
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_carbine_trainer_02.lua
2
2274
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_dressed_carbine_trainer_02 = object_mobile_shared_dressed_carbine_trainer_02:new { objectMenuComponent = {"cpp", "TrainerMenuComponent"} } ObjectTemplates:addTemplate(object_mobile_dressed_carbine_trainer_02, "object/mobile/dressed_carbine_trainer_02.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/ikopi_hue.lua
3
2152
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_mobile_ikopi_hue = object_mobile_shared_ikopi_hue:new { } ObjectTemplates:addTemplate(object_mobile_ikopi_hue, "object/mobile/ikopi_hue.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/loot/collectible/collectible_parts/orange_rug_thread_02.lua
3
2344
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_loot_collectible_collectible_parts_orange_rug_thread_02 = object_tangible_loot_collectible_collectible_parts_shared_orange_rug_thread_02:new { } ObjectTemplates:addTemplate(object_tangible_loot_collectible_collectible_parts_orange_rug_thread_02, "object/tangible/loot/collectible/collectible_parts/orange_rug_thread_02.iff")
lgpl-3.0
eraffxi/darkstar
scripts/zones/Dynamis-Qufim/mobs/Antaeus.lua
2
1855
----------------------------------- -- Area: Dynamis Qufim -- MOB: Antaeus ----------------------------------- package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Dynamis-Qufim/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals/dynamis"); require("scripts/globals/titles"); ----------------------------------- function onMobSpawn(mob) end; function onMobEngaged(mob,target) if (GetServerVariable("[DynaQufim]Boss_Trigger") == 0) then -- spwan additional mob : for Nightmare_Stirge = 16945407, 16945420, 1 do SpawnMob(Nightmare_Stirge); end for Nightmare_Diremite = 16945422, 16945430, 1 do SpawnMob(Nightmare_Diremite); end for Nightmare_Gaylas = 16945431, 16945442, 1 do SpawnMob(Nightmare_Gaylas); end for Nightmare_Kraken = 16945443, 16945456, 1 do SpawnMob(Nightmare_Kraken); end for Nightmare_Snoll = 16945458, 16945469, 1 do SpawnMob(Nightmare_Snoll); end for Nightmare_Tiger = 16945510, 16945521, 1 do SpawnMob(Nightmare_Tiger); end for Nightmare_Weapon = 16945549, 16945558, 1 do SpawnMob(Nightmare_Weapon); end for Nightmare_Raptor = 16945589, 16945598, 1 do SpawnMob(Nightmare_Raptor); end SetServerVariable("[DynaQufim]Boss_Trigger",1); end end; function onMobDeath(mob, player, isKiller) if (player:hasKeyItem(dsp.ki.DYNAMIS_QUFIM_SLIVER ) == false) then player:addKeyItem(dsp.ki.DYNAMIS_QUFIM_SLIVER); player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.DYNAMIS_QUFIM_SLIVER); end player:addTitle(dsp.title.DYNAMISQUFIM_INTERLOPER); end;
gpl-3.0
palmettos/cnLuCI
modules/admin-mini/luasrc/controller/mini/index.lua
79
1429
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- module("luci.controller.mini.index", package.seeall) function index() local root = node() if not root.lock then root.target = alias("mini") root.index = true end entry({"about"}, template("about")) local page = entry({"mini"}, alias("mini", "index"), _("Essentials"), 10) page.sysauth = "root" page.sysauth_authenticator = "htmlauth" page.index = true entry({"mini", "index"}, alias("mini", "index", "index"), _("Overview"), 10).index = true entry({"mini", "index", "index"}, form("mini/index"), _("General"), 1).ignoreindex = true entry({"mini", "index", "luci"}, cbi("mini/luci", {autoapply=true}), _("Settings"), 10) entry({"mini", "index", "logout"}, call("action_logout"), _("Logout")) end function action_logout() local dsp = require "luci.dispatcher" local sauth = require "luci.sauth" if dsp.context.authsession then sauth.kill(dsp.context.authsession) dsp.context.urltoken.stok = nil end luci.http.header("Set-Cookie", "sysauth=; path=" .. dsp.build_url()) luci.http.redirect(luci.dispatcher.build_url()) end
apache-2.0
Creedsteam/SuperCreed
plugins/info_rank.lua
2
8222
do local MKH = 239350998--put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'channel' then hash = 'rank:variables' end if hash then redis:hset(hash, name, value) return send_msg('channel#id'..msg.to.id, 'User rank ('..name..') Changed to '..value..' . ', ok_cb, true) end end local function res_user_callback(extra, success, result) -- /info <username> function if success == 1 then if result.username then Username = '@'..result.username else Username = '----' end local text = 'Full name : '..(result.first_name or '')..' '..(result.last_name or '')..'\n' ..'Username: '..Username..'\n' ..'User ID : '..result.id..'\n\n' local hash = 'rank:variables' local value = redis:hget(hash, result.id) if not value then if result.id == tonumber(MKH) then text = text..'Rank : Sudo (Executive Admin) \n\n' elseif is_admin2(result.id) then text = text..'Rank : Admin (Admin) \n\n' elseif is_owner2(result.id, extra.chat2) then text = text..'Rank : OWner (Owner) \n\n' elseif is_momod2(result.id, extra.chat2) then text = text..'Rank : Moderator (Moderator) \n\n' else text = text..'Rank : Member (Member) \n\n' end else text = text..'Rank : '..value..'\n\n' end local uhash = 'user:'..result.id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..result.id..':'..extra.chat2 user_info_msgs = tonumber(redis:get(um_hash) or 0) text = text..'Total Messages sent by : '..user_info_msgs..'\n\n' text = text..'' send_msg(extra.receiver, text, ok_cb, true) else send_msg(extra.receiver, extra.user..' The searched user not found !.', ok_cb, false) end end local function action_by_id(extra, success, result) -- /info <ID> function if success == 1 then if result.username then Username = '@'..result.username else Username = '----' end local text = 'Full name : '..(result.first_name or '')..' '..(result.last_name or '')..'\n' ..'Username: '..Username..'\n' ..'User ID : '..result.id..'\n\n' local hash = 'rank:variables' local value = redis:hget(hash, result.id) if not value then if result.id == tonumber(MKH) then text = text..'Rank : Sudo (Executive Admin) \n\n' elseif is_admin2(result.id) then text = text..'Rank : Admin (Admin) \n\n' elseif is_owner2(result.id, extra.chat2) then text = text..'Rank : OWner (Owner) \n\n' elseif is_momod2(result.id, extra.chat2) then text = text..'Rank : Moderator (Moderator) \n\n' else text = text..'Rank : Member (Member) \n\n' end else text = text..'Rank : '..value..'\n\n' end local uhash = 'user:'..result.id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..result.id..':'..extra.chat2 user_info_msgs = tonumber(redis:get(um_hash) or 0) text = text..'Total Messages sent by : '..user_info_msgs..'\n\n' text = text..'' send_msg(extra.receiver, text, ok_cb, true) else send_msg(extra.receiver, '.\nÇÒ ÏÓÊæÑ ÒíÑ ÇÓÊÝÇÏå ˜äíÏ\n/info @username', ok_cb, false) end end local function action_by_reply(extra, success, result)-- (reply) /info function if result.from.username then Username = '@'..result.from.username else Username = '----' end local text = 'First Name: '..(result.from.first_name or '')..'\nLast name :'..(result.from.last_name or '----')..'\n' ..'Username : '..Username..'\n' ..'User ID : '..result.from.peer_id..'\n\n' local hash = 'Rank:'..result.to.id..':variables' local value = redis:hget(hash, result.from.id) if not value then if result.from.peer_id == tonumber(MKH) then text = text..'Rank : Sudo Executive Admin \n\n' elseif is_admin2(result.from.peer_id) then text = text..'Rank : Admin \n\n' elseif is_owner2(result.from.peer_id, result.to.peer_id) then text = text..'Rank : OWner \n\n' elseif is_momod2(result.from.peer_id, result.to.peer_id) then text = text..'Rank : Moderator Moderator \n\n' else text = text..'Rank : Member \n\n' end else text = text..'Rank : '..value..'\n\n' end local user_info = {} local uhash = 'user:'..result.from.peer_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..result.from.peer_id..':'..result.to.peer_id user_info_msgs = tonumber(redis:get(um_hash) or 0) text = text..'Total Messages sent by : '..user_info_msgs..'\n\n' text = text..'@IR_Team' send_msg(extra.receiver, text, ok_cb, true) end local function action_by_reply2(extra, success, result) local value = extra.value setrank(result, result.from.id, value) end local function run(msg, matches) if matches[1]:lower() == 'setrank' then local hash = 'usecommands:'..msg.from.peer_id..':'..msg.to.peer_id redis:incr(hash) if not is_sudo(msg) then return "Special for Sudo" end local receiver = get_receiver(msg) local Reply = msg.reply_id if msg.reply_id then local value = string.sub(matches[2], 1, 1000) msgr = get_message(msg.reply_id, action_by_reply2, {receiver=receiver, Reply=Reply, value=value}) else local name = string.sub(matches[2], 1, 50) local value = string.sub(matches[3], 1, 1000) local text = setrank(msg, name, value) return text end end if matches[1]:lower() == 'info' and not matches[2] then local receiver = get_receiver(msg) local Reply = msg.reply_id if msg.reply_id then msgr = get_message(msg.reply_id, action_by_reply, {receiver=receiver, Reply=Reply}) else if msg.from.username then Username = '@'..msg.from.username else Username = '----' end local text = 'Name: '..(msg.from.first_name or '----')..'\n' local text = text..'Last name : '..(msg.from.last_name or '----')..'\n' local text = text..'Username : '..Username..'\n' local text = text..'User ID : '..msg.from.id..'\n\n' local hash = 'rank:variables' if hash then local value = redis:hget(hash, msg.from.id) if not value then if msg.from.id == tonumber(MKH) then text = text..'Rank : Sudo (Executive Admin) \n\n' elseif is_sudo(msg) then text = text..'Rank : Admin (Admin) \n\n' elseif is_owner(msg) then text = text..'Rank : OWner (Owner) \n\n' elseif is_momod(msg) then text = text..'Rank : Moderator (Moderator) \n\n' else text = text..'Rank : Member (Member) \n\n' end else text = text..'Rank : '..value..'\n' end end local uhash = 'user:'..msg.from.id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..msg.from.id..':'..msg.to.id user_info_msgs = tonumber(redis:get(um_hash) or 0) text = text..'Total Messages sent by : '..user_info_msgs..'\n\n' if msg.to.type == 'chat' then text = text..'Group Name : '..msg.to.title..'\n' text = text..' Group ID : '..msg.to.id end text = text..'' return send_msg(receiver, text, ok_cb, true) end end if matches[1]:lower() == 'info' and matches[2] then local user = matches[2] local chat2 = msg.to.id local receiver = get_receiver(msg) if string.match(user, '^%d+$') then user_info('user#id'..user, action_by_id, {receiver=receiver, user=user, text=text, chat2=chat2}) elseif string.match(user, '^@.+$') then username = string.gsub(user, '@', '') msgr = res_user(username, res_user_callback, {receiver=receiver, user=user, text=text, chat2=chat2}) end end end return { description = 'Know your information or the info of a chat members.', usage = { '!info: Return your info and the chat info if you are in one.', '(Reply)!info: Return info of replied user if used by reply.', '!info <id>: Return the info\'s of the <id>.', '!info @<user_name>: Return the member @<user_name> information from the current chat.', '!setrank <userid> <rank>: change members rank.', '(Reply)!setrank <rank>: change members rank.', }, patterns = { "^([Ii][Nn][Ff][Oo])$", "^[/!#]([Ii][Nn][Ff][Oo])$", "^([Ii][Nn][Ff][Oo]) (.*)$", "^[/!#]([Ii][Nn][Ff][Oo]) (.*)$", "^[/!]([Ss][Ee][Tt][Rr][Aa][Nn][Kk]) (%d+) (.*)$", "^[/!]([Ss][Ee][Tt][Rr][Aa][Nn][Kk]) (.*)$", }, run = run } end
agpl-3.0
eraffxi/darkstar
scripts/zones/Windurst_Woods/npcs/Peshi_Yohnts.lua
2
1720
----------------------------------- -- Area: Windurst Woods -- NPC: Peshi Yohnts -- Type: Bonecraft Guild Master -- !pos -6.175 -6.249 -144.667 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Woods/TextIDs"); require("scripts/globals/crafting"); require("scripts/globals/status"); ----------------------------------- function onTrade(player,npc,trade) local newRank = tradeTestItem(player,npc,trade,dsp.skill.BONECRAFT); if (newRank ~= 0) then player:setSkillRank(dsp.skill.BONECRAFT,newRank); player:startEvent(10017,0,0,0,0,newRank); end end; function onTrigger(player,npc) local getNewRank = 0; local craftSkill = player:getSkillLevel(dsp.skill.BONECRAFT); local testItem = getTestItem(player,npc,dsp.skill.BONECRAFT); local guildMember = isGuildMember(player,2); if (guildMember == 1) then guildMember = 64; end if (canGetNewRank(player,craftSkill,dsp.skill.BONECRAFT) == 1) then getNewRank = 100; end player:startEvent(10016,testItem,getNewRank,30,guildMember,44,0,0,0); end; -- 10016 10017 0x02c6 0x02c7 0x02c8 0x02c9 0x02ca 0x02cb 0x02fc function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 10016 and option == 1) then local crystal = 4098; -- wind crystal if (player:getFreeSlotsCount() == 0) then player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,crystal); else player:addItem(crystal); player:messageSpecial(ITEM_OBTAINED,crystal); signupGuild(player, guild.bonecraft); end end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/crafted/engine/engine_limiter_mk1.lua
1
2762
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_ship_crafted_engine_engine_limiter_mk1 = object_tangible_ship_crafted_engine_shared_engine_limiter_mk1:new { numberExperimentalProperties = {1, 1, 2, 2}, experimentalProperties = {"XX", "XX", "CD", "OQ", "CD", "OQ"}, experimentalWeights = {1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "exp_energy_maintenance", "exp_engine_speed"}, experimentalSubGroupTitles = {"null", "null", "energy_maintenance", "engine_speed"}, experimentalMin = {0, 0, -128, -10}, experimentalMax = {0, 0, -173, -7}, experimentalPrecision = {0, 0, 0, 0}, experimentalCombineType = {0, 0, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_ship_crafted_engine_engine_limiter_mk1, "object/tangible/ship/crafted/engine/engine_limiter_mk1.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/corellia/lord_nyax.lua
1
1175
lord_nyax = Creature:new { objectName = "@mob/creature_names:lord_nyax", socialGroup = "followers_of_lord_nyax", pvpFaction = "followers_of_lord_nyax", faction = "followers_of_lord_nyax", level = 129, chanceHit = 4.9, damageMin = 775, damageMax = 1260, baseXp = 12235, baseHAM = 51000, baseHAMmax = 62000, armor = 2, resists = {80,45,40,20,50,100,10,15,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY, creatureBitmask = PACK + KILLER + STALKER, optionsBitmask = 128, diet = HERBIVORE, templates = {"object/mobile/dressed_lord_nyax.iff"}, lootGroups = { { groups = { {group = "junk", chance = 5000000}, {group = "nyax", chance = 2000000}, {group = "rifles", chance = 1000000}, {group = "armor_attachments", chance = 1000000}, {group = "clothing_attachments", chance = 1000000} }, lootChance = 6500000 } }, weapons = {"nyaxs_weapons"}, conversationTemplate = "", attacks = merge(brawlermaster,swordsmanmaster) } CreatureTemplates:addCreatureTemplate(lord_nyax, "lord_nyax")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/dungeon/corellian_corvette/corvette_search_rebel_destroy_01.lua
3
2360
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_dungeon_corellian_corvette_corvette_search_rebel_destroy_01 = object_tangible_dungeon_corellian_corvette_shared_corvette_search_rebel_destroy_01:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_corellian_corvette_corvette_search_rebel_destroy_01, "object/tangible/dungeon/corellian_corvette/corvette_search_rebel_destroy_01.iff")
lgpl-3.0
elihugarret/Curso-AI
AV/agent_termites.lua
1
1993
local field2D = require "field2D" local draw2D = require "draw2D" math.randomseed(os.time()) local dimx = 200 local dimy = dimx * 3/4 local chips = field2D(dimx, dimy) -- try running this at 1000: local iterations = 1 -- about 50-100 works well: local numtermites = 1 -- initialize woodchips: chips:set(function() if math.random() < 0.3 then return 0.5 else return 0 end end) -- create agents: local termites = {} for i = 1, numtermites do local t = { x = math.random(dimx), y = math.random(dimy), direction = math.random() * math.pi * 2, chip = 0, } termites[#termites+1] = t end function update() for j = 1, iterations do for i, self in ipairs(termites) do local speed = 1 local x = self.x + speed * math.cos(self.direction) local y = self.y + speed * math.sin(self.direction) -- wrap at limits: x = (x % dimx) y = (y % dimy) -- is this location occupied by a woodchip? local chip = chips:get(x, y) if chip > 0 then -- was I carrying? if self.chip > 0 then -- drop my chip where I currently am: chips:set(self.chip, self.x, self.y) self.chip = 0 -- turn around: self.direction = self.direction + math.pi else -- pick it up: self.chip = chip chips:set(0, x, y) -- and move there (since it is now unoccupied): self.x = x self.y = y -- random turn: self.direction = self.direction + (math.random() - 0.5) end else -- move there self.x = x self.y = y -- random turn: self.direction = self.direction + (math.random() - 0.5) end end end end function draw() -- draw the chips: draw2D.color(1, 1, 1) chips:draw() ---[[ draw2D.scale(1/dimx, 1/dimy) -- draw the agents: for i, termite in ipairs(termites) do draw2D.push() draw2D.translate(termite.x, termite.y) if termite.chip > 0 then draw2D.color(1, 1, 0) else draw2D.color(1, 0, 0) end draw2D.rect(0, 0, 2) draw2D.pop() end --]] end
mit
eraffxi/darkstar
scripts/zones/Qulun_Dome/npcs/Magicite.lua
2
1195
----------------------------------- -- Area: Qulun Dome -- NPC: Magicite -- Involved in Mission: Magicite -- !pos 11 25 -81 148 ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Qulun_Dome/TextIDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:getCurrentMission(player:getNation()) == 13 and player:hasKeyItem(dsp.ki.MAGICITE_AURASTONE) == false) then if (player:getVar("MissionStatus") < 4) then player:startEvent(0,1); -- play Lion part of the CS (this is first magicite) else player:startEvent(0); -- don't play Lion part of the CS end else player:messageSpecial(THE_MAGICITE_GLOWS_OMINOUSLY); end end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 0) then player:setVar("MissionStatus",4); player:addKeyItem(dsp.ki.MAGICITE_AURASTONE); player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.MAGICITE_AURASTONE); end end;
gpl-3.0
LuaDist2/lrexlib-oniguruma
test/common_sets.lua
9
14050
-- See Copyright Notice in the file LICENSE -- This file should contain only test sets that behave identically -- when being run with pcre or posix regex libraries. local luatest = require "luatest" local N = luatest.NT local unpack = unpack or table.unpack local function norm(a) return a==nil and N or a end local function get_gsub (lib) return lib.gsub or function (subj, pattern, repl, n) return lib.new (pattern) : gsub (subj, repl, n) end end local function set_f_gmatch (lib, flg) -- gmatch (s, p, [cf], [ef]) local function test_gmatch (subj, patt) local out, guard = {}, 10 for a, b in lib.gmatch (subj, patt) do table.insert (out, { norm(a), norm(b) }) guard = guard - 1 if guard == 0 then break end end return unpack (out) end return { Name = "Function gmatch", Func = test_gmatch, --{ subj patt results } { {"ab", lib.new"."}, {{"a",N}, {"b",N} } }, { {("abcd"):rep(3), "(.)b.(d)"}, {{"a","d"},{"a","d"},{"a","d"}} }, { {"abcd", ".*" }, {{"abcd",N} } },--zero-length match { {"abc", "^." }, {{"a",N}} },--anchored pattern } end local function set_f_count (lib, flg) return { Name = "Function count", Func = lib.count, --{ subj patt results } { {"ab", lib.new"."}, { 2 } }, { {("abcd"):rep(3), "(.)b.(d)"}, { 3 } }, { {"abcd", ".*" }, { 1 } }, { {"abc", "^." }, { 1 } }, } end local function set_f_split (lib, flg) -- split (s, p, [cf], [ef]) local function test_split (subj, patt) local out, guard = {}, 10 for a, b, c in lib.split (subj, patt) do table.insert (out, { norm(a), norm(b), norm(c) }) guard = guard - 1 if guard == 0 then break end end return unpack (out) end return { Name = "Function split", Func = test_split, --{ subj patt results } { {"ab", lib.new","}, {{"ab",N,N}, } }, { {"ab", ","}, {{"ab",N,N}, } }, { {",", ","}, {{"",",",N}, {"", N, N}, } }, { {",,", ","}, {{"",",",N}, {"",",",N}, {"",N,N} } }, { {"a,b", ","}, {{"a",",",N}, {"b",N,N}, } }, { {",a,b", ","}, {{"",",",N}, {"a",",",N}, {"b",N,N}} }, { {"a,b,", ","}, {{"a",",",N}, {"b",",",N}, {"",N,N} } }, { {"a,,b", ","}, {{"a",",",N}, {"",",",N}, {"b",N,N}} }, { {"ab<78>c", "<(.)(.)>"}, {{"ab","7","8"}, {"c",N,N}, } }, { {"abc", "^."}, {{"", "a",N}, {"bc",N,N}, } },--anchored pattern { {"abc", "^"}, {{"", "", N}, {"abc",N,N}, } }, -- { {"abc", "$"}, {{"abc","",N}, {"",N,N}, } }, -- { {"abc", "^|$"}, {{"", "", N}, {"abc","",N},{"",N,N},} }, } end local function set_f_find (lib, flg) return { Name = "Function find", Func = lib.find, -- {subj, patt, st}, { results } { {"abcd", lib.new".+"}, { 1,4 } }, -- [none] { {"abcd", ".+"}, { 1,4 } }, -- [none] { {"abcd", ".+", 2}, { 2,4 } }, -- positive st { {"abcd", ".+", -2}, { 3,4 } }, -- negative st { {"abcd", ".*"}, { 1,4 } }, -- [none] { {"abc", "bc"}, { 2,3 } }, -- [none] { {"abcd", "(.)b.(d)"}, { 1,4,"a","d" }}, -- [captures] } end local function set_f_match (lib, flg) return { Name = "Function match", Func = lib.match, -- {subj, patt, st}, { results } { {"abcd", lib.new".+"}, {"abcd"} }, -- [none] { {"abcd", ".+"}, {"abcd"} }, -- [none] { {"abcd", ".+", 2}, {"bcd"} }, -- positive st { {"abcd", ".+", -2}, {"cd"} }, -- negative st { {"abcd", ".*"}, {"abcd"} }, -- [none] { {"abc", "bc"}, {"bc"} }, -- [none] { {"abcd", "(.)b.(d)"}, {"a","d"} }, -- [captures] } end local function set_m_exec (lib, flg) return { Name = "Method exec", Method = "exec", --{patt}, {subj, st} { results } { {".+"}, {"abcd"}, {1,4,{}} }, -- [none] { {".+"}, {"abcd",2}, {2,4,{}} }, -- positive st { {".+"}, {"abcd",-2}, {3,4,{}} }, -- negative st { {".*"}, {"abcd"}, {1,4,{}} }, -- [none] { {"bc"}, {"abc"}, {2,3,{}} }, -- [none] { { "(.)b.(d)"}, {"abcd"}, {1,4,{1,1,4,4}}},--[captures] { {"(a+)6+(b+)"}, {"Taa66bbT",2}, {2,7,{2,3,6,7}}},--[st+captures] } end local function set_m_tfind (lib, flg) return { Name = "Method tfind", Method = "tfind", --{patt}, {subj, st} { results } { {".+"}, {"abcd"}, {1,4,{}} }, -- [none] { {".+"}, {"abcd",2}, {2,4,{}} }, -- positive st { {".+"}, {"abcd",-2}, {3,4,{}} }, -- negative st { {".*"}, {"abcd"}, {1,4,{}} }, -- [none] { {"bc"}, {"abc"}, {2,3,{}} }, -- [none] { {"(.)b.(d)"}, {"abcd"}, {1,4,{"a","d"}}},--[captures] } end local function set_m_find (lib, flg) return { Name = "Method find", Method = "find", --{patt}, {subj, st} { results } { {".+"}, {"abcd"}, {1,4} }, -- [none] { {".+"}, {"abcd",2}, {2,4} }, -- positive st { {".+"}, {"abcd",-2}, {3,4} }, -- negative st { {".*"}, {"abcd"}, {1,4} }, -- [none] { {"bc"}, {"abc"}, {2,3} }, -- [none] { {"(.)b.(d)"}, {"abcd"}, {1,4,"a","d"}},--[captures] } end local function set_m_match (lib, flg) return { Name = "Method match", Method = "match", --{patt}, {subj, st} { results } { {".+"}, {"abcd"}, {"abcd"} }, -- [none] { {".+"}, {"abcd",2}, {"bcd" } }, -- positive st { {".+"}, {"abcd",-2}, {"cd" } }, -- negative st { {".*"}, {"abcd"}, {"abcd"} }, -- [none] { {"bc"}, {"abc"}, {"bc" } }, -- [none] {{ "(.)b.(d)"}, {"abcd"}, {"a","d"} }, --[captures] } end local function set_f_gsub1 (lib, flg) local subj, pat = "abcdef", "[abef]+" local cpat = lib.new(pat) return { Name = "Function gsub, set1", Func = get_gsub (lib), --{ s, p, f, n, res1, res2, res3 }, { {subj, cpat, "", 0}, {subj, 0, 0} }, -- test "n" + empty_replace { {subj, pat, "", 0}, {subj, 0, 0} }, -- test "n" + empty_replace { {subj, pat, "", -1}, {subj, 0, 0} }, -- test "n" + empty_replace { {subj, pat, "", 1}, {"cdef", 1, 1} }, { {subj, pat, "", 2}, {"cd", 2, 2} }, { {subj, pat, "", 3}, {"cd", 2, 2} }, { {subj, pat, "" }, {"cd", 2, 2} }, { {subj, pat, "#", 0}, {subj, 0, 0} }, -- test "n" + non-empty_replace { {subj, pat, "#", 1}, {"#cdef", 1, 1} }, { {subj, pat, "#", 2}, {"#cd#", 2, 2} }, { {subj, pat, "#", 3}, {"#cd#", 2, 2} }, { {subj, pat, "#" }, {"#cd#", 2, 2} }, { {"abc", "^.", "#" }, {"#bc", 1, 1} }, -- anchored pattern } end local function set_f_gsub2 (lib, flg) local subj, pat = "abc", "([ac])" return { Name = "Function gsub, set2", Func = get_gsub (lib), --{ s, p, f, n, res1, res2, res3 }, { {subj, pat, "<%1>" }, {"<a>b<c>", 2, 2} }, -- test non-escaped chars in f { {subj, pat, "%<%1%>" }, {"<a>b<c>", 2, 2} }, -- test escaped chars in f { {subj, pat, "" }, {"b", 2, 2} }, -- test empty replace { {subj, pat, "1" }, {"1b1", 2, 2} }, -- test odd and even %'s in f { {subj, pat, "%1" }, {"abc", 2, 2} }, { {subj, pat, "%%1" }, {"%1b%1", 2, 2} }, { {subj, pat, "%%%1" }, {"%ab%c", 2, 2} }, { {subj, pat, "%%%%1" }, {"%%1b%%1", 2, 2} }, { {subj, pat, "%%%%%1" }, {"%%ab%%c", 2, 2} }, } end local function set_f_gsub3 (lib, flg) return { Name = "Function gsub, set3", Func = get_gsub (lib), --{ s, p, f, n, res1,res2,res3 }, { {"abc", "a", "%0" }, {"abc", 1, 1} }, -- test (in)valid capture index { {"abc", "a", "%1" }, {"abc", 1, 1} }, { {"abc", "[ac]", "%1" }, {"abc", 2, 2} }, { {"abc", "(a)", "%1" }, {"abc", 1, 1} }, { {"abc", "(a)", "%2" }, "invalid capture index" }, } end local function set_f_gsub4 (lib, flg) return { Name = "Function gsub, set4", Func = get_gsub (lib), --{ s, p, f, n, res1, res2, res3 }, { {"a2c3", ".", "#" }, {"####", 4, 4} }, -- test . { {"a2c3", ".+", "#" }, {"#", 1, 1} }, -- test .+ { {"a2c3", ".*", "#" }, {"#", 1, 1} }, -- test .* { {"/* */ */", "\\/\\*(.*)\\*\\/", "#" }, {"#", 1, 1} }, { {"a2c3", "[0-9]", "#" }, {"a#c#", 2, 2} }, -- test %d { {"a2c3", "[^0-9]", "#" }, {"#2#3", 2, 2} }, -- test %D { {"a \t\nb", "[ \t\n]", "#" }, {"a###b", 3, 3} }, -- test %s { {"a \t\nb", "[^ \t\n]", "#" }, {"# \t\n#", 2, 2} }, -- test %S } end local function set_f_gsub5 (lib, flg) local function frep1 () end -- returns nothing local function frep2 () return "#" end -- ignores arguments local function frep3 (...) return table.concat({...}, ",") end -- "normal" local function frep4 () return {} end -- invalid return type local function frep5 () return "7", "a" end -- 2-nd return is "a" local function frep6 () return "7", "break" end -- 2-nd return is "break" local subj = "a2c3" return { Name = "Function gsub, set5", Func = get_gsub (lib), --{ s, p, f, n, res1, res2, res3 }, { {subj, "a(.)c(.)", frep1 }, {subj, 1, 0} }, { {subj, "a(.)c(.)", frep2 }, {"#", 1, 1} }, { {subj, "a(.)c(.)", frep3 }, {"2,3", 1, 1} }, { {subj, "a.c.", frep3 }, {subj, 1, 1} }, { {subj, "z*", frep1 }, {subj, 5, 0} }, { {subj, "z*", frep2 }, {"#a#2#c#3#", 5, 5} }, { {subj, "z*", frep3 }, {subj, 5, 5} }, { {subj, subj, frep4 }, "invalid return type" }, { {"abc",".", frep5 }, {"777", 3, 3} }, { {"abc",".", frep6 }, {"777", 3, 3} }, } end local function set_f_gsub6 (lib, flg) local tab1, tab2, tab3 = {}, { ["2"] = 56 }, { ["2"] = {} } local subj = "a2c3" return { Name = "Function gsub, set6", Func = get_gsub (lib), --{ s, p, f, n, res1,res2,res3 }, { {subj, "a(.)c(.)", tab1 }, {subj, 1, 0} }, { {subj, "a(.)c(.)", tab2 }, {"56", 1, 1} }, { {subj, "a(.)c(.)", tab3 }, "invalid replacement type" }, { {subj, "a.c.", tab1 }, {subj, 1, 0} }, { {subj, "a.c.", tab2 }, {subj, 1, 0} }, { {subj, "a.c.", tab3 }, {subj, 1, 0} }, } end local function set_f_gsub8 (lib, flg) local subj, patt, repl = "abcdef", "..", "*" return { Name = "Function gsub, set8", Func = get_gsub (lib), --{ s, p, f, n, res1, res2, res3 }, { {subj, patt, repl, function() end }, {"abcdef", 3, 0} }, { {subj, patt, repl, function() return nil end }, {"abcdef", 3, 0} }, { {subj, patt, repl, function() return false end }, {"abcdef", 3, 0} }, { {subj, patt, repl, function() return true end }, {"***", 3, 3} }, { {subj, patt, repl, function() return {} end }, {"***", 3, 3} }, { {subj, patt, repl, function() return "#" end }, {"###", 3, 3} }, { {subj, patt, repl, function() return 57 end }, {"575757", 3, 3} }, { {subj, patt, repl, function (from) return from end }, {"135", 3, 3} }, { {subj, patt, repl, function (from, to) return to end }, {"246", 3, 3} }, { {subj, patt, repl, function (from,to,rep) return rep end }, {"***", 3, 3} }, { {subj, patt, repl, function (from, to, rep) return rep..to..from end }, {"*21*43*65", 3, 3} }, { {subj, patt, repl, function() return nil end }, {"abcdef", 3, 0} }, { {subj, patt, repl, function() return nil, nil end }, {"abcdef", 3, 0} }, { {subj, patt, repl, function() return nil, false end }, {"abcdef", 3, 0} }, { {subj, patt, repl, function() return nil, true end }, {"ab**", 3, 2} }, { {subj, patt, repl, function() return true, true end }, {"***", 3, 3} }, { {subj, patt, repl, function() return nil, 0 end }, {"abcdef", 1, 0} }, { {subj, patt, repl, function() return true, 0 end }, {"*cdef", 1, 1} }, { {subj, patt, repl, function() return nil, 1 end }, {"ab*ef", 2, 1} }, { {subj, patt, repl, function() return true, 1 end }, {"**ef", 2, 2} }, } end return function (libname) local lib = require (libname) return { set_f_gmatch (lib), set_f_split (lib), set_f_find (lib), set_f_match (lib), set_m_exec (lib), set_m_tfind (lib), set_m_find (lib), set_m_match (lib), set_f_count (lib), set_f_gsub1 (lib), set_f_gsub2 (lib), set_f_gsub3 (lib), set_f_gsub4 (lib), set_f_gsub5 (lib), set_f_gsub6 (lib), set_f_gsub8 (lib), } end
mit
isdom/kong
spec/plugins/rate-limiting/schema_spec.lua
10
1279
local schemas = require "kong.dao.schemas_validation" local validate_entity = schemas.validate_entity local plugin_schema = require "kong.plugins.rate-limiting.schema" describe("Rate Limiting schema", function() it("should be invalid when no config is being set", function() local config = {} local valid, _, err = validate_entity(config, plugin_schema) assert.falsy(valid) assert.are.equal("You need to set at least one limit: second, minute, hour, day, month, year", err.message) end) it("should work when the proper config is being set", function() local config = { second = 10 } local valid, _, err = validate_entity(config, plugin_schema) assert.truthy(valid) assert.falsy(err) end) it("should work when the proper config are being set", function() local config = { second = 10, hour = 20 } local valid, _, err = validate_entity(config, plugin_schema) assert.truthy(valid) assert.falsy(err) end) it("should not work when invalid data is being set", function() local config = { second = 20, hour = 10 } local valid, _, err = validate_entity(config, plugin_schema) assert.falsy(valid) assert.are.equal("The limit for hour cannot be lower than the limit for second", err.message) end) end)
apache-2.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/clothing/clothing_ith_jacket_field_07.lua
2
3473
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_draft_schematic_clothing_clothing_ith_jacket_field_07 = object_draft_schematic_clothing_shared_clothing_ith_jacket_field_07:new { templateType = DRAFTSCHEMATIC, customObjectName = "Ithorian Short Cargo Jacket", craftingToolTab = 8, -- (See DraftSchemticImplementation.h) complexity = 21, size = 3, xpType = "crafting_clothing_general", xp = 100, assemblySkill = "clothing_assembly", experimentingSkill = "clothing_experimentation", customizationSkill = "clothing_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"}, ingredientTitleNames = {"heavy_shell", "binding_and_weatherproofing", "liner", "reinforcement"}, ingredientSlotType = {1, 0, 1, 0}, resourceTypes = {"object/tangible/component/clothing/shared_reinforced_fiber_panels.iff", "petrochem_inert", "object/tangible/component/clothing/shared_synthetic_cloth.iff", "metal"}, resourceQuantities = {2, 20, 1, 35}, contribution = {100, 100, 100, 100}, targetTemplate = "object/tangible/wearables/ithorian/ith_jacket_s07.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_ith_jacket_field_07, "object/draft_schematic/clothing/clothing_ith_jacket_field_07.iff")
lgpl-3.0
Nevon/Hamurabi
lib/AnAL.lua
3
5879
--[[ Copyright (c) 2009-2010 Bart Bes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] local animation = {} animation.__index = animation --- Create a new animation -- Replaces love.graphics.newAnimation -- @param image The image that contains the frames -- @param fw The frame width -- @param fh The frame height -- @param delay The delay between two frames -- @param frames The number of frames, 0 for autodetect -- @return The created animation function newAnimation(image, fw, fh, delay, frames) local a = {} a.img = image a.frames = {} a.delays = {} a.timer = 0 a.position = 1 a.fw = fw a.fh = fh a.playing = true a.speed = 1 a.mode = 1 a.direction = 1 local imgw = image:getWidth() local imgh = image:getHeight() if frames == 0 then frames = imgw / fw * imgh / fh end local rowsize = imgw/fw for i = 1, frames do local row = math.floor((i-1)/rowsize) local column = (i-1)%rowsize local frame = love.graphics.newQuad(column*fw, row*fh, fw, fh, imgw, imgh) table.insert(a.frames, frame) table.insert(a.delays, delay) end return setmetatable(a, animation) end --- Update the animation -- @param dt Time that has passed since last call function animation:update(dt) if not self.playing then return end self.timer = self.timer + dt * self.speed if self.timer > self.delays[self.position] then self.timer = self.timer - self.delays[self.position] self.position = self.position + 1 * self.direction if self.position > #self.frames then if self.mode == 1 then self.position = 1 elseif self.mode == 2 then self.position = self.position - 1 self:stop() elseif self.mode == 3 then self.direction = -1 self.position = self.position - 1 end elseif self.position < 1 and self.mode == 3 then self.direction = 1 self.position = self.position + 1 end end end --- Draw the animation -- @param x The X coordinate -- @param y The Y coordinate -- @param angle The angle to draw at (radians) -- @param sx The scale on the X axis -- @param sy The scale on the Y axis -- @param ox The X coordinate of the origin -- @param oy The Y coordinate of the origin function animation:draw(x, y, angle, sx, sy, ox, oy) love.graphics.drawq(self.img, self.frames[self.position], x, y, angle, sx, sy, ox, oy) end --- Add a frame -- @param x The X coordinate of the frame on the original image -- @param y The Y coordinate of the frame on the original image -- @param w The width of the frame -- @param h The height of the frame -- @param delay The delay before the next frame is shown function animation:addFrame(x, y, w, h, delay) local frame = love.graphics.newQuad(x, y, w, h, a.img:getWidth(), a.img:getHeight()) table.insert(self.frames, frame) table.insert(self.delays, delay) end --- Play the animation -- Starts it if it was stopped. -- Basically makes sure it uses the delays -- to switch to the next frame. function animation:play() self.playing = true end --- Stop the animation function animation:stop() self.playing = false end --- Reset -- Go back to the first frame. function animation:reset() self:seek(0) end --- Seek to a frame -- @param frame The frame to display now function animation:seek(frame) self.position = frame self.timer = 0 end --- Get the currently shown frame -- @return The current frame function animation:getCurrentFrame() return self.position end --- Get the number of frames -- @return The number of frames function animation:getSize() return #self.frames end --- Set the delay between frames -- @param frame Which frame to set the delay for -- @param delay The delay function animation:setDelay(frame, delay) self.delays[frame] = delay end --- Set the speed -- @param speed The speed to play at (1 is normal, 2 is double, etc) function animation:setSpeed(speed) self.speed = speed end --- Get the width of the current frame -- @return The width of the current frame function animation:getWidth() return self.frames[self.position]:getWidth() end --- Get the height of the current frame -- @return The height of the current frame function animation:getHeight() return self.frames[self.position]:getHeight() end --- Set the play mode -- Could be "loop" to loop it, "once" to play it once, or "bounce" to play it, reverse it, and play it again (looping) -- @param mode The mode: one of the above function animation:setMode(mode) if mode == "loop" then self.mode = 1 elseif mode == "once" then self.mode = 2 elseif mode == "bounce" then self.mode = 3 end end --- Animations_legacy_support -- @usage Add legacy support, basically set love.graphics.newAnimation again, and allow you to use love.graphics.draw if Animations_legacy_support then love.graphics.newAnimation = newAnimation local oldLGDraw = love.graphics.draw function love.graphics.draw(item, ...) if type(item) == "table" and item.draw then item:draw(...) else oldLGDraw(item, ...) end end end
mit
NezzKryptic/Wire
lua/wire/stools/vthruster.lua
3
8481
WireToolSetup.setCategory( "Physics/Force" ) WireToolSetup.open( "vthruster", "Vector Thruster", "gmod_wire_vectorthruster", nil, "Vector Thrusters" ) if ( CLIENT ) then language.Add( "Tool.wire_vthruster.name", "Vector Thruster Tool (Wire)" ) language.Add( "Tool.wire_vthruster.desc", "Spawns a vector thruster for use with the wire system." ) language.Add( "WireVThrusterTool_Mode", "Mode:" ) language.Add( "WireVThrusterTool_Angle", "Use Yaw/Pitch Inputs Instead" ) language.Add( "WireVThrusterTool_LengthIsMul", "Use Vector Length for Mul" ) TOOL.Information = { { name = "left_0", stage = 0, text = "Create/Update " .. TOOL.Name }, { name = "left_1", stage = 1, text = "Set the Angle, hold Shift to lock to 45 degrees" }, } end WireToolSetup.BaseLang() WireToolSetup.SetupMax( 10 ) TOOL.ClientConVar[ "force" ] = "1500" TOOL.ClientConVar[ "force_min" ] = "0" TOOL.ClientConVar[ "force_max" ] = "10000" TOOL.ClientConVar[ "model" ] = "models/jaanus/wiretool/wiretool_speed.mdl" TOOL.ClientConVar[ "bidir" ] = "1" TOOL.ClientConVar[ "soundname" ] = "" TOOL.ClientConVar[ "oweffect" ] = "fire" TOOL.ClientConVar[ "uweffect" ] = "same" TOOL.ClientConVar[ "owater" ] = "1" TOOL.ClientConVar[ "uwater" ] = "1" TOOL.ClientConVar[ "mode" ] = "0" TOOL.ClientConVar[ "angleinputs" ] = "0" TOOL.ClientConVar[ "lengthismul" ] = "0" if SERVER then function TOOL:GetConVars() return self:GetClientNumber( "force" ), self:GetClientNumber( "force_min" ), self:GetClientNumber( "force_max" ), self:GetClientInfo( "oweffect" ), self:GetClientInfo( "uweffect" ), self:GetClientNumber( "owater" ) ~= 0, self:GetClientNumber( "uwater" ) ~= 0, self:GetClientNumber( "bidir" ) ~= 0, self:GetClientInfo( "soundname" ), self:GetClientNumber( "mode" ), self:GetClientNumber( "angleinputs" ) ~= 0, self:GetClientNumber( "lengthismul" ) ~= 0 end end function TOOL:LeftClick( trace ) local numobj = self:NumObjects() local ply = self:GetOwner() if (numobj == 0) then if IsValid(trace.Entity) and trace.Entity:IsPlayer() then return false end -- If there's no physics object then we can't constraint it! if ( SERVER and not util.IsValidPhysicsObject( trace.Entity, trace.PhysicsBone ) ) then return false end if (CLIENT) then return true end local ent = WireToolObj.LeftClick_Make(self, trace, ply ) if isbool(ent) then return ent end if IsValid(ent) then ent:GetPhysicsObject():EnableMotion( false ) self:ReleaseGhostEntity() self:SetObject(1, trace.Entity, trace.HitPos, trace.Entity:GetPhysicsObjectNum(trace.PhysicsBone), trace.PhysicsBone, trace.HitNormal) self:SetObject(2, ent, trace.HitPos, ent:GetPhysicsObject(), 0, trace.HitNormal) self:SetStage(1) end else if (CLIENT) then return true end local anchor, wire_thruster = self:GetEnt(1), self:GetEnt(2) local anchorbone = self:GetBone(1) local const = WireLib.Weld(wire_thruster, anchor, anchorbone, true, false) local Phys = wire_thruster:GetPhysicsObject() Phys:EnableMotion( true ) undo.Create("WireVThruster") undo.AddEntity( wire_thruster ) undo.AddEntity( const ) undo.SetPlayer( ply ) undo.Finish() ply:AddCleanup( "wire_vthrusters", wire_thruster ) ply:AddCleanup( "wire_vthrusters", const ) self:ClearObjects() end return true end local degrees = 0 function TOOL:Think() if (self:NumObjects() > 0) then if ( SERVER ) then local Phys2 = self:GetPhys(2) local Norm2 = self:GetNormal(2) local cmd = self:GetOwner():GetCurrentCommand() degrees = degrees + cmd:GetMouseX() * 0.05 local ra = degrees if (self:GetOwner():KeyDown(IN_SPEED)) then ra = math.Round(ra/45)*45 end local Ang = Norm2:Angle() Ang.pitch = Ang.pitch + 90 Ang:RotateAroundAxis(Norm2, ra) Phys2:SetAngles( Ang ) Phys2:Wake() end else WireToolObj.Think(self) -- Basic ghost end end if (CLIENT) then function TOOL:FreezeMovement() return self:GetStage() == 1 end end function TOOL:Holster() if self:NumObjects() > 0 and IsValid(self:GetEnt(2)) then self:GetEnt(2):Remove() end self:ClearObjects() end function TOOL.BuildCPanel(panel) WireToolHelpers.MakePresetControl(panel, "wire_vthruster") WireDermaExts.ModelSelect(panel, "wire_vthruster_model", list.Get( "ThrusterModels" ), 4, true) local Effects = { ["#No Effects"] = "none", --["#Same as over water"] = "same", ["#Flames"] = "fire", ["#Plasma"] = "plasma", ["#Smoke"] = "smoke", ["#Smoke Random"] = "smoke_random", ["#Smoke Do it Youself"] = "smoke_diy", ["#Rings"] = "rings", ["#Rings Growing"] = "rings_grow", ["#Rings Shrinking"] = "rings_shrink", ["#Bubbles"] = "bubble", ["#Magic"] = "magic", ["#Magic Random"] = "magic_color", ["#Magic Do It Yourself"] = "magic_diy", ["#Colors"] = "color", ["#Colors Random"] = "color_random", ["#Colors Do It Yourself"] = "color_diy", ["#Blood"] = "blood", ["#Money"] = "money", ["#Sperms"] = "sperm", ["#Feathers"] = "feather", ["#Candy Cane"] = "candy_cane", ["#Goldstar"] = "goldstar", ["#Water Small"] = "water_small", ["#Water Medium"] = "water_medium", ["#Water Big"] = "water_big", ["#Water Huge"] = "water_huge", ["#Striderblood Small"] = "striderblood_small", ["#Striderblood Medium"] = "striderblood_medium", ["#Striderblood Big"] = "striderblood_big", ["#Striderblood Huge"] = "striderblood_huge", ["#More Sparks"] = "more_sparks", ["#Spark Fountain"] = "spark_fountain", ["#Jetflame"] = "jetflame", ["#Jetflame Blue"] = "jetflame_blue", ["#Jetflame Red"] = "jetflame_red", ["#Jetflame Purple"] = "jetflame_purple", ["#Comic Balls"] = "balls", ["#Comic Balls Random"] = "balls_random", ["#Comic Balls Fire Colors"] = "balls_firecolors", ["#Souls"] = "souls", --["#Debugger 10 Seconds"] = "debug_10", These are just buggy and shouldn't be used. --["#Debugger 30 Seconds"] = "debug_30", --["#Debugger 60 Seconds"] = "debug_60", ["#Fire and Smoke"] = "fire_smoke", ["#Fire and Smoke Huge"] = "fire_smoke_big", ["#5 Growing Rings"] = "rings_grow_rings", ["#Color and Magic"] = "color_magic", } local CateGoryOW = vgui.Create("DCollapsibleCategory") CateGoryOW:SetSize(0, 50) CateGoryOW:SetExpanded(0) CateGoryOW:SetLabel("Overwater Effect List") local ctrl = vgui.Create( "MatSelect", CateGoryOW ) ctrl:SetItemWidth( 128 ) ctrl:SetItemHeight( 128 ) ctrl:SetConVar("wire_vthruster_oweffect") for name, mat in pairs( Effects ) do ctrl:AddMaterialEx( name, "gui/thrustereffects/"..mat, mat, {wire_vthruster_oweffect = mat} ) end CateGoryOW:SetContents( ctrl ) panel:AddItem(CateGoryOW) Effects["#Same as over water"] = "same" local CateGoryUW = vgui.Create("DCollapsibleCategory") CateGoryUW:SetSize(0, 50) CateGoryUW:SetExpanded(0) CateGoryUW:SetLabel("Underwater Effect List") local ctrlUW = vgui.Create( "MatSelect", CateGoryUW ) ctrlUW:SetItemWidth( 128 ) ctrlUW:SetItemHeight( 128 ) ctrlUW:SetConVar("wire_vthruster_uweffect") for name, mat in pairs( Effects ) do ctrlUW:AddMaterialEx( name, "gui/thrustereffects/"..mat, mat, {wire_vthruster_uweffect = mat} ) end CateGoryUW:SetContents( ctrlUW ) panel:AddItem(CateGoryUW) local lst = {} for k,v in pairs( list.Get("ThrusterSounds") ) do lst[k] = {} for k2,v2 in pairs( v ) do lst[k]["wire_v"..k2] = v2 end end panel:AddControl( "ListBox", { Label = "#Thruster_Sounds", Options = lst } ) panel:NumSlider("#WireThrusterTool_force", "wire_vthruster_force", 1, 10000, 2 ) panel:NumSlider("#WireThrusterTool_force_min", "wire_vthruster_force_min", -10000, 10000, 2 ):SetTooltip("#WireThrusterTool_force_min.help") panel:NumSlider("#WireThrusterTool_force_max", "wire_vthruster_force_max", -10000, 10000, 2 ) panel:CheckBox("#WireThrusterTool_bidir", "wire_vthruster_bidir") panel:CheckBox("#WireThrusterTool_owater", "wire_vthruster_owater") panel:CheckBox("#WireThrusterTool_uwater", "wire_vthruster_uwater") panel:AddControl("ListBox", { Label = "#WireVThrusterTool_Mode", Options = { ["#XYZ Local"] = { wire_vthruster_mode = "0" }, ["#XYZ World"] = { wire_vthruster_mode = "1" }, ["#XY Local, Z World"] = { wire_vthruster_mode = "2" }, } }) panel:CheckBox("#WireVThrusterTool_Angle", "wire_vthruster_angleinputs") panel:CheckBox("#WireVThrusterTool_LengthIsMul", "wire_vthruster_lengthismul") end list.Set( "ThrusterModels", "models/jaanus/wiretool/wiretool_speed.mdl", {} )
apache-2.0
eraffxi/darkstar
scripts/zones/Windurst_Waters/npcs/Churano-Shurano.lua
2
1024
----------------------------------- -- Area: Windurst Waters -- NPC: Churano-Shurano -- Working 100% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:hasKeyItem(dsp.ki.MAGICKED_ASTROLABE) == false) then local cost = 10000; if (player:getVar("Astrolabe") == 0) then player:startEvent(1080, cost); else player:startEvent(1081, cost); end else player:startEvent(280); end end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 1080 and option == 1) then player:setVar("Astrolabe", 1); elseif (csid == 1081 and option == 1 and player:delGil(10000)) then player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.MAGICKED_ASTROLABE); player:addKeyItem(dsp.ki.MAGICKED_ASTROLABE); end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/armor/kashyyykian_ceremonial/armor_kashyyykian_ceremonial_leggings.lua
1
4092
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_armor_kashyyykian_ceremonial_armor_kashyyykian_ceremonial_leggings = object_tangible_wearables_armor_kashyyykian_ceremonial_shared_armor_kashyyykian_ceremonial_leggings:new { templateType = ARMOROBJECT, playerRaces = { "object/creature/player/wookiee_male.iff", "object/creature/player/wookiee_female.iff", "object/mobile/vendor/wookiee_female.iff", "object/mobile/vendor/wookiee_male.iff" }, -- Damage types in WeaponObject vulnerability = ACID + STUN + LIGHTSABER, -- These are default Blue Frog stats healthEncumbrance = 1, actionEncumbrance = 1, mindEncumbrance = 1, -- LIGHT, MEDIUM, HEAVY rating = LIGHT, kinetic = 15, energy = 15, electricity = 15, stun = 15, blast = 15, heat = 15, cold = 15, acid = 15, lightSaber = 0, numberExperimentalProperties = {1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1}, experimentalProperties = {"XX", "XX", "XX", "OQ", "SR", "OQ", "SR", "OQ", "UT", "MA", "OQ", "MA", "OQ", "MA", "OQ", "XX", "XX", "OQ", "SR", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "null", "exp_quality", "exp_durability", "exp_durability", "exp_durability", "exp_durability", "null", "null", "exp_resistance", "null"}, experimentalSubGroupTitles = {"null", "null", "sockets", "hit_points", "armor_effectiveness", "armor_integrity", "armor_health_encumbrance", "armor_action_encumbrance", "armor_mind_encumbrance", "armor_rating", "armor_special_type", "armor_special_effectiveness", "armor_special_integrity"}, experimentalMin = {0, 0, 0, 1000, 5, 15000, 49, 110, 26, 1, 1, 5, 15000}, experimentalMax = {0, 0, 0, 1000, 25, 25000, 33, 70, 19, 1, 1, 40, 25000}, experimentalPrecision = {0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 1, 1, 1, 1, 1, 1, 4, 4, 4, 1}, } ObjectTemplates:addTemplate(object_tangible_wearables_armor_kashyyykian_ceremonial_armor_kashyyykian_ceremonial_leggings, "object/tangible/wearables/armor/kashyyykian_ceremonial/armor_kashyyykian_ceremonial_leggings.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/faction/imperial/imperial_first_lieutenant.lua
1
1457
imperial_first_lieutenant = Creature:new { objectName = "@mob/creature_names:imperial_first_lieutenant", socialGroup = "imperial", pvpFaction = "imperial", faction = "imperial", level = 20, chanceHit = 0.33, damageMin = 190, damageMax = 200, baseXp = 1803, baseHAM = 5000, baseHAMmax = 6100, armor = 0, resists = {10,10,10,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK + KILLER, optionsBitmask = 128, diet = HERBIVORE, templates = {"object/mobile/dressed_imperial_lieutenant_m.iff"}, lootGroups = { { groups = { {group = "color_crystals", chance = 100000}, {group = "junk", chance = 6200000}, {group = "rifles", chance = 550000}, {group = "pistols", chance = 550000}, {group = "melee_weapons", chance = 550000}, {group = "carbines", chance = 550000}, {group = "clothing_attachments", chance = 25000}, {group = "armor_attachments", chance = 25000}, {group = "imperial_officer_common", chance = 450000}, {group = "wearables_common", chance = 1000000} }, lootChance = 2800000 } }, weapons = {"imperial_weapons_medium"}, conversationTemplate = "", attacks = merge(riflemanmaster,carbineermaster) } CreatureTemplates:addCreatureTemplate(imperial_first_lieutenant, "imperial_first_lieutenant")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/deed/event_perk/universe_flags_theater.lua
1
2276
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_deed_event_perk_universe_flags_theater = object_tangible_deed_event_perk_shared_universe_flags_theater:new { } ObjectTemplates:addTemplate(object_tangible_deed_event_perk_universe_flags_theater, "object/tangible/deed/event_perk/universe_flags_theater.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/item/wp_mle_sword_lightsaber_andael.lua
3
2256
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_static_item_wp_mle_sword_lightsaber_andael = object_static_item_shared_wp_mle_sword_lightsaber_andael:new { } ObjectTemplates:addTemplate(object_static_item_wp_mle_sword_lightsaber_andael, "object/static/item/wp_mle_sword_lightsaber_andael.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/deed/pet_deed/deed_surgical_advanced_basic.lua
1
4107
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_deed_pet_deed_deed_surgical_advanced_basic = object_tangible_deed_pet_deed_shared_deed_surgical_advanced_basic:new { templateType = DROIDDEED, controlDeviceObjectTemplate = "object/intangible/pet/21b_surgical_droid.iff", generatedObjectTemplate = "object/creature/npc/droid/crafted/2_1b_surgical_droid_advanced.iff", mobileTemplate = "surgical_droid_21b_crafted_advanced", numberExperimentalProperties = {1, 1, 3, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalProperties = {"XX", "XX", "OQ", "SR", "UT", "XX", "XX", "OQ", "SR", "UT", "OQ", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "exp_durability", "null", "null", "exp_quality", "exp_effectiveness", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "decayrate", "armor_toughness", "armorencumbrance", "mechanism_quality", "power_level", "storage_module", "data_module", "personality_module", "medical_module", "crafting_module", "repair_module", "armor_module", "armoreffectiveness", "playback_module", "struct_module", "harvest_power", "trap_bonus", "merchant_barker", "bomb_level", "stimpack_capacity", "stimpack_speed", "auto_repair_power", "entertainer_effects"}, experimentalMin = {0, 0, 5, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalMax = {0, 0, 15, 0, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_deed_surgical_advanced_basic, "object/tangible/deed/pet_deed/deed_surgical_advanced_basic.iff")
lgpl-3.0
widelands/widelands
data/tribes/workers/atlanteans/forester/init.lua
1
1680
push_textdomain("tribes") dirname = path.dirname(__file__) wl.Descriptions():new_worker_type { name = "atlanteans_forester", -- TRANSLATORS: This is a worker name used in lists of workers descname = pgettext("atlanteans_worker", "Forester"), animation_directory = dirname, icon = dirname .. "menu.png", vision_range = 2, buildcost = { atlanteans_carrier = 1, shovel = 1 }, programs = { plant = { "findspace=size:any radius:5 avoid:field saplingsearches:12", "walk=coords", "animate=dig duration:3s", -- Play a planting animation "animate=planting duration:2s", -- Play a planting animation "plant=attrib:tree_sapling", "animate=water duration:3s", "return" } }, animations = { idle = { hotspot = { 8, 23 }, }, }, spritesheets = { dig = { fps = 5, frames = 10, rows = 4, columns = 3, hotspot = { 5, 23 } }, planting = { fps = 10, frames = 10, rows = 4, columns = 3, hotspot = { 17, 21 } }, water = { fps = 5, frames = 10, rows = 4, columns = 3, hotspot = { 18, 25 } }, walk = { fps = 10, frames = 10, rows = 4, columns = 3, directional = true, hotspot = { 10, 23 } }, walkload = { basename = "walk", fps = 10, frames = 10, rows = 4, columns = 3, directional = true, hotspot = { 10, 23 } }, }, } pop_textdomain()
gpl-2.0
AwfulRanger/TF2Weapons
lua/weapons/tf2weapons_base.lua
1
65285
AddCSLuaFile() if CLIENT then include( "tf2weapons/mount.lua" ) end game.AddParticles( "particles/muzzle_flash.pcf" ) SWEP.TF2Weapon = true SWEP.ClassBases = {} SWEP.Weight = 5 SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true SWEP.Slot = 0 SWEP.SlotPos = 0 SWEP.BobScale = 1 SWEP.SwayScale = 0 SWEP.BounceWeaponIcon = false SWEP.DrawAmmo = true SWEP.DrawCrosshair = true SWEP.Crosshair = Material( "tf2weapons/crosshairs" ) SWEP.CrosshairType = TF2Weapons.Crosshair.DEFAULT SWEP.KillIcon = Material( "hud/dneg_images_v2" ) SWEP.KillIconColor = Color( 255, 255, 255, 255 ) SWEP.KillIconX = 0 SWEP.KillIconY = 32 SWEP.KillIconW = 96 SWEP.KillIconH = 32 SWEP.ProperName = false SWEP.PrintName = "TF2Weapons Base" SWEP.HUDName = nil SWEP.Author = "AwfulRanger" SWEP.Purpose = "" SWEP.Instructions = "" SWEP.Description = "" SWEP.Category = "Team Fortress 2" SWEP.Level = 101 SWEP.HUDLevel = nil SWEP.Type = "Weapon Base" SWEP.Base = "weapon_base" SWEP.Classes = { [ TF2Weapons.Class.NONE ] = true } SWEP.Quality = TF2Weapons.Quality.DEVELOPER SWEP.Spawnable = false SWEP.AdminOnly = false --Models still continue to play their animations when holstered, --so weapons like the wrench will continue to play their animation sounds. --These are the models to change to when holstered to prevent things like that from happening. SWEP.HolsteredViewModel = Model( "models/weapons/c_models/c_pistol/c_pistol.mdl" ) SWEP.HolsteredHandModel = Model( "models/weapons/c_models/c_scout_arms.mdl" ) --SWEP.ViewModel = Model( "models/weapons/c_models/c_ttg_max_gun/c_ttg_max_gun.mdl" ) SWEP.ViewModel = Model( "models/weapons/c_models/c_pistol/c_pistol.mdl" ) SWEP.WorldModel = Model( "models/weapons/c_models/c_pistol/c_pistol.mdl" ) SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 54 SWEP.UseHands = false SWEP.DisableAutomaticHands = false SWEP.HandModel = Model( "models/weapons/c_models/c_scout_arms.mdl" ) SWEP.HoldType = "pistol" function SWEP:GetAnimations() return "p" end function SWEP:GetInspect() return "secondary" end SWEP.MuzzleParticle = "" SWEP.MuzzleParticleCrit = nil SWEP.SkinRED = 0 SWEP.SkinBLU = 1 SWEP.DeployTime = 0.5 SWEP.NextDeploySpeed = 1 SWEP.SingleReload = false SWEP.Attributes = {} SWEP.AttributesOrder = {} SWEP.AttributeClass = {} SWEP.MinDistance = 0 --Distance for maximum damage rampup SWEP.NormalDistance = 512 --Distance for no damage rampup or falloff SWEP.MaxDistance = 1024 --Distance for maximum damage falloff SWEP.DamageRampup = 1.5 --Maximum damage rampup SWEP.DamageNormal = 1 --No damage rampup or falloff SWEP.DamageFalloff = 0.5 --Maximum damage falloff SWEP.Primary.ClipSize = 12 SWEP.Primary.DefaultClip = 48 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "tf2weapons_pistol" SWEP.Primary.Damage = 15 SWEP.Primary.Shots = 1 SWEP.Primary.Spread = 0.025 SWEP.Primary.SpreadRecovery = 1.25 SWEP.Primary.Force = 10 SWEP.Primary.TakeAmmo = 1 SWEP.Primary.Delay = 0.15 SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "none" SWEP.CritChance = 0.025 SWEP.CritMultiplier = 3 SWEP.CritStream = false SWEP.CritStreamCheck = 1 --How often (in seconds) to check for crit streams SWEP.CritStreamTime = 2 --How long (in seconds) crit streams last --[[ Name: SWEP:SetVariables() Desc: If you've got any variables that should be able to have different types, define them here. For example, SWEP:PlaySound() can take either a string or a table as the first argument, so if you want SWEP.ShootSound to be a string in this weapon, but allow it to be a table for weapons using this as a base without lua getting upset, define it here. ]]-- function SWEP:SetVariables() self.ShootSound = Sound( "weapons/pistol_shoot.wav" ) self.ShootSoundCrit = Sound( "weapons/pistol_shoot_crit.wav" ) self.EmptySound = Sound( "weapons/shotgun_empty.wav" ) end --[[ Name: SWEP:TFNetworkVar( vartype, varname, default, slot, extended ) Desc: Helper function for creating NetworkVars Arg1: Variable type Arg2: Variable name (this is automatically prefixed with "TF") Arg3: Default value. If unspecified, this won't be set Arg4: Slot. If unspecified, this will be set to self.CreatedNetworkVars[ vartype ] Arg5: Extended settings Ret1: NetworkVar value ]]-- function SWEP:TFNetworkVar( vartype, varname, default, slot, extended ) if self[ "GetTF" .. varname ] ~= nil or self[ "SetTF" .. varname ] ~= nil then return end if self.CreatedNetworkVars == nil then self.CreatedNetworkVars = {} end if self.CreatedNetworkVars[ vartype ] == nil then self.CreatedNetworkVars[ vartype ] = 0 end if slot ~= nil then self.CreatedNetworkVars[ vartype ] = slot end slot = self.CreatedNetworkVars[ vartype ] self:NetworkVar( vartype, slot, "TF" .. varname, extended ) if SERVER and default ~= nil then self[ "SetTF" .. varname ]( self, default ) end self.CreatedNetworkVars[ vartype ] = self.CreatedNetworkVars[ vartype ] + 1 return self[ "GetTF" .. varname ]( self ) end --[[ Name: SWEP:BaseDataTables() Desc: Creates the default networked variables Ret1: A table of unused IDs for each type ]]-- function SWEP:BaseDataTables() --[[ self:NetworkVar( "Bool", 0, "TFInspecting" ) self:NetworkVar( "Bool", 1, "TFInspectLoop" ) self:NetworkVar( "Bool", 2, "TFPreventInspect" ) self:NetworkVar( "Bool", 3, "TFReloading" ) self:NetworkVar( "Float", 0, "TFNextInspect" ) self:NetworkVar( "Float", 1, "TFNextIdle" ) self:NetworkVar( "Float", 2, "TFPrimaryLastShot" ) self:NetworkVar( "Float", 3, "TFReloadTime" ) self:NetworkVar( "Int", 0, "TFReloads" ) self:NetworkVar( "Int", 1, "TFReloadAmmo" ) self:NetworkVar( "Entity", 0, "TFLastOwner" ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) self:SetTFPreventInspect( false ) self:SetTFReloading( false ) self:SetTFNextInspect( 0 ) self:SetTFNextIdle( 0 ) self:SetTFPrimaryLastShot( 0 ) self:SetTFReloadTime( 0 ) self:SetTFReloads( 0 ) self:SetTFReloadAmmo( 0 ) self:SetTFLastOwner( nil ) return { String = 0, Bool = 4, Float = 4, Int = 2, Vector = 0, Angle = 0, Entity = 1, } ]]-- self:TFNetworkVar( "Bool", "Inspecting", false ) self:TFNetworkVar( "Bool", "InspectLoop", false ) self:TFNetworkVar( "Bool", "PreventInspect", false ) self:TFNetworkVar( "Bool", "Reloading", false ) self:TFNetworkVar( "Bool", "CritStreamActive", false ) self:TFNetworkVar( "Float", "NextInspect", 0 ) self:TFNetworkVar( "Float", "NextIdle", 0 ) self:TFNetworkVar( "Float", "PrimaryLastShot", 0 ) self:TFNetworkVar( "Float", "ReloadTime", 0 ) self:TFNetworkVar( "Float", "CritStreamEnd", 0 ) self:TFNetworkVar( "Float", "CritStreamNextCheck", 0 ) self:TFNetworkVar( "Int", "Reloads", 0 ) self:TFNetworkVar( "Int", "ReloadAmmo", 0 ) self:TFNetworkVar( "Int", "PlayerClass", 0 ) self:TFNetworkVar( "Entity", "LastOwner", nil ) return self.CreatedNetworkVars end --[[ Name: SWEP:SetupDataTables() Desc: Create your own networked variables here Run SWEP:BaseDataTables() here to include the default ones ]]-- function SWEP:SetupDataTables() self:BaseDataTables() end --[[ Name: SWEP:GetViewModels( owner ) Desc: Returns hands viewmodel and weapon viewmodel Arg1: Player to get viewmodels from. If unspecified, will use self:GetOwner() Ret1: Hands viewmodel Ret2: Weapon viewmodel ]]-- function SWEP:GetViewModels( owner ) if owner == nil then owner = self:GetOwner() end if IsValid( owner ) ~= true then return end --return owner:GetViewModel( 0 ), owner:GetViewModel( 1 ) return owner:GetViewModel( 1 ), owner:GetViewModel( 0 ) end --[[ Name: SWEP:AttributesMod( attributes, attributeclass ) Desc: Modify the weapon based on attributes Arg1: Attributes. If unspecified, will use SWEP.Attributes Arg2: Attribute classes. If unspecified, will use SWEP.AttributeClass ]]-- function SWEP:AttributesMod( attributes, attributeclass ) end --[[ Name: SWEP:DoAttributes( attributes, attributeclass ) Desc: Modify the weapon based on attributes Run SWEP:AttributesMod() here to include custom weapon modifications Arg1: Attributes. If unspecified, will use SWEP.Attributes Arg2: Attribute classes. If unspecified, will use SWEP.AttributeClass ]]-- function SWEP:DoAttributes( attributes, attributeclass ) if self.Primary ~= nil then self.Primary.DefaultClipSize = self.Primary.ClipSize end if self.Secondary ~= nil then self.Secondary.DefaultClipSize = self.Secondary.ClipSize end if attributes == nil then attributes = self.Attributes end if attributes == nil then return end if attributeclass == nil then attributeclass = self.AttributeClass end for _, v in pairs( attributes ) do if _ ~= "BaseClass" then local attribute = TF2Weapons:GetAttribute( _ ) local value if attribute ~= nil then if attribute.func ~= nil then value = attribute.func( self, v ) end if attributeclass ~= nil and value ~= nil then local class if attributeclass[ attribute.class ] ~= nil then class = attributeclass[ attribute.class ] end if attribute.type == "percentage" or attribute.type == "inverted_percentage" then if class == nil then class = { 1 } end for i = 1, #class do class[ i ] = class[ i ] * value[ i ] end elseif attribute.type == "additive" then if class == nil then class = { 0 } end for i = 1, #class do class[ i ] = class[ i ] + value[ i ] end elseif attribute.type == "or" then if class == nil then class = { 0 } end for i = 1, #class do class[ i ] = bit.bor( class[ i ], value[ i ] ) end else if class == nil then class = { 1 } end for i = 1, #class do class[ i ] = value[ i ] end end attributeclass[ attribute.class ] = class end end end end self:AttributesMod( attributes, attributeclass ) end --[[ Name: SWEP:GetTeam( ply, color ) Desc: Returns team to use for the weapon based on a color Arg1: Player to check. If unspecified, will use the owner Arg2: Color to check. If unspecified, will use the player's team color Ret1: False if RED team, true if BLU team ]]-- function SWEP:GetTeam( ply, color ) if ply == nil then ply = self:GetOwner() end if color ~= nil then return color.b > color.r end if IsValid( ply ) == true then return team.GetColor( ply:Team() ).b > team.GetColor( ply:Team() ).r else return false end end --[[ Name: SWEP:DoTeamSet( blu ) Desc: Default function to set team related values, like skins, models, particles, etc. Arg1: If on BLU team ]]-- function SWEP:DoTeamSet( blu ) local hands, weapon = self:GetViewModels() local skin if blu ~= true then skin = self.SkinRED else skin = self.SkinBLU end self:SetSkin( skin ) if IsValid( hands ) == true then hands:SetSkin( skin ) end if IsValid( weapon ) == true then weapon:SetSkin( skin ) end end --[[ Name: SWEP:TeamSet( blu ) Desc: Basic function to set team related values, like skins, models, particles, etc. Run SWEP:DoTeamSet() here to include the default team set Arg1: If on BLU team ]]-- function SWEP:TeamSet( blu ) self:DoTeamSet( blu ) end --[[ Name: SWEP:GetPlayerClass( ply ) Desc: Get the player's class ]]-- function SWEP:GetPlayerClass() if CLIENT then return self:GetTFPlayerClass() end local class = self:GetOwner():GetInfoNum( "tf2weapons_class", 1 ) if self.Classes[ class ] == nil then local found = false for i = 0, #TF2Weapons.Class do if self.Classes[ i ] == true and found ~= true then class = i found = true end end if found ~= true then class = 0 end end self:SetTFPlayerClass( class ) return class end function SWEP:DoPlayerClassSet( class ) end function SWEP:PlayerClassSet( class ) self:DoPlayerClassSet( class ) end SWEP.BuildBonePositionsAdded = false --[[ Name: SWEP:DoInitialize() Desc: Default functions to initialize the weapon ]]-- function SWEP:DoInitialize() if self.MinLevel ~= nil and self.MaxLevel ~= nil then self.Level = math.Round( util.SharedRandom( "tf2weapons_level", self.MinLevel, self.MaxLevel, CurTime() ) ) end if CLIENT then self:AddKillIcon( self.KillIcon, self.KillIconColor, self.KillIconX, self.KillIconY, self.KillIconW, self.KillIconH ) end self:SetHoldType( self.HoldType ) if self.HUDName == nil then self.HUDName = self.PrintName end timer.Simple( 0, function() if IsValid( self ) == true and IsValid( self:GetOwner() ) == true and IsValid( self:GetOwner():GetActiveWeapon() ) == true and self:GetOwner():GetActiveWeapon() == self then self:Deploy() self:AddHands() end end ) self:SetVariables() self:DoAttributes() if self.BuildBonePositionsAdded ~= true then self:AddCallback( "BuildBonePositions", function( ent, count ) self:BuildWorldModelBones( ent, count ) end ) self.BuildBonePositionsAdded = true end if self.MuzzleParticle ~= nil and self.MuzzleParticle ~= "" then self:PrecacheParticles( self.MuzzleParticle ) end end --[[ Name: SWEP:Initialize() Desc: Basic functions to initialize the weapon Run SWEP:DoInitialize() here to include the default initialization ]]-- function SWEP:Initialize() self:DoInitialize() end SWEP.Crosshairs = { [ TF2Weapons.Crosshair.ALL ] = { 0, 0, 1, 1 }, [ TF2Weapons.Crosshair.DEFAULT ] = { 0, 0, 0.25, 0.25 }, [ TF2Weapons.Crosshair.CIRCLE ] = { 0.25, 0.25, 0.5, 0.5 }, [ TF2Weapons.Crosshair.BIGCIRCLE ] = { 0.5, 0.5, 1, 1 }, [ TF2Weapons.Crosshair.PLUS ] = { 0.5, 0, 0.75, 0.25 }, [ TF2Weapons.Crosshair.BIGPLUS ] = { 0, 0.5, 0.25, 0.75 }, } --[[ Name: SWEP:DrawMeter( percent, text, x, y, w, h, bg, fg ) Desc: Draws a meter Arg1: Percentage of the meter to fill (0 for none, 1 for all) Arg2: Display text of the percentage or not Arg3: X position to draw at. If unspecified, will use ScrW() * 0.5 Arg4: Y position to draw at. If unspecified, will use ScrH() * 0.5 Arg5: Width of the meter. If unspecified, will use ScrW() * 0.05 Arg6: Height of the meter. If unspecified, will use ScrH() * 0.015 Arg7: Color of the background. If unspecified, will use 200, 200, 200, 200 Arg8: Color of the foreground. If unspecified, will use 255, 255, 255, 255 ]]-- function SWEP:DrawMeter( percent, text, x, y, w, h, bg, fg ) if percent == nil then percent = 0 end if percent < 0 then percent = 0 end if percent > 1 then percent = 1 end local xpos = x or ScrW() * 0.5 local ypos = y or ScrH() * 0.5 local wide = w or ScrW() * 0.05 local tall = h or ScrH() * 0.015 local back = bg or Color( 200, 200, 200, 200 ) local fore = fg or Color( 255, 255, 255, 255 ) surface.SetDrawColor( back ) surface.DrawRect( xpos - wide, ypos + ( tall * 5 ), wide * 2, tall ) surface.SetDrawColor( fore ) surface.DrawRect( xpos - wide, ypos + ( tall * 5 ), ( wide * 2 ) * percent, tall ) end --[[ Name: SWEP:OnDrawCrosshair( x, y ) Desc: Default function for drawing the crosshair Arg1: X position to draw crosshair at Arg2: Y position to draw crosshair at ]]-- function SWEP:OnDrawCrosshair( x, y ) if self.DrawCrosshair ~= true then return end surface.SetDrawColor( 255, 255, 255, 255 ) surface.SetMaterial( self.Crosshair ) local tw = self.Crosshair:Width() local th = self.Crosshair:Height() if self.Crosshairs[ self.CrosshairType ] ~= nil then local crosshair = self.Crosshairs[ self.CrosshairType ] local uw = math.max( crosshair[ 1 ], crosshair[ 3 ] ) - math.min( crosshair[ 1 ], crosshair[ 3 ] ) local uh = math.max( crosshair[ 2 ], crosshair[ 4 ] ) - math.min( crosshair[ 2 ], crosshair[ 4 ] ) local w = tw * uw local h = th * uh surface.DrawTexturedRectUV( x - ( w * 0.5 ), y - ( h * 0.5 ), w, h, crosshair[ 1 ], crosshair[ 2 ], crosshair[ 3 ], crosshair[ 4 ] ) else surface.DrawTexturedRect( x - size, y - size, size * 2, size * 2 ) end end --[[ Name: SWEP:DoDrawCrosshair( x, y ) Desc: Draw the crosshair Arg1: X position to draw crosshair at Arg2: Y position to draw crosshair at Ret1: Return true to prevent drawing the default crosshair ]]-- function SWEP:DoDrawCrosshair( x, y ) self:OnDrawCrosshair( x, y ) return true end --[[ Name: SWEP:GetAttribute( id, slot, pretty ) Desc: Returns an attribute value Arg1: Attribute ID to get Arg2: Attribute slot to get. If unspecified, will use slot 1 Arg3: If true, returns a percentage based string Ret1: Attribute value ]]-- function SWEP:GetAttribute( id, slot, pretty ) local value if slot == nil then slot = 1 end local attribute = self.Attributes[ id ] if attribute == nil and TF2Weapons:GetAttribute( id ) ~= nil then local a = TF2Weapons:GetAttribute( id ) if self.Attributes[ a.id ] ~= nil then attribute = self.Attributes[ a.id ] end if self.Attributes[ a.name ] ~= nil then attribute = self.Attributes[ a.name ] end end if attribute == nil then return end if attribute[ slot ] == nil then return value end value = attribute[ slot ] if pretty == true then local attribute_ = TF2Weapons:GetAttribute( id ) if attribute_ == nil then return value elseif attribute_.type == "percentage" then value = tostring( ( attribute[ slot ] - 1 ) * 100 ) elseif attribute_.type == "inverted_percentage" then value = tostring( ( 1 - attribute[ slot ] ) * 100 ) else value = tostring( attribute[ slot ] ) end end return value end --[[ Name: SWEP:GetAttributeClass( id, slot, pretty ) Desc: Returns an attribute class value Arg1: Attribute class ID to get Arg2: Attribute class slot to get. If unspecified, will use slot 1 Arg3: If true, returns a percentage based string Ret1: Attribute class value ]]-- function SWEP:GetAttributeClass( id, slot, pretty ) local value if slot == nil then slot = 1 end local a = TF2Weapons:GetAttribute( id ) local class = self.AttributeClass[ id ] if class == nil and a ~= nil then if self.AttributeClass[ a.id ] ~= nil then class = self.AttributeClass[ a.id ] end if self.AttributeClass[ a.name ] ~= nil then class = self.AttributeClass[ a.name ] end end if class == nil then return end if class[ slot ] == nil then return value end value = class[ slot ] if pretty == true then if a == nil then return value elseif a.type == "percentage" then value = tostring( ( class[ slot ] - 1 ) * 100 ) elseif a.type == "inverted_percentage" then value = tostring( ( 1 - class[ slot ] ) * 100 ) else value = tostring( class[ slot ] ) end end return value end local textcache = {} function textwidth( text, w, font ) if textcache[ font ] ~= nil and textcache[ font ][ text ] ~= nil and textcache[ font ][ w ][ text ] ~= nil then return textcache[ font ][ w ][ text ] end local str = text if surface.GetTextSize( text ) > w then if #text <= 1 then return "" end local pos = 0 for i = 1, #text - 1 do if string.sub( text, i, i ) == " " then local str_ = string.sub( text, 1, i ) if surface.GetTextSize( str_ ) < w then pos = i str = str_ .. "\n" end end end if str ~= text and pos ~= 0 then str = str .. textwidth( string.sub( text, pos + 1 ), w, font ) end end if textcache[ font ] == nil then textcache[ font ] = {} end if textcache[ font ][ w ] == nil then textcache[ font ][ w ] = {} end textcache[ font ][ w ][ text ] = str return str end --[[ Name: SWEP:PrintWeaponInfo( x, y, a ) Desc: Draw the weapon info that appears when selecting this weapon Arg1: X position to draw info at Arg2: Y position to draw info at Arg3: Alpha color value ]]-- function SWEP:PrintWeaponInfo( x, y, a ) if self.DrawWeaponInfoBox == false then return end local textsize = ScrW() * 0.315 surface.SetFont( "TF2Weapons_InfoPrimary" ) local name = self.HUDName if name[ 1 ] == "#" then name = string.Replace( language.GetPhrase( name ), "\\n", "\n" ) end if self.ProperName == true then name = language.GetPhrase( "TF_Unique_Prepend_Proper" ) .. name end local prefix = TF2Weapons.QualityPrefix[ self.Quality ] if prefix[ 1 ] == "#" then prefix = string.Replace( language.GetPhrase( prefix ), "\\n", "\n" ) end if prefix ~= nil and prefix ~= "" then name = prefix .. " " .. name end name = textwidth( name, textsize, "TF2Weapons_InfoPrimary" ) local level = self.Level if self.HUDLevel ~= nil then level = self.HUDLevel end local wtype = self.Type if wtype[ 1 ] == "#" then wtype = string.Replace( language.GetPhrase( wtype ), "\\n", "\n" ) end surface.SetFont( "TF2Weapons_InfoSecondary" ) local iteminfo = textwidth( "Level " .. level .. " " .. wtype, textsize, "TF2Weapons_InfoSecondary" ) local desc = self.Description if desc ~= nil and desc[ 1 ] == "#" then desc = string.Replace( language.GetPhrase( desc ), "\\n", "\n" ) end desc = textwidth( desc, textsize, "TF2Weapons_InfoSecondary" ) --size local width = 0 local height = 0 local w = 0 local h = 0 surface.SetFont( "TF2Weapons_InfoPrimary" ) w, h = surface.GetTextSize( name ) if w > width then width = w end height = height + h surface.SetFont( "TF2Weapons_InfoSecondary" ) w, h = surface.GetTextSize( iteminfo ) if w > width then width = w end height = height + h if desc ~= nil and desc ~= "" then local explode = string.Explode( "\n", desc ) for i = 1, #explode do w, h = surface.GetTextSize( explode[ i ] ) if w > width then width = w end height = height + h end end if self.AttributesOrder[ 1 ] ~= nil then for i = 1, #self.AttributesOrder do local order = self.AttributesOrder[ i ] local attribute = TF2Weapons:GetAttribute( order ) if attribute ~= nil and attribute.hidden ~= true then local text = attribute.desc if text ~= nil and text[ 1 ] == "#" then text = string.Replace( language.GetPhrase( text ), "\\n", "\n" ) end for i_ = 1, #self.Attributes[ order ] do text = string.Replace( text, "%s" .. i_, self:GetAttribute( order, i_, true ) ) end text = textwidth( text, textsize, "TF2Weapons_InfoSecondary" ) w, h = surface.GetTextSize( text ) if w > width then width = w end height = height + h end end else for _, v in pairs( self.Attributes ) do if _ ~= "BaseClass" then local attribute = TF2Weapons:GetAttribute( _ ) if attribute ~= nil and attribute.hidden ~= true then local text = attribute.desc if text ~= nil and text[ 1 ] == "#" then text = string.Replace( language.GetPhrase( text ), "\\n", "\n" ) end for i = 1, #v do text = string.Replace( text, "%s" .. i, self:GetAttribute( _, i, true ) ) end text = textwidth( text, textsize, "TF2Weapons_InfoSecondary" ) w, h = surface.GetTextSize( text ) if w > width then width = w end height = height + h end end end end --draw surface.SetDrawColor( 60, 54, 47, 255 ) surface.DrawRect( x, y, width + ( 20 * ( ScrH() / 480 ) ), height + ( 20 * ( ScrH() / 480 ) ) ) local height_ = 0 surface.SetFont( "TF2Weapons_InfoPrimary" ) w, h = surface.GetTextSize( name ) surface.SetTextColor( TF2Weapons.QualityColor[ self.Quality ] ) if width > w then surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ) + ( ( width - w ) * 0.5 ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) else surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) end surface.DrawText( name ) height_ = height_ + h surface.SetFont( "TF2Weapons_InfoSecondary" ) w, h = surface.GetTextSize( iteminfo ) surface.SetTextColor( TF2Weapons.Color.LEVEL ) if width > w then surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ) + ( ( width - w ) * 0.5 ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) else surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) end surface.DrawText( iteminfo ) height_ = height_ + h if self.AttributesOrder[ 1 ] ~= nil then for i = 1, #self.AttributesOrder do local order = self.AttributesOrder[ i ] local attribute = TF2Weapons:GetAttribute( order ) if attribute ~= nil and attribute.hidden ~= true then local text = attribute.desc if text ~= nil and text[ 1 ] == "#" then text = string.Replace( language.GetPhrase( text ), "\\n", "\n" ) end for i_ = 1, #self.Attributes[ order ] do text = string.Replace( text, "%s" .. i_, self:GetAttribute( order, i_, true ) ) end text = textwidth( text, textsize, "TF2Weapons_InfoSecondary" ) local explode = string.Explode( "\n", text ) for i = 1, #explode do w, h = surface.GetTextSize( explode[ i ] ) surface.SetTextColor( attribute.color ) if width > w then surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ) + ( ( width - w ) * 0.5 ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) else surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) end surface.DrawText( explode[ i ] ) height_ = height_ + h end end end else for _, v in pairs( self.Attributes ) do local attribute = TF2Weapons:GetAttribute( _ ) if attribute ~= nil and attribute.hidden ~= true then local text = attribute.desc if text ~= nil and text[ 1 ] == "#" then text = string.Replace( language.GetPhrase( text ), "\\n", "\n" ) end for i = 1, #v do text = string.Replace( text, "%s" .. i, self:GetAttribute( _, i, true ) ) end text = textwidth( text, textsize, "TF2Weapons_InfoSecondary" ) local explode = string.Explode( "\n", text ) for i = 1, #explode do w, h = surface.GetTextSize( explode[ i ] ) surface.SetTextColor( attribute.color ) if width > w then surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ) + ( ( width - w ) * 0.5 ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) else surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) end surface.DrawText( explode[ i ] ) height_ = height_ + h end end end end if desc ~= nil and desc ~= "" then local explode = string.Explode( "\n", desc ) for i = 1, #explode do w, h = surface.GetTextSize( explode[ i ] ) surface.SetTextColor( TF2Weapons.Color.NEUTRAL ) if width > w then surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ) + ( ( width - w ) * 0.5 ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) else surface.SetTextPos( x + ( 10 * ( ScrH() / 480 ) ), y + ( 10 * ( ScrH() / 480 ) ) + height_ ) end surface.DrawText( explode[ i ] ) height_ = height_ + h end end end --[[ Name: SWEP:AddKillIcon( icon, color, x, y, w, h, class ) Desc: Add a UV kill icon to the weapon Arg1: Material with the kill icon Arg2: Color for the kill icon Arg3: X position of the material to use for kill icon Arg4: Y position of the material to use for kill icon Arg5: Width of the UV Arg6: Height of the UV Arg7: Entity class to add killicon for ]]-- function SWEP:AddKillIcon( icon, color, x, y, w, h, class ) if killicon.AddUV == nil then return end if class == nil then class = self.ClassName end local tw, th = surface.GetTextureSize( surface.GetTextureID( icon:GetName() ) ) x = x / tw y = y / th w = x + ( w / tw ) h = y + ( h / th ) killicon.AddUV( class, icon, color, x, y, w, h ) end --[[ Name: SWEP:GetHandAnim( key ) Desc: Returns a sequence name based on the weapon animations and a keyword Arg1: Keyword to look for Ret1: Sequence name ]]-- function SWEP:GetHandAnim( key ) math.randomseed( CurTime() ) local anim local key_ = key if key == "swing" then local rand = math.random( 0, 1 ) if rand == 0 then key_ = "swing_a" else key_ = "swing_b" end elseif key == "crit" then key_ = "swing_c" end if istable( self:GetAnimations() ) == true then if istable( self:GetAnimations()[ key ] ) == true then anim = self:GetAnimations()[ key ][ math.random( 1, #self:GetAnimations()[ key ] ) ] else anim = self:GetAnimations()[ key ] end elseif self:GetAnimations() == "" or self:GetAnimations() == nil then anim = key_ else anim = self:GetAnimations() .. "_" .. key_ end return anim end --[[ Name: SWEP:GetInspectAnim( key ) Desc: Returns a sequence name based on the inspect animations and a keyword Arg1: Keyword to look for Ret1: Sequence name ]]-- function SWEP:GetInspectAnim( key ) local anim if istable( self:GetInspect() ) == true then if istable( self:GetInspect()[ key ] ) == true then anim = self:GetInspect()[ key ][ math.random( 1, #self:GetInspect()[ key ] ) ] else anim = self:GetInspect()[ key ] end elseif self:GetInspect() == "" or self:GetInspect() == nil then anim = key else anim = self:GetInspect() .. "_" .. key end return anim end SWEP.DefaultRate = 1 --[[ Name: SWEP:SetVMAnimation( seq, rate ) Desc: Sets the animation of the viewmodel hands Arg1: Sequence name Arg2: Playback rate ]]-- function SWEP:SetVMAnimation( seq, rate ) if IsValid( self:GetOwner() ) == false then return end local hands, weapon = self:GetViewModels() local id, dur if IsValid( hands ) == true then id, dur = hands:LookupSequence( seq ) if id == -1 or dur == 0 then return id, dur end if rate == nil then rate = self.DefaultRate end dur = dur / rate self:SetTFNextIdle( CurTime() + dur ) hands:SendViewModelMatchingSequence( id ) hands:SetPlaybackRate( rate ) end return id, dur end --[[ Name: SWEP:GetVMAnimation() Desc: Returns the index of the hands' active sequence Ret1: Sequence index ]]-- function SWEP:GetVMAnimation() if IsValid( self:GetOwner() ) == false then return -1 end local hands, weapon = self:GetViewModels() return hands:GetSequence() end --[[ Name: SWEP:GetHandModel() Desc: Returns hand model based on the owner's class Ret1: Hand model ]]-- function SWEP:GetHandModel() local hands = self.HandModel if self.DisableAutomaticHands ~= true then if TF2Weapons.ClassHand[ self:GetPlayerClass() ] ~= nil then return TF2Weapons.ClassHand[ self:GetPlayerClass() ] end end if hands == "models/weapons/c_models/c_engineer_arms.mdl" and self:GetOwner():HasWeapon( "tf_weapon_robot_arm" ) == true then hands = Model( "models/weapons/c_models/c_engineer_gunslinger.mdl" ) elseif hands == "models/weapons/c_models/c_engineer_gunslinger.mdl" and self:GetOwner():HasWeapon( "tf_weapon_robot_arm" ) ~= true then hands = Model( "models/weapons/c_models/c_engineer_arms.mdl" ) end return hands end --[[ Name: SWEP:AddHands( owner ) Desc: Creates and initializes weapon and hands viewmodels Arg1: Player to create viewmodels for, will use owner if this is unspecified ]]-- function SWEP:AddHands( owner ) if owner == nil then owner = self:GetOwner() end if IsValid( owner ) == false then return end local hands, weapon = self:GetViewModels( owner ) local handmodel = self:GetHandModel() if IsValid( hands ) == true and handmodel ~= nil and handmodel ~= "" then hands:SetWeaponModel( handmodel, self ) hands:SetNoDraw( false ) end if IsValid( weapon ) == true and self.ViewModel ~= nil and self.ViewModel ~= "" then weapon:SetWeaponModel( self.ViewModel, self ) if IsValid( hands ) == true and handmodel ~= nil and handmodel ~= "" then weapon:SetParent( hands ) weapon:AddEffects( EF_BONEMERGE ) end weapon:SetNoDraw( false ) end end --[[ Name: SWEP:RemoveHands( owner ) Desc: Removes weapon and hands viewmodels Arg1: Player to remove viewmodels for. If this is unspecified, this will be the owner ]]-- function SWEP:RemoveHands( owner ) if game.SinglePlayer() == true and CLIENT then return end if owner == nil then owner = self:GetOwner() end if IsValid( owner ) == false then return end local hands, weapon = self:GetViewModels( owner ) if IsValid( hands ) == true then --hands:SetWeaponModel( self:GetHandModel(), nil ) hands:SetWeaponModel( self.HolsteredHandModel, nil ) end if IsValid( weapon ) == true then weapon:SetParent( nil ) weapon:RemoveEffects( EF_BONEMERGE ) --weapon:SetWeaponModel( self.ViewModel, nil ) weapon:SetWeaponModel( self.HolsteredViewModel, nil ) end end --[[ Name: SWEP:CheckHands( owner ) Desc: Checks if viewmodels are not properly set up and if not, fixes them Arg1: Player to check viewmodels for. If this is unspecified, this will be the owner ]]-- function SWEP:CheckHands( owner ) if owner == nil then owner = self:GetOwner() end if IsValid( owner ) == false then return end local hands, weapon = self:GetViewModels( owner ) if IsValid( weapon ) == false or IsValid( hands ) == false or weapon:GetParent() ~= hands or weapon:IsEffectActive( EF_BONEMERGE ) == false or hands:GetModel() ~= self:GetHandModel() or weapon:GetModel() ~= self.ViewModel then self:AddHands() end end SWEP.TF2Weapons_SoundPlaying = nil --[[ Name: SWEP:PlaySound( sound, num, ent, channel ) Desc: Plays a sound from the weapon Arg1: Sound to play, can be either a string or a table Arg2: If Arg1 is a table, this is the index of the table to play. If unspecified, this will be a random number from the table. Arg3: Entity to play the sound from. If unspecified, this will be self Arg4: Channel to play the sound in Ret1: Sound name Ret2: Sound duration ]]-- function SWEP:PlaySound( sound, num, ent, channel ) if sound == nil then if IsValid( ent ) == true then ent.TF2Weapons_SoundPlaying = nil end return end local _sound if istable( sound ) == true then if num == nil then num = math.random( #sound ) end _sound = sound[ num ] else _sound = sound end local dur = SoundDuration( _sound ) if SERVER then dur = dur * 0.5 end --SoundDuration returns double the actual value on the server for some reason if ent == nil then ent = self end ent:EmitSound( _sound, nil, nil, nil, channel ) ent.TF2Weapons_SoundPlaying = _sound return _sound, dur end --[[ Name: SWEP:PrecacheParticles( particles ) Desc: Precaches particles Arg1: Particles to precache, can be either a string or a table ]]-- function SWEP:PrecacheParticles( particles ) if istable( particles ) == true then for _, v in pairs( particles ) do if isstring( v ) == true then PrecacheParticleSystem( v ) end end else PrecacheParticleSystem( particles ) end end function SWEP:SetPlayerAnimation( anim ) if IsValid( self:GetOwner() ) == true and ( ( CLIENT and self:DrawingVM() ~= true ) or ( SERVER and game.SinglePlayer() ~= true ) ) then self:GetOwner():SetAnimation( anim ) end end SWEP.CreatedParticles = {} --[[ Name: SWEP:AddParticle( particle, options ) Desc: Attaches particles to the weapon Arg1: Particle to attach to the weapon Arg2: Table containing tables with control point options. Example: { --Control point 0 { entity = self, attachtype = PATTACH_POINT_FOLLOW, attachment = 0, position = Vector( 0, 0, 0 ), }, --Create more tables in here for each control point } Ret1: Particle Ret2: Particle ID ]]-- function SWEP:AddParticle( particle, options ) if ( game.SinglePlayer() ~= true and IsFirstTimePredicted() ~= true ) or particle == nil or particle == "" or options == nil then return end if SERVER then net.Start( "tf2weapons_addparticle" ) net.WriteEntity( self ) net.WriteString( particle ) net.WriteInt( #options, 32 ) if #options > 0 then for i = 1, #options do net.WriteType( options[ i ].entity ) net.WriteType( options[ i ].attachtype ) net.WriteType( options[ i ].attachment ) net.WriteType( options[ i ].position ) end end net.Broadcast() else local num = #self.CreatedParticles local mdls = {} for i = 1, #options do local option = options[ i ] if option.entity == nil then option.entity = self end if IsValid( option.entity ) == true and isstring( option.attachment ) == true then option.attachment = option.entity:LookupAttachment( option.attachment ) end if option.attachtype == PATTACH_POINT_FOLLOW and option.attachment ~= nil and IsValid( option.entity ) == true then local attach = option.entity:GetAttachment( option.attachment ) local ang = Angle( 0, 0, 0 ) if attach ~= nil and attach.Ang ~= nil then ang = attach.Ang end local mdl = ClientsideModel( "models/weapons/w_models/w_drg_ball.mdl" ) mdl:SetNoDraw( true ) mdl:SetPos( option.entity:GetPos() ) mdl:SetAngles( ang ) mdl:SetParent( option.entity, option.attachment ) option.entity = mdl table.insert( mdls, mdl ) option.attachtype = PATTACH_ABSORIGIN end end local newparticle = self:CreateParticleEffect( particle, options ) for i = 1, #mdls do mdls[ i ].particle = newparticle end self.CreatedParticles[ num + 1 ] = { particle = newparticle, models = mdls, } return newparticle, num end end --[[ Name: SWEP:GetParticle( id ) Desc: Returns a particle based on ID Arg1: Particle ID Ret1: Particle ]]-- function SWEP:GetParticle( id ) return self.CreatedParticles[ id ] end --[[ Name: SWEP:RemoveParticle( particletbl, force ) Desc: Remove a particle Arg1: Particle table Arg2: Force ]]-- function SWEP:RemoveParticle( particletbl, force ) local remove = {} local particle = particletbl.particle local models = particletbl.models if IsValid( particle ) == true then if force == true then particle:StopEmissionAndDestroyImmediately() else particle:StopEmission() end end if force == true then for i_ = 1, #models do if IsValid( models[ i_ ] ) == true then models[ i_ ]:Remove() end end end end --[[ Name: SWEP:RemoveParticles( force ) Desc: Removes all particles Arg1: Force ]]-- function SWEP:RemoveParticles( force ) for i = 1, #self.CreatedParticles do self:RemoveParticle( self.CreatedParticles[ i ], force ) if force == true then self.CreatedParticles[ i ] = nil end end end --[[ Name: SWEP:HandleParticles() Desc: Handles particles ]]-- function SWEP:HandleParticles() local remove = {} for i = 1, #self.CreatedParticles do local tbl = self.CreatedParticles[ i ] if IsValid( tbl.particle ) ~= true then self:RemoveParticle( tbl, true ) table.insert( remove, i ) end end for i = 1, #remove do table.remove( self.CreatedParticles, remove[ i ] ) end end --[[ Name: SWEP:CanInspect() Desc: Returns if the weapon can be inspected Ret1: If the weapon can be inspected ]]-- function SWEP:CanInspect() if self:GetTFPreventInspect() == true then return false end if IsValid( self:GetOwner() ) == false then return false end if self:GetInspect() == nil then return false end if self:GetInspect() == "" then return false end if CurTime() < self:GetNextPrimaryFire() then return false end return true end --[[ Name: SWEP:Inspect() Desc: Weapon inspection ]]-- function SWEP:Inspect() if self:CanInspect() ~= true then return end local hands, weapon = self:GetViewModels() if self:GetOwner().TF2Weapons_Inspecting == nil then self:GetOwner().TF2Weapons_Inspecting = false elseif self:GetOwner().TF2Weapons_Inspecting == true or hands:GetSequence() == hands:LookupSequence( self:GetInspectAnim( "inspect_start" ) ) then self:SetTFReloading( false ) if CurTime() > self:GetTFNextInspect() then self:SetTFInspecting( true ) if self:GetTFInspectLoop() == true then self:SetVMAnimation( self:GetInspectAnim( "inspect_idle" ) ) self:SetTFNextInspect( CurTime() + hands:SequenceDuration( self:GetInspectAnim( "inspect_idle" ) ) ) self:SetTFNextIdle( -1 ) elseif self:GetTFInspectLoop() ~= true then self:SetVMAnimation( self:GetInspectAnim( "inspect_start" ) ) self:SetTFNextInspect( CurTime() + hands:SequenceDuration( self:GetInspectAnim( "inspect_start" ) ) ) self:SetTFInspectLoop( true ) self:SetTFNextIdle( -1 ) end end elseif self:GetTFInspecting() == true and hands:GetSequence() ~= hands:LookupSequence( self:GetInspectAnim( "inspect_start" ) ) then self:SetVMAnimation( self:GetInspectAnim( "inspect_end" ) ) self:SetTFNextInspect( CurTime() + hands:SequenceDuration( self:GetInspectAnim( "inspect_end" ) ) ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) self:SetTFReloading( false ) end end --[[ Name: SWEP:Idle() Desc: Weapon idle ]]-- function SWEP:Idle() if self:GetTFNextIdle() ~= -1 and CurTime() > self:GetTFNextIdle() then local hands, weapon = self:GetViewModels() local idle = self:GetHandAnim( "idle" ) hands:SetSequence( idle ) hands:SetPlaybackRate( self.DefaultRate ) self:SetTFNextIdle( CurTime() + hands:SequenceDuration( idle ) ) end end --[[ Name: SWEP:HandleCritStreams() Desc: Handle crit streams ]]-- function SWEP:HandleCritStreams() if self.CritStream ~= true then return end if CurTime() > self:GetTFCritStreamNextCheck() then if self:ShouldCrit( nil, true ) == true then self:SetTFCritStreamActive( true ) self:SetTFCritStreamEnd( CurTime() + self.CritStreamTime ) end self:SetTFCritStreamNextCheck( CurTime() + self.CritStreamCheck ) end if self:GetTFCritStreamActive() == true and CurTime() > self:GetTFCritStreamEnd() then self:SetTFCritStreamActive( false ) self:SetTFCritStreamEnd( 0 ) end end --[[ Name: SWEP:Think() Desc: Ran each tick/frame ]]-- function SWEP:Think() if IsValid( self:GetOwner() ) == false then return end self:HandleParticles() self:SetTFLastOwner( self:GetOwner() ) self:CheckHands() self:DoReload() self:Idle() self:HandleCritStreams() self:Inspect() end SWEP.ReloadSpeed = 1 SWEP.ReloadAddAmmo = 1 SWEP.ReloadTakeAmmo = 1 --[[ Name: SWEP:DoReload() Desc: Weapon reloading ]]-- function SWEP:DoReload() local hands, weapon = self:GetViewModels() if self:GetTFReloading() == true then local reload_end = self:GetHandAnim( "reload_end" ) self:SetTFPreventInspect( true ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) if CurTime() > self:GetTFReloadTime() then if ( self:GetNextPrimaryFire() > CurTime() and self:Clip1() > 0 ) or self:Clip1() >= self:GetMaxClip1() or self:Ammo1() <= 0 then self:SetTFPreventInspect( false ) self:SetTFReloading( false ) if self.SingleReload == true then self:SetVMAnimation( reload_end, self.ReloadSpeed ) end return end if self.SingleReload == true then local reload_start = self:GetHandAnim( "reload_start" ) if self:GetTFReloads() ~= 0 then self:GetOwner():RemoveAmmo( self.ReloadTakeAmmo, self:GetPrimaryAmmoType() ) self:SetClip1( self:Clip1() + self.ReloadAddAmmo ) end local reload_loop = self:GetHandAnim( "reload_loop" ) if self:GetTFReloads() >= self:GetMaxClip1() - self:GetTFReloadAmmo() then self:SetTFPreventInspect( false ) self:SetTFReloading( false ) self:SetVMAnimation( reload_end, self.ReloadSpeed ) elseif self:Ammo1() <= 0 then self:SetTFPreventInspect( false ) self:SetTFReloading( false ) if self.SingleReload == true then self:SetVMAnimation( reload_end, self.ReloadSpeed ) end return else self:SetPlayerAnimation( PLAYER_RELOAD ) local id, dur = self:SetVMAnimation( reload_loop, self.ReloadSpeed ) self:SetTFReloadTime( CurTime() + dur ) end self:SetTFReloads( self:GetTFReloads() + self.ReloadAddAmmo ) else local removeammo = ( self:GetMaxClip1() - self:Clip1() ) * self.ReloadTakeAmmo if self:Clip1() + self:GetOwner():GetAmmoCount( self:GetPrimaryAmmoType() ) < self:GetMaxClip1() then self:SetClip1( self:Clip1() + self:GetOwner():GetAmmoCount( self:GetPrimaryAmmoType() ) ) else self:SetClip1( self:GetMaxClip1() ) end self:GetOwner():RemoveAmmo( removeammo, self:GetPrimaryAmmoType() ) end end elseif CurTime() > self:GetNextPrimaryFire() and self.Primary.ClipSize > 0 and self:Clip1() <= 0 then self:Reload() end end --[[ Name: SWEP:DoDeploy() Desc: Default weapon deploy ]]-- function SWEP:DoDeploy() self:AddActiveAttributes() if IsValid( self:GetOwner() ) == false then return end self:SetTFLastOwner( self:GetOwner() ) self:CheckHands() local deploytime = self.DeployTime if IsValid( self:GetOwner() ) == true then deploytime = deploytime * self:GetOwner():GetNW2Float( "TF2Weapons_NextDeploySpeed", 1 ) end if CurTime() > self:GetNextPrimaryFire() - deploytime then self:SetNextPrimaryFire( CurTime() + deploytime ) end if CurTime() > self:GetNextSecondaryFire() - deploytime then self:SetNextSecondaryFire( CurTime() + deploytime ) end local draw = self:GetHandAnim( "draw" ) self:SetVMAnimation( draw, 0.67 / deploytime ) self:TeamSet( self:GetTeam() ) end --[[ Name: SWEP:Deploy() Desc: Called when the weapon attempts to deploy Run SWEP:DoDeploy() here to include the default deploy Ret1: Return true to allow switching to this weapon using the lastinv console command ]]-- function SWEP:Deploy() if IsValid( self:GetOwner() ) == false then return end self:DoDeploy() return true end --[[ Name: SWEP:DoHolster() Desc: Default weapon holster ]]-- function SWEP:DoHolster() self:RemoveActiveAttributes() self:RemoveParticles( true ) self:RemoveHands() self:SetTFReloading( false ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) self:SetTFNextInspect( -1 ) self:SetTFPreventInspect( false ) if IsValid( self:GetOwner() ) == true then self:GetOwner():SetNW2Float( "TF2Weapons_NextDeploySpeed", self.NextDeploySpeed ) end end --[[ Name: SWEP:Holster() Desc: Called when the weapon attempts to holster Run SWEP:DoHolster() here to include the default holster Ret1: Return true to allow the weapon to holster ]]-- function SWEP:Holster() self:DoHolster() return true end SWEP.AttributesAdded = false --[[ Name: SWEP:AddAttributes() Desc: Add attribute values ]]-- function SWEP:AddAttributes() if self.AttributesAdded == true then return end self.AttributesAdded = true local owner = self:GetOwner() if IsValid( owner ) == true and owner:IsPlayer() == true then local add_maxhealth = self:GetAttributeClass( "add_maxhealth" ) if add_maxhealth ~= nil then owner:SetMaxHealth( owner:GetMaxHealth() + add_maxhealth ) owner:SetHealth( owner:Health() + add_maxhealth ) end end end --[[ Name: SWEP:RemoveAttributes() Desc: Remove attribute values ]]-- function SWEP:RemoveAttributes() if self.AttributesAdded == false then return end self.AttributesAdded = false local owner = self:GetTFLastOwner() if IsValid( owner ) == true and owner:IsPlayer() == true then local add_maxhealth = self:GetAttributeClass( "add_maxhealth" ) if add_maxhealth ~= nil then owner:SetMaxHealth( owner:GetMaxHealth() - add_maxhealth ) owner:SetHealth( owner:Health() - add_maxhealth ) end end end SWEP.ActiveAttributesAdded = false --[[ Name: SWEP:AddActiveAttributes() Desc: Add active attribute values ]]-- function SWEP:AddActiveAttributes() if self.ActiveAttributesAdded == true then return end self.ActiveAttributesAdded = true local owner = self:GetOwner() if IsValid( owner ) == true and owner:IsPlayer() == true then local mod_jump_height_from_weapon = self:GetAttributeClass( "mod_jump_height_from_weapon" ) if mod_jump_height_from_weapon ~= nil then owner:SetJumpPower( owner:GetJumpPower() * mod_jump_height_from_weapon ) end end end --[[ Name: SWEP:RemoveActiveAttributes() Desc: Remove active attribute values ]]-- function SWEP:RemoveActiveAttributes() if self.ActiveAttributesAdded == false then return end self.ActiveAttributesAdded = false local owner = self:GetTFLastOwner() if IsValid( owner ) == true and owner:IsPlayer() == true then local mod_jump_height_from_weapon = self:GetAttributeClass( "mod_jump_height_from_weapon" ) if mod_jump_height_from_weapon ~= nil then owner:SetJumpPower( owner:GetJumpPower() / mod_jump_height_from_weapon ) end end end --[[ Name: SWEP:Equip( ent ) Desc: Called when the weapon is equipped Arg1: Entity equipping the weapon ]]-- function SWEP:Equip( ent ) self:PlayerClassSet( self:GetPlayerClass() ) self:AddAttributes() end --[[ Name: SWEP:OnDrop() Desc: Called when the weapon is dropped ]]-- function SWEP:OnDrop() self:RemoveAttributes() self:DoHolster() self:RemoveHands( self:GetTFLastOwner() ) end --[[ Name: SWEP:OnRemove() Desc: Called when the weapon is removed ]]-- function SWEP:OnRemove() self:DoHolster() self:RemoveHands( self:GetTFLastOwner() ) end --[[ Name: SWEP:OwnerChanged() Desc: Called when weapon is dropped or picked up ]]-- function SWEP:OwnerChanged() self:DoHolster() self:RemoveHands( self:GetTFLastOwner() ) end --[[ Name: SWEP:CanPrimaryAttack() Desc: Returns if the weapon can primary attack or not Ret1: True if the weapon can primary attack, false otherwise ]]-- function SWEP:CanPrimaryAttack() if game.SinglePlayer() == true and CLIENT then return true end if self.Primary.ClipSize >= 0 and self:Clip1() <= 0 then self:SetNextPrimaryFire( CurTime() + self.Primary.Delay ) self:Reload() return false elseif self.Primary.ClipSize < 0 and self:Ammo1() <= 0 then self:SetNextPrimaryFire( CurTime() + self.Primary.Delay ) self:PlaySound( self.EmptySound ) return false elseif CurTime() < self:GetNextPrimaryFire() then return false end return true end --[[ Name: SWEP:CanSecondaryAttack() Desc: Returns if the weapon can secondary attack or not Ret1: True if the weapon can secondary attack, false otherwise ]]-- function SWEP:CanSecondaryAttack() if self.Secondary.ClipSize >= 0 and self:Clip2() <= 0 then self:SetNextSecondaryFire( CurTime() + self.Secondary.Delay ) self:Reload() return false elseif self.Secondary.ClipSize < 0 and self:Ammo2() <= 0 then self:SetNextSecondaryFire( CurTime() + self.Secondary.Delay ) self:PlaySound( self.EmptySound ) return false elseif CurTime() < self:GetNextSecondaryFire() then return false end return true end SWEP.HitDecals = { [ MAT_ALIENFLESH ] = "impact.antlion", [ MAT_ANTLION ] = "impact.antlion", [ MAT_FLESH ] = "impact.flesh", [ MAT_GLASS ] = "impact.glass", [ MAT_SAND ] = "impact.sand", [ MAT_WOOD ] = "impact.wood", } --[[ Name: SWEP:DoPrimaryAttack( bullet, crit ) Desc: Effects for primary attacking Arg1: Fires as a bullet if specified Arg2: Force crit effects ]]-- function SWEP:DoPrimaryAttack( bullet, crit ) self:SetTFReloading( false ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) self:SetTFPreventInspect( false ) self:SetTFPrimaryLastShot( CurTime() ) local crit = self:DoCrit() if bullet ~= nil then self:GetOwner():FireBullets( bullet ) end local fire = self:GetHandAnim( "fire" ) self:SetVMAnimation( fire ) self:SetPlayerAnimation( PLAYER_ATTACK1 ) local muzzle = self.MuzzleParticle if crit == true and self.MuzzleParticleCrit ~= nil then muzzle = self.MuzzleParticleCrit end if CLIENT then if self:DrawingVM() == true then local hands, weapon = self:GetViewModels() self:AddParticle( muzzle, { { entity = weapon, attachtype = PATTACH_POINT_FOLLOW, attachment = "muzzle", } } ) else self:AddParticle( muzzle, { { attachtype = PATTACH_POINT_FOLLOW, attachment = "muzzle", } } ) end end local sound = self.ShootSound if crit == true and self.ShootSoundCrit ~= nil then sound = self.ShootSoundCrit end self:PlaySound( sound ) if self.Primary.Recoil ~= nil then local punch = self.Primary.Recoil if istable( self.Primary.Recoil ) == true then punch = LerpAngle( math.Rand( 0, 1 ), punch[ 1 ], punch[ 2 ] ) end self:GetOwner():SetViewPunchAngles( punch ) end if game.SinglePlayer() ~= true or SERVER then self:TakePrimaryAmmo( self.Primary.TakeAmmo ) end end SWEP.BulletCallbacks = {} --[[ Name: SWEP:AddBulletCallback( func ) Desc: Adds a callback for whenever a bullet is fired Arg1: Function to run. Return true in this function to prevent other bullet callbacks ]]-- function SWEP:AddBulletCallback( func ) table.insert( self.BulletCallbacks, func ) end --[[ Name: SWEP:GiveHealth( hp, ply, max ) Desc: Gives a player health Arg1: Health to give Arg2: Player to give health to Arg3: Max health. Set to -1 for unlimited ]]-- function SWEP:GiveHealth( hp, ply, max ) if hp == 0 then return end if ply == nil then ply = self:GetOwner() end if max == nil then max = ply:GetMaxHealth() if GetConVar( "tf2weapons_overheal" ):GetBool() == true then max = ply:GetMaxHealth() * 1.5 end end if max ~= -1 and ply:Health() >= max then return end local health = ply:Health() + hp if max ~= -1 and health > max then health = max end ply:SetHealth( health ) end --[[ Name: SWEP:PrimaryAttack() Desc: Called when the owner runs the +attack console command Run SWEP:DoPrimaryAttack() here to include the default primary attack effects ]]-- function SWEP:PrimaryAttack() if self:CanPrimaryAttack() == false then return end if game.SinglePlayer() == true then self:CallOnClient( "PrimaryAttack" ) end local crit = self:DoCrit() local spread = self.Primary.Spread if self.Primary.SpreadRecovery ~= nil and self.Primary.SpreadRecovery ~= -1 and CurTime() - self.Primary.SpreadRecovery > self:GetTFPrimaryLastShot() then spread = 0 end local bullet = {} bullet.Src = self:GetOwner():GetShootPos() bullet.Dir = self:GetOwner():GetAimVector() bullet.Tracer = 0 bullet.AmmoType = self.Primary.Ammo bullet.Damage = self.Primary.Damage bullet.Num = self.Primary.Shots bullet.Spread = Vector( spread, spread ) bullet.Force = self.Primary.Force local bulletnum = 0 local hit = {} bullet.Callback = function( attacker, tr, dmg ) bulletnum = bulletnum + 1 local info = { Attacker = attacker, Trace = tr, Damage = dmg, Bullet = bullet, BulletNum = bulletnum, Entity = tr.Entity, } for i = 1, #self.BulletCallbacks do if self.BulletCallbacks[ i ]( info ) == true then return end end if dmg ~= nil then if SERVER and IsValid( tr.Entity ) == true then local modifier = self.DamageNormal if IsValid( attacker ) == true then local distance = attacker:GetPos():Distance( tr.HitPos ) if distance < self.NormalDistance then if distance < self.MinDistance then distance = self.MinDistance end else if distance > self.MaxDistance then distance = self.MaxDistance end end modifier = ( distance / self.MaxDistance ) - ( self.DamageRampup - self.DamageNormal ) end dmg:SetAttacker( self:GetOwner() ) dmg:SetInflictor( self ) if hit[ tr.Entity ] == nil then hit[ tr.Entity ] = 0 end hit[ tr.Entity ] = hit[ tr.Entity ] + dmg:GetDamage() if bulletnum == bullet.Num then for _, v in pairs( hit ) do dmg:SetDamage( self:GetDamageMods( v, math.ceil( v - ( v * modifier ) ), _ ) ) if _:IsPlayer() == true or _:IsNPC() == true then if IsValid( attacker ) == true and attacker:IsPlayer() == true then local add_onhit_addhealth = self:GetAttributeClass( "add_onhit_addhealth" ) if add_onhit_addhealth ~= nil then self:GiveHealth( add_onhit_addhealth, attacker, attacker:GetMaxHealth() ) end end end if self.TF2Weapons_BuildTool == true and _.TF2Weapons_Building == true then _:OnHit( dmg ) end _:TakeDamageInfo( dmg ) end end end dmg:SetDamage( 0 ) end end self:DoPrimaryAttack( bullet, crit ) self:SetNextPrimaryFire( CurTime() + self.Primary.Delay ) end --[[ Name: SWEP:SecondaryAttack() Desc: Called when the owner runs the +attack2 console command ]]-- function SWEP:SecondaryAttack() end --[[ Name: SWEP:Reload() Desc: Called when the owner runs the +reload console command ]]-- function SWEP:Reload() if self.SingleReload == true then if self:GetTFReloading() == true or ( self:GetNextPrimaryFire() > CurTime() and self:Clip1() > 0 ) or self:Clip1() >= self:GetMaxClip1() or self:Ammo1() <= 0 then return end local reload_start = self:GetHandAnim( "reload_start" ) self:SetTFReloads( 0 ) self:SetTFReloadAmmo( self:Clip1() ) local id, dur = self:SetVMAnimation( reload_start, self.ReloadSpeed ) self:SetTFReloadTime( CurTime() + dur ) self:SetTFReloading( true ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) else if self:GetTFReloading() == true or ( self:GetNextPrimaryFire() > CurTime() and self:Clip1() > 0 ) or self:Clip1() >= self:GetMaxClip1() or self:Ammo1() <= 0 then return end local reload = self:GetHandAnim( "reload" ) local id, dur = self:SetVMAnimation( reload, self.ReloadSpeed ) self:SetPlayerAnimation( PLAYER_RELOAD ) self:SetTFReloadTime( CurTime() + dur ) self:SetTFReloading( true ) self:SetTFInspecting( false ) self:SetTFInspectLoop( false ) end end --[[ Name: SWEP:PreDrawViewModel( vm, weapon, ply ) Desc: Called before the viewmodel is drawn Arg1: Viewmodel Arg2: Weapon Arg3: Viewmodel owner ]]-- function SWEP:PreDrawViewModel( vm, weapon, ply ) if weapon.CheckHands ~= nil then weapon:CheckHands() end end --[[ Name: SWEP:DoBuildWorldModelBones( ent, count ) Desc: Default function for building worldmodel bones Arg1: Entity building bones Arg2: Number of bones ]]-- function SWEP:DoBuildWorldModelBones( ent, count ) --try to make normal playermodels hold it properly if IsValid( self:GetOwner() ) == true and self:GetOwner():LookupBone( "weapon_bone" ) == nil then local weaponbone = self:LookupBone( "weapon_bone" ) local rhandbone = self:GetOwner():LookupBone( "valvebiped.bip01_r_hand" ) if weaponbone == nil or rhandbone == nil then return end local pos, ang = self:GetOwner():GetBonePosition( rhandbone ) if self:GetOwner():LookupAttachment( "anim_attachment_rh" ) ~= 0 then pos = self:GetOwner():GetAttachment( self:GetOwner():LookupAttachment( "anim_attachment_rh" ) ).Pos end ang:RotateAroundAxis( ang:Right(), -90 ) ang:RotateAroundAxis( ang:Up(), -90 ) local wpos, wang = self:GetBonePosition( weaponbone ) for i = 0, self:GetBoneCount() - 1 do if i ~= weaponbone and string.lower( self:GetBoneName( i ) ) ~= "__invalidbone__" then local cpos, cang = self:GetBonePosition( i ) local localpos, localang = WorldToLocal( cpos, cang, wpos, wang ) local childpos, childang = LocalToWorld( localpos, localang, pos, ang ) self:SetBonePosition( i, childpos, childang ) end end self:SetBonePosition( weaponbone, pos, ang ) end end --[[ Name: SWEP:BuildWorldModelBones( ent, count ) Desc: Called when building worldmodel bones Run SWEP:DoBuildWorldModelBones() here to include the default worldmodel bones Arg1: Entity building bones Arg2: Number of bones ]]-- function SWEP:BuildWorldModelBones( ent, count ) self:DoBuildWorldModelBones( ent, count ) end --[[ Name: SWEP:GetCritChance() Desc: Returns crit chance Ret1: Crit chance ]]-- function SWEP:GetCritChance() return TF2Weapons:GetCritChance( self:GetOwner(), self ) end --[[ Name: SWEP:ModCrit( target ) Desc: Returns if the weapon should crit based on attributes Arg1: Target Ret1: If the weapon should crit based on attributes ]]-- function SWEP:ModCrit( target ) local crit if IsValid( target ) == true then local or_crit_vs_playercond = self:GetAttributeClass( "or_crit_vs_playercond" ) if or_crit_vs_playercond ~= nil and bit.band( 1, or_crit_vs_playercond ) > 0 and target:IsOnFire() == true then crit = true end local set_nocrit_vs_nonburning = self:GetAttributeClass( "set_nocrit_vs_nonburning" ) if set_nocrit_vs_nonburning ~= nil and set_nocrit_vs_nonburning > 0 and target:IsOnFire() ~= true then crit = false end end return crit end --[[ Name: SWEP:ShouldCrit( chance, stream, target ) Desc: Returns if the weapon should crit or not Arg1: Crit chance. If unspecified, will use SWEP:GetCritChance() Arg2: If this is being called to check if a stream should activate Arg3: Target Ret1: If the weapon should crit or not ]]-- function SWEP:ShouldCrit( chance, stream, target ) local mod = self:ModCrit( target ) if mod ~= nil then return mod end if GetConVar( "tf2weapons_criticals" ):GetBool() ~= true then return false end if self.CritStream == true and stream ~= true then return self:GetTFCritStreamActive() end if chance == nil then chance = self:GetCritChance() end return TF2Weapons:ShouldCrit( self:GetOwner(), self, target, chance ) end --[[ Name: SWEP:OnCrit() Desc: Runs when the weapon crits Arg1: Target Ret1: Return false to prevent the crit ]]-- function SWEP:OnCrit( target ) return TF2Weapons:OnCrit( self:GetOwner(), self ) end --[[ Name: SWEP:DoCrit() Desc: Returns if both SWEP:ShouldCrit() and SWEP:OnCrit() are true Arg1: Crit chance Arg2: If this is being called to check if a stream should activate Arg3: Target Ret1: If both SWEP:ShouldCrit() and SWEP:OnCrit() are true ]]-- function SWEP:DoCrit( chance, stream, target ) local crit = self:ShouldCrit( chance, stream, target ) if crit == true then local oncrit = self:OnCrit( target ) if oncrit == true then crit = oncrit end end return crit end --[[ Name: SWEP:GetDamageMods( damage, mod, target, crit ) Desc: Returns damage amount with crits and other damage modifiers in effect Arg1: Base damage. If unspecified, will use SWEP.Primary.Damage Arg2: Damage to return if not a crit Arg3: Target Arg4: Should crit or not. If unspecified, will use SWEP:DoCrit() Ret1: Modified damage Ret2: If the damage was critical ]]-- function SWEP:GetDamageMods( damage, mod, target, crit ) if damage == nil then damage = self.Primary.Damage end if crit == nil then crit = self:DoCrit( nil, nil, target ) end if mod ~= nil and crit ~= true then damage = mod end if IsValid( target ) == true then local mult_dmg_vs_nonburning = self:GetAttributeClass( "mult_dmg_vs_nonburning" ) if mult_dmg_vs_nonburning ~= nil and target:IsOnFire() ~= true then damage = damage * mult_dmg_vs_nonburning end local mult_dmg_bonus_while_half_dead = self:GetAttributeClass( "mult_dmg_bonus_while_half_dead" ) if mult_dmg_bonus_while_half_dead ~= nil and self:GetOwner():Health() < self:GetOwner():GetMaxHealth() * 0.5 then damage = damage * mult_dmg_bonus_while_half_dead end local mult_dmg_penalty_while_half_alive = self:GetAttributeClass( "mult_dmg_penalty_while_half_alive" ) if mult_dmg_penalty_while_half_alive ~= nil and self:GetOwner():Health() >= self:GetOwner():GetMaxHealth() * 0.5 then damage = damage * mult_dmg_penalty_while_half_alive end local mult_dmg_vs_buildings = self:GetAttributeClass( "mult_dmg_vs_buildings" ) if mult_dmg_vs_buildings ~= nil and target.TF2Weapons_Building == true then damage = damage * mult_dmg_vs_buildings end end if crit == true then damage = damage * self.CritMultiplier end return damage, crit end SWEP.DrawingViewModel = false --[[ Name: SWEP:ViewModelDrawn( vm ) Desc: Called after the viewmodel is drawn Arg1: Viewmodel entity ]]-- function SWEP:ViewModelDrawn( vm ) self.DrawingViewModel = true end --[[ Name: SWEP:DrawWorldModel() Desc: Called to draw the worldmodel ]]-- function SWEP:DrawWorldModel() self:DrawModel() self.DrawingViewModel = false end function SWEP:DrawingVM() return self.DrawingViewModel end
mit
eraffxi/darkstar
scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_2.lua
2
3206
----------------------------------- -- Area: LaLoff Amphitheater -- Name: Ark Angels 2 (Tarutaru) ----------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ----------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); require("scripts/globals/missions"); require("scripts/globals/keyitems"); ----------------------------------- -- Death cutscenes: -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,0,0); -- Hume -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,1,0); -- taru -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,2,0); -- mithra -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,3,0); -- elvan -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,4,0); -- galka -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,5,0); -- divine might -- player:startEvent(32001,1,1,1,instance:getTimeInside(),1,6,0); -- skip ending cs -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) end; -- Physically entering the BCNM via bcnmEnter(bcnmid) function onBcnmEnter(player,instance) end; -- Leaving the BCNM by every mean possible, given by the LeaveCode -- 1=Select Exit on circle -- 2=Winning the BC -- 3=Disconnected or warped out -- 4=Losing the BC -- via bcnmLeave(1) or bcnmLeave(2). LeaveCodes 3 and 4 are called -- from the core when a player disconnects or the time limit is up, etc function onBcnmLeave(player,instance,leavecode) --print("leave code "..leavecode); if (leavecode == 2) then -- play end CS. Need time and battle id for record keeping + storage local record = instance:getRecord(); local clearTime = record.clearTime; if (player:hasCompletedMission(ZILART,ARK_ANGELS)) then player:startEvent(32001,instance:getEntrance(),clearTime,1,instance:getTimeInside(),180,1,1); -- winning CS (allow player to skip) else player:startEvent(32001,instance:getEntrance(),clearTime,1,instance:getTimeInside(),180,1,0); -- winning CS (allow player to skip) end elseif (leavecode == 4) then player:startEvent(32002, 0, 0, 0, 0, 0, instance:getEntrance(), 180); -- player lost end end; function onEventUpdate(player,csid,option) -- print("bc update csid "..csid.." and option "..option); end; function onEventFinish(player,csid,option) -- print("bc finish csid "..csid.." and option "..option); local AAKeyitems = (player:hasKeyItem(dsp.ki.SHARD_OF_APATHY) and player:hasKeyItem(dsp.ki.SHARD_OF_ARROGANCE) and player:hasKeyItem(dsp.ki.SHARD_OF_ENVY) and player:hasKeyItem(dsp.ki.SHARD_OF_RAGE)); if (csid == 32001) then if (player:getCurrentMission(ZILART) == ARK_ANGELS and player:getVar("ZilartStatus") == 1) then player:addKeyItem(dsp.ki.SHARD_OF_COWARDICE); player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.SHARD_OF_COWARDICE); if (AAKeyitems == true) then player:completeMission(ZILART,ARK_ANGELS); player:addMission(ZILART,THE_SEALED_SHRINE); player:setVar("ZilartStatus",0); end end end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_s5_gen2.lua
1
6196
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_weapon_melee_sword_crafted_saber_sword_lightsaber_one_handed_s5_gen2 = object_weapon_melee_sword_crafted_saber_shared_sword_lightsaber_one_handed_s5_gen2:new { playerRaces = { "object/creature/player/bothan_male.iff", "object/creature/player/bothan_female.iff", "object/creature/player/human_male.iff", "object/creature/player/human_female.iff", "object/creature/player/ithorian_male.iff", "object/creature/player/ithorian_female.iff", "object/creature/player/moncal_male.iff", "object/creature/player/moncal_female.iff", "object/creature/player/rodian_male.iff", "object/creature/player/rodian_female.iff", "object/creature/player/sullustan_male.iff", "object/creature/player/sullustan_female.iff", "object/creature/player/trandoshan_male.iff", "object/creature/player/trandoshan_female.iff", "object/creature/player/twilek_male.iff", "object/creature/player/twilek_female.iff", "object/creature/player/wookiee_male.iff", "object/creature/player/wookiee_female.iff", "object/creature/player/zabrak_male.iff", "object/creature/player/zabrak_female.iff" }, -- RANGEDATTACK, MELEEATTACK, FORCEATTACK, TRAPATTACK, GRENADEATTACK, HEAVYACIDBEAMATTACK, -- HEAVYLIGHTNINGBEAMATTACK, HEAVYPARTICLEBEAMATTACK, HEAVYROCKETLAUNCHERATTACK, HEAVYLAUNCHERATTACK attackType = MELEEATTACK, -- ENERGY, KINETIC, ELECTRICITY, STUN, BLAST, HEAT, COLD, ACID, FORCE, LIGHTSABER damageType = LIGHTSABER, -- NONE, LIGHT, MEDIUM, HEAVY armorPiercing = MEDIUM, -- combat_rangedspecialize_bactarifle, combat_rangedspecialize_rifle, combat_rangedspecialize_pistol, combat_rangedspecialize_heavy, combat_rangedspecialize_carbine -- combat_meleespecialize_unarmed, combat_meleespecialize_twohand, combat_meleespecialize_polearm, combat_meleespecialize_onehand, combat_general, -- combat_meleespecialize_twohandlightsaber, combat_meleespecialize_polearmlightsaber, jedi_general xpType = "jedi_general", -- See http://www.ocdsoft.com/files/certifications.xls certificationsRequired = { "cert_onehandlightsaber_gen2" }, -- See http://www.ocdsoft.com/files/accuracy.xls creatureAccuracyModifiers = { "onehandlightsaber_accuracy" }, -- See http://www.ocdsoft.com/files/defense.xls defenderDefenseModifiers = { "melee_defense" }, -- Leave as "dodge" for now, may have additions later defenderSecondaryDefenseModifiers = { "saber_block" }, -- See http://www.ocdsoft.com/files/speed.xls speedModifiers = { "onehandlightsaber_speed" }, -- Leave blank for now damageModifiers = { }, -- The values below are the default values. To be used for blue frog objects primarily healthAttackCost = 25, actionAttackCost = 47, mindAttackCost = 45, forceCost = 24, pointBlankRange = 0, pointBlankAccuracy = 20, idealRange = 3, idealAccuracy = 15, maxRange = 5, maxRangeAccuracy = 5, minDamage = 80, maxDamage = 170, attackSpeed = 4.5, defenderToughnessModifiers = { "lightsaber_toughness" }, childObjects = { {templateFile = "object/tangible/inventory/lightsaber_inventory_2.iff", x = 0, z = 0, y = 0, ox = 0, oy = 0, oz = 0, ow = 0, cellid = -1, containmentType = 4} }, numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 1, 1, 1}, experimentalProperties = {"XX", "XX", "CD", "OQ", "CD", "OQ", "CD", "OQ", "SR", "UT", "CD", "OQ", "OQ", "OQ", "OQ"}, experimentalWeights = {1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "expDamage", "expDamage", "expDamage", "expDamage", "expEffeciency", "expEffeciency", "expEffeciency", "expEffeciency"}, experimentalSubGroupTitles = {"null", "null", "mindamage", "maxdamage", "attackspeed", "woundchance", "forcecost", "attackhealthcost", "attackactioncost", "attackmindcost"}, experimentalMin = {0, 0, 80, 170, 4.5, 13, 28, 25, 47, 45}, experimentalMax = {0, 0, 100, 210, 4.2, 25, 24, 20, 32, 40}, experimentalPrecision = {0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_weapon_melee_sword_crafted_saber_sword_lightsaber_one_handed_s5_gen2, "object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_s5_gen2.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/component/food/secrets/secret_base.lua
3
2260
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_component_food_secrets_secret_base = object_tangible_component_food_secrets_shared_secret_base:new { } ObjectTemplates:addTemplate(object_tangible_component_food_secrets_secret_base, "object/tangible/component/food/secrets/secret_base.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/community_crafting/component/objects.lua
3
23189
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --which carries forward this exception. object_draft_schematic_community_crafting_component_shared_connections = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_connections.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 4055607250, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_connections, "object/draft_schematic/community_crafting/component/shared_connections.iff") object_draft_schematic_community_crafting_component_shared_endrost = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_endrost.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 2475941003, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_endrost, "object/draft_schematic/community_crafting/component/shared_endrost.iff") object_draft_schematic_community_crafting_component_shared_lightweight_turret = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_lightweight_turret.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 2447534688, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_lightweight_turret, "object/draft_schematic/community_crafting/component/shared_lightweight_turret.iff") object_draft_schematic_community_crafting_component_shared_lightweight_turret_electronics = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_lightweight_turret_electronics.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 3176161507, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_lightweight_turret_electronics, "object/draft_schematic/community_crafting/component/shared_lightweight_turret_electronics.iff") object_draft_schematic_community_crafting_component_shared_lightweight_turret_hardware = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_lightweight_turret_hardware.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 3801620264, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_lightweight_turret_hardware, "object/draft_schematic/community_crafting/component/shared_lightweight_turret_hardware.iff") object_draft_schematic_community_crafting_component_shared_power_supply = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_power_supply.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 4259828056, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_power_supply, "object/draft_schematic/community_crafting/component/shared_power_supply.iff") object_draft_schematic_community_crafting_component_shared_primary_computer = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_primary_computer.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 165554499, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_primary_computer, "object/draft_schematic/community_crafting/component/shared_primary_computer.iff") object_draft_schematic_community_crafting_component_shared_refined_ardanium_ii = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_refined_ardanium_ii.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 1988740242, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_refined_ardanium_ii, "object/draft_schematic/community_crafting/component/shared_refined_ardanium_ii.iff") object_draft_schematic_community_crafting_component_shared_refined_endrine = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_refined_endrine.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 3315144456, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_refined_endrine, "object/draft_schematic/community_crafting/component/shared_refined_endrine.iff") object_draft_schematic_community_crafting_component_shared_refined_rudic = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_refined_rudic.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 1152625889, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_refined_rudic, "object/draft_schematic/community_crafting/component/shared_refined_rudic.iff") object_draft_schematic_community_crafting_component_shared_regulator = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_regulator.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 3007982575, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_regulator, "object/draft_schematic/community_crafting/component/shared_regulator.iff") object_draft_schematic_community_crafting_component_shared_reinforced_wall_module = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_reinforced_wall_module.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 426210556, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_reinforced_wall_module, "object/draft_schematic/community_crafting/component/shared_reinforced_wall_module.iff") object_draft_schematic_community_crafting_component_shared_shield_housing = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_shield_housing.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 4054564743, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_shield_housing, "object/draft_schematic/community_crafting/component/shared_shield_housing.iff") object_draft_schematic_community_crafting_component_shared_unit_computer = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/community_crafting/component/shared_unit_computer.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 2049, collisionActionBlockFlags = 0, collisionActionFlags = 0, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 0, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, detailedDescription = "string_id_table", gameObjectType = 2049, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "string_id_table", onlyVisibleInTools = 0, portalLayoutFilename = "", scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, surfaceType = 0, totalCellNumber = 0, clientObjectCRC = 866494494, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/intangible/base/shared_base_intangible.iff", "object/draft_schematic/base/shared_base_draft_schematic.iff"} ]] } ObjectTemplates:addClientTemplate(object_draft_schematic_community_crafting_component_shared_unit_computer, "object/draft_schematic/community_crafting/component/shared_unit_computer.iff")
lgpl-3.0
meshr-net/meshr_tomato-RT-N
usr/lib/lua/luci/i18n.lua
2
3223
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id: i18n.lua 9520 2012-12-02 13:30:46Z jow $ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ]]-- --- LuCI translation library. module("luci.i18n", package.seeall) require("luci.util") local tparser = require "luci.template.parser" table = {} i18ndir = luci.util.libpath() .. "/i18n/" loaded = {} context = luci.util.threadlocal() default = "en" --- Clear the translation table. function clear() end --- Load a translation and copy its data into the translation table. -- @param file Language file -- @param lang Two-letter language code -- @param force Force reload even if already loaded (optional) -- @return Success status function load(file, lang, force) end --- Load a translation file using the default translation language. -- Alternatively load the translation of the fallback language. -- @param file Language file -- @param force Force reload even if already loaded (optional) function loadc(file, force) end --- Set the context default translation language. -- @param lang Two-letter language code function setlanguage(lang) context.lang = lang:gsub("_", "-") context.parent = (context.lang:match("^([a-z][a-z])_")) if not tparser.load_catalog(context.lang, i18ndir) then if context.parent then tparser.load_catalog(context.parent, i18ndir) return context.parent end end return context.lang end --- Return the translated value for a specific translation key. -- @param key Default translation text -- @return Translated string function translate(key) return tparser.translate(key) or key end --- Return the translated value for a specific translation key and use it as sprintf pattern. -- @param key Default translation text -- @param ... Format parameters -- @return Translated and formatted string function translatef(key, ...) return tostring(translate(key)):format(...) end --- Return the translated value for a specific translation key -- and ensure that the returned value is a Lua string value. -- This is the same as calling <code>tostring(translate(...))</code> -- @param key Default translation text -- @return Translated string function string(key) return tostring(translate(key)) end --- Return the translated value for a specific translation key and use it as sprintf pattern. -- Ensure that the returned value is a Lua string value. -- This is the same as calling <code>tostring(translatef(...))</code> -- @param key Default translation text -- @param ... Format parameters -- @return Translated and formatted string function stringf(key, ...) return tostring(translate(key)):format(...) end
apache-2.0
kidaa/Awakening-Core3
bin/scripts/loot/items/wearables/bandolier/bandolier_s08.lua
4
1172
bandolier_s08 = { -- Dark Sash minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/bandolier/bandolier_s08.iff", craftingValues = {}, skillMods = {}, customizationStringNames = {"/private/index_color_1","/private/index_color_2"}, customizationValues = { {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95}, {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119} }, junkDealerTypeNeeded = JUNKCLOTHESANDJEWELLERY, junkMinValue = 25, junkMaxValue = 50 } addLootItemTemplate("bandolier_s08", bandolier_s08)
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/structure/naboo/streetlamp_naboo_theed_style_1.lua
3
2300
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_static_structure_naboo_streetlamp_naboo_theed_style_1 = object_static_structure_naboo_shared_streetlamp_naboo_theed_style_1:new { } ObjectTemplates:addTemplate(object_static_structure_naboo_streetlamp_naboo_theed_style_1, "object/static/structure/naboo/streetlamp_naboo_theed_style_1.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/intangible/ship/blacksun_light_s04_pcd.lua
3
2240
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_intangible_ship_blacksun_light_s04_pcd = object_intangible_ship_shared_blacksun_light_s04_pcd:new { } ObjectTemplates:addTemplate(object_intangible_ship_blacksun_light_s04_pcd, "object/intangible/ship/blacksun_light_s04_pcd.iff")
lgpl-3.0
widelands/widelands
data/tribes/initialization/frisians/units.lua
1
114487
descriptions = wl.Descriptions() -- TODO(matthiakl): only for savegame compatibility with 1.0, do not use. image_dirname = path.dirname(__file__) .. "images/" push_textdomain("tribes_encyclopedia") -- For formatting time strings include "tribes/scripting/help/time_strings.lua" wl.Descriptions():new_tribe { name = "frisians", animation_directory = image_dirname, animations = { frontier = { hotspot = {8, 26} }, pinned_note = { hotspot = {18, 67} }, bridge_normal_e = { hotspot = {-2, 12} }, bridge_busy_e = { hotspot = {-2, 12} }, bridge_normal_se = { hotspot = {5, 2} }, bridge_busy_se = { hotspot = {5, 2} }, bridge_normal_sw = { hotspot = {36, 3} }, bridge_busy_sw = { hotspot = {36, 3} } }, spritesheets = { flag = { hotspot = {11, 41}, frames = 10, columns = 5, rows = 2, fps = 10 } }, bridge_height = 8, collectors_points_table = { { ware = "gold", points = 3}, { ware = "sword_short", points = 2}, { ware = "sword_long", points = 3}, { ware = "sword_broad", points = 6}, { ware = "sword_double", points = 7}, { ware = "helmet", points = 2}, { ware = "helmet_golden", points = 7}, { ware = "fur_garment", points = 2}, { ware = "fur_garment_studded", points = 3}, { ware = "fur_garment_golden", points = 6}, }, -- Image file paths for this tribe's road and waterway textures roads = { busy = { image_dirname .. "roadt_busy.png", }, normal = { image_dirname .. "roadt_normal_00.png", image_dirname .. "roadt_normal_01.png", }, waterway = { image_dirname .. "waterway_0.png", }, }, resource_indicators = { [""] = { [0] = "frisians_resi_none", }, resource_coal = { [10] = "frisians_resi_coal_1", [20] = "frisians_resi_coal_2", }, resource_iron = { [10] = "frisians_resi_iron_1", [20] = "frisians_resi_iron_2", }, resource_gold = { [10] = "frisians_resi_gold_1", [20] = "frisians_resi_gold_2", }, resource_stones = { [10] = "frisians_resi_stones_1", [20] = "frisians_resi_stones_2", }, resource_water = { [100] = "frisians_resi_water", }, }, -- Wares positions in wares windows. -- This also gives us the information which wares the tribe uses. -- Each subtable is a column in the wares windows. wares_order = { { -- Building Materials { name = "log", preciousness = 4, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Log, part 1 pgettext("ware", "Logs are an important basic building material. They are produced by felling trees."), -- TRANSLATORS: Helptext for a frisian ware: Log, part 2 pgettext("frisians_ware", "Woodcutters fell the trees; foresters take care of the supply of trees. Logs are also used in the blacksmithy to build basic tools, and in the charcoal kiln for the production of coal. Smokeries use logs as fuel for smoking meat and fish.") } } }, { name = "granite", default_target_quantity = 30, preciousness = 3, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Granite, part 1 pgettext("ware", "Granite is a basic building material."), -- TRANSLATORS: Helptext for a frisian ware: Granite, part 2 pgettext("frisians_ware", "The Frisians produce granite blocks in quarries and rock mines. They can be refined in a brick kiln.") } } }, { name = "clay", default_target_quantity = 30, preciousness = 9, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Clay purpose = pgettext("frisians_ware", "Clay is made out of water and mud to be turned into bricks, used in ship construction and to improve the charcoal kiln.") } }, { name = "brick", default_target_quantity = 40, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Brick purpose = pgettext("frisians_ware", "Bricks are the best and most important building material. They are made out of a mix of clay and granite dried in a coal fire.") } }, { name = "reed", preciousness = 8, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Reed purpose = pgettext("frisians_ware", "Reed is grown in a reed farm. Nothing is better suited to make roofs waterproof. It is also used to make baskets and fishing nets as well as cloth." ) } }, { name = "fur", default_target_quantity = 10, preciousness = 1, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Fur purpose = pgettext("frisians_ware", "Fur is won from reindeer in a reindeer farm. It is woven into cloth or turned into fur garments for soldiers.") } }, { name = "cloth", default_target_quantity = 10, preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Cloth purpose = pgettext("frisians_ware", "Cloth is needed for ships. It is produced out of reindeer fur and reed.") } }, }, { -- Food { name = "fruit", preciousness = 1, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Fruit purpose = pgettext("frisians_ware", "Fruit are berries gathered from berry bushes by a fruit collector. They are used for rations and for feeding the fish at the aqua farms.") } }, { name = "water", preciousness = 2, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Water, part 1 pgettext("ware", "Water is the essence of life!"), -- TRANSLATORS: Helptext for a frisian ware: Water, part 2 pgettext("frisians_ware", "Water is used to bake bread and brew beer. Reindeer farms and aqua farms also consume it.") } } }, { name = "barley", preciousness = 25, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Barley purpose = pgettext("frisians_ware", "Barley is a slow-growing grain that is used for baking bread and brewing beer. It is also eaten by reindeer.") } }, { name = "honey", preciousness = 1, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Honey purpose = pgettext("frisians_ware", "Honey is produced by bees belonging to a beekeeper. It is used to bake honey bread and brew mead.") } }, { name = "bread_frisians", default_target_quantity = 20, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Bread purpose = pgettext("frisians_ware", "Bread is made out of barley and water and is used in the taverns to prepare rations. It is also consumed by training soldiers.") } }, { name = "honey_bread", default_target_quantity = 20, preciousness = 5, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Honey Bread purpose = pgettext("frisians_ware", "This bread is sweetened with honey. It is consumed by the most experienced miners and in advanced soldier training.") } }, { name = "beer", default_target_quantity = 15, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Beer purpose = pgettext("frisians_ware", "Beer is produced in breweries and used in drinking halls to produce meals. Soldiers drink beer while receiving basic training.") } }, { name = "mead", default_target_quantity = 15, preciousness = 5, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Mead purpose = pgettext("frisians_ware", "Mead is produced by mead breweries. Soldiers drink mead during advanced training.") } }, { name = "fish", default_target_quantity = 20, preciousness = 1, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Fish purpose = pgettext("frisians_ware", "Fish is a very important food resource for the Frisians. It is fished from the shore or reared in aqua farms." ) } }, { name = "meat", preciousness = 2, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Meat, part 1 pgettext("ware", "Meat contains a lot of energy, and it is obtained from wild game taken by hunters."), -- TRANSLATORS: Helptext for a frisian ware: Meat, part 2 pgettext("frisians_ware", "Meat has to be smoked in a smokery before being delivered to taverns, drinking halls and training sites.") } } }, { name = "smoked_fish", default_target_quantity = 20, preciousness = 5, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Smoked Fish purpose = pgettext("frisians_ware", "Fish is smoked in a smokery. Smoked fish is then consumed by soldiers in training or turned into rations and meals for miners and scouts.") } }, { name = "smoked_meat", default_target_quantity = 10, preciousness = 7, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Smoked Meat purpose = pgettext("frisians_ware", "Meat is smoked in a smokery. Smoked meat is then consumed by soldiers in training or turned into rations and meals for miners and scouts.") } }, { name = "ration", default_target_quantity = 20, preciousness = 3, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Ration, part 1 pgettext("ware", "A small bite to keep miners strong and working. The scout also consumes rations on his scouting trips."), -- TRANSLATORS: Helptext for a frisian ware: Ration, part 2 pgettext("frisians_ware", "Rations are produced in taverns and drinking halls out of something to eat: Fruit, bread or smoked meat or fish.") } } }, { name = "meal", default_target_quantity = 5, preciousness = 6, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Meal purpose = pgettext("frisians_ware", "A meal is made out of honey bread and beer and either smoked fish or meat. It is consumed by miners in deep mines.") } } }, { -- Mining { name = "coal", default_target_quantity = 20, preciousness = 40, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Coal, part 1 pgettext("ware", "Coal is mined in coal mines or produced out of logs by a charcoal burner in a charcoal kiln or charcoal burner’s house."), -- TRANSLATORS: Helptext for a frisian ware: Coal, part 2 pgettext("frisians_ware", "The fires of the brick kilns, furnaces and armor smithies are fed with coal.") } } }, { name = "iron_ore", default_target_quantity = 15, preciousness = 2, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Iron Ore, part 1 pgettext("default_ware", "Iron ore is mined in iron mines."), -- TRANSLATORS: Helptext for a frisian ware: Iron Ore, part 2 pgettext("frisians_ware", "It is smelted in a furnace to retrieve the iron.") } } }, { name = "iron", default_target_quantity = 20, preciousness = 4, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Iron, part 1 pgettext("ware", "Iron is smelted out of iron ores."), -- TRANSLATORS: Helptext for a frisian ware: Iron, part 2 pgettext("frisians_ware", "It is produced by the furnace. Tools and weapons are made of iron. It is also used as jewellery for fur garment armor to give it a silver shine.") } } }, { name = "gold_ore", default_target_quantity = 15, preciousness = 3, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Gold Ore, part 1 pgettext("ware", "Gold ore is mined in a gold mine."), -- TRANSLATORS: Helptext for a frisian ware: Gold Ore, part 2 pgettext("frisians_ware", "Smelted in a furnace, it turns into gold which is used as a precious building material and to produce weapons and armor.") } } }, { name = "gold", default_target_quantity = 20, preciousness = 6, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Gold, part 1 pgettext("ware", "Gold is the most valuable of all metals, and it is smelted out of gold ore."), -- TRANSLATORS: Helptext for a frisian ware: Gold, part 2 pgettext("frisians_ware", "Only very important things are embellished with gold. It is produced by the furnace and is used to produce better swords and the best helmets. The best armor is also decorated with gold.") } } }, { name = "scrap_iron", preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Scrap Iron purpose = pgettext("frisians_ware", "Discarded weapons and armor can be recycled in a recycling center to produce new tools, weapon and armor.") } }, { name = "scrap_metal_mixed", preciousness = 1, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Scrap metal (mixed) purpose = pgettext("frisians_ware", "Discarded weapons and armor can be recycled in a recycling center to produce new tools, weapon and armor.") } }, { name = "fur_garment_old", preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Old Fur Garment purpose = pgettext("frisians_ware", "Old garments can be turned into fur in a recycling center.") } } }, { -- Tools { name = "pick", default_target_quantity = 3, preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Pick purpose = pgettext("frisians_ware", "Picks are used by stonemasons and miners.") } }, { name = "felling_ax", default_target_quantity = 3, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Felling Ax, part 1 pgettext("ware", "The felling ax is the tool to chop down trees."), -- TRANSLATORS: Helptext for a frisian ware: Felling Ax, part 2 pgettext("frisians_ware", "Felling axes are used by woodcutters and produced by the blacksmithy.") } } }, { name = "shovel", default_target_quantity = 4, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Shovel, part 1 pgettext("ware", "Shovels are needed for the proper handling of plants."), -- TRANSLATORS: Helptext for a frisian ware: Shovel, part 2 pgettext("frisians_ware", "They are used by berry and reed farmers as well as foresters. Clay diggers also need them to dig mud out of hard soil.") } } }, { name = "hammer", default_target_quantity = 2, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Hammer, part 1 pgettext("ware", "The hammer is an essential tool."), -- TRANSLATORS: Helptext for a frisian ware: Hammer, part 2 pgettext("frisians_ware", "Geologists, builders and blacksmiths all need a hammer. Make sure you’ve always got some in reserve! They are produced by the blacksmithy.") } } }, { name = "fishing_net", default_target_quantity = 2, preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Fishing Net purpose = pgettext("frisians_ware", "Fishing nets are the tool used by fishers." ) } }, { name = "hunting_spear", default_target_quantity = 1, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Hunting Spear, part 1 pgettext("ware", "This spear is light enough to be thrown, but heavy enough to kill any animal in one blow. It is only used by hunters."), -- TRANSLATORS: Helptext for a frisian ware: Hunting Spear, part 2 pgettext("frisians_ware", "Hunting spears are produced by the blacksmithy") } } }, { name = "scythe", default_target_quantity = 2, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Scythe, part 1 pgettext("ware", "The scythe is the tool of the farmers."), -- TRANSLATORS: Helptext for a frisian ware: Scythe, part 2 pgettext("frisians_ware", "Scythes are produced by the blacksmithy.") } } }, { name = "bread_paddle", default_target_quantity = 1, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Bread Paddle, part 1 pgettext("ware", "The bread paddle is the tool of the baker, each baker needs one."), -- TRANSLATORS: Helptext for a frisian ware: Bread Paddle, part 2 pgettext("frisians_ware", "Bread paddles are produced by the blacksmithy.") } } }, { name = "kitchen_tools", default_target_quantity = 1, preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Kitchen Tools purpose = pgettext("frisians_ware", "Kitchen tools are needed for preparing rations and meals. The smoker also needs them.") } }, { name = "fire_tongs", default_target_quantity = 2, preciousness = 0, helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian ware: Fire Tongs, part 1 pgettext("ware", "Fire tongs are the tools for smelting ores."), -- TRANSLATORS: Helptext for a frisian ware: Fire Tongs, part 2 pgettext("frisians_ware", "They are used in the furnace and the brick kiln and produced by the blacksmithy.") } } }, { name = "basket", default_target_quantity = 1, preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Basket purpose = pgettext("frisians_ware", "Baskets are needed by the fruit collector to gather berries. They are woven from reed and wood by the blacksmith.") } }, { name = "needles", default_target_quantity = 1, preciousness = 0, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Needles purpose = pgettext("frisians_ware", "Needles are used by seamstresses to sew cloth and fur garments.") } } }, { -- Weapons & Armor { name = "sword_short", default_target_quantity = 30, preciousness = 4, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Short sword purpose = pgettext("frisians_ware", "This is the basic weapon of the Frisian soldiers. Together with a fur garment, it makes up the equipment of young soldiers. Short swords are produced by the small armor smithy.") } }, { name = "sword_long", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Long Sword purpose = pgettext("frisians_ware", "The long sword is the weapon used by level 1 soldiers. Level 4 soldiers are equipped with a long and a double-edged sword.") } }, { name = "sword_broad", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Broadsword purpose = pgettext("frisians_ware", "The broadsword is the weapon used by level 2 soldiers. Level 5 soldiers are equipped with a broadsword and a double-edged sword.") } }, { name = "sword_double", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Double-edged Sword purpose = pgettext("frisians_ware", "The double-edged sword is the weapon used by level 3 soldiers. Level 6 soldiers are equipped with two of these ferocious swords.") } }, { name = "fur_garment", default_target_quantity = 30, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Fur Garment purpose = pgettext("frisians_ware", "Fur can be sewn into garments. They are used as basic armor. All new soldiers are clothed in a fur garment.") } }, { name = "fur_garment_studded", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Studded Fur Garment purpose = pgettext("frisians_ware", "Ordinary fur garments can be decorated with iron to give them a silvery shine. These clothes make good armor.") } }, { name = "fur_garment_golden", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Golden Fur Garment purpose = pgettext("frisians_ware", "Ordinary fur garments can be decorated with iron and gold. Such clothes are the best armor.") } }, { name = "helmet", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Helmet purpose = pgettext("frisians_ware", "A helmet is a basic tool to protect soldiers. It is produced in the small armor smithy and used to train soldiers from health level 0 to level 1.") } }, { name = "helmet_golden", default_target_quantity = 2, preciousness = 3, helptexts = { -- TRANSLATORS: Helptext for a frisian ware: Golden Helmet purpose = pgettext("frisians_ware", "A golden helmet protects soldiers. It is produced in the large armor smithy and used to train soldiers from health level 1 to level 2.") } } } }, -- Workers positions in workers windows. -- This also gives us the information which workers the tribe uses. -- Each subtable is a column in the workers windows. workers_order = { { -- Carriers { name = "frisians_carrier", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Carrier purpose = pgettext("frisians_worker", "Carries items along your roads.") } }, { name = "frisians_ferry", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Ferry purpose = pgettext("frisians_worker", "Ships wares across narrow rivers.") } }, { name = "frisians_reindeer", default_target_quantity = 10, preciousness = 2, helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Reindeer purpose = pgettext("frisians_worker", "Reindeer help to carry items along busy roads. They are reared in a reindeer farm.") } }, { name = "frisians_reindeer_breeder", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Reindeer Breeder purpose = pgettext("frisians_worker", "Breeds reindeer as carriers and for their fur.") } } }, { -- Building Materials { name = "frisians_stonemason", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Stonemason purpose = pgettext("frisians_worker", "Cuts raw pieces of granite out of rocks in the vicinity.") } }, { name = "frisians_woodcutter", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Woodcutter purpose = pgettext("frisians_worker", "Fells trees.") } }, { name = "frisians_forester", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Forester purpose = pgettext("frisians_worker", "Plants trees.") } }, { name = "frisians_claydigger", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Clay Digger purpose = pgettext("frisians_worker", "Makes clay out of mud and water.") } }, { name = "frisians_brickmaker", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Brickmaker purpose = pgettext("frisians_worker", "Burns bricks out of clay and granite.") } }, { name = "frisians_builder", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Builder purpose = pgettext("frisians_worker", "Works at construction sites to raise new buildings.") } }, { name = "frisians_reed_farmer", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Gardener purpose = pgettext("frisians_worker", "Plants and harvests reed fields.") } }, { name = "frisians_seamstress", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Seamstress purpose = pgettext("frisians_worker", "Produces cloth and sews fur garments.") } }, { name = "frisians_seamstress_master", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Master Seamstress purpose = pgettext("frisians_worker", "Sews armor out of fur garments and metal.") } }, { name = "frisians_shipwright", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Shipwright purpose = pgettext("frisians_worker", "Works at the shipyard and constructs new ships.") } }, { name = "frisians_diker", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian worker: Diker purpose = pgettext("frisians_worker", "Constructs breakwaters to gain new land from the sea.") } } }, { -- Food { name = "frisians_fisher", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Fisher purpose = pgettext("frisians_worker", "Catches fish in the sea.") } }, { name = "frisians_hunter", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Hunter purpose = pgettext("frisians_worker", "The hunter brings fresh, raw meat to the colonists.") } }, { name = "frisians_farmer", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Farmer purpose = pgettext("frisians_worker", "Plants fields.") } }, { name = "frisians_berry_farmer", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Berry Farmer purpose = pgettext("frisians_worker", "Plants berry bushes.") } }, { name = "frisians_fruit_collector", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Fruit Collector purpose = pgettext("frisians_worker", "Gathers berries.") } }, { name = "frisians_smoker", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Smoker purpose = pgettext("frisians_worker", "Refines meat and fish by smoking them.") } }, { name = "frisians_beekeeper", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Beekeeper purpose = pgettext("frisians_worker", "Lets bees swarm over flowers, then gathers the honey.") } }, { name = "frisians_baker", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Baker purpose = pgettext("frisians_worker", "Bakes bread for miners and soldiers.") } }, { name = "frisians_baker_master", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Master Baker purpose = pgettext("frisians_worker", "This baker is skilled enough to bake bread sweetened with honey.") } }, { name = "frisians_brewer", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Brewer purpose = pgettext("frisians_worker", "Brews beer.") } }, { name = "frisians_brewer_master", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Master Brewer purpose = pgettext("frisians_worker", "Brews beer and mead.") } }, { name = "frisians_landlady", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Landlady purpose = pgettext("frisians_worker", "Prepares rations and meals for miners and scouts.") } } }, { -- Mining { name = "frisians_geologist", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Geologist purpose = pgettext("frisians_worker", "Discovers resources for mining.") } }, { name = "frisians_miner", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Miner purpose = pgettext("frisians_worker", "Works deep in the mines to obtain coal, iron, gold or granite.") } }, { name = "frisians_miner_master", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Master Miner purpose = pgettext("frisians_worker", "Works deep in the mines to obtain coal, iron, gold or granite.") } }, { name = "frisians_charcoal_burner", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Charcoal Burner purpose = pgettext("frisians_worker", "Burns logs and clay to produce coal.") } }, { name = "frisians_smelter", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Smelter purpose = pgettext("frisians_worker", "Smelts iron and gold at furnaces or recycling centers.") } }, { name = "frisians_blacksmith", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Blacksmith purpose = pgettext("frisians_worker", "Produces weapons and armor for soldiers and tools for workers.") } }, { name = "frisians_blacksmith_master", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Master Blacksmith purpose = pgettext("frisians_worker", "Produces the best weapons and armor for soldiers and tools for workers.") } } }, { -- Military { name = "frisians_soldier", default_target_quantity = 10, preciousness = 5, helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Soldier purpose = pgettext("frisians_worker", "Defend and Conquer!") } }, { name = "frisians_trainer", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Trainer purpose = pgettext("frisians_worker", "Trains the soldiers.") } }, { name = "frisians_scout", helptexts = { -- TRANSLATORS: Helptext for a frisian worker: Scout purpose = pgettext("frisians_worker", "Explores unknown territory.") } } } }, immovables = { { name = "ashes", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Ashes purpose = _("The remains of a destroyed building.") } }, { name = "destroyed_building", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Destroyed Building purpose = _("The remains of a destroyed building.") } }, { name = "berry_bush_blueberry_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_blueberry_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_blueberry_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_blueberry_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_currant_red_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_currant_red_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_currant_red_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_currant_red_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_juniper_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_juniper_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_juniper_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_juniper_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_raspberry_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_raspberry_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_raspberry_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_raspberry_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_currant_black_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_currant_black_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_currant_black_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_currant_black_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_strawberry_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_strawberry_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_strawberry_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_strawberry_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_stink_tree_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_stink_tree_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_stink_tree_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_stink_tree_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_desert_hackberry_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_desert_hackberry_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_desert_hackberry_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_desert_hackberry_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "berry_bush_sea_buckthorn_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush has just been planted.") } }, { name = "berry_bush_sea_buckthorn_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is growing.") } }, { name = "berry_bush_sea_buckthorn_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "berry_bush_sea_buckthorn_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: One of the berry bushes purpose = _("This berry bush is ready for harvesting.") } }, { name = "barleyfield_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Barley Field purpose = _("This field has just been planted.") } }, { name = "barleyfield_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Barley Field purpose = _("This field is growing.") } }, { name = "barleyfield_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Barley Field purpose = _("This field is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "barleyfield_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Barley Field purpose = _("This field is ready for harvesting.") } }, { name = "barleyfield_harvested", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Barley Field purpose = _("This field has been harvested.") } }, { name = "pond_dry", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Pond purpose = _("When claydiggers dig up earth, they leave holes in the ground. These holes vanish after a while. Aqua farms can use them as ponds to grow fish in them, whereas charcoal burners erect their charcoal stacks in them.") } }, { name = "pond_growing", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Pond purpose = _("Fish are maturing in this pond. A fisher working from an aqua farm will be able to catch them when they are bigger.") } }, { name = "pond_mature", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Pond purpose = _("Fish are living in this pond. A fisher working from an aqua farm can catch them as food.") } }, { name = "pond_burning", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Pond purpose = _("A charcoal stack is burning in this earthen hole. When it has burnt down, a charcoal burner will be able to gather coal from it.") } }, { name = "pond_coal", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Pond purpose = _("A charcoal stack, which had been erected in this earthen hole, is ready for a charcoal burner to gather coal from it.") } }, { name = "dike", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Dike purpose = _("A breakwater erected by a diker to gain new land from the sea."), -- TRANSLATORS: Note helptext for a frisian production site: Diker's House note = _("You can manually remove the dike when the land is sufficiently secured to prevent wasting resources. To do so, build a flag, road, or building in its place.") } }, { name = "reedfield_tiny", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Reed Field purpose = _("This reed field has just been planted.") } }, { name = "reedfield_small", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Reed Field purpose = _("This reed field is growing.") } }, { name = "reedfield_medium", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Reed Field purpose = _("This reed field is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "reedfield_ripe", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Reed Field purpose = _("This reed field is ready for harvesting.") } }, { name = "frisians_resi_none", helptexts = { -- TRANSLATORS: Helptext for a frisian resource indicator: No resources purpose = _("There are no resources in the ground here.") } }, { name = "frisians_resi_water", helptexts = { -- TRANSLATORS: Helptext for a frisian resource indicator: Water purpose = _("There is water in the ground here that can be pulled up by a well.") } }, { name = "frisians_resi_coal_1", helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian resource indicator: Coal, part 1 _("Coal veins contain coal that can be dug up by coal mines."), -- TRANSLATORS: Helptext for a frisian resource indicator: Coal, part 2 _("There is only a little bit of coal here.") } } }, { name = "frisians_resi_iron_1", helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian resource indicator: Iron, part 1 _("Iron veins contain iron ore that can be dug up by iron mines."), -- TRANSLATORS: Helptext for a frisian resource indicator: Iron, part 2 _("There is only a little bit of iron here.") } } }, { name = "frisians_resi_gold_1", helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian resource indicator: Gold, part 1 _("Gold veins contain gold ore that can be dug up by gold mines."), -- TRANSLATORS: Helptext for a frisian resource indicator: Gold, part 2 _("There is only a little bit of gold here.") } } }, { name = "frisians_resi_stones_1", helptexts = { purpose = { -- TRANSLATORS: Helptext for a Frisian resource indicator: Stones, part 1 _("Granite is a basic building material and can be dug up by a rock mine."), -- TRANSLATORS: Helptext for a Frisian resource indicator: Stones, part 2 _("There is only a little bit of granite here.") } } }, { name = "frisians_resi_coal_2", helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian resource indicator: Coal, part 1 _("Coal veins contain coal that can be dug up by coal mines."), -- TRANSLATORS: Helptext for a frisian resource indicator: Coal, part 2 _("There is a lot of coal here.") } } }, { name = "frisians_resi_iron_2", helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian resource indicator: Iron, part 1 _("Iron veins contain iron ore that can be dug up by iron mines."), -- TRANSLATORS: Helptext for a frisian resource indicator: Iron, part 2 _("There is a lot of iron here.") } } }, { name = "frisians_resi_gold_2", helptexts = { purpose = { -- TRANSLATORS: Helptext for a frisian resource indicator: Gold, part 1 _("Gold veins contain gold ore that can be dug up by gold mines."), -- TRANSLATORS: Helptext for a frisian resource indicator: Gold, part 2 _("There is a lot of gold here.") } } }, { name = "frisians_resi_stones_2", helptexts = { purpose = { -- TRANSLATORS: Helptext for a Frisian resource indicator: Stones, part 1 _("Granite is a basic building material and can be dug up by a rock mine."), -- TRANSLATORS: Helptext for a Frisian resource indicator: Stones, part 2 _("There is a lot of granite here.") } } }, { name = "frisians_shipconstruction", helptexts = { -- TRANSLATORS: Helptext for a frisian immovable: Ship Under Construction purpose = _("A ship is being constructed at this site.") } }, -- These non-frisian immovables can be used by bee-keepers -- The tribe would work without defining these here, but this way we add them to the encyclopedia. { name = "wheatfield_medium", helptexts = { -- TRANSLATORS: Helptext for an empire/barbarian immovable usable by frisians: Wheat field purpose = _("This field is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "cornfield_medium", helptexts = { -- TRANSLATORS: Helptext for a an atlantean immovable usable by frisians: Corn Field purpose = _("This field is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "blackrootfield_medium", helptexts = { -- TRANSLATORS: Helptext for an atlantean immovable usable by frisians: Blackroot Field purpose = _("This field is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "grapevine_medium", helptexts = { -- TRANSLATORS: Helptext for an empire immovable usable by frisians: Grapevine purpose = _("This grapevine is flowering. Honey can be produced from it by a beekeeper.") } }, { name = "cassavafield_medium", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Cassava field purpose = _("This field is flowering. Honey can be produced from it by a beekeeper.") } }, -- Used by the fruit collector { name = "grapevine_ripe", helptexts = { -- TRANSLATORS: Helptext for an empire immovable usable by frisians: Grapevine purpose = _("This grapevine is ready for harvesting.") } }, -- non frisian Immovables used by the woodcutter { name = "deadtree7", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Dead Tree purpose = _("The remains of an old tree.") } }, { name = "balsa_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Balsa Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "balsa_black_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Balsa Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "balsa_desert_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Balsa Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "balsa_winter_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Balsa Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "ironwood_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Ironwood Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "ironwood_black_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Ironwood Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "ironwood_desert_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Ironwood Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "ironwood_winter_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Ironwood Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "rubber_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Rubber Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "rubber_black_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Rubber Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "rubber_desert_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Rubber Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, { name = "rubber_winter_amazons_old", helptexts = { -- TRANSLATORS: Helptext for an amazon immovable usable by frisians: Rubber Tree purpose = _("This tree is only planted by the amazon tribe but can be harvested for logs.") } }, }, -- The order here also determines the order in lists on screen. buildings = { -- Warehouses { name = "frisians_headquarters", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian warehouse: Headquarters purpose = pgettext("frisians_building", "Accommodation for your people. Also stores your wares and tools."), -- TRANSLATORS: Note helptext for a frisian warehouse: Headquarters note = pgettext("frisians_building", "The headquarters is your main building.") } }, { name = "frisians_warehouse", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian warehouse: Warehouse purpose = pgettext("frisians_building", "Your workers and soldiers will find shelter here. Also stores your wares and tools.") } }, { name = "frisians_port", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian warehouse: Port purpose = pgettext("frisians_building", "Serves as a base for overseas colonization and trade. Also stores your soldiers, wares and tools."), -- TRANSLATORS: Note helptext for a frisian warehouse: Port note = pgettext("frisians_building", "Similar to the Headquarters a Port can be attacked and destroyed by an enemy. It is recommendable to send soldiers to defend it.") } }, -- Small { name = "frisians_quarry", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Quarry lore = pgettext("frisians_building", "When I swing my pick, whole mountains fall before me!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Quarry lore_author = pgettext("frisians_building", "A stonemason"), -- TRANSLATORS: Purpose helptext for a frisian production site: Quarry purpose = pgettext("frisians_building", "Cuts raw pieces of granite out of rocks in the vicinity."), -- TRANSLATORS: Note helptext for a frisian production site: Quarry note = pgettext("frisians_building", "The quarry needs rocks to cut within the work area."), -- TRANSLATORS: Performance helptext for a frisian production site: Quarry performance = pgettext("frisians_building", "The stonemason pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 25):bformat(25)) } }, { name = "frisians_woodcutters_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Woodcutter's House lore = pgettext("frisians_building", "I cannot see a tree without imagining what it would look like in terms of furniture."), -- TRANSLATORS: Lore author helptext for a frisian production site: Woodcutter's House lore_author = pgettext("frisians_building", "An over-enthusiastic woodcutter"), -- TRANSLATORS: Purpose helptext for a frisian production site: Woodcutter's House purpose = pgettext("building", "Fells trees in the surrounding area and processes them into logs."), -- TRANSLATORS: Note helptext for a frisian production site: Woodcutter's House note = pgettext("frisians_building", "The woodcutter’s house needs trees to fell within the work area.") } }, { name = "frisians_foresters_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Forester's House lore = pgettext("frisians_building", "What can ever be more beautiful than the brilliant sun’s beams shining through the glistering canopy of leaves?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Forester's House lore_author = pgettext("frisians_building", "A forester explaining his choice of profession"), -- TRANSLATORS: Purpose helptext for a frisian production site: Forester's House purpose = pgettext("building", "Plants trees in the surrounding area."), -- TRANSLATORS: Note helptext for a frisian production site: Forester's House note = pgettext("frisians_building", "The forester’s house needs free space within the work area to plant the trees."), -- TRANSLATORS: Performance helptext for a frisian production site: Forester's House performance = pgettext("frisians_building", "The forester pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 12):bformat(12)) } }, { name = "frisians_hunters_house", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Hunter's House purpose = pgettext("building", "Hunts animals to produce meat."), -- TRANSLATORS: Note helptext for a frisian production site: Hunter's House note = pgettext("frisians_building", "The hunter’s house needs animals to hunt within the work area."), -- TRANSLATORS: Performance helptext for a frisian production site: Hunter's House performance = pgettext("frisians_building", "The hunter pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 35):bformat(35)) } }, { name = "frisians_fishers_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Fisher's House lore = pgettext("frisians_building", "Hunters can’t sell anything on a Friday, but fishers don’t have such problems."), -- TRANSLATORS: Lore author helptext for a frisian production site: Fisher's House lore_author = pgettext("frisians_building", "A hunter admiring a fisher"), -- TRANSLATORS: Purpose helptext for a frisian production site: Fisher's House purpose = pgettext("frisians_building", "Fishes on the coast near the fisher’s house."), -- TRANSLATORS: Note helptext for a frisian production site: Fisher's House note = pgettext("frisians_building", "The fisher’s house needs water full of fish within the work area."), -- TRANSLATORS: Performance helptext for a frisian production site: Fisher's House performance = pgettext("frisians_building", "The fisher pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 16):bformat(16)) } }, { name = "frisians_reed_farm", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Reed Farm lore = pgettext("frisians_building", "No worse fortune can befall a reed farmer than to see his roof leaking."), -- TRANSLATORS: Lore author helptext for a frisian production site: Reed Farm lore_author = pgettext("frisians_building", "Anonymous reed farmer"), -- TRANSLATORS: Purpose helptext for a frisian production site: Reed Farm purpose = pgettext("frisians_building", "Cultivates reed that serves three different purposes for the Frisians."), -- TRANSLATORS: Note helptext for a frisian production site: Reed Farm note = pgettext("frisians_building", "Reed is the traditional material for roofing. It is also needed to produce baskets and fishing nets, and it is woven – together with reindeer fur – into the cloth used for ships’ sails.") } }, { name = "frisians_well", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Well lore = pgettext("frisians_building", "We love the sea so much that we don’t want to drink it empty!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Well lore_author = pgettext("frisians_building", "Chieftain Arldor’s retort when he was asked why his tribe can’t drink salt water"), -- TRANSLATORS: Purpose helptext for a frisian production site: Well purpose = pgettext("building", "Draws water out of the deep."), -- TRANSLATORS: Performance helptext for a frisian production site: Well performance = pgettext("frisians_building", "The well needs %s on average to produce one bucket of water."):bformat(ngettext("%d second", "%d seconds", 40):bformat(40)) } }, { name = "frisians_clay_pit", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Clay Pit lore = pgettext("frisians_building", "You think you can build a house without my help?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Clay Pit lore_author = pgettext("frisians_building", "A clay digger arguing with a builder"), -- TRANSLATORS: Purpose helptext for a frisian production site: Clay Pit purpose = pgettext("building", "Digs up mud from the ground and uses water to turn it into clay. Clay is used to make bricks, reinforce the charcoal kiln and to build ships.") } }, { name = "frisians_charcoal_burners_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Charcoal Burner's House lore = pgettext("frisians_building", "No other tribe has ever mastered the art of charcoal burning as we have!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Charcoal Burner's House lore_author = pgettext("frisians_building", "The inventor of the Frisian charcoal kiln"), -- TRANSLATORS: Purpose helptext for a frisian production site: Charcoal Burner's House purpose = pgettext("building", "Burns logs into charcoal."), -- TRANSLATORS: Note helptext for a frisian production site: Charcoal Burner's House note = pgettext("building", "The charcoal burner’s house needs holes in the ground that were dug by a clay pit’s worker nearby to erect charcoal stacks in them."), -- TRANSLATORS: Performance helptext for a frisian production site: Charcoal Burner's House performance = pgettext("frisians_building", "The charcoal burner’s house needs %s on average to produce one coal."):bformat(ngettext("%d second", "%d seconds", 80):bformat(80)) } }, { name = "frisians_berry_farm", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Berry Farm lore = pgettext("frisians_building", "My bushes may not be as tall as your trees, but I don’t know anybody who likes to eat bark!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Berry Farm lore_author = pgettext("frisians_building", "A berry farmer to a forester"), -- TRANSLATORS: Purpose helptext for a frisian production site: Berry Farm purpose = pgettext("building", "Plants berry bushes in the surrounding area."), -- TRANSLATORS: Note helptext for a frisian production site: Berry Farm note = pgettext("frisians_building", "The berry farm needs free space within the work area to plant the bushes."), -- TRANSLATORS: Performance helptext for a frisian production site: Berry Farm performance = pgettext("frisians_building", "The berry farmer pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 21):bformat(21)) } }, { name = "frisians_collectors_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Fruit Collector's House lore = pgettext("frisians_building", "Meat doesn’t grow on bushes. Fruit does."), -- TRANSLATORS: Lore author helptext for a frisian production site: Fruit Collector's House lore_author = pgettext("frisians_building", "A fruit collector advertising his harvest to a landlady"), -- TRANSLATORS: Purpose helptext for a frisian production site: Fruit Collector's House purpose = pgettext("building", "Collects berries from nearby bushes."), -- TRANSLATORS: Note helptext for a frisian production site: Fruit Collector's House note = pgettext("frisians_building", "The fruit collector needs bushes full of berries within the work area."), -- TRANSLATORS: Performance helptext for a frisian production site: Fruit Collector's House performance = pgettext("frisians_building", "The fruit collector pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 21):bformat(21)) } }, { name = "frisians_beekeepers_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Beekeeper's House lore = pgettext("frisians_building", "If my honey tastes bitter, I must have left some bee stings in it. There are never any bee stings in my honey, therefore, it is not bitter."), -- TRANSLATORS: Lore author helptext for a frisian production site: Beekeeper's House lore_author = pgettext("frisians_building", "A beekeeper ignoring a customer’s complaint"), -- TRANSLATORS: Purpose helptext for a frisian production site: Beekeeper's House purpose = pgettext("frisians_building", "Keeps bees and lets them swarm over flowering fields to produce honey."), -- TRANSLATORS: Note helptext for a frisian production site: Beekeeper's House note = pgettext("frisians_building", "Needs medium-sized fields (barley, wheat, reed, corn or blackroot) or bushes (berry bushes or grapevines) nearby."), -- TRANSLATORS: Performance helptext for a frisian production site: Beekeeper's House performance = pgettext("frisians_building", "The beekeeper pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 45):bformat(45)) } }, { name = "frisians_aqua_farm", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Aqua Farm lore = pgettext("frisians_building", "Why on earth shouldn’t we be able to catch fish even in the desert?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Aqua Farm lore_author = pgettext("frisians_building", "The fisherman who invented aqua farming"), -- TRANSLATORS: Purpose helptext for a frisian production site: Aqua Farm purpose = pgettext("frisians_building", "Breeds fish as food for soldiers and miners."), -- TRANSLATORS: Note helptext for a frisian production site: Aqua Farm note = pgettext("building", "The aqua farm needs holes in the ground that were dug by a clay pit’s worker nearby to use as fishing ponds.") } }, { name = "frisians_scouts_house", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Scout's House lore = pgettext("frisians_building", "Everyone has their own ideas on how exactly we should explore the enemy’s territory… One more ‘improvement’ suggestion and we’ll demand meals instead of rations!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Scout's House lore_author = pgettext("frisians_building", "The spokesman of the scouts’ labor union"), no_scouting_building_connected = pgettext("frisians_building", "You need to connect this flag to a scout’s house before you can send a scout here."), -- TRANSLATORS: Purpose helptext for a frisian production site: Scout's House purpose = pgettext("building", "Explores unknown territory."), -- TRANSLATORS: Performance helptext for a frisian production site: Scout's House performance = pgettext("frisians_building", "The scout pauses %s before going to work again."):bformat(ngettext("%d second", "%d seconds", 30):bformat(30)) } }, -- Medium { name = "frisians_brick_kiln", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Brick Kiln lore = pgettext("frisians_building", "If there is not enough coal, only the most foolish of leaders would deprive his brick kilns of it first."), -- TRANSLATORS: Lore author helptext for a frisian production site: Brick Kiln lore_author = pgettext("frisians_building", "A brickmaker arguing with his chieftain who was doing just that"), -- TRANSLATORS: Purpose helptext for a frisian production site: Brick Kiln purpose = pgettext("building", "Burns bricks using granite and clay, and coal as fuel. Bricks are the most important building material."), -- TRANSLATORS: Performance helptext for a frisian production site: Brick Kiln performance = pgettext("frisians_building", "The brick kiln needs %s on average to produce three bricks."):bformat(ngettext("%d second", "%d seconds", 84):bformat(84)) } }, { name = "frisians_furnace", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Furnace lore = pgettext("frisians_building", "Miners get ores from the depths of the hills; but without our work, their labour is in vain."), -- TRANSLATORS: Lore author helptext for a frisian production site: Furnace lore_author = pgettext("frisians_building", "Slogan of the Smelters’ Guild"), -- TRANSLATORS: Purpose helptext for a frisian production site: Furnace purpose = pgettext("building", "Smelts iron ore and gold ore into iron and gold ingots using coal.") } }, { name = "frisians_recycling_center", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Recycling Center lore = pgettext("frisians_building", "Of course these weapons could be used by other soldiers again without being smelted down first! The only drawback is that they’d break in two at the first blow."), -- TRANSLATORS: Lore author helptext for a frisian production site: Recycling Center lore_author = pgettext("frisians_building", "A smelter explaining the need for recycling to his impatient chieftain"), -- TRANSLATORS: Purpose helptext for a frisian production site: Recycling Center purpose = pgettext("frisians_building", "Recycles old armor and weapon parts that have been discarded by training sites into fur, iron and gold.") } }, { name = "frisians_blacksmithy", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Blacksmithy lore = pgettext("frisians_building", "If you don’t have iron, change your name from blacksmith to lacksmith!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Blacksmithy lore_author = pgettext("frisians_building", "Irritated chieftain during a metal shortage"), -- TRANSLATORS: Purpose helptext for a frisian production site: Blacksmithy purpose = pgettext("building", "Forges tools to equip new workers."), -- TRANSLATORS: Performance helptext for a frisian production site: Blacksmithy performance = pgettext("frisians_building", "The blacksmith needs %s on average to produce one tool."):bformat(ngettext("%d second", "%d seconds", 67):bformat(67)) } }, { name = "frisians_armor_smithy_small", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Small Armor Smithy lore = pgettext("frisians_building", "I don’t forge swords because soldiers need ’em, but soldiers get ’em because I forge ’em."), -- TRANSLATORS: Lore author helptext for a frisian production site: Small Armor Smithy lore_author = pgettext("frisians_building", "A blacksmith pointing out his influence on soldier training"), -- TRANSLATORS: Purpose helptext for a frisian production site: Small Armor Smithy purpose = pgettext("frisians_building", "Produces basic weapons and helmets for the soldiers.") } }, { name = "frisians_armor_smithy_large", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Large Armor Smithy lore = pgettext("frisians_building", "Of course I could still forge short and long swords, but it is beneath my honor to bother with such basic equipment now."), -- TRANSLATORS: Lore author helptext for a frisian production site: Large Armor Smithy lore_author = pgettext("frisians_building", "A master blacksmith refusing to forge anything but the most sophisticated helmets and weapons"), -- TRANSLATORS: Purpose helptext for a frisian production site: Large Armor Smithy purpose = pgettext("frisians_building", "Produces advanced weapons and golden helmets for the soldiers.") } }, { name = "frisians_sewing_room", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Sewing Room lore = pgettext("frisians_building", "You soldiers think a good sword is everything, but where would you be if you had no garments?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Sewing Room lore_author = pgettext("frisians_building", "A seamstress scolding a soldier for disrespecting her profession"), -- TRANSLATORS: Purpose helptext for a frisian production site: Sewing Room purpose = pgettext("building", "Sews fur garments out of reindeer fur."), -- TRANSLATORS: Performance helptext for a frisian production site: Sewing Room performance = pgettext("frisians_building", "The sewing room needs %s on average to produce one fur garment."):bformat(ngettext("%d second", "%d seconds", 45):bformat(45)) } }, { name = "frisians_tailors_shop", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Tailor's Shop lore = pgettext("frisians_building", "Don’t complain if these garments are too heavy – they’re not supposed to be light but to keep you alive a bit longer!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Tailor's Shop lore_author = pgettext("frisians_building", "A trainer scolding a soldier"), -- TRANSLATORS: Purpose helptext for a frisian production site: Tailor's Shop purpose = pgettext("building", "Equips fur garments with iron or gold to produce good armor.") } }, { name = "frisians_charcoal_kiln", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Charcoal Kiln lore = pgettext("frisians_building", "No other tribe has ever mastered the art of charcoal burning as we have!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Charcoal Kiln lore_author = pgettext("frisians_building", "The inventor of the Frisian charcoal kiln"), -- TRANSLATORS: Purpose helptext for a frisian production site: Charcoal Kiln purpose = pgettext("building", "Burns logs into charcoal."), -- TRANSLATORS: Performance helptext for a frisian production site: Charcoal Kiln performance = pgettext("frisians_building", "The charcoal kiln needs %s on average to produce one coal."):bformat(ngettext("%d second", "%d seconds", 60):bformat(60)) } }, { name = "frisians_smokery", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Smokery lore = pgettext("frisians_building", "Miners and soldiers are so picky… But who am I to complain, as I make my living from it?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Smokery lore_author = pgettext("frisians_building", "A smoker explaining his profession"), -- TRANSLATORS: Purpose helptext for a frisian production site: Smokery purpose = pgettext("frisians_building", "Smokes fish and meat using logs. Only smoked meat and fish are good enough to be eaten by miners and soldiers."), -- TRANSLATORS: Performance helptext for a frisian production site: Smokery performance = pgettext("frisians_building", "The smokery needs %s on average to smoke two fish or two meat."):bformat(ngettext("%d second", "%d seconds", 46):bformat(46)) } }, { name = "frisians_bakery", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Bakery lore = pgettext("frisians_building", "Why shouldn’t my bread taste good? It’s only barley and water!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Bakery lore_author = pgettext("frisians_building", "A baker"), -- TRANSLATORS: Purpose helptext for a frisian production site: Bakery purpose = pgettext("frisians_building", "Bakes bread out of barley and water to feed miners and soldiers."), -- TRANSLATORS: Performance helptext for a frisian production site: Bakery performance = pgettext("frisians_building", "The bakery needs %s on average to produce one loaf of bread."):bformat(ngettext("%d second", "%d seconds", 40):bformat(40)) } }, { name = "frisians_honey_bread_bakery", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Honey Bread Bakery lore = pgettext("frisians_building", "Rookies will say that vengeance is sweet. Heroes will say that honey bread is sweeter."), -- TRANSLATORS: Lore author helptext for a frisian production site: Honey Bread Bakery lore_author = pgettext("frisians_building", "A trainer in conversation with a baker"), -- TRANSLATORS: Purpose helptext for a frisian production site: Honey Bread Bakery purpose = pgettext("frisians_building", "Bakes honey bread out of barley, water and honey to feed miners in deep mines and soldiers in advanced training.") } }, { name = "frisians_brewery", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Brewery lore = pgettext("frisians_building", "I know no single master miner who’ll ever work without a nice pint of beer!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Brewery lore_author = pgettext("frisians_building", "A brewer boasting about the importance of his profession"), -- TRANSLATORS: Purpose helptext for a frisian production site: Brewery purpose = pgettext("frisians_building", "Brews beer for miners and soldier training."), -- TRANSLATORS: Performance helptext for a frisian production site: Brewery performance = pgettext("frisians_building", "The brewery needs %s on average to brew one mug of beer."):bformat(ngettext("%d second", "%d seconds", 60):bformat(60)) } }, { name = "frisians_mead_brewery", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Mead Brewery lore = pgettext("frisians_building", "If you like beer, you’ve never tasted mead."), -- TRANSLATORS: Lore author helptext for a frisian production site: Mead Brewery lore_author = pgettext("frisians_building", "Slogan over a mead brewery"), -- TRANSLATORS: Purpose helptext for a frisian production site: Mead Brewery purpose = pgettext("frisians_building", "Brews beer out of barley and water. It also brews mead, which is beer refined with honey. Mead is consumed by experienced soldiers.") } }, { name = "frisians_tavern", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Tavern lore = pgettext("frisians_building", "Nothing but fruit all day… Couldn’t you hurry up a bit?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Tavern lore_author = pgettext("frisians_building", "Hungry customers in times of a shortage of smoked fish and meat"), -- TRANSLATORS: Purpose helptext for a frisian production site: Tavern purpose = pgettext("building", "Prepares rations to feed the scouts and miners."), -- TRANSLATORS: Performance helptext for a frisian production site: Tavern performance = pgettext("frisians_building", "The tavern can produce one ration in %s on average if the supply is steady; otherwise, it will take 50%% longer."):bformat(ngettext("%d second", "%d seconds", 33):bformat(33)) } }, { name = "frisians_drinking_hall", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Drinking Hall lore = pgettext("frisians_building", "All I need to be happy is a slice of honey bread with some smoked meat and a beer."), -- TRANSLATORS: Lore author helptext for a frisian production site: Drinking Hall lore_author = pgettext("frisians_building", "A master miner to the landlady"), -- TRANSLATORS: Purpose helptext for a frisian production site: Drinking Hall purpose = pgettext("frisians_building", "Prepares rations for scouts and rations and meals to feed the miners in all mines.") } }, { name = "frisians_barracks", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Barracks lore = pgettext("frisians_building", "You have thirty seconds to learn the basics of swordfighting and how to stay alive in battle. A third of that time has gone by for the introduction alone! You’d better pay close attention to me in order to make the most of it. Now here is your new short sword, forged just for you by our best blacksmiths. Time’s up everyone, now go occupy your sentinels!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Barracks lore_author = pgettext("frisians_building", "A trainer greeting the new recruits"), -- TRANSLATORS: Purpose helptext for a frisian production site: Barracks purpose = pgettext("frisians_building", "Equips recruits and trains them as soldiers."), -- TRANSLATORS: Performance helptext for a frisian production site: Barracks performance = pgettext("frisians_building", "The barracks needs %s on average to recruit one soldier."):bformat(ngettext("%d second", "%d seconds", 30):bformat(30)) } }, -- Big { name = "frisians_reindeer_farm", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Reindeer Farm lore = pgettext("frisians_building", "Who says a beast of burden cannot be useful for other things than transport?"), -- TRANSLATORS: Lore author helptext for a frisian production site: Reindeer Farm lore_author = pgettext("frisians_building", "The reindeer breeder who first proposed using reindeer fur for clothing"), -- TRANSLATORS: Purpose helptext for a frisian production site: Reindeer Farm purpose = pgettext("frisians_building", "Breeds strong reindeer for adding them to the transportation system. Also keeps them for their fur, which is turned into armor and cloth."), -- TRANSLATORS: Note helptext for a frisian production site: Reindeer Farm note = pgettext("frisians_building", "If the supply is steady, the reindeer farm produces one meat after producing three pieces of fur.") } }, { name = "frisians_farm", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Farm lore = pgettext("frisians_building", "No frost, no heat; no rain, no drought; no rats, no locusts; naught can destroy my harvest."), -- TRANSLATORS: Lore author helptext for a frisian production site: Farm lore_author = pgettext("frisians_building", "A farmer’s reply when asked by his chieftain why he was planting such a slow-growing grain."), -- TRANSLATORS: Purpose helptext for a frisian production site: Farm purpose = pgettext("building", "Sows and harvests barley."), -- TRANSLATORS: Note helptext for a frisian production site: Farm note = pgettext("frisians_building", "The farm needs free space within the work area to plant seeds.") } }, { name = "frisians_dikers_house", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Diker's House purpose = pgettext("frisians_building", "Constructs breakwaters nearby to gain new land from the sea."), -- TRANSLATORS: Note helptext for a frisian production site: Diker's House note = pgettext("frisians_building", "The diker will terraform the land around each breakwater he builds several times. You can manually remove breakwaters when the land is sufficiently secured to prevent wasting resources; to do so, build a flag, road, or building in the dike’s place.") } }, -- Mines { name = "frisians_rockmine", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Rock Mine purpose = pgettext("building", "Digs granite out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Rock Mine performance = pgettext("frisians_building", "If the food supply is steady, the rock mine can produce two blocks of granite in %s on average."):bformat(ngettext("%d second", "%d seconds", 85):bformat(85)) } }, { name = "frisians_rockmine_deep", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Deep Rock Mine purpose = pgettext("building", "Digs granite out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Deep Rock Mine performance = pgettext("frisians_building", "If the food supply is steady, the deep rock mine can produce three blocks of granite in %s on average."):bformat(ngettext("%d second", "%d seconds", 76):bformat(76)) } }, { name = "frisians_coalmine", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Coal Mine purpose = pgettext("building", "Digs coal out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Coal Mine performance = pgettext("frisians_building", "If the food supply is steady, the coal mine can produce two pieces of coal in %s on average."):bformat(ngettext("%d second", "%d seconds", 85):bformat(85)) } }, { name = "frisians_coalmine_deep", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Deep Coal Mine purpose = pgettext("building", "Digs coal out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Deep Coal Mine performance = pgettext("frisians_building", "If the food supply is steady, the deep coal mine can produce four pieces of coal in %s on average."):bformat(ngettext("%d second", "%d seconds", 76):bformat(76)) } }, { name = "frisians_ironmine", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Iron Mine purpose = pgettext("building", "Digs iron ore out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Iron Mine performance = pgettext("frisians_building", "If the food supply is steady, the iron mine can produce one piece of iron ore in %s on average."):bformat(ngettext("%d second", "%d seconds", 65):bformat(65)) } }, { name = "frisians_ironmine_deep", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Deep Iron Mine purpose = pgettext("building", "Digs iron ore out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Deep Iron Mine performance = pgettext("frisians_building", "If the food supply is steady, the deep iron mine can produce two pieces of iron ore in %s on average."):bformat(ngettext("%d second", "%d seconds", 76):bformat(76)) } }, { name = "frisians_goldmine", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Gold Mine purpose = pgettext("building", "Digs gold ore out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Gold Mine performance = pgettext("frisians_building", "If the food supply is steady, the gold mine can produce one piece of gold ore in %s on average."):bformat(ngettext("%d second", "%d seconds", 65):bformat(65)) } }, { name = "frisians_goldmine_deep", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Deep Gold Mine purpose = pgettext("building", "Digs gold ore out of the ground in mountain terrain."), -- TRANSLATORS: Performance helptext for a frisian production site: Deep Gold Mine performance = pgettext("frisians_building", "If the food supply is steady, the deep gold mine can produce two pieces of gold ore in %s on average."):bformat(ngettext("%d second", "%d seconds", 76):bformat(76)) } }, -- Training Sites { name = "frisians_training_camp", helptexts = { -- TRANSLATORS: Lore helptext for a frisian training site: Training Camp lore = pgettext("frisians_building", "Just be quiet, listen carefully, and do try not to stab yourself until I’ve explained to you how to hold a broadsword."), -- TRANSLATORS: Lore author helptext for a frisian training site: Training Camp lore_author = pgettext("frisians_building", "A trainer training a soldier"), -- TRANSLATORS: Purpose helptext for a frisian training site: Training Camp purpose = pgettext("frisians_building", "Trains soldiers in Attack up to level 3 as well as in Defense and Health to level 1. Equips the soldiers with all necessary weapons and armor parts."), -- TRANSLATORS: Note helptext for a frisian training site: Training Camp note = pgettext("frisians_building", "Frisian soldiers cannot train in Evade and will remain at their initial level.") } }, { name = "frisians_training_arena", helptexts = { -- TRANSLATORS: Lore helptext for a frisian training site: Training Arena lore = pgettext("frisians_building", "Now that you have two swords, there’s more of a risk you’ll accidentally stab yourself, but if you got this far, you’ll likely master this challenge as well."), -- TRANSLATORS: Lore author helptext for a frisian training site: Training Arena lore_author = pgettext("frisians_building", "A trainer training a soldier"), -- TRANSLATORS: Purpose helptext for a frisian training site: Training Arena purpose = pgettext("frisians_building", "Trains soldiers in Attack, Defense and Health to the final level. Equips the soldiers with all necessary weapons and armor parts."), -- TRANSLATORS: Note helptext for a frisian training site: Training Arena note = pgettext("frisians_building", "Trains only soldiers who have been trained to the maximum level by the Training Camp.") } }, -- Military Sites { name = "frisians_wooden_tower", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian military site: Wooden Tower purpose = pgettext("frisians_building", "Garrisons soldiers to expand your territory."), -- TRANSLATORS: Note helptext for a frisian military site: Wooden Tower note = pgettext("frisians_building", "If you’re low on soldiers to occupy new military sites, use the downward arrow button to decrease the capacity. You can also click on a soldier to send him away.") } }, { name = "frisians_wooden_tower_high", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian military site: High Wooden Tower purpose = pgettext("frisians_building", "Garrisons soldiers to expand your territory."), -- TRANSLATORS: Note helptext for a frisian military site: High Wooden Tower note = pgettext("frisians_building", "If you’re low on soldiers to occupy new military sites, use the downward arrow button to decrease the capacity. You can also click on a soldier to send him away.") } }, { name = "frisians_sentinel", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian military site: Sentinel purpose = pgettext("frisians_building", "Garrisons soldiers to expand your territory."), -- TRANSLATORS: Note helptext for a frisian military site: Sentinel note = pgettext("frisians_building", "If you’re low on soldiers to occupy new military sites, use the downward arrow button to decrease the capacity. You can also click on a soldier to send him away.") } }, { name = "frisians_outpost", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian military site: Outpost purpose = pgettext("frisians_building", "Garrisons soldiers to expand your territory."), -- TRANSLATORS: Note helptext for a frisian military site: Outpost note = pgettext("frisians_building", "If you’re low on soldiers to occupy new military sites, use the downward arrow button to decrease the capacity. You can also click on a soldier to send him away.") } }, { name = "frisians_tower", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian military site: Tower purpose = pgettext("frisians_building", "Garrisons soldiers to expand your territory."), -- TRANSLATORS: Note helptext for a frisian military site: Tower note = pgettext("frisians_building", "If you’re low on soldiers to occupy new military sites, use the downward arrow button to decrease the capacity. You can also click on a soldier to send him away.") } }, { name = "frisians_fortress", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian military site: Fortress purpose = pgettext("frisians_building", "Garrisons soldiers to expand your territory."), -- TRANSLATORS: Note helptext for a frisian military site: Fortress note = pgettext("frisians_building", "If you’re low on soldiers to occupy new military sites, use the downward arrow button to decrease the capacity. You can also click on a soldier to send him away.") } }, -- Seafaring/Ferry Sites - these are only displayed on seafaring/ferry maps { name = "frisians_ferry_yard", helptexts = { -- TRANSLATORS: Purpose helptext for a frisian production site: Ferry Yard purpose = pgettext("building", "Builds ferries."), -- TRANSLATORS: Note helptext for a frisian production site: Ferry Yard note = pgettext("building", "Needs water nearby.") } }, { name = "frisians_shipyard", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Shipyard lore = pgettext("frisians_building", "This house may be called a shipyard, but my ships are rather longer than one yard!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Shipyard lore_author = pgettext("frisians_building", "A shipwright who only constructed toy ships after being chid that his ships were too small"), -- TRANSLATORS: Purpose helptext for a frisian production site: Shipyard purpose = pgettext("building", "Constructs ships that are used for overseas colonization and for trading between ports.") } }, { name = "frisians_weaving_mill", helptexts = { -- TRANSLATORS: Lore helptext for a frisian production site: Weaving Mill lore = pgettext("frisians_building", "Reindeer’s fur and roofing reed<br>These items two make up the seed<br>For ships of wood to chain the gales<br>In sturdy, beautious, blowing sails!"), -- TRANSLATORS: Lore author helptext for a frisian production site: Weaving Mill lore_author = pgettext("frisians_building", "A seamstress’ work song"), -- TRANSLATORS: Purpose helptext for a frisian production site: Weaving Mill purpose = pgettext("building", "Sews cloth for ship sails out of reed and reindeer fur."), -- TRANSLATORS: Performance helptext for a frisian production site: Weaving Mill performance = pgettext("frisians_building", "The weaving mill needs %s on average to produce one piece of cloth."):bformat(ngettext("%d second", "%d seconds", 45):bformat(45)) } }, -- Partially Finished Buildings - these are the same 2 buildings for all tribes { name = "constructionsite", helptexts = { -- TRANSLATORS: Lore helptext for a frisian building: Construction Site lore = pgettext("building", "‘Don’t swear at the builder who is short of building materials.’"), -- TRANSLATORS: Lore author helptext for a frisian building: Construction Site lore_author = pgettext("building", "Proverb widely used for impossible tasks of any kind"), -- TRANSLATORS: Purpose helptext for a frisian building: Construction Site purpose = pgettext("building", "A new building is being built at this construction site.") } }, { name = "dismantlesite", helptexts = { -- TRANSLATORS: Lore helptext for a frisian building: Dismantle Site lore = pgettext("building", "‘New paths will appear when you are willing to tear down the old.’"), -- TRANSLATORS: Lore author helptext for a frisian building: Dismantle Site lore_author = pgettext("building", "Proverb"), -- TRANSLATORS: Purpose helptext for a frisian building: Dismantle Site purpose = pgettext("building", "A building is being dismantled at this dismantle site, returning some of the resources that were used during this building’s construction to your tribe’s stores.") } } }, -- Productionsite status strings -- TRANSLATORS: Productivity label on a frisian building if there is 1 worker missing productionsite_worker_missing = pgettext("frisians", "Worker missing"), -- TRANSLATORS: Productivity label on a frisian building if there is 1 worker coming productionsite_worker_coming = pgettext("frisians", "Worker is coming"), -- TRANSLATORS: Productivity label on a frisian building if there is more than 1 worker missing. If you need plural forms here, please let us know. productionsite_workers_missing = pgettext("frisians", "Workers missing"), -- TRANSLATORS: Productivity label on a frisian building if there is more than 1 worker coming. If you need plural forms here, please let us know. productionsite_workers_coming = pgettext("frisians", "Workers are coming"), -- TRANSLATORS: Productivity label on a frisian building if there is 1 experienced worker missing productionsite_experienced_worker_missing = pgettext("frisians", "Expert missing"), -- TRANSLATORS: Productivity label on a frisian building if there is more than 1 experienced worker missing. If you need plural forms here, please let us know. productionsite_experienced_workers_missing = pgettext("frisians", "Experts missing"), -- Soldier strings to be used in Military Status strings soldier_context = "frisians_soldier", soldier_0_sg = "%1% soldier (+%2%)", soldier_0_pl = "%1% soldiers (+%2%)", soldier_1_sg = "%1% soldier", soldier_1_pl = "%1% soldiers", soldier_2_sg = "%1%(+%2%) soldier (+%3%)", soldier_2_pl = "%1%(+%2%) soldiers (+%3%)", soldier_3_sg = "%1%(+%2%) soldier", soldier_3_pl = "%1%(+%2%) soldiers", -- TRANSLATORS: %1% is the number of Frisian soldiers the plural refers to. %2% is the maximum number of soldier slots in the building. UNUSED_soldier_0 = npgettext("frisians_soldier", "%1% soldier (+%2%)", "%1% soldiers (+%2%)", 0), -- TRANSLATORS: Number of Frisian soldiers stationed at a militarysite. UNUSED_soldier_1 = npgettext("frisians_soldier", "%1% soldier", "%1% soldiers", 0), -- TRANSLATORS: %1% is the number of Frisian soldiers the plural refers to. %2% are currently open soldier slots in the building. %3% is the maximum number of soldier slots in the building UNUSED_soldier_2 = npgettext("frisians_soldier", "%1%(+%2%) soldier (+%3%)", "%1%(+%2%) soldiers (+%3%)", 0), -- TRANSLATORS: %1% is the number of Frisian soldiers the plural refers to. %2% are currently open soldier slots in the building. UNUSED_soldier_3 = npgettext("frisians_soldier", "%1%(+%2%) soldier", "%1%(+%2%) soldiers", 0), -- Special types builder = "frisians_builder", carriers = {"frisians_carrier", "frisians_reindeer"}, geologist = "frisians_geologist", scouts_house = "frisians_scouts_house", soldier = "frisians_soldier", ship = "frisians_ship", ferry = "frisians_ferry", port = "frisians_port", toolbar = { bottom_left_corner = image_dirname .. "toolbar_left.png", bottom_left = image_dirname .. "toolbar_main.png", bottom_center = image_dirname .. "toolbar_center.png", bottom_right = image_dirname .. "toolbar_main.png", bottom_right_corner = image_dirname .. "toolbar_right.png", top_left_corner = image_dirname .. "toolbar_left.png", top_left = image_dirname .. "toolbar_main.png", top_center = image_dirname .. "toolbar_center.png", top_right = image_dirname .. "toolbar_main.png", top_right_corner = image_dirname .. "toolbar_right.png", }, fastplace = { warehouse = "frisians_warehouse", port = "frisians_port", training_small = "frisians_training_camp", training_large = "frisians_training_arena", military_small_primary = "frisians_sentinel", military_small_secondary = "frisians_wooden_tower", military_medium_primary = "frisians_outpost", military_tower = "frisians_tower", military_fortress = "frisians_fortress", woodcutter = "frisians_woodcutters_house", forester = "frisians_foresters_house", quarry = "frisians_quarry", building_materials_primary = "frisians_brick_kiln", building_materials_secondary = "frisians_clay_pit", building_materials_tertiary = "frisians_reed_farm", fisher = "frisians_fishers_house", hunter = "frisians_hunters_house", fish_meat_replenisher = "frisians_aqua_farm", well = "frisians_well", farm_primary = "frisians_farm", bakery = "frisians_bakery", brewery = "frisians_brewery", smokery = "frisians_smokery", tavern = "frisians_tavern", smelting = "frisians_furnace", tool_smithy = "frisians_blacksmithy", weapon_smithy = "frisians_armor_smithy_small", armor_smithy = "frisians_sewing_room", weaving_mill = "frisians_weaving_mill", shipyard = "frisians_shipyard", ferry_yard = "frisians_ferry_yard", scout = "frisians_scouts_house", barracks = "frisians_barracks", second_carrier = "frisians_reindeer_farm", charcoal = "frisians_charcoal_kiln", mine_stone = "frisians_rockmine", mine_coal = "frisians_coalmine", mine_iron = "frisians_ironmine", mine_gold = "frisians_goldmine", agriculture_producer = "frisians_berry_farm", agriculture_consumer_primary = "frisians_collectors_house", agriculture_consumer_secondary = "frisians_beekeepers_house", industry_alternative = "frisians_charcoal_burners_house", industry_supporter = "frisians_recycling_center", terraforming = "frisians_dikers_house", }, } pop_textdomain()
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/mobile/dantooine/janta_primalist.lua
1
1076
janta_primalist = Creature:new { objectName = "@mob/creature_names:janta_primalist", socialGroup = "janta_tribe", pvpFaction = "janta_tribe", faction = "janta_tribe", level = 42, chanceHit = 0.47, damageMin = 405, damageMax = 520, baseXp = 4097, baseHAM = 9700, baseHAMmax = 11900, armor = 1, resists = {-1,0,-1,0,0,60,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK + HERD, optionsBitmask = 128, diet = HERBIVORE, templates = { "object/mobile/dantari_male.iff", "object/mobile/dantari_female.iff"}, lootGroups = { { groups = { {group = "junk", chance = 5500000}, {group = "janta_common", chance = 1500000}, {group = "loot_kit_parts", chance = 3000000} }, lootChance = 2000000 } }, weapons = {"primitive_weapons"}, conversationTemplate = "", attacks = merge(brawlermaster,marksmanmaster) } CreatureTemplates:addCreatureTemplate(janta_primalist, "janta_primalist")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/bio_engineer/bio_component/bio_component_clothing_casual_taming.lua
2
3403
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_draft_schematic_bio_engineer_bio_component_bio_component_clothing_casual_taming = object_draft_schematic_bio_engineer_bio_component_shared_bio_component_clothing_casual_taming:new { templateType = DRAFTSCHEMATIC, customObjectName = "Passive Tranquilizers", craftingToolTab = 128, -- (See DraftSchemticImplementation.h) complexity = 20, size = 1, xpType = "crafting_bio_engineer_creature", xp = 140, assemblySkill = "bio_engineer_assembly", experimentingSkill = "bio_engineer_experimentation", customizationSkill = "bio_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_tissue_ingredients_n", "craft_tissue_ingredients_n", "craft_tissue_ingredients_n"}, ingredientTitleNames = {"protein_base", "bioactive_fluid", "resonating_material"}, ingredientSlotType = {0, 0, 0}, resourceTypes = {"creature_food", "milk", "bone"}, resourceQuantities = {20, 25, 25}, contribution = {100, 100, 100}, targetTemplate = "object/tangible/component/bio/bio_component_clothing_casual_taming.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_bio_component_bio_component_clothing_casual_taming, "object/draft_schematic/bio_engineer/bio_component/bio_component_clothing_casual_taming.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/painting/painting_smoking_ad.lua
3
2236
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_painting_painting_smoking_ad = object_tangible_painting_shared_painting_smoking_ad:new { } ObjectTemplates:addTemplate(object_tangible_painting_painting_smoking_ad, "object/tangible/painting/painting_smoking_ad.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/lair/torton/lair_torton_grassland.lua
2
2308
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_lair_torton_lair_torton_grassland = object_tangible_lair_torton_shared_lair_torton_grassland:new { objectMenuComponent = {"cpp", "LairMenuComponent"}, } ObjectTemplates:addTemplate(object_tangible_lair_torton_lair_torton_grassland, "object/tangible/lair/torton/lair_torton_grassland.iff")
lgpl-3.0
NezzKryptic/Wire
lua/wire/timedpairs.lua
17
3271
-- Timedpairs by Grocel. (Rewrite by Divran) -- It allows you to go through long tables, but without game freezing. -- Its like a for-pairs loop. -- -- How to use: -- WireLib.Timedpairs(string unique name, table, number ticks done at once, function tickcallback[, function endcallback, ...]) -- -- tickcallback is called every tick, it ticks for each KeyValue of the table. -- Its arguments are the current key and value. -- Return false in the tickcallback function to break the loop. -- tickcallback(key, value, ...) -- -- endcallback is called after the last tickcallback has been called. -- Its arguments are the same as the last arguments of WireLib.Timedpairs -- endcallback(lastkey, lastvalue, ...) if (!WireLib) then return end local next = next local pairs = pairs local unpack = unpack local pcall = pcall local functions = {} function WireLib.TimedpairsGetTable() return functions end function WireLib.TimedpairsStop(name) functions[name] = nil end local function copy( t ) -- custom table copy function to convert to numerically indexed table local ret = {} for k,v in pairs( t ) do ret[#ret+1] = { key = k, value = v } end return ret end local function Timedpairs() if not next(functions) then return end local toremove = {} for name, data in pairs( functions ) do for i=1,data.step do data.currentindex = data.currentindex + 1 -- increment index counter local lookup = data.lookup or {} if data.currentindex <= #lookup then -- If there are any more values.. local kv = lookup[data.currentindex] or {} -- Get the current key and value local ok, err = xpcall( data.callback, debug.traceback, kv.key, kv.value, unpack(data.args) ) -- DO EET if not ok then -- oh noes WireLib.ErrorNoHalt( "Error in Timedpairs '" .. name .. "': " .. err ) toremove[#toremove+1] = name break elseif err == false then -- They returned false inside the function toremove[#toremove+1] = name break end else -- Out of keys. Entire table looped if data.endcallback then -- If we had any end callback function local kv = lookup[data.currentindex-1] or {} -- get previous key & value local ok, err = xpcall( data.endcallback, debug.traceback, kv.key, kv.value, unpack(data.args) ) if not ok then WireLib.ErrorNoHalt( "Error in Timedpairs '" .. name .. "' (in end function): " .. err ) end end toremove[#toremove+1] = name break end end end for i=1,#toremove do -- Remove all that were flagged for removal functions[toremove[i]] = nil end end if (CLIENT) then hook.Add("PostRenderVGUI", "WireLib_Timedpairs", Timedpairs) // Doesn't get paused in single player. Can be important for vguis. else hook.Add("Think", "WireLib_Timedpairs", Timedpairs) // Servers still uses Think. end function WireLib.Timedpairs(name,tab,step,callback,endcallback,...) functions[name] = { lookup = copy(tab), step = step, currentindex = 0, callback = callback, endcallback = endcallback, args = {...} } end function WireLib.Timedcall(callback,...) // calls the given function like simple timer, but isn't affected by game pausing. local dummytab = {true} WireLib.Timedpairs("Timedcall_"..tostring(dummytab),dummytab,1,function(k, v, ...) callback(...) end,nil,...) end
apache-2.0
kidaa/Awakening-Core3
bin/scripts/mobile/faction/imperial/crackdown_stormtrooper_sniper.lua
1
1411
crackdown_stormtrooper_sniper = Creature:new { objectName = "@mob/creature_names:crackdown_stormtrooper_sniper", socialGroup = "imperial", pvpFaction = "imperial", faction = "imperial", level = 1, chanceHit = 0.36, damageMin = 250, damageMax = 260, baseXp = 45, baseHAM = 6800, baseHAMmax = 8300, armor = 0, resists = {0,0,40,0,0,0,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK + KILLER, optionsBitmask = 128, diet = HERBIVORE, templates = { "object/mobile/dressed_stormtrooper_sniper_m.iff" }, lootGroups = { { groups = { {group = "color_crystals", chance = 100000}, {group = "junk", chance = 7550000}, {group = "rifles", chance = 550000}, {group = "pistols", chance = 550000}, {group = "melee_weapons", chance = 550000}, {group = "carbines", chance = 550000}, {group = "clothing_attachments", chance = 25000}, {group = "armor_attachments", chance = 25000}, {group = "stormtrooper_common", chance = 100000} }, lootChance = 2800000 } }, weapons = {"st_sniper_weapons"}, conversationTemplate = "", attacks = merge(riflemanmaster,carbineermaster) } CreatureTemplates:addCreatureTemplate(crackdown_stormtrooper_sniper, "crackdown_stormtrooper_sniper")
lgpl-3.0