repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/dantooine/mokk_rockshaper.lua
1
1271
mokk_rockshaper = Creature:new { objectName = "@mob/creature_names:mokk_rockshaper", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "mokk_tribe", faction = "mokk_tribe", level = 71, chanceHit = 0.65, damageMin = 470, damageMax = 650, baseXp = 6747, baseHAM = 12000, baseHAMmax = 14000, armor = 0, resists = {100,0,100,0,0,100,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY, creatureBitmask = PACK + HERD, optionsBitmask = AIENABLED, diet = HERBIVORE, templates = { "object/mobile/dantari_male.iff", "object/mobile/dantari_female.iff"}, lootGroups = { { groups = { {group = "junk", chance = 3500000}, {group = "loot_kit_parts", chance = 3000000}, {group = "armor_attachments", chance = 500000}, {group = "clothing_attachments", chance = 500000}, {group = "wearables_all", chance = 2000000}, {group = "color_crystals", chance = 500000} } } }, weapons = {"primitive_weapons"}, conversationTemplate = "", attacks = merge(pikemanmaster,fencermaster,brawlermaster) } CreatureTemplates:addCreatureTemplate(mokk_rockshaper, "mokk_rockshaper")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/space/weapon/serverobjects.lua
3
5913
--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 includeFile("draft_schematic/space/weapon/missile/serverobjects.lua") -- Server Objects includeFile("draft_schematic/space/weapon/armor_effectiveness_intensifier_mk1.lua") includeFile("draft_schematic/space/weapon/armor_effectiveness_intensifier_mk2.lua") includeFile("draft_schematic/space/weapon/armor_effectiveness_intensifier_mk3.lua") includeFile("draft_schematic/space/weapon/armor_effectiveness_intensifier_mk4.lua") includeFile("draft_schematic/space/weapon/armor_effectiveness_intensifier_mk5.lua") includeFile("draft_schematic/space/weapon/basic_weapon.lua") includeFile("draft_schematic/space/weapon/max_damage_intensifier_mk1.lua") includeFile("draft_schematic/space/weapon/max_damage_intensifier_mk2.lua") includeFile("draft_schematic/space/weapon/max_damage_intensifier_mk3.lua") includeFile("draft_schematic/space/weapon/max_damage_intensifier_mk4.lua") includeFile("draft_schematic/space/weapon/max_damage_intensifier_mk5.lua") includeFile("draft_schematic/space/weapon/min_damage_intensifier_mk1.lua") includeFile("draft_schematic/space/weapon/min_damage_intensifier_mk2.lua") includeFile("draft_schematic/space/weapon/min_damage_intensifier_mk3.lua") includeFile("draft_schematic/space/weapon/min_damage_intensifier_mk4.lua") includeFile("draft_schematic/space/weapon/min_damage_intensifier_mk5.lua") includeFile("draft_schematic/space/weapon/quick_shot_upgrade_mk1.lua") includeFile("draft_schematic/space/weapon/quick_shot_upgrade_mk2.lua") includeFile("draft_schematic/space/weapon/quick_shot_upgrade_mk3.lua") includeFile("draft_schematic/space/weapon/quick_shot_upgrade_mk4.lua") includeFile("draft_schematic/space/weapon/quick_shot_upgrade_mk5.lua") includeFile("draft_schematic/space/weapon/shield_effectiveness_intensifier_mk1.lua") includeFile("draft_schematic/space/weapon/shield_effectiveness_intensifier_mk2.lua") includeFile("draft_schematic/space/weapon/shield_effectiveness_intensifier_mk3.lua") includeFile("draft_schematic/space/weapon/shield_effectiveness_intensifier_mk4.lua") includeFile("draft_schematic/space/weapon/shield_effectiveness_intensifier_mk5.lua") includeFile("draft_schematic/space/weapon/speed_limiter_upgrade_mk1.lua") includeFile("draft_schematic/space/weapon/speed_limiter_upgrade_mk2.lua") includeFile("draft_schematic/space/weapon/speed_limiter_upgrade_mk3.lua") includeFile("draft_schematic/space/weapon/speed_limiter_upgrade_mk4.lua") includeFile("draft_schematic/space/weapon/speed_limiter_upgrade_mk5.lua") includeFile("draft_schematic/space/weapon/wpn_advanced_blaster.lua") includeFile("draft_schematic/space/weapon/wpn_advanced_blaster_green.lua") includeFile("draft_schematic/space/weapon/wpn_advanced_disruptor.lua") includeFile("draft_schematic/space/weapon/wpn_advanced_ioncannon.lua") includeFile("draft_schematic/space/weapon/wpn_experimental_blaster.lua") includeFile("draft_schematic/space/weapon/wpn_experimental_blaster_green.lua") includeFile("draft_schematic/space/weapon/wpn_experimental_disruptor.lua") includeFile("draft_schematic/space/weapon/wpn_experimental_ioncannon.lua") includeFile("draft_schematic/space/weapon/wpn_heavy_blaster.lua") includeFile("draft_schematic/space/weapon/wpn_heavy_blaster_green.lua") includeFile("draft_schematic/space/weapon/wpn_heavy_disruptor.lua") includeFile("draft_schematic/space/weapon/wpn_heavy_ioncannon.lua") includeFile("draft_schematic/space/weapon/wpn_light_blaster.lua") includeFile("draft_schematic/space/weapon/wpn_light_blaster_green.lua") includeFile("draft_schematic/space/weapon/wpn_light_disruptor.lua") includeFile("draft_schematic/space/weapon/wpn_light_ioncannon.lua") includeFile("draft_schematic/space/weapon/wpn_medium_blaster.lua") includeFile("draft_schematic/space/weapon/wpn_medium_blaster_green.lua") includeFile("draft_schematic/space/weapon/wpn_medium_disruptor.lua") includeFile("draft_schematic/space/weapon/wpn_medium_ioncannon.lua")
agpl-3.0
beauli/kong
spec/03-plugins/15-response-transformer/02-body_transformer_spec.lua
10
7210
local body_transformer = require "kong.plugins.response-transformer.body_transformer" local cjson = require "cjson" describe("Plugin: response-transformer", function() describe("transform_json_body()", function() describe("add", function() local conf = { remove = { json = {} }, replace = { json = {} }, add = { json = {"p1:v1", "p3:value:3", "p4:\"v1\""} }, append = { json = {} }, } it("parameter", function() local json = [[{"p2":"v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p1 = "v1", p2 = "v1", p3 = "value:3", p4 = '"v1"'}, body_json) end) it("add value in double quotes", function() local json = [[{"p2":"v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p1 = "v1", p2 = "v1", p3 = "value:3", p4 = '"v1"'}, body_json) end) end) describe("append", function() local conf = { remove = { json = {} }, replace = { json = {} }, add = { json = {} }, append = { json = {"p1:v1", "p3:\"v1\""} }, } it("new key:value if key does not exists", function() local json = [[{"p2":"v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({ p2 = "v1", p1 = {"v1"}, p3 = {'"v1"'}}, body_json) end) it("value if key exists", function() local json = [[{"p1":"v2"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({ p1 = {"v2","v1"}, p3 = {'"v1"'}}, body_json) end) it("value in double quotes", function() local json = [[{"p3":"v2"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p1 = {"v1"}, p3 = {"v2",'"v1"'}}, body_json) end) end) describe("remove", function() local conf = { remove = { json = {"p1", "p2"} }, replace = { json = {} }, add = { json = {} }, append = { json = {} } } it("parameter", function() local json = [[{"p1" : "v1", "p2" : "v1"}]] local body = body_transformer.transform_json_body(conf, json) assert.equals("{}", body) end) end) describe("replace", function() local conf = { remove = { json = {} }, replace = { json = {"p1:v2", "p2:\"v2\""} }, add = { json = {} }, append = { json = {} } } it("parameter if it exists", function() local json = [[{"p1" : "v1", "p2" : "v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p1 = "v2", p2 = '"v2"'}, body_json) end) it("does not add value to parameter if parameter does not exists", function() local json = [[{"p1" : "v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p1 = "v2"}, body_json) end) it("double quoted value", function() local json = [[{"p2" : "v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p2 = '"v2"'}, body_json) end) end) describe("remove, replace, add, append", function() local conf = { remove = { json = {"p1"} }, replace = { json = {"p2:v2"} }, add = { json = {"p3:v1"} }, append = { json = {"p3:v2"} }, } it("combination", function() local json = [[{"p1" : "v1", "p2" : "v1"}]] local body = body_transformer.transform_json_body(conf, json) local body_json = cjson.decode(body) assert.same({p2 = "v2", p3 = {"v1", "v2"}}, body_json) end) end) end) describe("is_json_body()", function() it("is truthy when content-type application/json passed", function() assert.truthy(body_transformer.is_json_body("application/json")) assert.truthy(body_transformer.is_json_body("application/json; charset=utf-8")) end) it("is truthy when content-type is multiple values along with application/json passed", function() assert.truthy(body_transformer.is_json_body("application/x-www-form-urlencoded, application/json")) end) it("is falsy when content-type not application/json", function() assert.falsy(body_transformer.is_json_body("application/x-www-form-urlencoded")) end) end) describe("leave body alone", function() -- Related to issue https://github.com/Mashape/kong/issues/1207 -- unit test to check body remains unaltered local old_ngx, handler setup(function() old_ngx = ngx _G.ngx = { -- busted requires explicit _G to access the global environment log = function() end, header = { ["content-type"] = "application/json", }, arg = {}, ctx = { buffer = "", }, } handler = require("kong.plugins.response-transformer.handler") handler:new() end) teardown(function() ngx = old_ngx end) it("body remains unaltered if no transforms have been set", function() -- only a header transform, no body changes local conf = { remove = { headers = {"h1", "h2", "h3"}, json = {} }, add = { headers = {}, json = {}, }, append = { headers = {}, json = {}, }, replace = { headers = {}, json = {}, }, } local body = [[ { "id": 1, "name": "Some One", "username": "Bretchen", "email": "Not@here.com", "address": { "street": "Down Town street", "suite": "Apt. 23", "city": "Gwendoline" }, "phone": "1-783-729-8531 x56442", "website": "hardwork.org", "company": { "name": "BestBuy", "catchPhrase": "just a bunch of words", "bs": "bullshit words" } } ]] ngx.arg[1] = body handler:body_filter(conf) local result = ngx.arg[1] ngx.arg[1] = "" ngx.arg[2] = true -- end of body marker handler:body_filter(conf) result = result .. ngx.arg[1] -- body filter should not execute, it would parse and re-encode the json, removing -- the whitespace. So check equality to make sure whitespace is still there, and hence -- body was not touched. assert.are.same(body, result) end) end) end)
apache-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/event_perk/treasure_crate_chest.lua
1
2464
--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_event_perk_treasure_crate_chest = object_tangible_container_drum_large_plain_crate_s04:new { gameObjectType = 16412, objectMenuComponent = "EventPerkMenuComponent", dataObjectComponent = "EventPerkDataComponent", attributeListComponent = "EventPerkAttributeListComponent", containerComponent = "ScavengerChestContainerComponent", } ObjectTemplates:addTemplate(object_tangible_event_perk_treasure_crate_chest, "object/tangible/event_perk/treasure_crate_chest.iff")
agpl-3.0
SpaceVim/SpaceVim
bundle/plenary.nvim/tests/plenary/async/channel_spec.lua
1
2458
require("plenary.async").tests.add_to_env() local channel = a.control.channel local eq = assert.are.same local apcall = a.util.apcall describe("channel", function() describe("oneshot", function() a.it("should work when rx is used first", function() local tx, rx = channel.oneshot() a.run(function() local got = rx() eq("sent value", got) end) tx "sent value" end) a.it("should work when tx is used first", function() local tx, rx = channel.oneshot() tx "sent value" local got = rx() eq("sent value", got) end) a.it("should work with multiple returns", function() local tx, rx = channel.oneshot() a.run(function() local got, got2 = rx() eq("sent value", got) eq("another sent value", got2) end) tx("sent value", "another sent value") end) a.it("should work when sending a falsey value", function() local tx, rx = channel.oneshot() tx(false) local res = rx() eq(res, false) local stat, ret = apcall(rx) eq(stat, false) local stat, ret = apcall(rx) eq(stat, false) end) a.it("should work when sending a nil value", function() local tx, rx = channel.oneshot() tx(nil) local res = rx() eq(res, nil) local stat, ret = apcall(rx) eq(stat, false) local stat, ret = apcall(rx) eq(stat, false) end) a.it("should error when sending mulitple times", function() local tx, rx = channel.oneshot() tx() local stat = pcall(tx) eq(stat, false) end) a.it("should block receiving multiple times", function() local tx, rx = channel.oneshot() tx(true) rx() local stat = apcall(rx) eq(stat, false) end) end) describe("counter", function() a.it("should work", function() local tx, rx = channel.counter() tx.send() tx.send() tx.send() local counter = 0 a.run(function() for i = 1, 3 do rx.recv() counter = counter + 1 end end) eq(counter, 3) end) a.it("should work when getting last", function() local tx, rx = channel.counter() tx.send() tx.send() tx.send() local counter = 0 a.run(function() rx.last() counter = counter + 1 end) eq(counter, 1) end) end) end)
gpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/thug/serverobjects.lua
1
2938
includeFile("thug/assassin.lua") includeFile("thug/assassin_twilek_mate.lua") includeFile("thug/bandit.lua") includeFile("thug/bith_assassin.lua") includeFile("thug/bith_sniper.lua") includeFile("thug/bodyguard.lua") includeFile("thug/bodyguard_zabrak_female.lua") includeFile("thug/bounty_hunter_thug.lua") includeFile("thug/brawler.lua") includeFile("thug/brigand_assassin.lua") includeFile("thug/brigand_leader.lua") includeFile("thug/brigand.lua") includeFile("thug/brigand_scout.lua") includeFile("thug/commando.lua") includeFile("thug/common_thief.lua") includeFile("thug/criminal.lua") includeFile("thug/dark_adept.lua") includeFile("thug/dark_jedi_knight.lua") includeFile("thug/dark_jedi_master.lua") includeFile("thug/dark_jedi_sentinel.lua") includeFile("thug/dread_pirate.lua") includeFile("thug/explorer.lua") includeFile("thug/fringer.lua") includeFile("thug/frontiersman.lua") includeFile("thug/gambler.lua") includeFile("thug/highwayman.lua") includeFile("thug/industrial_spy.lua") includeFile("thug/information_broker.lua") includeFile("thug/male_rodian_thug_low.lua") includeFile("thug/male_twilek_thug_low.lua") includeFile("thug/male_zabrak_thug_low.lua") includeFile("thug/master_thief.lua") includeFile("thug/mercenary_aggro.lua") includeFile("thug/mercenary.lua") includeFile("thug/outlaw.lua") includeFile("thug/outrider.lua") includeFile("thug/pathfinder.lua") includeFile("thug/pilot.lua") includeFile("thug/pirate_armsman.lua") includeFile("thug/pirate_captain.lua") includeFile("thug/pirate_crewman.lua") includeFile("thug/pirate_cutthroat.lua") includeFile("thug/pirate_leader.lua") includeFile("thug/pirate_lieutenant.lua") includeFile("thug/pirate.lua") includeFile("thug/pirate_privateer.lua") includeFile("thug/pirate_squab.lua") includeFile("thug/rodian_thug.lua") includeFile("thug/rogue.lua") includeFile("thug/roughneck.lua") includeFile("thug/scavenger.lua") includeFile("thug/scoundrel.lua") includeFile("thug/shadowy_figure.lua") includeFile("thug/sharpshooter.lua") includeFile("thug/slavemaster.lua") includeFile("thug/slicer.lua") includeFile("thug/smuggler.lua") includeFile("thug/spacer.lua") includeFile("thug/spynet_operative.lua") includeFile("thug/sulfur_lake_pirate_armsman.lua") includeFile("thug/sulfur_lake_pirate_crewman.lua") includeFile("thug/sulfur_lake_pirate_cutthroat.lua") includeFile("thug/sulfur_lake_pirate_initiate.lua") includeFile("thug/sulfur_lake_pirate_lieutenant.lua") includeFile("thug/terrorist.lua") includeFile("thug/thief.lua") includeFile("thug/thug.lua") includeFile("thug/tough_thug_aqualish_male.lua") includeFile("thug/tough_thug_bothan_female.lua") includeFile("thug/tough_thug_male_rodian.lua") includeFile("thug/tough_wookiee_brawler.lua") includeFile("thug/trailblazer.lua") includeFile("thug/traveller.lua") includeFile("thug/veteran_explorer.lua") includeFile("thug/warder.lua") includeFile("thug/wastrel.lua") includeFile("thug/wookiee_brawler.lua")
agpl-3.0
RamiLego4Game/P-MUG
p-mug/third-party/material-love/libs/ripple.lua
1
4832
local ripple = {} local ease = function (time, ftime) local p = time / ftime local e = -p * (p - 2) return e end local lg = love.graphics ripple.fade = function (self) if self.type == "stencil" then return self:fade() end if self.active then self.ripples[#self.ripples + 1] = self.active self.active = nil end end ripple.start = function (self, mx, my, r, g, b, a) if self.type == "stencil" then return self:start(mx, my) end local c if r and g and b and a then c = {r, g, b, a} end if self.active then self:fade() end self.active = { r = 0, time = 0, x = mx, y = my, finished = false, fade = 0, ease = 0, color = c } end ripple.update = function (self, dt) if self.type == "stencil" then return self:update(dt) end if self.active and not self.active.finished then self.active.time = self.active.time + dt self.active.r = ease(self.active.time, self.ftime) * self.fr if self.active.time >= self.ftime then self.active.finished = true end end local _remove = {} for i=1, #self.ripples do if not self.ripples[i].finished then self.ripples[i].time = self.ripples[i].time + dt self.ripples[i].r = ease(self.ripples[i].time, self.ftime) * self.fr if self.ripples[i].time >= self.ftime then self.ripples[i].finished = true end end self.ripples[i].fade = self.ripples[i].fade + dt self.ripples[i].ease = ease(self.ripples[i].fade, self.ftime) if self.ripples[i].fade >= self.ftime then _remove[#_remove + 1] = i end end for i=1, #_remove do table.remove(self.ripples,_remove[i]) end end ripple.draw = function (self,...) if self.type == "stencil" then return self:draw(...) end lg.stencil(self.custom) lg.setStencilTest("greater",0) local _r,_g,_b,_a = lg.getColor() if self.active then local r, g, b, a if self.active.color then r, g, b, a = unpack(self.active.color) else r, g, b, a = _r, _g, _b, _a end lg.setColor(r, g, b, a) if finished then self.custom() else lg.circle("fill", self.active.x, self.active.y, self.active.r) end end for i=1, #self.ripples do local r, g, b, a if self.ripples[i].color then r, g, b, a = unpack(self.ripples[i].color) else r, g, b, a = _r, _g, _b, _a end lg.setColor(r, g, b, a - a * self.ripples[i].ease) if finished then self.custom() else lg.circle("fill", self.ripples[i].x, self.ripples[i].y, self.ripples[i].r) end end lg.setColor(_r, _g, _b, _a) lg.setStencilTest() end ripple.custom = function (custom, fr, time) local self = {} self.ftime = time or 1 self.custom = custom self.fr = fr self.ripples = {} self.start = ripple.start self.fade = ripple.fade self.update = ripple.update self.draw = ripple.draw self.type = "custom" return self end ripple.box = function (x, y, w, h, time) local self = ripple.custom(function() end, 0, time) self.box = {x = x, y = y, w = w, h = h} self.custom = function () lg.rectangle("fill", self.box.x, self.box.y, self.box.w, self.box.h) end self.fr = (self.box.w * self.box.w + self.box.h * self.box.h) ^ 0.5 self.type = "box" return self end ripple.circle = function (x, y, ra, time) local self = ripple.custom(function() end, 0, time) self.circle = {x = x, y = y, r = ra} self.custom = function () lg.circle("fill", self.circle.x, self.circle.y, self.circle.r) end self.fr = ra * 2 self.type = "circle" return self end ripple.stencil = function (x, y, w, h, time) return { type = "stencil", x = x, y = y, w = w, h = h, ft = time or 1, update = function () end, draw = function (self, fun) if self.active then love.graphics.stencil(self.stencil) love.graphics.setStencilTest("greater",0) fun() love.graphics.setStencilTest() elseif self.finish then fun() end end, start = function (self, x, y, collapse) local xw,yh = x - self.x, y - self.y local w = math.max(self.w - (xw), xw) local h = math.max(self.h - (yh), yh) local ra = (h * h + w * w) ^ 0.5 self.time = 0 self.active = true self.finish = false self.update = function (self, dt) self.time = self.time + dt local r = ra * ease(self.time, self.ft) r = collapse and ra - r or r self.stencil = function () love.graphics.circle("fill", x, y, r) end if self.ft < self.time then self.active = false self.finish = not collapse self.update = function () end end end end, fade = function (self) self:start(self.x + self.w/2, self.y + self.h/2, true) end, } end return ripple
mit
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/general_jan_dodonna.lua
3
2192
--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_general_jan_dodonna = object_mobile_shared_general_jan_dodonna:new { } ObjectTemplates:addTemplate(object_mobile_general_jan_dodonna, "object/mobile/general_jan_dodonna.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/wearables/armor/ithorian_guardian/serverobjects.lua
3
2807
--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/wearables/armor/ithorian_guardian/ith_armor_s02_bicep_l.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_bicep_r.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_boots.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_bracer_l.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_bracer_r.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_chest_plate.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_gloves.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_helmet.lua") includeFile("tangible/wearables/armor/ithorian_guardian/ith_armor_s02_leggings.lua")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/dressed_pistol_trainer_02.lua
1
2261
--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_pistol_trainer_02 = object_mobile_shared_dressed_pistol_trainer_02:new { objectMenuComponent = "TrainerMenuComponent" } ObjectTemplates:addTemplate(object_mobile_dressed_pistol_trainer_02, "object/mobile/dressed_pistol_trainer_02.iff")
agpl-3.0
aircross/OpenWrt-Firefly-LuCI
protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua
59
3798
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.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 ]]-- local map, section, net = ... local username, password, ac, service local ipv6, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand, mtu username = section:taboption("general", Value, "username", translate("PAP/CHAP username")) password = section:taboption("general", Value, "password", translate("PAP/CHAP password")) password.password = true ac = section:taboption("general", Value, "ac", translate("Access Concentrator"), translate("Leave empty to autodetect")) ac.placeholder = translate("auto") service = section:taboption("general", Value, "service", translate("Service Name"), translate("Leave empty to autodetect")) service.placeholder = translate("auto") if luci.model.network:has_ipv6() then ipv6 = section:taboption("advanced", Flag, "ipv6", translate("Enable IPv6 negotiation on the PPP link")) ipv6.default = ipv6.disabled end defaultroute = section:taboption("advanced", Flag, "defaultroute", translate("Use default gateway"), translate("If unchecked, no default route is configured")) defaultroute.default = defaultroute.enabled metric = section:taboption("advanced", Value, "metric", translate("Use gateway metric")) metric.placeholder = "0" metric.datatype = "uinteger" metric:depends("defaultroute", defaultroute.enabled) peerdns = section:taboption("advanced", Flag, "peerdns", translate("Use DNS servers advertised by peer"), translate("If unchecked, the advertised DNS server addresses are ignored")) peerdns.default = peerdns.enabled dns = section:taboption("advanced", DynamicList, "dns", translate("Use custom DNS servers")) dns:depends("peerdns", "") dns.datatype = "ipaddr" dns.cast = "string" keepalive_failure = section:taboption("advanced", Value, "_keepalive_failure", translate("LCP echo failure threshold"), translate("Presume peer to be dead after given amount of LCP echo failures, use 0 to ignore failures")) function keepalive_failure.cfgvalue(self, section) local v = m:get(section, "keepalive") if v and #v > 0 then return tonumber(v:match("^(%d+)[ ,]+%d+") or v) end end function keepalive_failure.write() end function keepalive_failure.remove() end keepalive_failure.placeholder = "0" keepalive_failure.datatype = "uinteger" keepalive_interval = section:taboption("advanced", Value, "_keepalive_interval", translate("LCP echo interval"), translate("Send LCP echo requests at the given interval in seconds, only effective in conjunction with failure threshold")) function keepalive_interval.cfgvalue(self, section) local v = m:get(section, "keepalive") if v and #v > 0 then return tonumber(v:match("^%d+[ ,]+(%d+)")) end end function keepalive_interval.write(self, section, value) local f = tonumber(keepalive_failure:formvalue(section)) or 0 local i = tonumber(value) or 5 if i < 1 then i = 1 end if f > 0 then m:set(section, "keepalive", "%d %d" %{ f, i }) else m:del(section, "keepalive") end end keepalive_interval.remove = keepalive_interval.write keepalive_interval.placeholder = "5" keepalive_interval.datatype = "min(1)" demand = section:taboption("advanced", Value, "demand", translate("Inactivity timeout"), translate("Close inactive connection after the given amount of seconds, use 0 to persist connection")) demand.placeholder = "0" demand.datatype = "uinteger" mtu = section:taboption("advanced", Value, "mtu", translate("Override MTU")) mtu.placeholder = "1500" mtu.datatype = "max(9200)"
apache-2.0
mortezamosavy999/nn
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' url = url..'part=snippet'..'&maxResults=4'..'&type=video' url = url..'&q='..URL.escape(text) if google_config.api_keys then local i = math.random(#google_config.api_keys) local api_key = google_config.api_keys[i] if api_key then url = url.."&key="..api_key end end local data = httpsRequest(url) if not data then print("HTTP Error") return nil elseif not data.items then return nil end return data.items end local function run(msg, matches) local text = '' local items = searchYoutubeVideos(matches[1]) if not items then return "Error!" end for k,item in pairs(items) do text = text..'http://youtu.be/'..item.id.videoId..' '.. item.snippet.title..'\n\n' end return text end return { description = "Search video on youtube and send it.", usage = "!youtube [term]: Search for a youtube video and send it.", patterns = { "^!youtube (.*)" }, run = run } end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/deed/event_perk/lambda_shuttle_static_deed.lua
2
2460
--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_lambda_shuttle_static_deed = object_tangible_deed_event_perk_shared_lambda_shuttle_static_deed:new { templateType = EVENTPERKDEED, gameObjectType = 8388615, noTrade = 1, generatedObjectTemplate = "object/tangible/event_perk/lambda_shuttle.iff", perkType = STATIC, } ObjectTemplates:addTemplate(object_tangible_deed_event_perk_lambda_shuttle_static_deed, "object/tangible/deed/event_perk/lambda_shuttle_static_deed.iff")
agpl-3.0
sousoux/luvit
tests/test-tcp.lua
3
1647
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. 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. --]] require("helper") local Tcp = require('uv').Tcp local net = require('net') local PORT = process.env.PORT or 10082 local server = net.createServer(function (client) client:on("data", function (chunk) p('server:client:on("data")', chunk) assert(chunk == "ping") client:write("pong", function (err) p("server:client:write") assert(err == nil) client:destroy() end) end) end) server:listen(PORT, "127.0.0.1") server:on("error", function (err) p('server:on("error")') assert(false) end) local client = Tcp:new() client:connect("127.0.0.1", PORT) client:on("connect", function () p('client:on("complete")') client:readStart() client:write("ping", function (err) p("client:write") assert(err == nil) client:on("data", function (data) p('client:on("data")', data) assert(data == "pong") client:close() -- This test is done, let's exit process.exit() end) end) end) client:on("error", function (err) p('client:on("error")', err) assert(false) end)
apache-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/crafted/chassis/tieoppressor_deed.lua
3
2446
--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_chassis_tieoppressor_deed = object_tangible_ship_crafted_chassis_shared_tieoppressor_deed:new { templateType = SHIPDEED, shipControlObject = "object/intangible/ship/tieoppressor_pcd.iff", generatedObjectTemplate = "object/ship/player/player_tieoppressor.iff", } ObjectTemplates:addTemplate(object_tangible_ship_crafted_chassis_tieoppressor_deed, "object/tangible/ship/crafted/chassis/tieoppressor_deed.iff")
agpl-3.0
thexamx/forgottenserver
data/talkactions/scripts/buyhouse.lua
6
1397
local config = { level = 1, onlyPremium = true } function onSay(player, words, param) local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE) if housePrice == -1 then return true end if player:getLevel() < config.level then player:sendCancelMessage("You need level " .. config.level .. " or higher to buy a house.") return false end if config.onlyPremium and not player:isPremium() then player:sendCancelMessage("You need a premium account.") return false end local position = player:getPosition() position:getNextPosition(player:getDirection()) local tile = Tile(position) local house = tile and tile:getHouse() if not house then player:sendCancelMessage("You have to be looking at the door of the house you would like to buy.") return false end if house:getOwnerGuid() > 0 then player:sendCancelMessage("This house already has an owner.") return false end if player:getHouse() then player:sendCancelMessage("You are already the owner of a house.") return false end local price = house:getTileCount() * housePrice if not player:removeTotalMoney(price) then player:sendCancelMessage("You do not have enough money.") return false end house:setOwnerGuid(player:getGuid()) player:sendTextMessage(MESSAGE_INFO_DESCR, "You have successfully bought this house, be sure to have the money for the rent in the bank.") return false end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/tatooine/filler_building_tatt_style01_09.lua
3
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_tatooine_filler_building_tatt_style01_09 = object_building_tatooine_shared_filler_building_tatt_style01_09:new { } ObjectTemplates:addTemplate(object_building_tatooine_filler_building_tatt_style01_09, "object/building/tatooine/filler_building_tatt_style01_09.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/commands/healthShot1.lua
1
2601
--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 HealthShot1Command = { name = "healthshot1", damageMultiplier = 1.5, speedMultiplier = 2.0, healthCostMultiplier = 0.5, actionCostMultiplier = 0.75, mindCostMultiplier = 0.5, accuracyBonus = 50, poolsToDamage = HEALTH_ATTRIBUTE, animation = "fire_1_special_single", animType = GENERATE_RANGED, combatSpam = "sapshot", dotEffects = { DotEffect( BLEEDING, { "resistance_bleeding", "bleed_resist" }, HEALTH, true, 0, 100, 60, 60 ) }, weaponType = PISTOLWEAPON, range = -1 } AddCommand(HealthShot1Command)
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/poi/naboo_gungtrad_medium2.lua
2
2250
--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_naboo_gungtrad_medium2 = object_building_poi_shared_naboo_gungtrad_medium2:new { gameObjectType = 531, } ObjectTemplates:addTemplate(object_building_poi_naboo_gungtrad_medium2, "object/building/poi/naboo_gungtrad_medium2.iff")
agpl-3.0
sprunk/Zero-K
LuaRules/Gadgets/game_perks.lua
2
6345
if (not gadgetHandler:IsSyncedCode()) then return end -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Automatically generated local definitions local spCallCOBScript = Spring.CallCOBScript local spGetLocalTeamID = Spring.GetLocalTeamID local spGetTeamList = Spring.GetTeamList local spGetTeamUnits = Spring.GetTeamUnits local spSetUnitCOBValue = Spring.SetUnitCOBValue local spGetUnitDefID = Spring.GetUnitDefID local spGetUnitTeam = Spring.GetUnitTeam -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Perks", desc = "don't leave the house without", author = "KDR_11k (David Becker)", date = "2008-03-04", license = "Public Domain", layer = -1, enabled = true, } end if not Spring.GetModOptions().enableunlocks then return end local perks = {} local playerIDsByName = {} local unlocks = {} -- indexed by teamID, value is a table of key unitDefID and value true or nil local unlockUnits = { } local unlockUnitsMap = {} for i=1,#unlockUnits do if UnitDefNames[unlockUnits[i]] then unlockUnitsMap[UnitDefNames[unlockUnits[i]].id] = true end end local luaTeam = {} -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local function UnlockUnit(unitID, lockDefID, team) local cmdDescID = Spring.FindUnitCmdDesc(unitID, -lockDefID) if (cmdDescID) then local cmdArray = {disabled = false} Spring.EditUnitCmdDesc(unitID, cmdDescID, cmdArray) end end local function LockUnit(unitID, lockDefID, team) local cmdDescID = Spring.FindUnitCmdDesc(unitID, -lockDefID) if (cmdDescID) then local cmdArray = {disabled = true} Spring.EditUnitCmdDesc(unitID, cmdDescID, cmdArray) end end -- right now we don't check if something else disabled/enabled the command before modifying it -- this isn't a problem right now, but we may want it to be more robust local function SetBuildOptions(unitID, unitDefID, team) local unitDef = UnitDefs[unitDefID] if (unitDef.isBuilder) then for _, buildoptionID in pairs(unitDef.buildOptions) do if unlockUnitsMap[buildoptionID] then if not (unlocks[team] and unlocks[team][buildoptionID]) then LockUnit(unitID, buildoptionID, team) else UnlockUnit(unitID, buildoptionID, team) end end end end end -- for midgame modification - shouldn't be needed function EnableUnit(unitDefID, team) local units = spGetTeamUnits(team) for i=1,#units do local udid2 = spGetUnitDefID(units[i]) if UnitDefs[udid2].isBuilder then UnlockUnit(units[i], unitDefID, team) end end end function DisableUnit(unitDefID, team) local units = spGetTeamUnits(team) for i=1,#units do local udid2 = spGetUnitDefID(units[i]) if UnitDefs[udid2].isBuilder then LockUnit(units[i], unitDefID, team) end end end function gadget:UnitCreated(unitID, unitDefID, team) if not luaTeam[team] then SetBuildOptions(unitID, unitDefID, team) end end function gadget:AllowUnitTransfer(unitID, unitDefID, oldTeam, newTeam, capture) gadget:UnitCreated(unitID, unitDefID, newTeam) return true end -- blocks command - prevent widget hax function gadget:AllowCommand_GetWantedCommand() return unlockUnitsMap end function gadget:AllowCommand_GetWantedUnitDefID() return true end function gadget:AllowCommand(unitID, unitDefID, team, cmdID, cmdParams, cmdOpts) if unlockUnitsMap[-cmdID] then if not (unlocks[team] and unlocks[team][-cmdID]) and (not cmdOpts.right) then return false end end return true end function gadget:AllowUnitCreation(unitDefID, builderID, builderTeam, x, y, z) if unlockUnitsMap[unitDefID] then if not (unlocks[builderTeam] and unlocks[builderTeam][unitDefID]) then return false end end return true end local function InitUnsafe() --[[ local noUnlocks = true for index, id in pairs(Spring.GetPlayerList()) local customKeys = select(10, Spring.GetPlayerInfo(id)) if customKeys and customKeys.unlocks then noUnlocks = false break end end if noUnlocks then --nobody has unlocks, don't bother gadgetHandler:RemoveGadget() return end ]]-- -- for name, id in pairs(playerIDsByName) do for index, id in pairs(Spring.GetPlayerList()) do -- copied from PlanetWars local unlockData, success local customKeys = select(10, Spring.GetPlayerInfo(id)) local unlocksRaw = customKeys and customKeys.unlocks if not (unlocksRaw and type(unlocksRaw) == 'string') then if unlocksRaw then err = "Unlock data entry for player "..id.." is in invalid format" end unlockData = {} else unlocksRaw = string.gsub(unlocksRaw, '_', '=') unlocksRaw = Spring.Utilities.Base64Decode(unlocksRaw) local unlockFunc, err = loadstring("return "..unlocksRaw) if unlockFunc then success, unlockData = pcall(unlockFunc) if not success then err = unlockData unlockData = {} end end end if err then Spring.Log(gadget:GetInfo().name, LOG.WARNING, 'Unlock system error: ' .. err) end for unlockIndex, name in pairs(unlockData) do local team = select(4, Spring.GetPlayerInfo(id, false)) local udid = UnitDefNames[name] and UnitDefNames[name].id if udid then unlocks[team] = unlocks[team] or {} unlocks[team][udid] = true end end end -- /luarules reload compatibility local units = Spring.GetAllUnits() for i=1,#units do local udid = spGetUnitDefID(units[i]) local teamID = spGetUnitTeam(units[i]) gadget:UnitCreated(units[i], udid, teamID) end end function gadget:Initialize() if (GG.Chicken) then --gadgetHandler:RemoveGadget() end local teams = Spring.GetTeamList() for _, teamID in ipairs(teams) do local teamLuaAI = Spring.GetTeamLuaAI(teamID) if (teamLuaAI and teamLuaAI ~= "") then luaTeam[teamID] = true end end InitUnsafe() local allUnits = Spring.GetAllUnits() for _, unitID in pairs(allUnits) do local udid = Spring.GetUnitDefID(unitID) if udid then gadget:UnitCreated(unitID, udid, Spring.GetUnitTeam(unitID)) end end end
gpl-2.0
cappiewu/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua
68
1959
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true codec_a_mu = module:option(ListValue, "codec_a_mu", "A-law and Mulaw direct Coder/Decoder", "") codec_a_mu:value("yes", "Load") codec_a_mu:value("no", "Do Not Load") codec_a_mu:value("auto", "Load as Required") codec_a_mu.rmempty = true codec_adpcm = module:option(ListValue, "codec_adpcm", "Adaptive Differential PCM Coder/Decoder", "") codec_adpcm:value("yes", "Load") codec_adpcm:value("no", "Do Not Load") codec_adpcm:value("auto", "Load as Required") codec_adpcm.rmempty = true codec_alaw = module:option(ListValue, "codec_alaw", "A-law Coder/Decoder", "") codec_alaw:value("yes", "Load") codec_alaw:value("no", "Do Not Load") codec_alaw:value("auto", "Load as Required") codec_alaw.rmempty = true codec_g726 = module:option(ListValue, "codec_g726", "ITU G.726-32kbps G726 Transcoder", "") codec_g726:value("yes", "Load") codec_g726:value("no", "Do Not Load") codec_g726:value("auto", "Load as Required") codec_g726.rmempty = true codec_gsm = module:option(ListValue, "codec_gsm", "GSM/PCM16 (signed linear) Codec Translation", "") codec_gsm:value("yes", "Load") codec_gsm:value("no", "Do Not Load") codec_gsm:value("auto", "Load as Required") codec_gsm.rmempty = true codec_speex = module:option(ListValue, "codec_speex", "Speex/PCM16 (signed linear) Codec Translator", "") codec_speex:value("yes", "Load") codec_speex:value("no", "Do Not Load") codec_speex:value("auto", "Load as Required") codec_speex.rmempty = true codec_ulaw = module:option(ListValue, "codec_ulaw", "Mu-law Coder/Decoder", "") codec_ulaw:value("yes", "Load") codec_ulaw:value("no", "Do Not Load") codec_ulaw:value("auto", "Load as Required") codec_ulaw.rmempty = true return cbimap
apache-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/lair/graul/lair_graul_jungle.lua
1
2279
--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_graul_lair_graul_jungle = object_tangible_lair_graul_shared_lair_graul_jungle:new { objectMenuComponent = "LairMenuComponent", } ObjectTemplates:addTemplate(object_tangible_lair_graul_lair_graul_jungle, "object/tangible/lair/graul/lair_graul_jungle.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/furniture/all/frn_all_lamp_table_s01.lua
3
2268
--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_furniture_all_frn_all_lamp_table_s01 = object_tangible_furniture_all_shared_frn_all_lamp_table_s01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_lamp_table_s01, "object/tangible/furniture/all/frn_all_lamp_table_s01.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/installation/battlefield/destructible/bfield_column_rebl_strong.lua
3
2340
--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_installation_battlefield_destructible_bfield_column_rebl_strong = object_installation_battlefield_destructible_shared_bfield_column_rebl_strong:new { } ObjectTemplates:addTemplate(object_installation_battlefield_destructible_bfield_column_rebl_strong, "object/installation/battlefield/destructible/bfield_column_rebl_strong.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/dressed_raider_trandoshan_female_01.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_mobile_dressed_raider_trandoshan_female_01 = object_mobile_shared_dressed_raider_trandoshan_female_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_raider_trandoshan_female_01, "object/mobile/dressed_raider_trandoshan_female_01.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/structure/nobuild/nobuild_32.lua
3
2228
--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_nobuild_nobuild_32 = object_static_structure_nobuild_shared_nobuild_32:new { } ObjectTemplates:addTemplate(object_static_structure_nobuild_nobuild_32, "object/static/structure/nobuild/nobuild_32.iff")
agpl-3.0
TerraME/terrame
packages/gis/tests/functional/basic/Geometry.lua
3
5483
------------------------------------------------------------------------------------------- -- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling. -- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP. -- -- This code is part of the TerraME framework. -- This framework 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.1 of the License, or (at your option) any later version. -- -- You should have received a copy of the GNU Lesser General Public -- License along with this library. -- -- The authors reassure the license terms regarding the warranties. -- They specifically disclaim any warranties, including, but not limited to, -- the implied warranties of merchantability and fitness for a particular purpose. -- The framework provided hereunder is on an "as is" basis, and the authors have no -- obligation to provide maintenance, support, updates, enhancements, or modifications. -- In no event shall INPE and TerraLAB / UFOP be held liable to any party for direct, -- indirect, special, incidental, or consequential damages arising out of the use -- of this library and its documentation. -- ------------------------------------------------------------------------------------------- return { geometry = function(unitTest) local point = { x = 74, y = 23.5, srid = 4326 } local pt = TerraLib().geometry().Point(point.x, point.y, point.srid) unitTest:assertEquals(point.x, pt:getX()) unitTest:assertEquals(point.y, pt:getY()) unitTest:assertEquals(0.0, pt:getDimension()) unitTest:assertEquals(2, pt:getCoordinateDimension()) unitTest:assertEquals("Point", pt:getGeometryType()) unitTest:assertEquals(point.srid, pt:getSRID()) unitTest:assertEquals(1, pt:getNPoints()) unitTest:assertEquals("point(74 23.5)", pt:asText()) unitTest:assertEquals("", pt:asBinary(0)) unitTest:assertEquals(21, pt:getWkbSize()) point.srid = 1234 pt:setSRID(point.srid) point.x = 40 pt:setX(point.x) point.y = 20 pt:setY(point.y) unitTest:assertEquals(point.srid, pt:getSRID()) unitTest:assertEquals(point.x, pt:getX()) unitTest:assertEquals(point.y, pt:getY()) unitTest:assertType(pt:getBoundary(), "userdata") unitTest:assertType(pt:getEnvelope(), "userdata") unitTest:assertType(pt:getMBR(), "userdata") unitTest:assert(not pt:isEmpty()) unitTest:assert(not pt:overlaps(pt)) unitTest:assert(not pt:relate(pt, "ttttttttt")) unitTest:assert(not pt:touches(pt)) unitTest:assert(not pt:crosses(pt)) unitTest:assert(not pt:is3D()) unitTest:assert(not pt:isMeasured()) unitTest:assert(not pt:disjoint(pt)) unitTest:assert(pt:isSimple()) unitTest:assert(pt:isValid()) unitTest:assert(pt:equals(pt)) unitTest:assert(pt:intersects(pt)) unitTest:assert(pt:within(pt)) unitTest:assert(pt:contains(pt)) unitTest:assert(pt:covers(pt)) unitTest:assert(pt:coveredBy(pt)) end, point = function(unitTest) local cs = CellularSpace{ file = filePath("itaituba-localities.shp", "gis") } forEachCell(cs, function(cell) local geometry = cell.geom:getGeometryN(0) unitTest:assert(geometry:getX() > 0) unitTest:assert(geometry:getY() > 0) unitTest:assertEquals(1, cell.geom:getNPoints()) unitTest:assertEquals("MultiPoint", cell.geom:getGeometryType()) unitTest:assert(cell.geom:intersects(cell.geom)) unitTest:assert(cell.geom:within(cell.geom)) unitTest:assert(cell.geom:contains(cell.geom)) unitTest:assert(cell.geom:isValid()) end) end, line = function(unitTest) local cs = CellularSpace{ file = filePath("emas-river.shp", "gis") } forEachCell(cs, function(cell) local geometry = cell.geom:getGeometryN(0) local length = geometry:getLength() unitTest:assert(length ~= nil) unitTest:assertEquals("number", type(length)) local nPoint = geometry:getNPoints() for i = 0, nPoint do unitTest:assert(geometry:getX(i) ~= nil) unitTest:assertType(geometry:getX(i), "number") unitTest:assert(geometry:getY(i) ~= nil) unitTest:assertType(geometry:getX(i), "number") end unitTest:assertEquals("MultiLineString", cell.geom:getGeometryType()) local npoints = cell.geom:getNPoints() unitTest:assert(npoints > 0) unitTest:assert(cell.geom:intersects(cell.geom)) unitTest:assert(cell.geom:within(cell.geom)) unitTest:assert(cell.geom:contains(cell.geom)) unitTest:assert(cell.geom:isValid()) end) end, polygon = function(unitTest) local cs = CellularSpace{ file = filePath("amazonia-limit.shp", "gis") } forEachCell(cs, function(cell) local geometry = cell.geom:getGeometryN(0) local centroid = geometry:getCentroid() local ring = geometry:getExteriorRing() local nPoint = ring:getNPoints() for i = 0, nPoint do unitTest:assertNotNil(ring:getX(i)) unitTest:assertType(ring:getX(i), "number") unitTest:assertNotNil(ring:getY(i)) unitTest:assertType(ring:getX(i), "number") end unitTest:assert(centroid:getX() < 0) unitTest:assert(centroid:getY() < 0) unitTest:assertEquals("MultiPolygon", cell.geom:getGeometryType()) local npoints = cell.geom:getNPoints() unitTest:assert(npoints > 0) unitTest:assert(cell.geom:intersects(cell.geom)) unitTest:assert(cell.geom:within(cell.geom)) unitTest:assert(cell.geom:contains(cell.geom)) unitTest:assert(cell.geom:isValid()) end) end }
lgpl-3.0
sprunk/Zero-K
gamedata/modularcomms/weapons/disintegrator.lua
1
1152
local name = "commweapon_disintegrator" local weaponDef = { name = [[Disintegrator]], areaOfEffect = 48, avoidFeature = false, avoidFriendly = false, avoidNeutral = false, commandfire = true, craterBoost = 1, craterMult = 6, customParams = { is_unit_weapon = 1, muzzleEffectShot = [[custom:ataalaser]], slot = [[3]], manualfire = 1, }, damage = { default = 2000, }, explosionGenerator = [[custom:DGUNTRACE]], impulseBoost = 0, impulseFactor = 0, interceptedByShieldType = 0, leadLimit = 80, noExplode = true, noSelfDamage = true, range = 200, reloadtime = 30, size = 6, soundHit = [[explosion/ex_med6]], soundStart = [[weapon/laser/heavy_laser4]], soundTrigger = true, turret = true, waterWeapon = true, weaponType = [[DGun]], weaponVelocity = 300, } return name, weaponDef
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/ship/hutt_turret_ship.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_ship_hutt_turret_ship = object_ship_shared_hutt_turret_ship:new { } ObjectTemplates:addTemplate(object_ship_hutt_turret_ship, "object/ship/hutt_turret_ship.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/loot/misc/loot_skull_bith.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_tangible_loot_misc_loot_skull_bith = object_tangible_loot_misc_shared_loot_skull_bith:new { } ObjectTemplates:addTemplate(object_tangible_loot_misc_loot_skull_bith, "object/tangible/loot/misc/loot_skull_bith.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/space/asteroid/asteroid_ice_small_02.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_static_space_asteroid_asteroid_ice_small_02 = object_static_space_asteroid_shared_asteroid_ice_small_02:new { } ObjectTemplates:addTemplate(object_static_space_asteroid_asteroid_ice_small_02, "object/static/space/asteroid/asteroid_ice_small_02.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/lair/ray/lair_ray_underwater.lua
1
2279
--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_ray_lair_ray_underwater = object_tangible_lair_ray_shared_lair_ray_underwater:new { objectMenuComponent = "LairMenuComponent", } ObjectTemplates:addTemplate(object_tangible_lair_ray_lair_ray_underwater, "object/tangible/lair/ray/lair_ray_underwater.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/narglatch.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_narglatch = object_mobile_shared_narglatch:new { } ObjectTemplates:addTemplate(object_mobile_narglatch, "object/mobile/narglatch.iff")
agpl-3.0
sprunk/Zero-K
scripts/planefighter.lua
2
4235
include "constants.lua" --pieces local base, flare1, flare2, nozzle1, nozzle2, missile, rgun, lgun, rwing, lwing, rjet, ljet, body = piece("base", "flare1", "flare2", "nozzle1", "nozzle2", "missile", "rgun", "lgun", "rwing", "lwing", "rjet", "ljet", "body") local smokePiece = {base, rwing, lwing} --variables local shotCycle = 0 local flare = { [0] = flare1, [1] = flare2, } local SPEEDUP_FACTOR = tonumber (UnitDef.customParams.boost_speed_mult) local BOOSTUP_FACTOR = tonumber (UnitDef.customParams.boost_accel_mult) local SPEEDUP_DURATION = tonumber (UnitDef.customParams.boost_duration) ---------------------------------------------------------- local CMD_ONECLICK_WEAPON = Spring.Utilities.CMD.ONECLICK_WEAPON local function RetreatThread() Sleep(800) local specialReloadState = Spring.GetUnitRulesParam(unitID,"specialReloadFrame") if (not specialReloadState or (specialReloadState <= Spring.GetGameFrame())) then Spring.GiveOrderToUnit(unitID, CMD.INSERT, {0, CMD_ONECLICK_WEAPON, CMD.OPT_INTERNAL,}, CMD.OPT_ALT) end end function RetreatFunction() StartThread(RetreatThread) end ---------------------------------------------------------- function SprintThread() for i=1, SPEEDUP_DURATION do EmitSfx(ljet, 1027) EmitSfx(rjet, 1027) Sleep(33) end while (Spring.MoveCtrl.GetTag(unitID) ~= nil) do --is true when unit_refuel_pad_handler.lua is MoveCtrl-ing unit, wait until MoveCtrl disabled before restore speed. Sleep(33) end Spring.SetUnitRulesParam(unitID, "selfMoveSpeedChange", 1) -- Spring.MoveCtrl.SetAirMoveTypeData(unitID, "maxAcc", 0.5) GG.UpdateUnitAttributes(unitID) Turn(rwing, y_axis, 0, math.rad(100)) Turn(lwing, y_axis, 0, math.rad(100)) end function Sprint() Turn(rwing, y_axis, math.rad(65), math.rad(300)) Turn(lwing, y_axis, math.rad(-65), math.rad(300)) StartThread(SprintThread) Spring.SetUnitRulesParam(unitID, "selfMoveSpeedChange", SPEEDUP_FACTOR) -- Spring.MoveCtrl.SetAirMoveTypeData(unitID, "maxAcc", 3) GG.UpdateUnitAttributes(unitID) end function OnLoadGame() Spring.SetUnitRulesParam(unitID, "selfMoveSpeedChange", 1) GG.UpdateUnitAttributes(unitID) end ---------------------------------------------------------- local WING_DISTANCE = 8 local function activate() Move(rwing, x_axis, 0, 10) Move(lwing, x_axis, 0, 10) end local function deactivate() Move(rwing, x_axis, WING_DISTANCE, 10) Move(lwing, x_axis, -WING_DISTANCE, 10) Turn(rwing, y_axis, 0, math.rad(30)) Turn(lwing, y_axis, 0, math.rad(30)) end function script.Create() Move(rwing, x_axis, WING_DISTANCE) Move(lwing, x_axis, -WING_DISTANCE) StartThread(GG.Script.SmokeUnit, unitID, smokePiece) end function script.StartMoving() activate() end function script.StopMoving() deactivate() end function script.QueryWeapon(num) if num == 1 then return flare[shotCycle] elseif num == 2 then return flare2 end end function script.AimFromWeapon(num) return base end function script.AimWeapon(num, heading, pitch) return not (GetUnitValue(COB.CRASHING) == 1) end function script.FireWeapon(num) if num == 1 then shotCycle = 1 - shotCycle EmitSfx(flare[shotCycle], GG.Script.UNIT_SFX3) elseif num == 2 then EmitSfx(flare2, GG.Script.UNIT_SFX3) elseif num == 3 then EmitSfx(missile, GG.Script.UNIT_SFX2) end end function script.BlockShot(num, targetID) if (GetUnitValue(COB.CRASHING) == 1) then return true end if num == 2 then return GG.OverkillPrevention_CheckBlock(unitID, targetID, 133, 35) end return false end function script.Killed(recentDamage, maxHealth) local severity = (recentDamage/maxHealth) if severity < 0.5 or (Spring.GetUnitMoveTypeData(unitID).aircraftState == "crashing") then Explode(base, SFX.NONE) Explode(rwing, SFX.NONE) Explode(lwing, SFX.NONE) Explode(rjet, SFX.SMOKE + SFX.FIRE + SFX.EXPLODE + SFX.SHATTER + SFX.EXPLODE_ON_HIT) Explode(ljet, SFX.SMOKE + SFX.FIRE + SFX.EXPLODE + SFX.SHATTER + SFX.EXPLODE_ON_HIT) return 1 else Explode(base, SFX.NONE) Explode(rwing, SFX.NONE) Explode(lwing, SFX.NONE) Explode(rjet, SFX.SMOKE + SFX.FIRE + SFX.EXPLODE + SFX.SHATTER + SFX.EXPLODE_ON_HIT) Explode(ljet, SFX.SMOKE + SFX.FIRE + SFX.EXPLODE + SFX.SHATTER + SFX.EXPLODE_ON_HIT) return 2 end end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/ship/merchant_cruiser_medium_tier5.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_ship_merchant_cruiser_medium_tier5 = object_ship_shared_merchant_cruiser_medium_tier5:new { } ObjectTemplates:addTemplate(object_ship_merchant_cruiser_medium_tier5, "object/ship/merchant_cruiser_medium_tier5.iff")
agpl-3.0
sprunk/Zero-K
LuaUI/Widgets/unit_stockpile.lua
7
2404
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_stockpile.lua -- brief: adds 100 builds to all new units that can stockpile -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL, v2 or later. -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Stockpiler", desc = "Automatically adds 100 stockpile builds to new units", author = "trepan", date = "Jan 8, 2007", license = "GNU GPL, v2 or later", layer = 0, enabled = true -- loaded by default? } end local constantStockpile = { [UnitDefNames["turretaaheavy"].id] = true, } local CMD_STOCKPILE = CMD.STOCKPILE local EMPTY_TABLE = {} -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:Initialize() if (Spring.GetSpectatingState() or Spring.IsReplay()) and (not Spring.IsCheatingEnabled()) then Spring.Echo("<Stockpiler>: disabled for spectators") widgetHandler:RemoveWidget() return end end function widget:UnitCreated(unitID, unitDefID, unitTeam) local ud = UnitDefs[unitDefID] if ((ud ~= nil) and (unitTeam == Spring.GetMyTeamID())) then if (ud.canStockpile) then local stocked, queued = Spring.GetUnitStockpile(unitID) if (not queued) or queued < 50 then -- give stockpilers 100 units to build Spring.GiveOrderToUnit(unitID, CMD.STOCKPILE, EMPTY_TABLE, CMD.OPT_CTRL + CMD.OPT_SHIFT) end end end end function widget:GameFrame(n) if n > 1 then for _, unitID in ipairs(Spring.GetAllUnits()) do widget:UnitCreated(unitID, Spring.GetUnitDefID(unitID), Spring.GetUnitTeam(unitID)) end widgetHandler:RemoveCallIn("GameFrame") end end function widget:StockpileChanged(unitID, unitDefID, unitTeam, weaponNum, oldCount, newCount) if constantStockpile[unitDefID] then Spring.GiveOrderToUnit(unitID, CMD_STOCKPILE, EMPTY_TABLE, 0) end end -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/components/droid_interface/ddi_sorosuub_elite.lua
3
2324
--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_droid_interface_ddi_sorosuub_elite = object_tangible_ship_components_droid_interface_shared_ddi_sorosuub_elite:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_droid_interface_ddi_sorosuub_elite, "object/tangible/ship/components/droid_interface/ddi_sorosuub_elite.iff")
agpl-3.0
beauli/kong
kong/plugins/response-transformer/migrations/cassandra.lua
12
1582
return { { name = "2016-03-10-160000_resp_trans_schema_changes", up = function(_, _, factory) local plugins, err = factory.plugins:find_all {name = "response-transformer"} if err then return err end for _, plugin in ipairs(plugins) do for _, action in ipairs {"remove", "add", "append", "replace"} do plugin.config[action] = plugin.config[action] or {} for _, location in ipairs {"json", "headers"} do plugin.config[action][location] = plugin.config[action][location] or {} end end local _, err = factory.plugins:update(plugin, plugin, {full = true}) if err then return err end end end, down = function(_, _, factory) local plugins, err = factory.plugins:find_all {name = "response-transformer"} if err then return err end for _, plugin in ipairs(plugins) do plugin.config.replace = nil plugin.config.append = nil for _, action in ipairs {"remove", "add"} do for _, location in ipairs {"json", "headers"} do if plugin.config[action] ~= nil and next(plugin.config[action][location]) == nil then plugin.config[action][location] = nil end end if next(plugin.config[action]) == nil then plugin.config[action] = nil end end local _, err = factory.plugins:update(plugin, plugin, {full = true}) if err then return err end end end } }
apache-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/quest/tatooine/hero_of_tat/hero_of_tat_rancher.lua
1
3432
hero_of_tat_rancher = Creature:new { objectName = "@mob/creature_names:farmer_rancher", socialGroup = "townsperson", faction = "townsperson", level = 4, chanceHit = 0.24, damageMin = 40, damageMax = 45, baseXp = 62, baseHAM = 113, baseHAMmax = 138, armor = 0, resists = {15,15,15,15,15,15,15,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = HERD, optionsBitmask = AIENABLED, diet = HERBIVORE, templates = { "object/mobile/dressed_commoner_tatooine_aqualish_male_01.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_02.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_03.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_04.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_05.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_06.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_07.iff", "object/mobile/dressed_commoner_tatooine_aqualish_male_08.iff", "object/mobile/dressed_commoner_tatooine_bith_male_01.iff", "object/mobile/dressed_commoner_tatooine_bith_male_02.iff", "object/mobile/dressed_commoner_tatooine_bith_male_03.iff", "object/mobile/dressed_commoner_tatooine_bith_male_04.iff", "object/mobile/dressed_commoner_tatooine_bith_male_05.iff", "object/mobile/dressed_commoner_tatooine_bith_male_06.iff", "object/mobile/dressed_commoner_tatooine_devaronian_male_01.iff", "object/mobile/dressed_commoner_tatooine_devaronian_male_02.iff", "object/mobile/dressed_commoner_tatooine_devaronian_male_03.iff", "object/mobile/dressed_commoner_tatooine_devaronian_male_04.iff", "object/mobile/dressed_commoner_tatooine_ishitib_male_01.iff", "object/mobile/dressed_commoner_tatooine_ishitib_male_02.iff", "object/mobile/dressed_commoner_tatooine_ishitib_male_03.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_01.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_02.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_03.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_04.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_05.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_06.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_07.iff", "object/mobile/dressed_commoner_tatooine_nikto_male_08.iff", "object/mobile/dressed_commoner_tatooine_rodian_male_01.iff", "object/mobile/dressed_commoner_tatooine_rodian_male_02.iff", "object/mobile/dressed_commoner_tatooine_rodian_male_03.iff", "object/mobile/dressed_commoner_tatooine_rodian_male_04.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_01.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_02.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_03.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_04.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_05.iff", "object/mobile/dressed_commoner_tatooine_sullustan_male_06.iff", "object/mobile/dressed_commoner_tatooine_trandoshan_male_01.iff", "object/mobile/dressed_commoner_tatooine_trandoshan_male_02.iff" }, lootGroups = {}, weapons = {}, conversationTemplate = "", attacks = merge(marksmannovice,brawlernovice) } CreatureTemplates:addCreatureTemplate(hero_of_tat_rancher, "hero_of_tat_rancher")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/dressed_dathomir_prisoner_01.lua
3
2228
--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_dathomir_prisoner_01 = object_mobile_shared_dressed_dathomir_prisoner_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dathomir_prisoner_01, "object/mobile/dressed_dathomir_prisoner_01.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/loot/quest/nym_hard_drive.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_tangible_loot_quest_nym_hard_drive = object_tangible_loot_quest_shared_nym_hard_drive:new { } ObjectTemplates:addTemplate(object_tangible_loot_quest_nym_hard_drive, "object/tangible/loot/quest/nym_hard_drive.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/mission/quest_item/binna_jode_q4_needed.lua
3
2280
--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_binna_jode_q4_needed = object_tangible_mission_quest_item_shared_binna_jode_q4_needed:new { } ObjectTemplates:addTemplate(object_tangible_mission_quest_item_binna_jode_q4_needed, "object/tangible/mission/quest_item/binna_jode_q4_needed.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/endor/skilled_jinda_worker.lua
1
1240
skilled_jinda_worker = Creature:new { objectName = "@mob/creature_names:skilled_jinda_worker", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "jinda_tribe", faction = "", level = 29, chanceHit = 0.39, damageMin = 290, damageMax = 300, baseXp = 2914, baseHAM = 8400, baseHAMmax = 10200, armor = 0, resists = {-1,50,-1,20,20,70,20,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK, optionsBitmask = AIENABLED, diet = HERBIVORE, templates = { "object/mobile/jinda_male.iff", "object/mobile/jinda_female.iff", "object/mobile/jinda_male_01.iff", "object/mobile/jinda_female_01.iff"}, lootGroups = { { groups = { {group = "ewok", chance = 8100000}, {group = "wearables_uncommon", chance = 1000000}, {group = "armor_attachments", chance = 450000}, {group = "clothing_attachments", chance = 450000} }, lootChance = 1580000 } }, weapons = {"ewok_weapons"}, conversationTemplate = "", attacks = merge(riflemanmaster,brawlermaster) } CreatureTemplates:addCreatureTemplate(skilled_jinda_worker, "skilled_jinda_worker")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/veteran_reward/frn_tech_console_sectional_c.lua
3
2296
--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_veteran_reward_frn_tech_console_sectional_c = object_tangible_veteran_reward_shared_frn_tech_console_sectional_c:new { } ObjectTemplates:addTemplate(object_tangible_veteran_reward_frn_tech_console_sectional_c, "object/tangible/veteran_reward/frn_tech_console_sectional_c.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/sign/player/base/player_sign_base.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_tangible_sign_player_base_player_sign_base = object_tangible_sign_player_base_shared_player_sign_base:new { } ObjectTemplates:addTemplate(object_tangible_sign_player_base_player_sign_base, "object/tangible/sign/player/base/player_sign_base.iff")
agpl-3.0
TeleCU/cna2
bot/seedbot.lua
1
10265
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return end local receiver = get_receiver(msg) print (receiver) --vardump(msg) msg = pre_process_service_msg(msg) if msg_valid(msg) then msg = pre_process_msg(msg) if msg then match_plugins(msg) if redis:get("bot:markread") then if redis:get("bot:markread") == "on" then mark_read(receiver, ok_cb, false) end end end end end function ok_cb(extra, success, result) end function on_binlog_replay_end() started = true postpone (cron_plugins, false, 60*5.0) _config = load_config() -- load plugins plugins = {} load_plugins() end function msg_valid(msg) -- Don't process outgoing messages if msg.out then print('\27[36mNot valid: msg from us\27[39m') return false end -- Before bot was started if msg.date < now then print('\27[36mNot valid: old msg\27[39m') return false end if msg.unread == 0 then print('\27[36mNot valid: readed\27[39m') return false end if not msg.to.id then print('\27[36mNot valid: To id not provided\27[39m') return false end if not msg.from.id then print('\27[36mNot valid: From id not provided\27[39m') return false end if msg.from.id == our_id then print('\27[36mNot valid: Msg from our id\27[39m') return false end if msg.to.type == 'encr_chat' then print('\27[36mNot valid: Encrypted chat\27[39m') return false end if msg.from.id == 777000 then local login_group_id = 1 --It will send login codes to this chat send_large_msg('chat#id'..login_group_id, msg.text) end return true end -- function pre_process_service_msg(msg) if msg.service then local action = msg.action or {type=""} -- Double ! to discriminate of normal actions msg.text = "!!tgservice " .. action.type -- wipe the data to allow the bot to read service messages if msg.out then msg.out = false end if msg.from.id == our_id then msg.from.id = 0 end end return msg end -- Apply plugin.pre_process function function pre_process_msg(msg) for name,plugin in pairs(plugins) do if plugin.pre_process and msg then print('Preprocess', name) msg = plugin.pre_process(msg) end end return msg end -- Go over enabled plugins patterns. function match_plugins(msg) for name, plugin in pairs(plugins) do match_plugin(plugin, name, msg) end end -- Check if plugin is on _config.disabled_plugin_on_chat table local function is_plugin_disabled_on_chat(plugin_name, receiver) local disabled_chats = _config.disabled_plugin_on_chat -- Table exists and chat has disabled plugins if disabled_chats and disabled_chats[receiver] then -- Checks if plugin is disabled on this chat for disabled_plugin,disabled in pairs(disabled_chats[receiver]) do if disabled_plugin == plugin_name and disabled then local warning = 'Plugin '..disabled_plugin..' is disabled on this chat' print(warning) send_msg(receiver, warning, ok_cb, false) return true end end end return false end function match_plugin(plugin, plugin_name, msg) local receiver = get_receiver(msg) -- Go over patterns. If one matches it's enough. for k, pattern in pairs(plugin.patterns) do local matches = match_pattern(pattern, msg.text) if matches then print("msg matches: ", pattern) if is_plugin_disabled_on_chat(plugin_name, receiver) then return nil end -- Function exists if plugin.run then -- If plugin is for privileged users only if not warns_user_not_allowed(plugin, msg) then local result = plugin.run(msg, matches) if result then send_large_msg(receiver, result) end end end -- One patterns matches return end end end -- DEPRECATED, use send_large_msg(destination, text) function _send_msg(destination, text) send_large_msg(destination, text) end -- Save the content of _config to config.lua function save_config( ) serialize_to_file(_config, './data/config.lua') print ('saved config into ./data/config.lua') end -- Returns the config from config.lua file. -- If file doesn't exist, create it. function load_config( ) local f = io.open('./data/config.lua', "r") -- If config.lua doesn't exist if not f then print ("Created new config file: data/config.lua") create_config() else f:close() end local config = loadfile ("./data/config.lua")() for v,user in pairs(config.sudo_users) do print("Allowed user: " .. user) end return config end -- Create a basic config.json file and saves it. function create_config( ) -- A simple config with basic plugins and ourselves as privileged user config = { enabled_plugins = { "onservice", "inrealm", "ingroup", "inpm", "banhammer", "stats", "anti_spam", "owners", "arabic_lock", "set", "get", "broadcast", "download_media", "invite", "all", "leave_ban", "admin" }, sudo_users = {177340295},--Sudo users disabled_channels = {}, moderation = {data = 'data/moderation.json'}, about_text = [[Teleseed v2 - Open Source An advance Administration bot based on yagop/telegram-bot https://github.com/SEEDTEAM/TeleSeed Our team! Alphonse (@Iwals) I M /-\ N (@Imandaneshi) Siyanew (@Siyanew) Rondoozle (@Potus) Seyedan (@Seyedan25) Special thanks to: Juan Potato Siyanew Topkecleon Vamptacus Our channels: English: @TeleSeedCH Persian: @IranSeed ]], help_text_realm = [[ Realm Commands: !creategroup [name] Create a group !createrealm [name] Create a realm !setname [name] Set realm name !setabout [group_id] [text] Set a group's about text !setrules [grupo_id] [text] Set a group's rules !lock [grupo_id] [setting] Lock a group's setting !unlock [grupo_id] [setting] Unock a group's setting !wholist Get a list of members in group/realm !who Get a file of members in group/realm !type Get group type !kill chat [grupo_id] Kick all memebers and delete group !kill realm [realm_id] Kick all members and delete realm !addadmin [id|username] Promote an admin by id OR username *Sudo only !removeadmin [id|username] Demote an admin by id OR username *Sudo only !list groups Get a list of all groups !list realms Get a list of all realms !log Get a logfile of current group or realm !broadcast [text] !broadcast Hello ! Send text to all groups » Only sudo users can run this command !bc [group_id] [text] !bc 123456789 Hello ! This command will send text to [group_id] » U can use both "/" and "!" » Only mods, owner and admin can add bots in group » Only moderators and owner can use kick,ban,unban,newlink,link,setphoto,setname,lock,unlock,set rules,set about and settings commands » Only owner can use res,setowner,promote,demote and log commands ]], help_text = [[ Commands list : !kick [username|id] You can also do it by reply !ban [ username|id] You can also do it by reply !unban [id] You can also do it by reply !who Members list !modlist Moderators list !promote [username] Promote someone !demote [username] Demote someone !kickme Will kick user !about Group description !setphoto Set and locks group photo !setname [name] Set group name !rules Group rules !id Return group id or user id !help Get commands list !lock [member|name|bots|leave] Locks [member|name|bots|leaveing] !unlock [member|name|bots|leave] Unlocks [member|name|bots|leaving] !set rules [text] Set [text] as rules !set about [text] Set [text] as about !settings Returns group settings !newlink Create/revoke your group link !link Returns group link !owner Returns group owner id !setowner [id] Will set id as owner !setflood [value] Set [value] as flood sensitivity !stats Simple message statistics !save [value] [text] Save [text] as [value] !get [value] Returns text of [value] !clean [modlist|rules|about] Will clear [modlist|rules|about] and set it to nil !res [username] Returns user id !log Will return group logs !banlist Will return group ban list » U can use both "/" and "!" » Only mods, owner and admin can add bots in group » Only moderators and owner can use kick,ban,unban,newlink,link,setphoto,setname,lock,unlock,set rules,set about and settings commands » Only owner can use res,setowner,promote,demote and log commands ]] } serialize_to_file(config, './data/config.lua') print('saved config into ./data/config.lua') end function on_our_id (id) our_id = id end function on_user_update (user, what) --vardump (user) end function on_chat_update (chat, what) end function on_secret_chat_update (schat, what) --vardump (schat) end function on_get_difference_end () end -- Enable plugins in config.json function load_plugins() for k, v in pairs(_config.enabled_plugins) do print("Loading plugin", v) local ok, err = pcall(function() local t = loadfile("plugins/"..v..'.lua')() plugins[v] = t end) if not ok then print('\27[31mError loading plugin '..v..'\27[39m') print(tostring(io.popen("lua plugins/"..v..".lua"):read('*all'))) print('\27[31m'..err..'\27[39m') end end end -- custom add function load_data(filename) local f = io.open(filename) if not f then return {} end local s = f:read('*all') f:close() local data = JSON.decode(s) return data end function save_data(filename, data) local s = JSON.encode(data) local f = io.open(filename, 'w') f:write(s) f:close() end -- Call and postpone execution for cron plugins function cron_plugins() for name, plugin in pairs(plugins) do -- Only plugins with cron function if plugin.cron ~= nil then plugin.cron() end end -- Called again in 2 mins postpone (cron_plugins, false, 120) end -- Start and load values our_id = 0 now = os.time() math.randomseed(now) started = false
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/deed/event_perk/tatooine_banner_static_deed.lua
2
2474
--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_tatooine_banner_static_deed = object_tangible_deed_event_perk_shared_tatooine_banner_static_deed:new { templateType = EVENTPERKDEED, gameObjectType = 8388615, noTrade = 1, generatedObjectTemplate = "object/tangible/event_perk/banner_tatooine_style_01.iff", perkType = STATIC, } ObjectTemplates:addTemplate(object_tangible_deed_event_perk_tatooine_banner_static_deed, "object/tangible/deed/event_perk/tatooine_banner_static_deed.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s03.lua
3
2771
--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_furniture_all_frn_all_light_lamp_candlestick_tbl_s03 = object_tangible_furniture_all_shared_frn_all_light_lamp_candlestick_tbl_s03:new { numberExperimentalProperties = {1, 1, 1, 2}, experimentalProperties = {"XX", "XX", "XX", "DR", "OQ"}, experimentalWeights = {1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "exp_quality"}, experimentalSubGroupTitles = {"null", "null", "hitpoints", "lifespan"}, experimentalMin = {0, 0, 1000, 7}, experimentalMax = {0, 0, 1000, 21}, experimentalPrecision = {0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 1}, } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_light_lamp_candlestick_tbl_s03, "object/tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s03.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/wearables/necklace/necklace_s10.lua
3
4585
--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_necklace_necklace_s10 = object_tangible_wearables_necklace_shared_necklace_s10: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/trandoshan_male.iff", "object/creature/player/trandoshan_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/trandoshan_female.iff", "object/mobile/vendor/trandoshan_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}, experimentalProperties = {"XX", "XX", "XX"}, experimentalWeights = {1, 1, 1}, experimentalGroupTitles = {"null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "hitpoints"}, experimentalMin = {0, 0, 1000}, experimentalMax = {0, 0, 1000}, experimentalPrecision = {0, 0, 0}, experimentalCombineType = {0, 0, 4}, } ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_s10, "object/tangible/wearables/necklace/necklace_s10.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/faction_perk/faction_base_item/alarm_destruct.lua
3
2304
--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_faction_perk_faction_base_item_alarm_destruct = object_tangible_faction_perk_faction_base_item_shared_alarm_destruct:new { } ObjectTemplates:addTemplate(object_tangible_faction_perk_faction_base_item_alarm_destruct, "object/tangible/faction_perk/faction_base_item/alarm_destruct.iff")
agpl-3.0
motoschifo/mame
3rdparty/genie/src/actions/example/example_project.lua
71
2633
-- An example project generator; see _example.lua for action description -- -- The project generation function, attached to the action in _example.lua. -- By now, premake.generate() has created the project file using the name -- provided in _example.lua, and redirected input to this new file. -- function premake.example.project(prj) -- If necessary, set an explicit line ending sequence -- io.eol = '\r\n' -- Let's start with a header _p('-- Example project file version 1.0') _p('Name: %s', prj.name) _p('Kind: %s', prj.kind) _p('Language: %s', prj.language) _p('ID: {%s}', prj.uuid) _p('') -- List the build configurations, and the settings for each for cfg in premake.eachconfig(prj) do _p('Configuration %s:', cfg.name) _p(1, 'Objects directory: %s', cfg.objectsdir) _p(1, 'Build target:') _p(2, 'Full path: %s', cfg.buildtarget.fullpath) _p(2, 'Directory: %s', cfg.buildtarget.directory) _p(2, 'Name: %s', cfg.buildtarget.name) _p(2, 'Base name: %s', cfg.buildtarget.basename) _p(2, 'Prefix: %s', cfg.buildtarget.prefix) _p(2, 'Suffix: %s', cfg.buildtarget.suffix) _p('') _p(1, 'Compiling:') _p(2, 'Defines: %s', table.concat(cfg.defines, ";")) _p(2, 'Include paths: %s', table.concat(cfg.includedirs, ";")) _p(2, 'Flags: %s', table.concat(cfg.flags, ", ")) if not cfg.flags.NoPCH and cfg.pchheader then _p(2, 'Precompiled header: %s (%s)', cfg.pchheader, cfg.pchsource) end _p(2, 'Options: %s', table.concat(cfg.buildoptions, " ")) _p('') _p(1, 'Linking:') _p(2, 'Library paths: %s', table.concat(cfg.libdirs, ";")) _p(2, 'Options: %s', table.concat(cfg.linkoptions, " ")) _p(2, 'Libraries: %s', table.concat(premake.getlinks(cfg, "all", "fullpath"))) _p('') if #cfg.prebuildcommands > 0 then _p(1, 'Prebuild commands:') for _, cmd in ipairs(cfg.prebuildcommands) do _p(2, cmd) end _p('') end if #cfg.prelinkcommands > 0 then _p(1, 'Prelink commands:') for _, cmd in ipairs(cfg.prelinkcommands) do _p(2, cmd) end _p('') end if #cfg.postbuildcommands > 0 then _p(1, 'Postbuild commands:') for _, cmd in ipairs(cfg.postbuildcommands) do _p(2, cmd) end _p('') end end -- List out the folders and files that make up the build local tr = premake.project.buildsourcetree(prj) premake.tree.sort(tr) premake.tree.traverse(tr, { onbranch = function(node, depth) _p(depth, path.getname(node.name) .. "/") end, onleaf = function(node, depth) _p(depth, path.getname(node.name)) end }) end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/faction/rebel/senior_specforce_heavy_weapons_specialist.lua
1
1853
senior_specforce_heavy_weapons_specialist = Creature:new { objectName = "@mob/creature_names:senior_specforce_heavy_weapons_specialist", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "rebel", faction = "rebel", level = 20, chanceHit = 0.33, damageMin = 190, damageMax = 210, baseXp = 1803, baseHAM = 5000, baseHAMmax = 6100, 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 = ATTACKABLE, creatureBitmask = PACK + KILLER, diet = HERBIVORE, templates = {"object/mobile/dressed_rebel_second_lieutenant_human_female_01.iff", "object/mobile/dressed_rebel_second_lieutenant_rodian_male_01.iff", "object/mobile/dressed_rebel_second_lieutenant_trandoshan_male_01.iff", "object/mobile/dressed_rebel_second_lieutenant_twk_female_01.iff", "object/mobile/dressed_rebel_second_lieutenant_twk_male_01.iff", "object/mobile/dressed_rebel_second_lieutenant_zabrak_female_01.iff"}, lootGroups = { { groups = { {group = "color_crystals", chance = 100000}, {group = "junk", chance = 4700000}, {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 = "wearables_common", chance = 1000000} } } }, weapons = {"rebel_weapons_heavy"}, reactionStf = "@npc_reaction/military", personalityStf = "@hireling/hireling_military", attacks = merge(commandomaster,marksmanmaster,brawlermaster) } CreatureTemplates:addCreatureTemplate(senior_specforce_heavy_weapons_specialist, "senior_specforce_heavy_weapons_specialist")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/item/item_hundred_sided_dice.lua
1
3156
--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_item_item_hundred_sided_dice = object_draft_schematic_item_shared_item_hundred_sided_dice:new { templateType = DRAFTSCHEMATIC, customObjectName = "One Hundred Sided Dice Set", craftingToolTab = 524288, -- (See DraftSchematicObjectTemplate.h) complexity = 4, size = 1, xpType = "crafting_general", xp = 24, assemblySkill = "general_assembly", experimentingSkill = "general_experimentation", customizationSkill = "clothing_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n"}, ingredientTitleNames = {"cube_core", "hardened_shell"}, ingredientSlotType = {0, 0}, resourceTypes = {"metal", "petrochem_inert"}, resourceQuantities = {6, 6}, contribution = {100, 100}, targetTemplate = "object/tangible/dice/eqp_one_hundred_sided_dice_set.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_item_item_hundred_sided_dice, "object/draft_schematic/item/item_hundred_sided_dice.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/skreeg_hue.lua
3
2156
--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_skreeg_hue = object_mobile_shared_skreeg_hue:new { } ObjectTemplates:addTemplate(object_mobile_skreeg_hue, "object/mobile/skreeg_hue.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/components/reactor/rct_slayn_hypertron_2k.lua
3
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_ship_components_reactor_rct_slayn_hypertron_2k = object_tangible_ship_components_reactor_shared_rct_slayn_hypertron_2k:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_reactor_rct_slayn_hypertron_2k, "object/tangible/ship/components/reactor/rct_slayn_hypertron_2k.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/food/foraged/objects.lua
3
27623
--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_food_foraged_shared_edible_jar_berries = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_edible_jar_berries.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_berries_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:edible_berries", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:edible_berries", noBuildRadius = 0, objectName = "@food_name:edible_berries", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1405655823, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_edible_jar_berries, "object/tangible/food/foraged/shared_edible_jar_berries.iff") object_tangible_food_foraged_shared_edible_jar_bugs = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_edible_jar_bugs.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_bugs_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:edible_bugs", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:edible_bugs", noBuildRadius = 0, objectName = "@food_name:edible_bugs", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2220813342, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_edible_jar_bugs, "object/tangible/food/foraged/shared_edible_jar_bugs.iff") object_tangible_food_foraged_shared_edible_jar_fungus = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_edible_jar_fungus.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_guts_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:edible_fungus", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:edible_fungus", noBuildRadius = 0, objectName = "@food_name:edible_fungus", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 404667969, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_edible_jar_fungus, "object/tangible/food/foraged/shared_edible_jar_fungus.iff") object_tangible_food_foraged_shared_edible_jar_funk = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_edible_jar_funk.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_funk_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:edible_funk", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:edible_funk", noBuildRadius = 0, objectName = "@food_name:edible_funk", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3997953331, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_edible_jar_funk, "object/tangible/food/foraged/shared_edible_jar_funk.iff") object_tangible_food_foraged_shared_edible_jar_livers = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_edible_jar_livers.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_guts_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:edible_livers", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:edible_livers", noBuildRadius = 0, objectName = "@food_name:edible_livers", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4279994826, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_edible_jar_livers, "object/tangible/food/foraged/shared_edible_jar_livers.iff") object_tangible_food_foraged_shared_foraged_fruit_s1 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_fruit_s1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_fruit_melon.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_fruit_1", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_fruit_1", noBuildRadius = 0, objectName = "@food_name:foraged_fruit_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1125771498, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_fruit_s1, "object/tangible/food/foraged/shared_foraged_fruit_s1.iff") object_tangible_food_foraged_shared_foraged_fruit_s2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_fruit_s2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_fruit_s2.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_fruit_2", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_fruit_2", noBuildRadius = 0, objectName = "@food_name:foraged_fruit_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2551070845, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_fruit_s2, "object/tangible/food/foraged/shared_foraged_fruit_s2.iff") object_tangible_food_foraged_shared_foraged_fruit_s3 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_fruit_s3.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_fruit_s3.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_fruit_3", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_fruit_3", noBuildRadius = 0, objectName = "@food_name:foraged_fruit_3", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3506644976, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_fruit_s3, "object/tangible/food/foraged/shared_foraged_fruit_s3.iff") object_tangible_food_foraged_shared_foraged_fruit_s4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_fruit_s4.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_fruit_s4.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_fruit_4", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_fruit_4", noBuildRadius = 0, objectName = "@food_name:foraged_fruit_4", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 719326436, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_fruit_s4, "object/tangible/food/foraged/shared_foraged_fruit_s4.iff") object_tangible_food_foraged_shared_foraged_fruit_s5 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_fruit_s5.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_fruit_s5.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_fruit_5", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_fruit_5", noBuildRadius = 0, objectName = "@food_name:foraged_fruit_5", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1676503913, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_fruit_s5, "object/tangible/food/foraged/shared_foraged_fruit_s5.iff") object_tangible_food_foraged_shared_foraged_vegetable_s2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_vegetable_s2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_vegetable_s2.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_vegetable_1", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_vegetable_1", noBuildRadius = 0, objectName = "@food_name:foraged_vegetable_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2375994584, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_vegetable_s2, "object/tangible/food/foraged/shared_foraged_vegetable_s2.iff") object_tangible_food_foraged_shared_foraged_vegetable_s3 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_vegetable_s3.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_vegetable_s3.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_vegetable_2", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_vegetable_2", noBuildRadius = 0, objectName = "@food_name:foraged_vegetable_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3298011989, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_vegetable_s3, "object/tangible/food/foraged/shared_foraged_vegetable_s3.iff") object_tangible_food_foraged_shared_foraged_vegetable_s4 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_vegetable_s4.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_vegetable_s4.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_vegetable_3", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_vegetable_3", noBuildRadius = 0, objectName = "@food_name:foraged_vegetable_3", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1064337473, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_vegetable_s4, "object/tangible/food/foraged/shared_foraged_vegetable_s4.iff") object_tangible_food_foraged_shared_foraged_vegetable_s5 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_foraged_vegetable_s5.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_food_vegetable_s5.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8202, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@food_detail:foraged_vegetable_4", gameObjectType = 8202, locationReservationRadius = 0, lookAtText = "@food_lookat:foraged_vegetable_4", noBuildRadius = 0, objectName = "@food_name:foraged_vegetable_4", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1987962828, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/food/base/shared_base_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_foraged_vegetable_s5, "object/tangible/food/foraged/shared_foraged_vegetable_s5.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/commands/editStats.lua
4
2120
--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 EditStatsCommand = { name = "editstats", } AddCommand(EditStatsCommand)
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/item/quest/crowd_pleaser/music_reward.lua
1
2583
--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_item_quest_crowd_pleaser_music_reward = object_tangible_item_quest_crowd_pleaser_shared_music_reward:new { templateType = XPPURCHASE, attributeListComponent = "XpPurchaseAttributeListComponent", objectMenuComponent = "XpPurchaseMenuComponent", requiredSkill = "social_musician_novice", grantType = "ability", grantName = "startMusic+western", xpType = "music", xpAmount = 400000, noTrade = 1, noRemove = true } ObjectTemplates:addTemplate(object_tangible_item_quest_crowd_pleaser_music_reward, "object/tangible/item/quest/crowd_pleaser/music_reward.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/eg6_power_droid.lua
3
2176
--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_eg6_power_droid = object_mobile_shared_eg6_power_droid:new { } ObjectTemplates:addTemplate(object_mobile_eg6_power_droid, "object/mobile/eg6_power_droid.iff")
agpl-3.0
sprunk/Zero-K
LuaRules/Gadgets/start_boxes.lua
1
14862
if not gadgetHandler:IsSyncedCode() or VFS.FileExists("mission.lua") then return end function gadget:GetInfo() return { name = "Startbox handler", desc = "Handles startboxes", author = "Sprung", date = "2015-05-19", license = "PD", layer = -math.huge + 10, enabled = true, } end local gaiaAllyTeamID = select(6, Spring.GetTeamInfo(Spring.GetGaiaTeamID(), false)) local shuffleMode = Spring.GetModOptions().shuffle or "auto" local startboxConfig local ParseBoxes = VFS.Include ("LuaRules/Gadgets/Include/startbox_utilities.lua") local function GetAverageStartpoint(boxID) local box = startboxConfig[boxID] local startpoints = box.startpoints local x, z = 0, 0 for i = 1, #startpoints do x = x + startpoints[i][1] z = z + startpoints[i][2] end x = x / #startpoints z = z / #startpoints return x, z end local function RegtangularizeTrapezoid(edgeA, edgeB) local vector = Spring.Utilities.Vector local origin = edgeA[1] local unit = vector.Unit(vector.Subtract(edgeA[2], edgeA[1])) if (edgeA[1][1] < edgeA[1][2]) ~= (edgeB[1][1] < edgeB[1][2]) then -- Swap points if lines are passed backwards edgeB[1], edgeB[2] = edgeB[2], edgeB[1] end local distANear, distAFar = 0, vector.AbsVal(vector.Subtract(edgeA[2], edgeA[1])) local distBNear, distBFar = vector.Dot(vector.Subtract(edgeB[1], edgeA[1]), unit), vector.Dot(vector.Subtract(edgeB[2], edgeA[1]), unit) local nearDist, farDist = math.max(distANear, distBNear), math.min(distAFar, distBFar) edgeA[1] = vector.Add(origin, vector.Mult(nearDist, unit)) edgeA[2] = vector.Add(origin, vector.Mult(farDist, unit)) local normal = vector.Normal(vector.Subtract(edgeB[1], edgeA[1]), unit) return {edgeA[1], vector.Subtract(edgeA[2], edgeA[1]), normal} end local function GetBoxID(allyTeamID) local teamID = Spring.GetTeamList(allyTeamID)[1] if not teamID then return end local boxID = Spring.GetTeamRulesParam(teamID, "start_box_id") return boxID end local function GetPlanetwarsBoxes (teamDistance, teamWidth, neutralWidth, edgeDist) local attackerBoxID = GetBoxID(0) local defenderBoxID = GetBoxID(1) if not attackerBoxID or not defenderBoxID then return end local attackerX, attackerZ = GetAverageStartpoint(attackerBoxID) local defenderX, defenderZ = GetAverageStartpoint(defenderBoxID) local function GetPointOnLine(distance) return { defenderX + distance * (attackerX - defenderX), defenderZ + distance * (attackerZ - defenderZ), } end local defenderBoxStart = GetPointOnLine(teamDistance) local attackerBoxStart = GetPointOnLine(1 - teamDistance) local middleBoxStart = GetPointOnLine(0.5 - (neutralWidth / 2)) local defenderBoxEnd = GetPointOnLine(teamDistance + teamWidth) local attackerBoxEnd = GetPointOnLine(1 - (teamDistance + teamWidth)) local middleBoxEnd = GetPointOnLine(0.5 + (neutralWidth / 2)) local function GetBasicRectangle(pointA, pointB, isX) if isX then return { {edgeDist, pointA[2]}, {0, pointB[2] - pointA[2]}, {Game.mapSizeX - 2*edgeDist, 0}, } else return { {pointA[1], edgeDist}, {0, Game.mapSizeZ - 2*edgeDist}, {pointB[1] - pointA[1], 0}, } end end if math.abs(defenderX - attackerX) < 10 or math.abs(defenderZ - attackerZ) < 10 then local isX = math.abs(defenderX - attackerX) < 10 return { attacker = GetBasicRectangle(attackerBoxStart, attackerBoxEnd, isX), defender = GetBasicRectangle(defenderBoxStart, defenderBoxEnd, isX), neutral = GetBasicRectangle(middleBoxStart, middleBoxEnd, isX), } end -- Note that the gradient is perpendicular to the gradient Attacker-Defender line. local gradient = (attackerX - defenderX) / (defenderZ - attackerZ) local function GetEdgePoints(point) local offset = point[2] - (gradient * point[1]) local left = { edgeDist, (gradient * edgeDist) + offset, } if left[2] < edgeDist then left[1] = (edgeDist - offset) / gradient left[2] = edgeDist elseif left[2] > Game.mapSizeZ - edgeDist then left[1] = ((Game.mapSizeZ - edgeDist) - offset) / gradient left[2] = Game.mapSizeZ - edgeDist end local right = { Game.mapSizeX - edgeDist, (gradient * (Game.mapSizeX - edgeDist)) + offset, } if right[2] < edgeDist then right[1] = (edgeDist - offset) / gradient right[2] = edgeDist elseif right[2] > Game.mapSizeZ - edgeDist then right[1] = ((Game.mapSizeZ - edgeDist) - offset) / gradient right[2] = Game.mapSizeZ - edgeDist end return {left, right} end local function GetRectangle(pointA, pointB) local edgesA = GetEdgePoints(pointA) local edgesB = GetEdgePoints(pointB) return RegtangularizeTrapezoid(edgesA, edgesB) end return { attacker = GetRectangle(attackerBoxStart, attackerBoxEnd), defender = GetRectangle(defenderBoxStart, defenderBoxEnd), neutral = GetRectangle(middleBoxStart, middleBoxEnd), } end local function CheckStartbox (boxID, x, z) if not boxID then return true end local box = startboxConfig[boxID] and startboxConfig[boxID].boxes if not box then return true end for i = 1, #box do local x1, z1, x2, z2, x3, z3 = unpack(box[i]) if (math.cross_product(x, z, x1, z1, x2, z2) <= 0 and math.cross_product(x, z, x2, z2, x3, z3) <= 0 and math.cross_product(x, z, x3, z3, x1, z1) <= 0 ) then return true end end return false end -- name, elo, clanShort, clanLong, isAI local function GetPlayerInfo (teamID) local _,playerID,_,isAI = Spring.GetTeamInfo(teamID, false) if isAI then return select(2, Spring.GetAIInfo(teamID)), -1000, "", "", true end local name = Spring.GetPlayerInfo(playerID, false) or "?" local customKeys = select(10, Spring.GetPlayerInfo(playerID)) or {} local clanShort = customKeys.clan or "" local clanLong = customKeys.clanfull or "" local elo = customKeys.elo or "0" return name, tonumber(elo), clanShort, clanLong, false end -- returns full name, short name, clan full name, clan short name local function GetTeamNames (allyTeamID) if allyTeamID == gaiaAllyTeamID then return "Neutral", "Neutral" -- more descriptive than "Gaia" end local pwPlanet = Spring.GetModOptions().planet if pwPlanet then if allyTeamID == 0 then -- attacker is always 0, and always present local shortName = Spring.GetModOptions().attackingfaction local longName = Spring.GetModOptions().attackingfactionname return longName, shortName else local defenderShortName = Spring.GetModOptions().defendingfaction if not defenderShortName then -- attacking a neutral planet local longName = pwPlanet .. " Militia" return longName, "Militia" else local longName = Spring.GetModOptions().defendingfactionname return longName, defenderShortName end end end local teamList = Spring.GetTeamList(allyTeamID) or {} if #teamList == 0 then return "Empty", "Empty" end local clanShortName, clanLongName local clanFirst = true local leaderName = "" local leaderElo = -2000 local bots = 0 local humans = 0 for i = 1, #teamList do local name, elo, clanShort, clanLong, isAI = GetPlayerInfo(teamList[i]) if not isAI then if clanFirst then clanShortName = clanShort clanLongName = clanLong clanFirst = false else if clanShort ~= clanShortName then clanShortName = "" clanLongName = "" end end end if elo > leaderElo then leaderName = name leaderElo = elo end if isAI then bots = bots + 1 else humans = humans + 1 end end if humans == 1 then return leaderName, leaderName end if humans == 0 then return "AI", "AI" end local boxCount = 0 for _ in pairs(startboxConfig) do boxCount = boxCount + 1 end if ((shuffleMode == "off") or (Spring.Utilities.GetTeamCount() == 2 and shuffleMode == "shuffle") or (boxCount == 2 and shuffleMode == "allshuffle")) then local boxID = Spring.GetTeamRulesParam(teamList[1], "start_box_id") if boxID then local box = startboxConfig[boxID] if box.nameLong and box.nameShort then return box.nameLong, box.nameShort, clanLongName, clanShortName end end end return ("Team " .. leaderName), leaderName, clanLongName, clanShortName end function gadget:Initialize() if shuffleMode == "auto" then if Spring.Utilities.GetTeamCount() > 2 then shuffleMode = "shuffle" elseif Spring.Utilities.GetTeamCount() == 2 then shuffleMode = "allshuffle" else -- 1 team: chickens shuffleMode = "off" end end Spring.SetGameRulesParam("shuffleMode", shuffleMode) startboxConfig = ParseBoxes() GG.startBoxConfig = startboxConfig GG.GetPlanetwarsBoxes = GetPlanetwarsBoxes GG.CheckStartbox = CheckStartbox Spring.SetGameRulesParam("startbox_max_n", #startboxConfig) Spring.SetGameRulesParam("startbox_recommended_startpos", 1) for box_id, rawbox in pairs(startboxConfig) do local polygons = rawbox.boxes Spring.SetGameRulesParam("startbox_n_" .. box_id, #polygons) for i = 1, #polygons do local polygon = polygons[i] Spring.SetGameRulesParam("startbox_polygon_" .. box_id .. "_" .. i, #polygons[i]) for j = 1, #polygons[i] do Spring.SetGameRulesParam("startbox_polygon_x_" .. box_id .. "_" .. i .. "_" .. j, polygons[i][j][1]) Spring.SetGameRulesParam("startbox_polygon_z_" .. box_id .. "_" .. i .. "_" .. j, polygons[i][j][2]) end end local startposes = rawbox.startpoints Spring.SetGameRulesParam("startpos_n_" .. box_id, #startposes) for i = 1, #startposes do Spring.SetGameRulesParam("startpos_x_" .. box_id .. "_" .. i, startposes[i][1]) Spring.SetGameRulesParam("startpos_z_" .. box_id .. "_" .. i, startposes[i][2]) end end for id, rawbox in pairs(startboxConfig) do rawbox.boxes = math.triangulate(rawbox.boxes) end -- filter out fake teams (empty or Gaia) local allyTeamList = Spring.GetAllyTeamList() local actualAllyTeamList = {} for i = 1, #allyTeamList do local teamList = Spring.GetTeamList(allyTeamList[i]) or {} if ((#teamList > 0) and (allyTeamList[i] ~= gaiaAllyTeamID)) then actualAllyTeamList[#actualAllyTeamList+1] = {allyTeamList[i], math.random()} end end if (shuffleMode == "off") or (shuffleMode == "disable") then for i = 1, #allyTeamList do local allyTeamID = allyTeamList[i] local boxID = allyTeamList[i] if startboxConfig[boxID] then local teamList = Spring.GetTeamList(allyTeamID) or {} for j = 1, #teamList do Spring.SetTeamRulesParam(teamList[j], "start_box_id", boxID) end end end elseif (shuffleMode == "shuffle") then local randomizedSequence = {} for i = 1, #actualAllyTeamList do randomizedSequence[#randomizedSequence + 1] = {actualAllyTeamList[i][1], math.random()} end table.sort(randomizedSequence, function(a, b) return (a[2] < b[2]) end) for i = 1, #actualAllyTeamList do local allyTeamID = actualAllyTeamList[i][1] local boxID = randomizedSequence[i][1] if startboxConfig[boxID] then local teamList = Spring.GetTeamList(allyTeamID) or {} for j = 1, #teamList do Spring.SetTeamRulesParam(teamList[j], "start_box_id", boxID) end end end elseif (shuffleMode == "allshuffle") then local randomizedSequence = {} for id in pairs(startboxConfig) do randomizedSequence[#randomizedSequence + 1] = {id, math.random()} end table.sort(randomizedSequence, function(a, b) return (a[2] < b[2]) end) table.sort(actualAllyTeamList, function(a, b) return (a[2] < b[2]) end) for i = 1, #actualAllyTeamList do local allyTeamID = actualAllyTeamList[i][1] local boxID = randomizedSequence[i] and randomizedSequence[i][1] if boxID and startboxConfig[boxID] then local teamList = Spring.GetTeamList(allyTeamID) or {} for j = 1, #teamList do Spring.SetTeamRulesParam(teamList[j], "start_box_id", boxID) end end end end local clans = {} for i = 1, #allyTeamList do local allyTeamID = allyTeamList[i] local longName, shortName, clanLong, clanShort = GetTeamNames(allyTeamID) Spring.SetGameRulesParam("allyteam_short_name_" .. allyTeamID, shortName) Spring.SetGameRulesParam("allyteam_long_name_" .. allyTeamID, longName) if clanLong and clanLong ~= "" then clans[clanLong] = clans[clanLong] or {0, clanShort, allyTeamID} clans[clanLong][1] = clans[clanLong][1] + 1 end end for clanName, clan in pairs(clans) do if (clan[1] == 1) and (clanName ~= "") then Spring.SetGameRulesParam("allyteam_short_name_" .. clan[3], clan[2]) Spring.SetGameRulesParam("allyteam_long_name_" .. clan[3], clanName) end end end function gadget:AllowStartPosition(playerID, teamID, readyState, x, y, z, rx, ry, rz) if (x == 0 and z == 0) then -- engine default startpos return false end if (playerID == 255) then return true -- custom AI, can't know which team it is on so allow it to place anywhere for now and filter invalid positions later end local teamID = select(4, Spring.GetPlayerInfo(playerID, false)) if (shuffleMode == "disable") then -- note this is after the AI check; toasters still have to obey Spring.SetTeamRulesParam (teamID, "valid_startpos", 1) return true end local boxID = Spring.GetTeamRulesParam(teamID, "start_box_id") if (not boxID) or CheckStartbox(boxID, x, z) then Spring.SetTeamRulesParam (teamID, "valid_startpos", 1) return true else return false end end function gadget:RecvSkirmishAIMessage(teamID, dataStr) local command = "ai_is_valid_startpos:" local command2 = "ai_is_valid_enemy_startpos:" if not dataStr:find(command,1,true) and not dataStr:find(command2,1,true) then return end if dataStr:find(command2,1,true) then command = command2 end local boxID = Spring.GetTeamRulesParam(teamID, "start_box_id") local xz = dataStr:sub(command:len()+1) local slash = xz:find("/",1,true) if not slash then return end local x = tonumber(xz:sub(1, slash-1)) local z = tonumber(xz:sub(slash+1)) if not x or not z then return end if not dataStr:find(command2,1,true) then -- for checking own startpos if (not boxID) or CheckStartbox(boxID, x, z) then return "1" else return "0" end else -- for checking enemy startpos local enemyboxes = {} local _,_,_,_,_,allyteamid = Spring.GetTeamInfo(teamID, false) local allyteams = Spring.GetAllyTeamList() if shuffleMode == "allshuffle" then for id,_ in pairs(startboxConfig) do if id ~= boxID then enemyboxes[id] = true end end else for _,value in pairs(allyteams) do if value ~= allyteamid then local enemyteams = Spring.GetTeamList(value) local _,value1 = next(enemyteams) if value1 then local enemybox = Spring.GetTeamRulesParam(value1, "start_box_id") if (enemybox) then enemyboxes[enemybox] = true end end end end end for bid,_ in pairs(enemyboxes) do if CheckStartbox(bid, x, z) then return "1" end end return "0" end end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/poi/tatooine_rodianhunter_medium.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_building_poi_tatooine_rodianhunter_medium = object_building_poi_shared_tatooine_rodianhunter_medium:new { gameObjectType = 531, } ObjectTemplates:addTemplate(object_building_poi_tatooine_rodianhunter_medium, "object/building/poi/tatooine_rodianhunter_medium.iff")
agpl-3.0
istayping/istyping
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names = redis:hkeys(hash) local text = '' for i=1, #names do text = text..names[i]..'\n' end return text end end local function get_value(msg, var_name) local hash = get_variables_hash(msg) if hash then local value = redis:hget(hash, var_name) if not value then return'Not found, use "!get" to list variables' else return var_name..' => '..value end end end local function run(msg, matches) if matches[2] then return get_value(msg, matches[2]) else return list_variables(msg) end end return { description = "Retrieves variables saved with !set", usage = "!get (value_name): Returns the value_name value.", patterns = { "^(!get) (.+)$", "^!get$" }, run = run }
gpl-2.0
ouyangruoxue/pokerServer
server/lua/resty/websocket/protocol.lua
5
8652
-- Copyright (C) Yichun Zhang (agentzh) local bit = require "bit" local byte = string.byte local char = string.char local sub = string.sub local band = bit.band local bor = bit.bor local bxor = bit.bxor local lshift = bit.lshift local rshift = bit.rshift --local tohex = bit.tohex local tostring = tostring local concat = table.concat local str_char = string.char local rand = math.random local type = type local debug = ngx.config.debug local ngx_log = ngx.log local ngx_DEBUG = ngx.DEBUG local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local _M = new_tab(0, 5) _M.new_tab = new_tab _M._VERSION = '0.06' local types = { [0x0] = "continuation", [0x1] = "text", [0x2] = "binary", [0x8] = "close", [0x9] = "ping", [0xa] = "pong", } function _M.recv_frame(sock, max_payload_len, force_masking) local data, err = sock:receive(2) if not data then return nil, nil, "failed to receive the first 2 bytes: " .. err end local fst, snd = byte(data, 1, 2) local fin = band(fst, 0x80) ~= 0 -- print("fin: ", fin) if band(fst, 0x70) ~= 0 then return nil, nil, "bad RSV1, RSV2, or RSV3 bits" end local opcode = band(fst, 0x0f) -- print("opcode: ", tohex(opcode)) if opcode >= 0x3 and opcode <= 0x7 then return nil, nil, "reserved non-control frames" end if opcode >= 0xb and opcode <= 0xf then return nil, nil, "reserved control frames" end local mask = band(snd, 0x80) ~= 0 if debug then ngx_log(ngx_DEBUG, "recv_frame: mask bit: ", mask and 1 or 0) end if force_masking and not mask then return nil, nil, "frame unmasked" end local payload_len = band(snd, 0x7f) -- print("payload len: ", payload_len) if payload_len == 126 then local data, err = sock:receive(2) if not data then return nil, nil, "failed to receive the 2 byte payload length: " .. (err or "unknown") end payload_len = bor(lshift(byte(data, 1), 8), byte(data, 2)) elseif payload_len == 127 then local data, err = sock:receive(8) if not data then return nil, nil, "failed to receive the 8 byte payload length: " .. (err or "unknown") end if byte(data, 1) ~= 0 or byte(data, 2) ~= 0 or byte(data, 3) ~= 0 or byte(data, 4) ~= 0 then return nil, nil, "payload len too large" end local fifth = byte(data, 5) if band(fifth, 0x80) ~= 0 then return nil, nil, "payload len too large" end payload_len = bor(lshift(fifth, 24), lshift(byte(data, 6), 16), lshift(byte(data, 7), 8), byte(data, 8)) end if band(opcode, 0x8) ~= 0 then -- being a control frame if payload_len > 125 then return nil, nil, "too long payload for control frame" end if not fin then return nil, nil, "fragmented control frame" end end -- print("payload len: ", payload_len, ", max payload len: ", -- max_payload_len) if payload_len > max_payload_len then return nil, nil, "exceeding max payload len" end local rest if mask then rest = payload_len + 4 else rest = payload_len end -- print("rest: ", rest) local data if rest > 0 then data, err = sock:receive(rest) if not data then return nil, nil, "failed to read masking-len and payload: " .. (err or "unknown") end else data = "" end -- print("received rest") if opcode == 0x8 then -- being a close frame if payload_len > 0 then if payload_len < 2 then return nil, nil, "close frame with a body must carry a 2-byte" .. " status code" end local msg, code if mask then local fst = bxor(byte(data, 4 + 1), byte(data, 1)) local snd = bxor(byte(data, 4 + 2), byte(data, 2)) code = bor(lshift(fst, 8), snd) if payload_len > 2 then -- TODO string.buffer optimizations local bytes = new_tab(payload_len - 2, 0) for i = 3, payload_len do bytes[i - 2] = str_char(bxor(byte(data, 4 + i), byte(data, (i - 1) % 4 + 1))) end msg = concat(bytes) else msg = "" end else local fst = byte(data, 1) local snd = byte(data, 2) code = bor(lshift(fst, 8), snd) -- print("parsing unmasked close frame payload: ", payload_len) if payload_len > 2 then msg = sub(data, 3) else msg = "" end end return msg, "close", code end return "", "close", nil end local msg if mask then -- TODO string.buffer optimizations local bytes = new_tab(payload_len, 0) for i = 1, payload_len do bytes[i] = str_char(bxor(byte(data, 4 + i), byte(data, (i - 1) % 4 + 1))) end msg = concat(bytes) else msg = data end return msg, types[opcode], not fin and "again" or nil end local function build_frame(fin, opcode, payload_len, payload, masking) -- XXX optimize this when we have string.buffer in LuaJIT 2.1 local fst if fin then fst = bor(0x80, opcode) else fst = opcode end local snd, extra_len_bytes if payload_len <= 125 then snd = payload_len extra_len_bytes = "" elseif payload_len <= 65535 then snd = 126 extra_len_bytes = char(band(rshift(payload_len, 8), 0xff), band(payload_len, 0xff)) else if band(payload_len, 0x7fffffff) < payload_len then return nil, "payload too big" end snd = 127 -- XXX we only support 31-bit length here extra_len_bytes = char(0, 0, 0, 0, band(rshift(payload_len, 24), 0xff), band(rshift(payload_len, 16), 0xff), band(rshift(payload_len, 8), 0xff), band(payload_len, 0xff)) end local masking_key if masking then -- set the mask bit snd = bor(snd, 0x80) local key = rand(0xffffffff) masking_key = char(band(rshift(key, 24), 0xff), band(rshift(key, 16), 0xff), band(rshift(key, 8), 0xff), band(key, 0xff)) -- TODO string.buffer optimizations local bytes = new_tab(payload_len, 0) for i = 1, payload_len do bytes[i] = str_char(bxor(byte(payload, i), byte(masking_key, (i - 1) % 4 + 1))) end payload = concat(bytes) else masking_key = "" end return char(fst, snd) .. extra_len_bytes .. masking_key .. payload end _M.build_frame = build_frame function _M.send_frame(sock, fin, opcode, payload, max_payload_len, masking) -- ngx.log(ngx.WARN, ngx.var.uri, ": masking: ", masking) if not payload then payload = "" elseif type(payload) ~= "string" then payload = tostring(payload) end local payload_len = #payload if payload_len > max_payload_len then return nil, "payload too big" end if band(opcode, 0x8) ~= 0 then -- being a control frame if payload_len > 125 then return nil, "too much payload for control frame" end if not fin then return nil, "fragmented control frame" end end local frame, err = build_frame(fin, opcode, payload_len, payload, masking) if not frame then return nil, "failed to build frame: " .. err end local bytes, err = sock:send(frame) if not bytes then return nil, "failed to send frame: " .. err end return bytes end return _M
mit
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/commands/unarmedHit2.lua
1
2422
--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 UnarmedHit2Command = { name = "unarmedhit2", damageMultiplier = 3.0, speedMultiplier = 2.5, healthCostMultiplier = 1.5, actionCostMultiplier = 1.5, mindCostMultiplier = 1.5, accuracyBonus = 15, animation = "combo_3a", animType = GENERATE_INTENSITY, combatSpam = "goraxsmash", weaponType = UNARMEDWEAPON, range = -1 } AddCommand(UnarmedHit2Command)
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/item/wp_mle_blacksun_razor.lua
3
2220
--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_blacksun_razor = object_static_item_shared_wp_mle_blacksun_razor:new { } ObjectTemplates:addTemplate(object_static_item_wp_mle_blacksun_razor, "object/static/item/wp_mle_blacksun_razor.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/camp/campfire_logs_fresh.lua
3
2220
--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_camp_campfire_logs_fresh = object_tangible_camp_shared_campfire_logs_fresh:new { } ObjectTemplates:addTemplate(object_tangible_camp_campfire_logs_fresh, "object/tangible/camp/campfire_logs_fresh.iff")
agpl-3.0
thamtucohon9/lua23
123.lua
1
24386
local version = "1.6" --[[ Ryze - the Rogue Mage Author: Draconis Version: 1.6 Copyright 2015 Dependency: Standalone --]] if myHero.charName ~= "Ryze" then return end require 'SxOrbwalk' require 'UPL' ------------------------------------------------------ -- Callbacks ------------------------------------------------------ function OnLoad() print("<b><font color=\"#6699FF\">Ryze - the Rogue Mage:</font></b> <font color=\"#FFFFFF\">Good luck and have fun!</font>") Variables() Menu() PriorityOnLoad() if VIP_USER then HookPackets() end end function OnTick() ComboKey = Settings.combo.comboKey HarassKey = Settings.harass.harassKey HarassToggle = Settings.harass.harassToggle LaneClearKey = Settings.lane.laneKey JungleClearKey = Settings.jungle.jungleKey FarmKey = Settings.farm.farmKey FarmToggle = Settings.farm.farmToggle if ComboKey then if Settings.combo.comboMode == 1 then burstCombo(Target) else longCombo(Target) end end if HarassKey then Harass(Target) elseif HarassToggle then Harass(Target) end if FarmKey then Farm() elseif FarmToggle and not (ComboKey or HarassKey) then Farm() end if JungleClearKey then JungleClear() end if LaneClearKey then LaneClear() end if Settings.ks.killSteal then KillSteal() end Checks() end function OnDraw() if not myHero.dead and not Settings.drawing.mDraw then if SkillQ.ready and Settings.drawing.qDraw then DrawCircle(myHero.x, myHero.y, myHero.z, SkillQ.range, RGB(Settings.drawing.qColor[2], Settings.drawing.qColor[3], Settings.drawing.qColor[4])) end if SkillW.ready and Settings.drawing.wDraw then DrawCircle(myHero.x, myHero.y, myHero.z, SkillW.range, RGB(Settings.drawing.wColor[2], Settings.drawing.wColor[3], Settings.drawing.wColor[4])) end if SkillE.ready and Settings.drawing.eDraw then DrawCircle(myHero.x, myHero.y, myHero.z, SkillE.range, RGB(Settings.drawing.eColor[2], Settings.drawing.eColor[3], Settings.drawing.eColor[4])) end if Settings.drawing.Target and Target ~= nil then DrawCircle(Target.x, Target.y, Target.z, 70, 0xCE00FF) end if Settings.drawing.myHero then DrawCircle(myHero.x, myHero.y, myHero.z, myHero.range + GetDistance(myHero, myHero.minBBox), RGB(Settings.drawing.myColor[2], Settings.drawing.myColor[3], Settings.drawing.myColor[4])) end end end ------------------------------------------------------ -- Functions ------------------------------------------------------ function burstCombo(unit) if ValidTarget(unit) and unit ~= nil and unit.type == myHero.type then if isFacing(myHero, unit) then if Settings.combo.comboItems then UseItems(unit) end CastQ(unit) if Settings.combo.useR then CastR() end CastW(unit) CastE(unit) elseif not isFacing(unit, myHero) then if Settings.combo.comboItems then UseItems(unit) end CastW(unit) if Settings.combo.useR then CastR() end CastQ(unit) CastE(unit) end end end function longCombo(unit) if ValidTarget(unit) and unit ~= nil and unit.type == myHero.type then if Settings.combo.comboItems then UseItems(unit) end CastQ(unit) if Settings.combo.useR then CastR() end CastQ(unit) CastW(unit) CastQ(unit) CastE(unit) CastQ(unit) CastW(unit) CastQ(unit) CastE(unit) CastQ(unit) end end function Harass(unit) if ValidTarget(unit) and unit ~= nil and unit.type == myHero.type and not IsMyManaLow("Harass") then if Settings.harass.useW then CastW(unit) end if Settings.harass.useE then CastE(unit) end if Settings.harass.useQ then CastQ(unit) end end end function JungleClear() if Settings.jungle.jungleKey then local JungleMob = GetJungleMob() if JungleMob ~= nil then if Settings.jungle.jungleE and GetDistance(JungleMob) <= SkillE.range then CastSpell(_E, JungleMob) end if Settings.jungle.jungleQ and GetDistance(JungleMob) <= SkillQ.range then CastSpell(_Q, JungleMob.x, JungleMob.z) end if Settings.jungle.jungleW and GetDistance(JungleMob) <= SkillW.range then CastSpell(_W, JungleMob) end end end end function Farm() enemyMinions:update() for i, minion in pairs(enemyMinions.objects) do qDmg = getDmg("Q", minion, myHero) wDmg = getDmg("W", minion, myHero) eDmg = getDmg("E", minion, myHero) if ValidTarget(minion) and minion ~= nil and not IsMyManaLow("Farm") then if minion.health <= qDmg and Settings.farm.farmQ then CastQ(minion) elseif minion.health <= wDmg and Settings.farm.farmW then CastW(minion) elseif minion.health <= eDmg and Settings.farm.farmE then CastE(minion) end end end end function LaneClear() enemyMinions:update() if LaneClearKey then for i, minion in pairs(enemyMinions.objects) do if ValidTarget(minion) and minion ~= nil then if Settings.lane.laneR and GetDistance(minion) <= SkillQ.range and SkillR.ready then CastSpell(_R) end if Settings.lane.laneQ and GetDistance(minion) <= SkillQ.range and SkillQ.ready then CastSpell(_Q, minion.x, minion.z) end if Settings.lane.laneW and GetDistance(minion) <= SkillW.range and SkillW.ready then CastSpell(_W, minion) end if Settings.lane.laneE and GetDistance(minion) <= SkillE.range and SkillE.ready then CastSpell(_E, minion) end end end end end function CastQ(unit) if unit ~= nil and GetDistance(unit) <= SkillQ.range and SkillQ.ready then local CastPosition, HitChance, HeroPosition = UPL:Predict(_Q, myHero, unit) if HitChance >= 2 then CastSpell(_Q, CastPosition.x, CastPosition.z) end end end function CastE(unit) if unit ~= nil and GetDistance(unit) <= SkillE.range and SkillE.ready then if VIP_USER and Settings.misc.packets then Packet("S_CAST", {spellId = _E, targetNetworkId = unit.networkID}):send() else CastSpell(_E, unit) end end end function CastW(unit) if unit ~= nil and SkillW.ready and GetDistance(unit) <= SkillW.range then if VIP_USER and Settings.misc.packets then Packet("S_CAST", {spellId = _W, targetNetworkId = unit.networkID}):send() else CastSpell(_W, unit) end end end function CastR() if SkillR.ready then if Settings.combo.useR == 1 then return elseif Settings.combo.useR == 2 and CountEnemyHeroInRange(SkillQ.range, myHero) >= 1 then CastSpell(_R) elseif Settings.combo.useR == 3 and CountEnemyHeroInRange(SkillQ.range, myHero) >= 2 then CastSpell(_R) elseif Settings.combo.useR == 4 and CountEnemyHeroInRange(SkillQ.range, myHero) >= 3 then CastSpell(_R) elseif Settings.combo.useR == 5 and CountEnemyHeroInRange(SkillQ.range, myHero) >= 4 then CastSpell(_R) end end end function KillSteal() for _, enemy in ipairs(GetEnemyHeroes()) do qDmg = getDmg("Q", enemy, myHero) wDmg = getDmg("W", enemy, myHero) if ValidTarget(enemy) and enemy.visible then if enemy.health <= qDmg then CastQ(enemy) elseif enemy.health <= wDmg then CastW(enemy) elseif enemy.health <= qDmg + wDmg then CastW(enemy) CastQ(enemy) end if Settings.ks.autoIgnite then AutoIgnite(enemy) end end end end function AutoIgnite(unit) if ValidTarget(unit, Ignite.range) and unit.health <= 50 + (20 * myHero.level) then if Ignite.ready then CastSpell(Ignite.slot, unit) end end end ------------------------------------------------------ -- Checks, menu & stuff ------------------------------------------------------ function Checks() SkillQ.ready = (myHero:CanUseSpell(_Q) == READY) SkillW.ready = (myHero:CanUseSpell(_W) == READY) SkillE.ready = (myHero:CanUseSpell(_E) == READY) SkillR.ready = (myHero:CanUseSpell(_R) == READY) if myHero:GetSpellData(SUMMONER_1).name:find(Ignite.name) then Ignite.slot = SUMMONER_1 elseif myHero:GetSpellData(SUMMONER_2).name:find(Ignite.name) then Ignite.slot = SUMMONER_2 end Ignite.ready = (Ignite.slot ~= nil and myHero:CanUseSpell(Ignite.slot) == READY) TargetSelector:update() enemyMinions:update() Target = GetCustomTarget() if Settings.drawing.lfc.lfc then _G.DrawCircle = DrawCircle2 else _G.DrawCircle = _G.oldDrawCircle end if Settings.combo.comboSwitch and Settings.combo.comboMode == 1 then Settings.combo.comboMode = 2 elseif not Settings.combo.comboSwitch and Settings.combo.comboMode == 2 then Settings.combo.comboMode = 1 end end function IsMyManaLow(mode) if mode == "Harass" then if myHero.mana < (myHero.maxMana * ( Settings.harass.harassMana / 100)) then return true else return false end elseif mode == "Farm" then if myHero.mana < (myHero.maxMana * ( Settings.farm.farmMana / 100)) then return true else return false end end end function Menu() Settings = scriptConfig("Ryze - the Rogue Mage "..version.."", "DraconisRyze") Settings:addSubMenu("["..myHero.charName.."] - Combo Settings", "combo") Settings.combo:addParam("comboKey", "Combo Key", SCRIPT_PARAM_ONKEYDOWN, false, 32) Settings.combo:addParam("comboSwitch", "Combo Switch", SCRIPT_PARAM_ONKEYTOGGLE, false, GetKey("Z")) Settings.combo:addParam("comboMode", "Combo Mode", SCRIPT_PARAM_LIST, 1, { "Burst", "Long" }) Settings.combo:addParam("useR", "Use "..SkillR.name.." (R) in Combo", SCRIPT_PARAM_LIST, 1, { "No", ">1 targets", ">2 targets", ">3 targets", ">4 targets" }) Settings.combo:addParam("comboItems", "Use Items in Combo", SCRIPT_PARAM_ONOFF, true) Settings.combo:permaShow("comboKey") Settings.combo:permaShow("comboMode") Settings:addSubMenu("["..myHero.charName.."] - Harass Settings", "harass") Settings.harass:addParam("harassKey", "Harass Key", SCRIPT_PARAM_ONKEYDOWN, false, GetKey("T")) Settings.harass:addParam("harassToggle", "Harass Toggle", SCRIPT_PARAM_ONOFF, false) Settings.harass:addParam("useQ", "Use "..SkillQ.name.." (Q) in Harass", SCRIPT_PARAM_ONOFF, true) Settings.harass:addParam("useW", "Use "..SkillW.name.." (W) in Harass", SCRIPT_PARAM_ONOFF, true) Settings.harass:addParam("useE", "Use "..SkillE.name.." (E) in Harass", SCRIPT_PARAM_ONOFF, true) Settings.harass:addParam("harassMana", "Min. Mana Percent: ", SCRIPT_PARAM_SLICE, 1, 0, 100, 0) Settings.harass:permaShow("harassKey") Settings:addSubMenu("["..myHero.charName.."] - Farm Settings", "farm") Settings.farm:addParam("farmKey", "Farm Key", SCRIPT_PARAM_ONKEYDOWN, false, GetKey("C")) Settings.farm:addParam("farmToggle", "Farm Toggle", SCRIPT_PARAM_ONOFF, false) Settings.farm:addParam("farmQ", "Farm with "..SkillQ.name.." (Q)", SCRIPT_PARAM_ONKEYTOGGLE, true, GetKey("X")) Settings.farm:addParam("farmW", "Farm with "..SkillW.name.." (W)", SCRIPT_PARAM_ONOFF, false) Settings.farm:addParam("farmE", "Farm with "..SkillE.name.." (E)", SCRIPT_PARAM_ONOFF, false) Settings.farm:addParam("farmMana", "Min. Mana Percent: ", SCRIPT_PARAM_SLICE, 30, 0, 100, 0) Settings.farm:permaShow("farmKey") Settings.farm:permaShow("farmQ") Settings:addSubMenu("["..myHero.charName.."] - Lane Clear Settings", "lane") Settings.lane:addParam("laneKey", "Lane Clear Key", SCRIPT_PARAM_ONKEYDOWN, false, GetKey("V")) Settings.lane:addParam("laneQ", "Clear with "..SkillQ.name.." (Q)", SCRIPT_PARAM_ONOFF, true) Settings.lane:addParam("laneW", "Clear with "..SkillW.name.." (W)", SCRIPT_PARAM_ONOFF, true) Settings.lane:addParam("laneE", "Clear with "..SkillE.name.." (E)", SCRIPT_PARAM_ONOFF, true) Settings.lane:addParam("laneR", "Clear with "..SkillR.name.." (R)", SCRIPT_PARAM_ONOFF, false) Settings.lane:permaShow("laneKey") Settings:addSubMenu("["..myHero.charName.."] - Jungle Clear Settings", "jungle") Settings.jungle:addParam("jungleKey", "Jungle Clear Key", SCRIPT_PARAM_ONKEYDOWN, false, GetKey("V")) Settings.jungle:addParam("jungleQ", "Clear with "..SkillQ.name.." (Q)", SCRIPT_PARAM_ONOFF, true) Settings.jungle:addParam("jungleW", "Clear with "..SkillW.name.." (W)", SCRIPT_PARAM_ONOFF, true) Settings.jungle:addParam("jungleE", "Clear with "..SkillE.name.." (E)", SCRIPT_PARAM_ONOFF, true) Settings.jungle:permaShow("jungleKey") Settings:addSubMenu("["..myHero.charName.."] - KillSteal Settings", "ks") Settings.ks:addParam("killSteal", "Use Smart Kill Steal", SCRIPT_PARAM_ONOFF, true) Settings.ks:addParam("autoIgnite", "Auto Ignite", SCRIPT_PARAM_ONOFF, true) Settings.ks:permaShow("killSteal") Settings:addSubMenu("["..myHero.charName.."] - Draw Settings", "drawing") Settings.drawing:addParam("mDraw", "Disable All Range Draws", SCRIPT_PARAM_ONOFF, false) Settings.drawing:addParam("Target", "Draw Circle on Target", SCRIPT_PARAM_ONOFF, true) Settings.drawing:addParam("myHero", "Draw My Range", SCRIPT_PARAM_ONOFF, false) Settings.drawing:addParam("myColor", "Draw My Range Color", SCRIPT_PARAM_COLOR, {255, 255, 255, 255}) Settings.drawing:addParam("qDraw", "Draw "..SkillQ.name.." (Q) Range", SCRIPT_PARAM_ONOFF, false) Settings.drawing:addParam("qColor", "Draw "..SkillQ.name.." (Q) Color", SCRIPT_PARAM_COLOR, {255, 255, 255, 255}) Settings.drawing:addParam("wDraw", "Draw "..SkillW.name.." (W) Range", SCRIPT_PARAM_ONOFF, false) Settings.drawing:addParam("wColor", "Draw "..SkillW.name.." (W) Color", SCRIPT_PARAM_COLOR, {255, 255, 255, 255}) Settings.drawing:addParam("eDraw", "Draw "..SkillE.name.." (E) Range", SCRIPT_PARAM_ONOFF, false) Settings.drawing:addParam("eColor", "Draw "..SkillE.name.." (E) Color", SCRIPT_PARAM_COLOR, {255, 255, 255, 255}) Settings.drawing:addSubMenu("Lag Free Circles", "lfc") Settings.drawing.lfc:addParam("lfc", "Lag Free Circles", SCRIPT_PARAM_ONOFF, false) Settings.drawing.lfc:addParam("CL", "Quality", 4, 1500, 75, 2000, 0) Settings.drawing.lfc:addParam("Width", "Width", 4, 1, 1, 10, 0) Settings:addSubMenu("["..myHero.charName.."] - Misc Settings", "misc") Settings.misc:addParam("packets", "Cast spells using Packets", SCRIPT_PARAM_ONOFF, true) Settings:addSubMenu("["..myHero.charName.."] - Prediction Settings", "Prediction") UPL:AddToMenu(Settings.Prediction) Settings:addSubMenu("["..myHero.charName.."] - Orbwalking Settings", "Orbwalking") if _G.Reborn_Loaded ~= nil then Settings.Orbwalking:addParam("Info", "Sida's Auto Carry detected!", SCRIPT_PARAM_INFO, "") elseif _G.MMA_Loaded ~= nil then Settings.Orbwalking:addParam("Info", "Marksman's Mighty Assistant detected!", SCRIPT_PARAM_INFO, "") else SxOrb:LoadToMenu(Settings.Orbwalking) end TargetSelector = TargetSelector(TARGET_LESS_CAST, SkillQ.range, DAMAGE_MAGIC, true) TargetSelector.name = "Ryze" Settings:addTS(TargetSelector) end function Variables() SkillQ = { name = "Overload", range = 900, delay = 0.25, speed = 1700, width = 50, ready = false } SkillW = { name = "Rune Prison", range = 600, delay = nil, speed = nil, width = nil, ready = false } SkillE = { name = "Spell Flux", range = 600, delay = nil, speed = nil, width = nil, ready = false } SkillR = { name = "Desperate Power", range = nil, delay = nil, speed = nil, width = nil, ready = false } Ignite = { name = "summonerdot", range = 600, slot = nil } enemyMinions = minionManager(MINION_ENEMY, SkillQ.range, myHero, MINION_SORT_HEALTH_ASC) UPL = UPL() UPL:AddSpell(_Q, { speed = SkillQ.speed, delay = SkillQ.delay, range = SkillQ.range, width = SkillQ.width, collision = true, aoe = false, type = "linear" }) JungleMobs = {} JungleFocusMobs = {} if GetGame().map.shortName == "twistedTreeline" then TwistedTreeline = true else TwistedTreeline = false end _G.oldDrawCircle = rawget(_G, 'DrawCircle') _G.DrawCircle = DrawCircle2 priorityTable = { AP = { "Annie", "Ahri", "Akali", "Anivia", "Annie", "Brand", "Cassiopeia", "Diana", "Evelynn", "FiddleSticks", "Fizz", "Gragas", "Heimerdinger", "Karthus", "Kassadin", "Katarina", "Kayle", "Kennen", "Leblanc", "Lissandra", "Lux", "Malzahar", "Mordekaiser", "Morgana", "Nidalee", "Orianna", "Ryze", "Sion", "Swain", "Syndra", "Teemo", "TwistedFate", "Veigar", "Viktor", "Vladimir", "Xerath", "Ziggs", "Zyra", "Velkoz" }, Support = { "Alistar", "Blitzcrank", "Janna", "Karma", "Leona", "Lulu", "Nami", "Nunu", "Sona", "Soraka", "Taric", "Thresh", "Zilean", "Braum" }, Tank = { "Amumu", "Chogath", "DrMundo", "Galio", "Hecarim", "Malphite", "Maokai", "Nasus", "Rammus", "Sejuani", "Nautilus", "Shen", "Singed", "Skarner", "Volibear", "Warwick", "Yorick", "Zac" }, AD_Carry = { "Ashe", "Caitlyn", "Corki", "Draven", "Ezreal", "Graves", "Jayce", "Jinx", "KogMaw", "Lucian", "MasterYi", "MissFortune", "Pantheon", "Quinn", "Shaco", "Sivir", "Talon","Tryndamere", "Tristana", "Twitch", "Urgot", "Varus", "Vayne", "Yasuo", "Zed" }, Bruiser = { "Aatrox", "Darius", "Elise", "Fiora", "Gangplank", "Garen", "Irelia", "JarvanIV", "Jax", "Khazix", "LeeSin", "Nocturne", "Olaf", "Poppy", "Renekton", "Rengar", "Riven", "Rumble", "Shyvana", "Trundle", "Udyr", "Vi", "MonkeyKing", "XinZhao" } } Items = { BRK = { id = 3153, range = 450, reqTarget = true, slot = nil }, BWC = { id = 3144, range = 400, reqTarget = true, slot = nil }, DFG = { id = 3128, range = 750, reqTarget = true, slot = nil }, HGB = { id = 3146, range = 400, reqTarget = true, slot = nil }, RSH = { id = 3074, range = 350, reqTarget = false, slot = nil }, STD = { id = 3131, range = 350, reqTarget = false, slot = nil }, TMT = { id = 3077, range = 350, reqTarget = false, slot = nil }, YGB = { id = 3142, range = 350, reqTarget = false, slot = nil }, BFT = { id = 3188, range = 750, reqTarget = true, slot = nil }, RND = { id = 3143, range = 275, reqTarget = false, slot = nil } } if not TwistedTreeline then JungleMobNames = { ["SRU_MurkwolfMini2.1.3"] = true, ["SRU_MurkwolfMini2.1.2"] = true, ["SRU_MurkwolfMini8.1.3"] = true, ["SRU_MurkwolfMini8.1.2"] = true, ["SRU_BlueMini1.1.2"] = true, ["SRU_BlueMini7.1.2"] = true, ["SRU_BlueMini21.1.3"] = true, ["SRU_BlueMini27.1.3"] = true, ["SRU_RedMini10.1.2"] = true, ["SRU_RedMini10.1.3"] = true, ["SRU_RedMini4.1.2"] = true, ["SRU_RedMini4.1.3"] = true, ["SRU_KrugMini11.1.1"] = true, ["SRU_KrugMini5.1.1"] = true, ["SRU_RazorbeakMini9.1.2"] = true, ["SRU_RazorbeakMini9.1.3"] = true, ["SRU_RazorbeakMini9.1.4"] = true, ["SRU_RazorbeakMini3.1.2"] = true, ["SRU_RazorbeakMini3.1.3"] = true, ["SRU_RazorbeakMini3.1.4"] = true } FocusJungleNames = { ["SRU_Blue1.1.1"] = true, ["SRU_Blue7.1.1"] = true, ["SRU_Murkwolf2.1.1"] = true, ["SRU_Murkwolf8.1.1"] = true, ["SRU_Gromp13.1.1"] = true, ["SRU_Gromp14.1.1"] = true, ["Sru_Crab16.1.1"] = true, ["Sru_Crab15.1.1"] = true, ["SRU_Red10.1.1"] = true, ["SRU_Red4.1.1"] = true, ["SRU_Krug11.1.2"] = true, ["SRU_Krug5.1.2"] = true, ["SRU_Razorbeak9.1.1"] = true, ["SRU_Razorbeak3.1.1"] = true, ["SRU_Dragon6.1.1"] = true, ["SRU_Baron12.1.1"] = true } else FocusJungleNames = { ["TT_NWraith1.1.1"] = true, ["TT_NGolem2.1.1"] = true, ["TT_NWolf3.1.1"] = true, ["TT_NWraith4.1.1"] = true, ["TT_NGolem5.1.1"] = true, ["TT_NWolf6.1.1"] = true, ["TT_Spiderboss8.1.1"] = true } JungleMobNames = { ["TT_NWraith21.1.2"] = true, ["TT_NWraith21.1.3"] = true, ["TT_NGolem22.1.2"] = true, ["TT_NWolf23.1.2"] = true, ["TT_NWolf23.1.3"] = true, ["TT_NWraith24.1.2"] = true, ["TT_NWraith24.1.3"] = true, ["TT_NGolem25.1.1"] = true, ["TT_NWolf26.1.2"] = true, ["TT_NWolf26.1.3"] = true } end for i = 0, objManager.maxObjects do local object = objManager:getObject(i) if object and object.valid and not object.dead then if FocusJungleNames[object.name] then JungleFocusMobs[#JungleFocusMobs+1] = object elseif JungleMobNames[object.name] then JungleMobs[#JungleMobs+1] = object end end end end function SetPriority(table, hero, priority) for i=1, #table, 1 do if hero.charName:find(table[i]) ~= nil then TS_SetHeroPriority(priority, hero.charName) end end end function arrangePrioritys() for i, enemy in ipairs(GetEnemyHeroes()) do SetPriority(priorityTable.AD_Carry, enemy, 1) SetPriority(priorityTable.AP, enemy, 2) SetPriority(priorityTable.Support, enemy, 3) SetPriority(priorityTable.Bruiser, enemy, 4) SetPriority(priorityTable.Tank, enemy, 5) end end function arrangePrioritysTT() for i, enemy in ipairs(GetEnemyHeroes()) do SetPriority(priorityTable.AD_Carry, enemy, 1) SetPriority(priorityTable.AP, enemy, 1) SetPriority(priorityTable.Support, enemy, 2) SetPriority(priorityTable.Bruiser, enemy, 2) SetPriority(priorityTable.Tank, enemy, 3) end end function UseItems(unit) if unit ~= nil then for _, item in pairs(Items) do item.slot = GetInventorySlotItem(item.id) if item.slot ~= nil then if item.reqTarget and GetDistance(unit) < item.range then CastSpell(item.slot, unit) elseif not item.reqTarget then if (GetDistance(unit) - getHitBoxRadius(myHero) - getHitBoxRadius(unit)) < 50 then CastSpell(item.slot) end end end end end end function getHitBoxRadius(target) return GetDistance(target.minBBox, target.maxBBox)/2 end function PriorityOnLoad() if heroManager.iCount < 10 or (TwistedTreeline and heroManager.iCount < 6) then print("<b><font color=\"#6699FF\">Ryze - the Rogue Mage:</font></b> <font color=\"#FFFFFF\">Too few champions to arrange priority.</font>") elseif heroManager.iCount == 6 then arrangePrioritysTT() else arrangePrioritys() end end function GetJungleMob() for _, Mob in pairs(JungleFocusMobs) do if ValidTarget(Mob, SkillQ.range) then return Mob end end for _, Mob in pairs(JungleMobs) do if ValidTarget(Mob, SkillQ.range) then return Mob end end end function OnCreateObj(obj) if obj.valid then if FocusJungleNames[obj.name] then JungleFocusMobs[#JungleFocusMobs+1] = obj elseif JungleMobNames[obj.name] then JungleMobs[#JungleMobs+1] = obj end end end function OnDeleteObj(obj) for i, Mob in pairs(JungleMobs) do if obj.name == Mob.name then table.remove(JungleMobs, i) end end for i, Mob in pairs(JungleFocusMobs) do if obj.name == Mob.name then table.remove(JungleFocusMobs, i) end end end -- Trees function GetCustomTarget() TargetSelector:update() if _G.MMA_Target and _G.MMA_Target.type == myHero.type then return _G.MMA_Target end if _G.AutoCarry and _G.AutoCarry.Crosshair and _G.AutoCarry.Attack_Crosshair and _G.AutoCarry.Attack_Crosshair.target and _G.AutoCarry.Attack_Crosshair.target.type == myHero.type then return _G.AutoCarry.Attack_Crosshair.target end return TargetSelector.target end -- Feez function isFacing(source, target, lineLength) local sourceVector = Vector(source.pos.x, source.pos.z) local sourcePos = Vector(source.x, source.z) sourceVector = (sourceVector-sourcePos):normalized() sourceVector = sourcePos + (sourceVector*(GetDistance(target, source))) return GetDistanceSqr(target, {x = sourceVector.x, z = sourceVector.y}) <= (lineLength and lineLength^2 or 90000) end function isBothFacing(source, target, lineLength) return isFacing(source, target, lineLength) and isFacing(target, source, lineLength) end -- Barasia, vadash, viseversa function DrawCircleNextLvl(x, y, z, radius, width, color, chordlength) radius = radius or 300 quality = math.max(8,round(180/math.deg((math.asin((chordlength/(2*radius))))))) quality = 2 * math.pi / quality radius = radius*.92 local points = {} for theta = 0, 2 * math.pi + quality, quality do local c = WorldToScreen(D3DXVECTOR3(x + radius * math.cos(theta), y, z - radius * math.sin(theta))) points[#points + 1] = D3DXVECTOR2(c.x, c.y) end DrawLines2(points, width or 1, color or 4294967295) end function round(num) if num >= 0 then return math.floor(num+.5) else return math.ceil(num-.5) end end function DrawCircle2(x, y, z, radius, color) local vPos1 = Vector(x, y, z) local vPos2 = Vector(cameraPos.x, cameraPos.y, cameraPos.z) local tPos = vPos1 - (vPos1 - vPos2):normalized() * radius local sPos = WorldToScreen(D3DXVECTOR3(tPos.x, tPos.y, tPos.z)) if OnScreen({ x = sPos.x, y = sPos.y }, { x = sPos.x, y = sPos.y }) then DrawCircleNextLvl(x, y, z, radius, Settings.drawing.lfc.Width, color, Settings.drawing.lfc.CL) end end
apache-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/vendor/objects.lua
3
21049
--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_vendor_shared_vendor_droid_bartender = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_droid_bartender.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/robo_bartender.sat", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 887599030, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_droid_bartender, "object/tangible/vendor/shared_vendor_droid_bartender.iff") object_tangible_vendor_shared_vendor_droid_power = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_droid_power.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eg6.sat", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 1459672491, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_droid_power, "object/tangible/vendor/shared_vendor_droid_power.iff") object_tangible_vendor_shared_vendor_droid_protocol = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_droid_protocol.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/protocol_droid_red.sat", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 844125696, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_droid_protocol, "object/tangible/vendor/shared_vendor_droid_protocol.iff") object_tangible_vendor_shared_vendor_droid_surgical = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_droid_surgical.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/droid_21b.sat", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 946679884, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_droid_surgical, "object/tangible/vendor/shared_vendor_droid_surgical.iff") object_tangible_vendor_shared_vendor_droid_wed = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_droid_wed.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/wed_treadwell.sat", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 1745672602, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_droid_wed, "object/tangible/vendor/shared_vendor_droid_wed.iff") object_tangible_vendor_shared_vendor_terminal_basic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_terminal_basic.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ksk_all_bazaar.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal_basic", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal_basic", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal_basic", 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 = 1946512190, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_terminal_basic, "object/tangible/vendor/shared_vendor_terminal_basic.iff") object_tangible_vendor_shared_vendor_terminal_bulky = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_terminal_bulky.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ksk_all_shipping.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 2831480672, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_terminal_bulky, "object/tangible/vendor/shared_vendor_terminal_bulky.iff") object_tangible_vendor_shared_vendor_terminal_fancy = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_terminal_fancy.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ksk_all_travel.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 3992259223, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_terminal_fancy, "object/tangible/vendor/shared_vendor_terminal_fancy.iff") object_tangible_vendor_shared_vendor_terminal_slim = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_terminal_slim.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ksk_all_mission.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 3179269297, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_terminal_slim, "object/tangible/vendor/shared_vendor_terminal_slim.iff") object_tangible_vendor_shared_vendor_terminal_small = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_terminal_small.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ksk_all_bank.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 2513721920, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_terminal_small, "object/tangible/vendor/shared_vendor_terminal_small.iff") object_tangible_vendor_shared_vendor_terminal_standard = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/vendor/shared_vendor_terminal_standard.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ksk_all_bazaar.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 7, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 4, containerVolumeLimit = -1, customizationVariableMapping = {}, detailedDescription = "@terminal_detail:vendor_terminal", gameObjectType = 7, locationReservationRadius = 0, lookAtText = "@terminal_lookat:vendor_terminal", noBuildRadius = 0, objectName = "@terminal_name:vendor_terminal", 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 = 90585643, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/vendor/base/shared_base_vendor.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_vendor_shared_vendor_terminal_standard, "object/tangible/vendor/shared_vendor_terminal_standard.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/structure/naboo/obelisk_naboo_theed_style_3.lua
3
2288
--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_obelisk_naboo_theed_style_3 = object_static_structure_naboo_shared_obelisk_naboo_theed_style_3:new { } ObjectTemplates:addTemplate(object_static_structure_naboo_obelisk_naboo_theed_style_3, "object/static/structure/naboo/obelisk_naboo_theed_style_3.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/static/flora/flora_decd_scorched_massassi.lua
3
2252
--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_flora_flora_decd_scorched_massassi = object_static_flora_shared_flora_decd_scorched_massassi:new { } ObjectTemplates:addTemplate(object_static_flora_flora_decd_scorched_massassi, "object/static/flora/flora_decd_scorched_massassi.iff")
agpl-3.0
sprunk/Zero-K
LuaUI/Widgets/tipdispenser.lua
2
15983
local widgetName = "Automatic Tip Dispenser" local playerID = Spring.GetMyPlayerID() local rank = playerID and select(9, Spring.GetPlayerInfo(playerID, false)) function widget:GetInfo() return { name = widgetName, desc = "v0.4 Teach you to play the game, one tip at a time", author = "KingRaptor; original by zwzsg", date = "July 30th, 2009", license = "Public Domain", layer = 8, enabled = false, -- (rank and rank == 1) or true, handler = true, } end ------------------------ -- speedups local spGetGameSeconds = Spring.GetGameSeconds local spGetMyTeamID = Spring.GetMyTeamID local spGetTeamUnitsByDefs = Spring.GetTeamUnitsByDefs local spGetTeamResources = Spring.GetTeamResources ------------------------ -- CONFIG ------------------------ VFS.Include("LuaUI/Configs/tipconfig.lua",nil) local tipsList = {} local unitTipsAvailable = {} local alreadyDisplayedTips = {} local tipPeriod = 8 -- How long each tip is displayed, in seconds local FontSize = nil local SoundTable = {} local SoundToggle = true local MouseButton = nil local generalTipsIndex = math.random(1, #generalTips) local airSpotted = false local nukeSpotted = false local updateFrequency = tipPeriod local myTeam = spGetMyTeamID() ----------------------- -- minimum complexity of tips to display -- 1 = new to RTS -- 2 = a bit of experience with ZK -- 3 = up to intermediate local helpLevel = rank and math.min(rank, 3) or 1 -- Chili classes local Chili local Button local Label local Window local Panel local TextBox local Image local Control -- Chili instances local screen0 local window local image local textBox local close local closeImage local nextTip local function SortCompareTables(t1,t2) table.sort(t1) table.sort(t2) if #t1~=#t2 then return false else for k=1,#t1 do if t1[k]~=t2[k] then return false end end return true end end -- The round2 function from http://lua-users.org/wiki/SimpleRound fails on 0.11 local function FormatNbr(x,digits) local _,fractional = math.modf(x) if fractional==0 then return x elseif fractional<0.01 then return math.floor(x) elseif fractional>0.99 then return math.ceil(x) else local ret=string.format("%."..(digits or 0).."f",x) if digits and digits>0 then while true do local last = string.sub(ret,string.len(ret)) if last=="0" or last=="." then ret = string.sub(ret,1,string.len(ret)-1) end if last~="0" then break end end end return ret end end local function MakePlural(str) local ending=string.sub(str,string.len(str),string.len(str)) if ending=="y" then return string.sub(str,1,string.len(str)-1).."ies" elseif ending==">" or ending=="s" then return str else return str.."s" end end local function WriteString(str, unitDef, plural) local def = (type(unitDef) == "number") and UnitDefs[unitDef] or UnitDefNames[unitDef] local name = Spring.Utilities.GetHumanName(def) if plural then name = MakePlural(name) end -- todo: use i18n for plurals return string.gsub(str, "<name>", name, 1) end local function AddTip(str, level, weight, sound, prereq) if prereq and (not alreadyDisplayedTips[prereq]) then return end level = level or 1 if level < helpLevel then return end weight = weight or 1 local text, sound = str or "", sound or nil tipsList[#tipsList + 1] = {weight = weight, text = text, sound = sound} end local function AddTipOnce(str, level, weight, sound, prereq) if alreadyDisplayedTips[str] then return end AddTip(str, level, weight, sound, prereq) end local function CountMy(unitKind) local defs = {} for i in pairs(unitKind) do defs[#defs+1] = i end local got=spGetTeamUnitsByDefs(myTeam, defs) if got==nil then return 0 else return #got end end local function CountTheirs(unitKind) local nGot=0 local defs = {} for i in pairs(unitKind) do defs[#defs+1] = i end local teams = Spring.GetTeamList() for i=1,#teams do local team = teams[i] if not Spring.AreTeamsAllied(team,myTeam) then nGot=nGot+#(spGetTeamUnitsByDefs(team,defs) or {}) end end return nGot end local function Prevalence(unitKind) local Total=Spring.GetTeamUnitCount(myTeam) if Total==0 then return 0 else return CountMy(unitKind)/Total end end local function IsSelected(unitKind) local units = spGetTeamUnitsByDefs(myTeam,unitKind) for i=1,#units do if Spring.IsUnitSelected(units[i]) then return true end end return false end -- used to get weighted sum of units in existence and selected local function PSC(unitKind,PrevalenceWeight,isSelectedWeight) PrevalenceWeight=PrevalenceWeight or 1 isSelectedWeight=isSelectedWeight or 1 return PrevalenceWeight*Prevalence(unitKind)+isSelectedWeight*(IsSelected(unitKind) and 1 or 0) end local function GetDamage(predator,prey) return WeaponDefs[UnitDefs[UnitDefNames[predator].id].weapons[1].weaponDef].damages[UnitDefs[UnitDefNames[prey].id].armorType] end local function GetTipsList() local t=myTeam tipsList={} -- add unit tips from available list for name, _ in pairs(unitTipsAvailable) do AddTipOnce(unpack(unitTips[name])) end -- Always shown tips -- General interface tips AddTipOnce("Use Ctrl+F11 to to move screen elements around.", 1) AddTipOnce("Press Esc to toggle the game menu, where you can alter settings.", 1) AddTipOnce("Use Mouse Wheel to zoom in and out. Hold down the mousewheel and drag to pan.", 1) -- Beginning: Getting the commander to build the starting base --[[ if CountMy(energy) + CountMy(mex) <= 3 and spGetGameSeconds() < 30 then if Spring.GetTeamUnitCount(t)==0 then if Game.startPosType==2 and Spring.GetGameFrame()==0 then AddTip("Pick a starting position, then click ready.\nLook for areas with metal spots (press F4 to toggle the metal map). Do not spawn in a cliff!", 1, 5) --else --AddTip("Game is loading.", 3, 10000) end elseif CountMy(commander)==1 then if Spring.GetSelectedUnitsCount()==0 then AddTip("Select your commander and start building your base. You can select something to build by pressing right click and drawing a gesture, or using the buttons in the menu (bottom right)", 1) end local econStr1 = "Metal is the principal game resource. Build some Metal Extractors (mexes) on the metal spots." local econStr2 = "Energy is also essential for your economy to function. Build some Solar Collectors or Wind Generators." local econStr3 = "Buildpower, often described as the third resource, is the measure of how much you can spend at once. We'll discuss that later." AddTip(econStr1, 1, 3) AddTip(econStr2, 1, 3, nil, econStr1) AddTip(econStr3, 1, 3, nil, econStr2) end -- Beginning: Getting commander) to build the first fac elseif CountMy(energy) >= 3 and CountMy(mex)>= 1 and CountMy(factory) == 0 and spGetGameSeconds() < 60 then AddTip("Use your commander to make a factory. The Shieldbot Factory is a good choice for beginners.\nYour first factory is \255\255\64\0FREE\008.", 1, 5) -- Once the player has started getting stuff done else ]]-- --[[if CountMy(factory)>=1 then AddTipOnce("Build some units with that factory. You'll want to start with a couple of constructors for expansion and a few raiders for early combat.", 1, 10) end --]] if CountMy(energy)>= 5 then AddTipOnce("Connect energy to your mexes to allow them to \255\255\64\0overdrive\008, which uses excess energy to produce more metal.", 1) end if CountMy(energy)>= 5 and (IsSelected(mex) or IsSelected(energy)) then local odStr1 = "The circles around your mexes and energy (when selected) indicate their pylon radius.\nTwo econ buildings are connected if their circles overlap." local odStr2 = "The color of a pylon grid denotes its efficiency. Blue is good, red is bad. Pink is unlinked." AddTipOnce(odStr1, 2, 1) AddTipOnce(odStr2, 2, 1, nil, odStr1) end if CountMy(raider) >= 1 then local raiderStr1 = "Fast but fragile, raiders are suitable for harassing the enemy's economy, as well as jumping skirmishers and the like." local raiderStr2 = "Raiders should avoid charging enemy defenses or riot units head-on." AddTipOnce(raiderStr1, 1, 3) AddTipOnce(raiderStr2,1, 2, nil, raiderStr1) end if CountMy(assault) >= 1 then AddTipOnce("Assault units are generally good all-rounders, but they particularly excel at punching through defensive lines.", 1, 3) end if CountMy(skirm) >= 1 then AddTipOnce("Skirmishers are medium-ranged units, ideal for picking off riot units and some defenses from afar. They are vulnerable to raider charges.", 1, 3) end if CountMy(riot) >= 1 then AddTipOnce("Riot units are slow, short-ranged, and extremely deadly. Use them to counter raiders, but do not attack defenses head-on with them.", 1, 3) end if CountMy(arty) >= 1 then AddTipOnce("Artillery excels at shelling enemy defenses from a safe distance. It is usually (though not always) relatively ineffective against mobile units.", 1, 3) end if CountMy(bomber) >= 1 then AddTipOnce("Bombers require air repair pads to reload after each run. The Aircraft Plant comes with one free pad, but you should build more to avoid long waiting lines.", 2, 5) end local mlevel, mstore = spGetTeamResources(myTeam, "metal") if mlevel/mstore >= 0.95 then AddTip("Your metal storage is overflowing. You should get more buildpower and spend it.", 2, 5) end local elevel, estore = spGetTeamResources(myTeam, "energy") if elevel < 80 and mlevel > elevel then AddTip("Your energy reserves are running dangerously low. You should build more energy structures.", 3, 10) end --always tips AddTipOnce("Left click to select a unit.\nKeep button down to drag a selection box.",1) AddTipOnce("Left click in empty area to deselect units.",1) AddTipOnce("Right click to issue default order.\nKeep the button down to draw a formation line.",1) AddTipOnce("Left click an action on the menu in the bottom-left, then left click in the terrain to give specific orders.",1) AddTipOnce("Use the SHIFT key to enqueue orders.",1) AddTipOnce("Multiple constructors can build a structure together, or assist a factory.",2) AddTipOnce("Keep making constructors and nanotowers as needed to spend your resources.", 2) AddTipOnce("Avoid having large amounts of metal sitting in your storage. Spend it on combat units.", 2) --end end local function GetGeneralTip(index) local index = index or generalTipsIndex if index > #generalTips then index = 1 end local str = generalTips[index] generalTipsIndex = index + 1 return str, nil end -- Pick a contextual tip local function GetRandomTip() GetTipsList()-- Create tipsList according to what's going on if #tipsList >=2 then local w=0 for t=1, #tipsList do w=w+tipsList[t].weight end local d = w*math.random() w=0 for t=1, #tipsList do w=w+tipsList[t].weight if w>=d then local text, sound = tipsList[t].text,tipsList[t].sound --table.remove(tipsList, t) return text, sound end end return "Could not fetch tip",nil elseif #tipsList==1 then local text, sound = tipsList[1].text,tipsList[1].sound --tipsList[1] = nil return text, sound else return GetGeneralTip() end end -- need to regenerate textBox each time because TextBox:SetText() doesn't always do so local function GenerateTextBox(str) if textBox then window:RemoveChild(textBox) end textBox = TextBox:New{ parent = window; text = str or '', x = image.width + image.x + 5, y = 16; width = window.width - 90 - 30, valign = "ascender"; align = "left"; font = { size = 12; shadow = true; }, } end local timer = 0 local function SetTip(str) local str = str or GetRandomTip() alreadyDisplayedTips[str] = true --Spring.Echo("Writing tip: "..str) GenerateTextBox(str) timer = 0 -- resets update timer if called by something other than Update() end function widget:Update(dt) timer = timer + dt if timer > updateFrequency then myTeam = spGetMyTeamID() -- just refresh for fun SetTip() timer = 0 end end --tells people not to build the expensive stuff early function widget:UnitCommand(unitID, unitDefID, unitTeam, cmdID, cmdParams, cmdOptions) if unitTeam ~= myTeam then return end local t = Spring.GetGameSeconds() local str if superweapon[-cmdID] and t < TIMER_SUPERWEAPON then str = WriteString(stringSuperweapon, -cmdID) elseif adv_factory[-cmdID] and t < TIMER_ADV_FACTORY then str = WriteString(stringAdvFactory, -cmdID) elseif expensive_unit[-cmdID] and t < TIMER_EXPENSIVE_UNITS then str = WriteString(stringExpensiveUnits, -cmdID) end if str then SetTip(str) end -- bring up the tip NOW end function widget:UnitCreated(unitID, unitDefID, unitTeam) if unitTeam ~= myTeam then return end local name = UnitDefs[unitDefID].name if unitTips[name] then unitTipsAvailable[name] = true end end function widget:UnitEnteredLos(unitID, unitTeam) if not Spring.AreTeamsAllied(unitTeam, myTeam) then local unitDef = UnitDefs[Spring.GetUnitDefID(unitID)] if unitDef.canFly and not airSpotted then SetTip(stringAirSpotted) airSpotted = true elseif unitDef.name == "staticnuke" and not nukeSpotted then SetTip(stringNukeSpotted) nukeSpotted = true end end end function widget:Initialize() if VFS.FileExists("mission.lua") then widgetHandler:RemoveWidget() -- no need for tips in mission end -- setup Chili Chili = WG.Chili Button = Chili.Button Label = Chili.Label Window = Chili.Window Panel = Chili.Panel TextBox = Chili.TextBox Image = Chili.Image Control = Chili.Control screen0 = Chili.Screen0 window = Window:New{ parent = screen0, name = 'tipwindow'; width = 320, height = 100, right = 0; bottom = 350; dockable = true; draggable = false, resizable = false, tweakDraggable = true, tweakResizable = false, minWidth = MIN_WIDTH, minHeight = MIN_HEIGHT, padding = {5, 0, 5, 0}, --itemMargin = {0, 0, 0, 0}, } image = Image:New { width = 80, height = 80, bottom = 10, y= 10; x= 5; keepAspect = true, file = "LuaUI/Images/advisor2.jpg"; parent = window; } GenerateTextBox() close = Button:New { width = 20, height = 20, y = 4, right = 3, parent=window; padding = {0, 0, 0,0}, margin = {0, 0, 0, 0}, backgroundColor = {1, 1, 1, 0.4}, caption=""; tooltip = "Close Tip Dispenser"; OnClick = {function() Spring.SendCommands("luaui disablewidget ".. widgetName) end} } closeImage = Image:New { width = 16, height = 16, x = 2, y = 2, keepAspect = false, file = "LuaUI/Images/closex_16.png"; parent = close; } --sound code --[[ local TipSoundFileList=VFS.DirList("sounds/tips") for _,FileName in ipairs(TipSoundFileList) do local ext=string.lower(string.sub(FileName,-4)) if ext==".ogg" or ext==".wav" then local pref=string.match(FileName,".*%/(%d+)%.%a+") if pref and (ext==".ogg" or SoundTable[tonumber(pref) or pref]==nil) then SoundTable[tonumber(pref) or pref]=FileName end end end -- List the tips that do not contain side specific words: for _,t in ipairs({87,88,711,712,713,11,12,21,22,23,24,25,26,27,71,72,73,81,82,83,84,85,86}) do for s=1000,5000,1000 do if not SoundTable[s+t] then-- If they have no side specific voice file if not SoundTable[3000+t] then Spring.Echo("No sound for tip #"..s+t..", default #"..(3000+t).." not available either!") else SoundTable[s+t]=SoundTable[3000+t]-- Make them use the Network voice --Spring.Echo("No sound for tip #"..s+t..", defaulting to "..(3000+t)) end end end end local function QS(a) if type(a)=="number" then return tostring(a) elseif type(a)=="string" then return "\""..a.."\"" else return "("..tostring(type(a))..")"..a end end if Spring.IsDevLuaEnabled() then Spring.Echo("<SoundTable>") for key,value in pairs(SoundTable) do Spring.Echo("Soundtable["..QS(key).."]="..QS(value)) end Spring.Echo("</SoundTable>") end --]] SetTip() end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/building/military/military_base_police_station_imperial_style_01.lua
3
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_building_military_military_base_police_station_imperial_style_01 = object_building_military_shared_military_base_police_station_imperial_style_01:new { } ObjectTemplates:addTemplate(object_building_military_military_base_police_station_imperial_style_01, "object/building/military/military_base_police_station_imperial_style_01.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/mission/quest_item/kylantha_q2_needed.lua
3
2272
--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_kylantha_q2_needed = object_tangible_mission_quest_item_shared_kylantha_q2_needed:new { } ObjectTemplates:addTemplate(object_tangible_mission_quest_item_kylantha_q2_needed, "object/tangible/mission/quest_item/kylantha_q2_needed.iff")
agpl-3.0
beauli/kong
spec/03-plugins/06-jwt/02-api_spec.lua
4
8635
local helpers = require "spec.helpers" local cjson = require "cjson" local jwt_secrets = helpers.dao.jwt_secrets local fixtures = require "spec.03-plugins.06-jwt.fixtures" describe("Plugin: jwt (API)", function() local admin_client, consumer, jwt_secret setup(function() assert(helpers.start_kong()) admin_client = helpers.admin_client() end) teardown(function() if admin_client then admin_client:close() end helpers.stop_kong() end) describe("/consumers/:consumer/jwt/", function() setup(function() consumer = assert(helpers.dao.consumers:insert { username = "bob" }) end) describe("POST", function() local jwt1, jwt2 teardown(function() if jwt1 == nil then return end jwt_secrets:delete(jwt1) jwt_secrets:delete(jwt2) end) it("creates a jwt secret", function() local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = {}, headers = { ["Content-Type"] = "application/json" } }) local body = cjson.decode(assert.res_status(201, res)) assert.equal(consumer.id, body.consumer_id) jwt1 = body end) it("accepts any given `secret` and `key` parameters", function() local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = { key = "bob2", secret = "tooshort" }, headers = { ["Content-Type"] = "application/json" } }) local body = cjson.decode(assert.res_status(201, res)) assert.equal("bob2", body.key) assert.equal("tooshort", body.secret) jwt2 = body end) it("accepts a valid public key for RS256 when posted urlencoded", function() local rsa_public_key = fixtures.rs256_public_key rsa_public_key = rsa_public_key:gsub("\n", "\r\n") rsa_public_key = rsa_public_key:gsub("([^%w %-%_%.%~])", function(c) return string.format ("%%%02X", string.byte(c)) end) rsa_public_key = rsa_public_key:gsub(" ", "+") local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = { key = "bob3", algorithm = "RS256", rsa_public_key = rsa_public_key }, headers = { ["Content-Type"] = "application/x-www-form-urlencoded" } }) assert.response(res).has.status(201) local json = assert.response(res).has.jsonbody() assert.equal("bob3", json.key) end) it("accepts a valid public key for RS256 when posted as json", function() local rsa_public_key = fixtures.rs256_public_key local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = { key = "bob4", algorithm = "RS256", rsa_public_key = rsa_public_key }, headers = { ["Content-Type"] = "application/json" } }) assert.response(res).has.status(201) local json = assert.response(res).has.jsonbody() assert.equal("bob4", json.key) end) it("fails with missing `rsa_public_key` parameter for RS256 algorithms", function () local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = { key = "bob5", algorithm = "RS256" }, headers = { ["Content-Type"] = "application/json" } }) assert.response(res).has.status(400) local json = assert.response(res).has.jsonbody() assert.equal("no mandatory 'rsa_public_key'", json.message) end) it("fails with an invalid rsa_public_key for RS256 algorithms", function () local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = { key = "bob5", algorithm = "RS256", rsa_public_key = "test", }, headers = { ["Content-Type"] = "application/json" } }) assert.response(res).has.status(400) local json = assert.response(res).has.jsonbody() assert.equal("'rsa_public_key' format is invalid", json.message) end) it("does not fail when `secret` parameter for HS256 algorithms is missing", function () local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = { key = "bob5", algorithm = "HS256", }, headers = { ["Content-Type"] = "application/json" } }) assert.response(res).has.status(201) local json = assert.response(res).has.jsonbody() assert.string(json.secret) assert.equals(32, #json.secret) assert.matches("^%x+$", json.secret) end) end) describe("PUT", function() it("creates and update", function() local res = assert(admin_client:send { method = "POST", path = "/consumers/bob/jwt/", body = {}, headers = { ["Content-Type"] = "application/json" } }) local body = cjson.decode(assert.res_status(201, res)) assert.equal(consumer.id, body.consumer_id) -- For GET tests jwt_secret = body end) end) describe("GET", function() it("retrieves all", function() local res = assert(admin_client:send { method = "GET", path = "/consumers/bob/jwt/", }) local body = cjson.decode(assert.res_status(200, res)) assert.equal(4, #(body.data)) end) end) end) describe("/consumers/:consumer/jwt/:id", function() describe("GET", function() it("retrieves by id", function() local res = assert(admin_client:send { method = "GET", path = "/consumers/bob/jwt/"..jwt_secret.id, }) assert.res_status(200, res) end) it("retrieves by key", function() local res = assert(admin_client:send { method = "GET", path = "/consumers/bob/jwt/"..jwt_secret.key, }) assert.res_status(200, res) end) end) describe("PATCH", function() it("updates a credential by id", function() local res = assert(admin_client:send { method = "PATCH", path = "/consumers/bob/jwt/"..jwt_secret.id, body = { key = "alice", secret = "newsecret" }, headers = { ["Content-Type"] = "application/json" } }) local body = assert.res_status(200, res) jwt_secret = cjson.decode(body) assert.equal("newsecret", jwt_secret.secret) end) it("updates a credential by key", function() local res = assert(admin_client:send { method = "PATCH", path = "/consumers/bob/jwt/"..jwt_secret.key, body = { key = "alice", secret = "newsecret2" }, headers = { ["Content-Type"] = "application/json" } }) local body = assert.res_status(200, res) jwt_secret = cjson.decode(body) assert.equal("newsecret2", jwt_secret.secret) end) end) describe("DELETE", function() it("deletes a credential", function() local res = assert(admin_client:send { method = "DELETE", path = "/consumers/bob/jwt/"..jwt_secret.id, body = {}, headers = { ["Content-Type"] = "application/json" } }) assert.res_status(204, res) end) it("returns proper errors", function() local res = assert(admin_client:send { method = "DELETE", path = "/consumers/bob/jwt/".."blah", body = {}, headers = { ["Content-Type"] = "application/json" } }) assert.res_status(404, res) local res = assert(admin_client:send { method = "DELETE", path = "/consumers/bob/jwt/".."00000000-0000-0000-0000-000000000000", body = {}, headers = { ["Content-Type"] = "application/json" } }) assert.res_status(404, res) end) end) end) end)
apache-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/hair/human/hair_human_male_s31.lua
3
2244
--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_human_hair_human_male_s31 = object_tangible_hair_human_shared_hair_human_male_s31:new { } ObjectTemplates:addTemplate(object_tangible_hair_human_hair_human_male_s31, "object/tangible/hair/human/hair_human_male_s31.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/bearded_jax.lua
3
2160
--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_bearded_jax = object_mobile_shared_bearded_jax:new { } ObjectTemplates:addTemplate(object_mobile_bearded_jax, "object/mobile/bearded_jax.iff")
agpl-3.0
Serg-Norseman/GEDKeeper
scripts/view_brothers.lua
3
2462
list = {}; function add_list(level, person) for k = 1, #list do if (list[k][2] == person) then return; end end list[#list+1] = { level, person }; end function print_list() gk_print("Братья и сестры ["..#list.."]:"); for k = 1, #list do level = list[k][1]; p = list[k][2]; gk_print("["..level.."] "..get_desc(level, p)..": "..gt_get_person_name(p)); end end function get_desc(level, person) sx = gt_get_person_sex(person); local simple = false; local x = ""; if (level == 1) then simple = true; elseif (level == 2) then x = "двою"; elseif (level == 3) then x = "трою"; elseif (level == 4) then x = "четверою"; elseif (level == 5) then x = "пятию"; elseif (level == 6) then x = "шестию"; end if (sx == "M") then if (simple) then kin = "родной брат"; else kin = "родный брат"; end elseif (sx == "F") then kin = "родная сестра"; end return x..kin; end function do_descendants(source, person, level, sub_level) if (person ~= nil) then local spouses = gt_get_person_spouses_count(person); for i = 0, spouses-1 do local spouse_family = gt_get_person_spouse_family(person, i); local childs = gt_get_family_childs_count(spouse_family); for k = 0, childs-1 do local child = gt_get_family_child(spouse_family, k); local y = sub_level - 1; if (child ~= source) then if (y == 0) then add_list(level, child); end if (y > 0) then do_descendants(person, child, level, sub_level - 1); end end end end end end function do_ancestors(person, level) if (person ~= nil) then --gk_print(">>>"..level..": "..gt_get_person_name(person)); local parents_family = gt_get_person_parents_family(person); if (parents_family ~= nil) then local father = gt_get_family_husband(parents_family); local mother = gt_get_family_wife(parents_family); local x = level + 1; do_descendants(person, father, x, x); do_descendants(person, mother, x, x); do_ancestors(father, x); do_ancestors(mother, x); end end end local p = gt_select_record(rtIndividual); do_ancestors(p, 0); print_list();
gpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/mobile/giant_horned_krevol.lua
3
2192
--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_giant_horned_krevol = object_mobile_shared_giant_horned_krevol:new { } ObjectTemplates:addTemplate(object_mobile_giant_horned_krevol, "object/mobile/giant_horned_krevol.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/component/armor/armor_segment_bone_donkuwah.lua
3
2296
--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_armor_armor_segment_bone_donkuwah = object_tangible_component_armor_shared_armor_segment_bone_donkuwah:new { } ObjectTemplates:addTemplate(object_tangible_component_armor_armor_segment_bone_donkuwah, "object/tangible/component/armor/armor_segment_bone_donkuwah.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/component/food/container_small_glass.lua
3
2645
--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_container_small_glass = object_tangible_component_food_shared_container_small_glass:new { numberExperimentalProperties = {1, 1, 1}, experimentalProperties = {"XX", "XX", "XX"}, experimentalWeights = {1, 1, 1}, experimentalGroupTitles = {"null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "quantity_bonus"}, experimentalMin = {0, 0, 1}, experimentalMax = {0, 0, 1}, experimentalPrecision = {0, 0, 0}, experimentalCombineType = {0, 0, 1}, } ObjectTemplates:addTemplate(object_tangible_component_food_container_small_glass, "object/tangible/component/food/container_small_glass.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/components/shield_generator/shd_incom_rayshield_r7.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_ship_components_shield_generator_shd_incom_rayshield_r7 = object_tangible_ship_components_shield_generator_shared_shd_incom_rayshield_r7:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_shield_generator_shd_incom_rayshield_r7, "object/tangible/ship/components/shield_generator/shd_incom_rayshield_r7.iff")
agpl-3.0
Echoes91/mobs
spider.lua
1
2071
-- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture) mobs:register_mob("mobs:spider", { type = "monster", passive = false, attack_type = "dogfight", reach = 2, damage = 3, hp_min = 20, hp_max = 40, armor = 200, collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7}, visual = "mesh", mesh = "mobs_spider.x", textures = { {"mobs_spider.png"}, }, visual_size = {x = 7, y = 7}, makes_footstep_sound = false, sounds = { random = "mobs_spider", attack = "mobs_spider", }, walk_velocity = 1, run_velocity = 3, jump = true, view_range = 15, floats = 0, drops = { {name = "farming:string", chance = 1, min = 1, max = 5}, {name = "ethereal:crystal_spike", chance = 15, min = 1, max = 2}, }, water_damage = 5, lava_damage = 5, light_damage = 0, animation = { speed_normal = 15, speed_run = 15, stand_start = 1, stand_end = 1, walk_start = 20, walk_end = 40, run_start = 20, run_end = 40, punch_start = 50, punch_end = 90, }, }) mobs:register_spawn("mobs:spider", {"default:desert_stone", "ethereal:crystal_dirt"}, 5, 0, 7000, 1, 71) mobs:register_egg("mobs:spider", "Spider", "mobs_cobweb.png", 1) -- ethereal crystal spike compatibility if not minetest.get_modpath("ethereal") then minetest.register_alias("ethereal:crystal_spike", "default:sandstone") end -- cobweb minetest.register_node("mobs:cobweb", { description = "Cobweb", drawtype = "plantlike", visual_scale = 1.1, tiles = {"mobs_cobweb.png"}, inventory_image = "mobs_cobweb.png", paramtype = "light", sunlight_propagates = true, liquid_viscosity = 11, liquidtype = "source", liquid_alternative_flowing = "mobs:cobweb", liquid_alternative_source = "mobs:cobweb", liquid_renewable = false, liquid_range = 0, walkable = false, groups = {snappy = 1, liquid = 3}, drop = "farming:cotton", sounds = default.node_sound_leaves_defaults(), }) minetest.register_craft({ output = "mobs:cobweb", recipe = { {"farming:string", "", "farming:string"}, {"", "farming:string", ""}, {"farming:string", "", "farming:string"}, } })
mit
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/sign/municipal/municipal_sign_hanging_university.lua
3
2316
--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_sign_municipal_municipal_sign_hanging_university = object_tangible_sign_municipal_shared_municipal_sign_hanging_university:new { } ObjectTemplates:addTemplate(object_tangible_sign_municipal_municipal_sign_hanging_university, "object/tangible/sign/municipal/municipal_sign_hanging_university.iff")
agpl-3.0
ld-test/kong
kong/vendor/classic.lua
7
1141
--- -- classic, object model. -- -- Copyright (c) 2014, rxi -- -- This module is free software; you can redistribute it and/or modify it under -- the terms of the MIT license. See LICENSE for details. -- -- Base object model used with Kong, see [classic github repo](https://github.com/rxi/classic) for usage information local Object = {} Object.__index = Object function Object:new() end function Object:extend() local cls = {} for k, v in pairs(self) do if k:find("__") == 1 then cls[k] = v end end cls.__index = cls cls.super = self setmetatable(cls, self) return cls end function Object:implement(...) for _, cls in pairs({...}) do for k, v in pairs(cls) do if self[k] == nil and type(v) == "function" then self[k] = v end end end end function Object:is(T) local mt = getmetatable(self) while mt do if mt == T then return true end mt = getmetatable(mt) end return false end function Object:__tostring() return "Object" end function Object:__call(...) local obj = setmetatable({}, self) obj:new(...) return obj end return Object
apache-2.0
sprunk/Zero-K
units/energysingu.lua
1
2915
unitDef = { unitname = [[energysingu]], name = [[Singularity Reactor]], description = [[Large Powerplant (+225) - HAZARDOUS]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildCostMetal = 4000, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 9, buildingGroundDecalSizeY = 9, buildingGroundDecalType = [[energysingu_aoplane.dds]], buildPic = [[energysingu.png]], category = [[SINK UNARMED]], collisionVolumeOffsets = [[0 0 0]], collisionVolumeScales = [[120 120 120]], collisionVolumeType = [[ellipsoid]], corpse = [[DEAD]], customParams = { pylonrange = 150, aimposoffset = [[0 12 0]], midposoffset = [[0 12 0]], modelradius = [[60]], removewait = 1, selectionscalemult = 1.15, }, energyMake = 225, energyUse = 0, explodeAs = [[SINGULARITY]], footprintX = 7, footprintZ = 7, iconType = [[energysingu]], idleAutoHeal = 5, idleTime = 1800, maxDamage = 4000, maxSlope = 18, maxVelocity = 0, maxWaterDepth = 0, minCloakDistance = 150, noAutoFire = false, objectName = [[fus.s3o]], onoffable = false, script = [[energysingu.lua]], selfDestructAs = [[SINGULARITY]], sightDistance = 273, turnRate = 0, useBuildingGroundDecal = true, yardMap = [[ooooooooooooooooooooooooooooooooooooooooooooooooo]], featureDefs = { DEAD = { blocking = true, featureDead = [[HEAP]], footprintX = 7, footprintZ = 7, object = [[fus_dead.s3o]], }, HEAP = { blocking = false, footprintX = 7, footprintZ = 7, object = [[debris4x4a.s3o]], }, }, weaponDefs = { SINGULARITY = { areaOfEffect = 1280, craterMult = 1, edgeEffectiveness = 0, explosionGenerator = "custom:grav_danger_spikes", explosionSpeed = 100000, impulseBoost = 100, impulseFactor = -10, name = "Naked Singularity", soundHit = "explosion/ex_ultra1", damage = { default = 9500, }, }, }, } return lowerkeys({ energysingu = unitDef })
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/mobile/tatooine/sennex_guard.lua
1
1779
sennex_guard = Creature:new { objectName = "@mob/creature_names:sennex_guard", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "sennex", faction = "pirate", level = 32, chanceHit = 0.4, damageMin = 310, damageMax = 330, baseXp = 3279, baseHAM = 8700, baseHAMmax = 10700, armor = 0, resists = {0,0,0,30,-1,30,-1,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY, creatureBitmask = PACK + KILLER, optionsBitmask = AIENABLED, diet = HERBIVORE, templates = {"object/mobile/dressed_sennex_pirate_01.iff", "object/mobile/dressed_sennex_pirate_02.iff", "object/mobile/dressed_sennex_pirate_03.iff", "object/mobile/dressed_sennex_pirate_04.iff", "object/mobile/dressed_sennex_pirate_05.iff", "object/mobile/dressed_sennex_pirate_06.iff", "object/mobile/dressed_sennex_pirate_07.iff", "object/mobile/dressed_sennex_pirate_08.iff", "object/mobile/dressed_sennex_pirate_09.iff", "object/mobile/dressed_sennex_pirate_10.iff", "object/mobile/dressed_sennex_pirate_11.iff", "object/mobile/dressed_sennex_pirate_12.iff"}, lootGroups = { { groups = { {group = "junk", chance = 3000000}, {group = "wearables_common", chance = 1500000}, {group = "wearables_uncommon", chance = 500000}, {group = "heavy_weapons", chance = 2000000}, {group = "tailor_components", chance = 1500000}, {group = "loot_kit_parts", chance = 1500000} } } }, weapons = {"pirate_weapons_heavy"}, conversationTemplate = "", reactionStf = "@npc_reaction/slang", attacks = merge(brawlermaster,marksmanmaster) } CreatureTemplates:addCreatureTemplate(sennex_guard, "sennex_guard")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/component/bio/objects.lua
3
84245
--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_component_bio_shared_base_bio_component_clothing_casual = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@component_d:base_bio_component", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@component_n:base_bio_component", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 219382584, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_base_bio_component_clothing_casual, "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff") object_tangible_component_bio_shared_base_bio_component_clothing_field = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@component_d:base_bio_component", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@component_n:base_bio_component", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2494958129, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_base_bio_component_clothing_field, "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff") object_tangible_component_bio_shared_base_bio_component_clothing_formal = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_base_bio_component_clothing_formal.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@component_d:base_bio_component", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@component_n:base_bio_component", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3815377986, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_base_bio_component_clothing_formal, "object/tangible/component/bio/shared_base_bio_component_clothing_formal.iff") object_tangible_component_bio_shared_base_bio_component_food = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_base_bio_component_food.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@component_d:base_bio_component", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@component_n:base_bio_component", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2633814515, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_base_bio_component_food, "object/tangible/component/bio/shared_base_bio_component_food.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_charisma = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_charisma.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_charisma", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_charisma", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1272895118, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_charisma, "object/tangible/component/bio/shared_bio_component_clothing_casual_charisma.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_charisma_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_charisma_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_charisma_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_charisma_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2790898256, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_charisma_2, "object/tangible/component/bio/shared_bio_component_clothing_casual_charisma_2.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_entertainer = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_entertainer.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_chromatic.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_entertainer", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_entertainer", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1970227985, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_entertainer, "object/tangible/component/bio/shared_bio_component_clothing_casual_entertainer.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_entertainer_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_entertainer_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_chromatic.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_entertainer_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_entertainer_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3713366872, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_entertainer_2, "object/tangible/component/bio/shared_bio_component_clothing_casual_entertainer_2.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_medic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_medic.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_patches_enhanced.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_medic", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_medic", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 55693017, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_medic, "object/tangible/component/bio/shared_bio_component_clothing_casual_medic.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_medic_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_medic_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_patches_enhanced.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_medic_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_medic_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 608421917, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_medic_2, "object/tangible/component/bio/shared_bio_component_clothing_casual_medic_2.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_taming = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_taming.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_taming", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_taming", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3483367767, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_taming, "object/tangible/component/bio/shared_bio_component_clothing_casual_taming.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_taming_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_taming_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_taming_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_taming_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2121215649, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_taming_2, "object/tangible/component/bio/shared_bio_component_clothing_casual_taming_2.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_training = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_training.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_food_flavoring.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_training", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_training", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 861669010, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_training, "object/tangible/component/bio/shared_bio_component_clothing_casual_training.iff") object_tangible_component_bio_shared_bio_component_clothing_casual_training_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_casual_training_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_food_flavoring.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_casual_training_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_casual_training_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3979863035, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_casual.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_casual_training_2, "object/tangible/component/bio/shared_bio_component_clothing_casual_training_2.iff") object_tangible_component_bio_shared_bio_component_clothing_field_armor = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_armor.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_food_flavoring.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_armor", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_armor", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1523403607, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_armor, "object/tangible/component/bio/shared_bio_component_clothing_field_armor.iff") object_tangible_component_bio_shared_bio_component_clothing_field_armor_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_armor_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_food_flavoring.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_armor_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_armor_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3097107766, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_armor_2, "object/tangible/component/bio/shared_bio_component_clothing_field_armor_2.iff") object_tangible_component_bio_shared_bio_component_clothing_field_bleeding = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_bleeding.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_patches.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_bleeding", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_bleeding", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4173771067, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_bleeding, "object/tangible/component/bio/shared_bio_component_clothing_field_bleeding.iff") object_tangible_component_bio_shared_bio_component_clothing_field_bleeding_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_bleeding_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_patches.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_bleeding_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_bleeding_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1801496294, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_bleeding_2, "object/tangible/component/bio/shared_bio_component_clothing_field_bleeding_2.iff") object_tangible_component_bio_shared_bio_component_clothing_field_camo = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_camo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_camo", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_camo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3468672511, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_camo, "object/tangible/component/bio/shared_bio_component_clothing_field_camo.iff") object_tangible_component_bio_shared_bio_component_clothing_field_camo_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_camo_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_camo_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_camo_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1895651741, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_camo_2, "object/tangible/component/bio/shared_bio_component_clothing_field_camo_2.iff") object_tangible_component_bio_shared_bio_component_clothing_field_cover = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_cover.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_crystalline.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_cover", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_cover", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1495044005, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_cover, "object/tangible/component/bio/shared_bio_component_clothing_field_cover.iff") object_tangible_component_bio_shared_bio_component_clothing_field_cover_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_cover_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_crystalline.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_cover_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_cover_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 467211451, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_cover_2, "object/tangible/component/bio/shared_bio_component_clothing_field_cover_2.iff") object_tangible_component_bio_shared_bio_component_clothing_field_defense = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_defense.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_patches.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_defense", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_defense", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4223028089, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_defense, "object/tangible/component/bio/shared_bio_component_clothing_field_defense.iff") object_tangible_component_bio_shared_bio_component_clothing_field_defense_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_defense_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_patches.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_defense_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_defense_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 58582226, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_defense_2, "object/tangible/component/bio/shared_bio_component_clothing_field_defense_2.iff") object_tangible_component_bio_shared_bio_component_clothing_field_intimidate = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_intimidate.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_intimidate", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_intimidate", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2984936227, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_intimidate, "object/tangible/component/bio/shared_bio_component_clothing_field_intimidate.iff") object_tangible_component_bio_shared_bio_component_clothing_field_intimidate_2 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_clothing_field_intimidate_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_clothing_treatment_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_clothing_field_intimidate_2", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_clothing_field_intimidate_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3980420512, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_clothing_field_intimidate_2, "object/tangible/component/bio/shared_bio_component_clothing_field_intimidate_2.iff") object_tangible_component_bio_shared_bio_component_food_heavy = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_heavy.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_heavy", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_heavy", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2498712826, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_heavy, "object/tangible/component/bio/shared_bio_component_food_heavy.iff") object_tangible_component_bio_shared_bio_component_food_heavy_filling = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_heavy_filling.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_heavy_filling", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_heavy_filling", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1999617734, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_heavy.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_heavy_filling, "object/tangible/component/bio/shared_bio_component_food_heavy_filling.iff") object_tangible_component_bio_shared_bio_component_food_heavy_flavor = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_heavy_flavor.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_heavy_flavor", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_heavy_flavor", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3777049958, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_heavy.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_heavy_flavor, "object/tangible/component/bio/shared_bio_component_food_heavy_flavor.iff") object_tangible_component_bio_shared_bio_component_food_heavy_nutrition = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_heavy_nutrition.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_heavy_nutrition", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_heavy_nutrition", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3750501285, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_heavy.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_heavy_nutrition, "object/tangible/component/bio/shared_bio_component_food_heavy_nutrition.iff") object_tangible_component_bio_shared_bio_component_food_heavy_quantity = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_heavy_quantity.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_heavy_quantity", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_heavy_quantity", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3677884855, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_heavy.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_heavy_quantity, "object/tangible/component/bio/shared_bio_component_food_heavy_quantity.iff") object_tangible_component_bio_shared_bio_component_food_light = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_light.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_light", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_light", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1438083108, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_light, "object/tangible/component/bio/shared_bio_component_food_light.iff") object_tangible_component_bio_shared_bio_component_food_light_filling = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_light_filling.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_light_filling", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_light_filling", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4207262465, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_light.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_light_filling, "object/tangible/component/bio/shared_bio_component_food_light_filling.iff") object_tangible_component_bio_shared_bio_component_food_light_flavor = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_light_flavor.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_light_flavor", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_light_flavor", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4041478053, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_light.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_light_flavor, "object/tangible/component/bio/shared_bio_component_food_light_flavor.iff") object_tangible_component_bio_shared_bio_component_food_light_nutrition = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_light_nutrition.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_light_nutrition", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_light_nutrition", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2945552565, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_light.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_light_nutrition, "object/tangible/component/bio/shared_bio_component_food_light_nutrition.iff") object_tangible_component_bio_shared_bio_component_food_light_quantity = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_light_quantity.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_light_quantity", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_light_quantity", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1778167946, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_light.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_light_quantity, "object/tangible/component/bio/shared_bio_component_food_light_quantity.iff") object_tangible_component_bio_shared_bio_component_food_medium = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_medium.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_medium", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_medium", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3076711804, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_medium, "object/tangible/component/bio/shared_bio_component_food_medium.iff") object_tangible_component_bio_shared_bio_component_food_medium_filling = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_medium_filling.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_medium_filling", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_medium_filling", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 856029112, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_medium.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_medium_filling, "object/tangible/component/bio/shared_bio_component_food_medium_filling.iff") object_tangible_component_bio_shared_bio_component_food_medium_flavor = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_medium_flavor.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_medium_flavor", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_medium_flavor", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1373118882, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_medium.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_medium_flavor, "object/tangible/component/bio/shared_bio_component_food_medium_flavor.iff") object_tangible_component_bio_shared_bio_component_food_medium_nutrition = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_medium_nutrition.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_medium_nutrition", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_medium_nutrition", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 624506486, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_medium.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_medium_nutrition, "object/tangible/component/bio/shared_bio_component_food_medium_nutrition.iff") object_tangible_component_bio_shared_bio_component_food_medium_quantity = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/bio/shared_bio_component_food_medium_quantity.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/eqp_comp_nutrient_supplements_solid.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 262154, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@craft_bio_components_d:bio_component_food_medium_quantity", gameObjectType = 262154, locationReservationRadius = 0, lookAtText = "@weapon_lookat:bio_component", noBuildRadius = 0, objectName = "@craft_bio_components_n:bio_component_food_medium_quantity", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3606276380, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/tangible/component/bio/shared_base_bio_component_food.iff", "object/tangible/component/bio/shared_bio_component_food_medium.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_component_bio_shared_bio_component_food_medium_quantity, "object/tangible/component/bio/shared_bio_component_food_medium_quantity.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/ship/player/player_blacksun_medium_s03.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_ship_player_player_blacksun_medium_s03 = object_ship_player_shared_player_blacksun_medium_s03:new { } ObjectTemplates:addTemplate(object_ship_player_player_blacksun_medium_s03, "object/ship/player/player_blacksun_medium_s03.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_belt_formal_19.lua
1
3310
--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_belt_formal_19 = object_draft_schematic_clothing_shared_clothing_belt_formal_19:new { templateType = DRAFTSCHEMATIC, customObjectName = "Widebuckle Belt", craftingToolTab = 8, -- (See DraftSchematicObjectTemplate.h) complexity = 15, size = 0, xpType = "crafting_clothing_general", xp = 135, assemblySkill = "clothing_assembly", experimentingSkill = "clothing_experimentation", customizationSkill = "clothing_customization", customizationOptions = {2, 1}, customizationStringNames = {"/private/index_color_1", "/private/index_color_2"}, customizationDefaults = {0, 0}, ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"}, ingredientTitleNames = {"shell", "binding_and_reinforcement", "hardware"}, ingredientSlotType = {0, 0, 0}, resourceTypes = {"hide", "petrochem_inert", "gemstone_crystalline"}, resourceQuantities = {25, 25, 5}, contribution = {100, 100, 100}, targetTemplate = "object/tangible/wearables/belt/belt_s19.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_belt_formal_19, "object/draft_schematic/clothing/clothing_belt_formal_19.iff")
agpl-3.0
TeleCU/cna2
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/dkjson.lua")() http.TIMEOUT = 10 function get_receiver(msg) if msg.to.type == 'user' then return 'user#id'..msg.from.id end if msg.to.type == 'chat' then return 'chat#id'..msg.to.id end if msg.to.type == 'encr_chat' then return msg.to.print_name end end function is_chat_msg( msg ) if msg.to.type == 'chat' then return true end return false end function string.random(length) local str = ""; for i = 1, length do math.random(97, 122) str = str..string.char(math.random(97, 122)); end return str; end function string:split(sep) local sep, fields = sep or ":", {} local pattern = string.format("([^%s]+)", sep) self:gsub(pattern, function(c) fields[#fields+1] = c end) return fields end -- DEPRECATED function string.trim(s) print("string.trim(s) is DEPRECATED use string:trim() instead") return s:gsub("^%s*(.-)%s*$", "%1") end -- Removes spaces function string:trim() return self:gsub("^%s*(.-)%s*$", "%1") end function get_http_file_name(url, headers) -- Eg: foo.var local file_name = url:match("[^%w]+([%.%w]+)$") -- Any delimited alphanumeric on the url file_name = file_name or url:match("[^%w]+(%w+)[^%w]+$") -- Random name, hope content-type works file_name = file_name or str:random(5) local content_type = headers["content-type"] local extension = nil if content_type then extension = mimetype.get_mime_extension(content_type) end if extension then file_name = file_name.."."..extension end local disposition = headers["content-disposition"] if disposition then -- attachment; filename=CodeCogsEqn.png file_name = disposition:match('filename=([^;]+)') or file_name end return file_name end -- Saves file to /tmp/. If file_name isn't provided, -- will get the text after the last "/" for filename -- and content-type for extension function download_to_file(url, file_name) print("url to download: "..url) local respbody = {} local options = { url = url, sink = ltn12.sink.table(respbody), redirect = true } -- nil, code, headers, status local response = nil if url:starts('https') then options.redirect = false response = {https.request(options)} else response = {http.request(options)} end local code = response[2] local headers = response[3] local status = response[4] if code ~= 200 then return nil end file_name = file_name or get_http_file_name(url, headers) local file_path = "/tmp/"..file_name print("Saved to: "..file_path) file = io.open(file_path, "w+") file:write(table.concat(respbody)) file:close() return file_path end function vardump(value) print(serpent.block(value, {comment=false})) end -- taken from http://stackoverflow.com/a/11130774/3163199 function scandir(directory) local i, t, popen = 0, {}, io.popen for filename in popen('ls -a "'..directory..'"'):lines() do i = i + 1 t[i] = filename end return t end -- http://www.lua.org/manual/5.2/manual.html#pdf-io.popen function run_command(str) local cmd = io.popen(str) local result = cmd:read('*all') cmd:close() return result end -- User has privileges function is_sudo(msg) local var = false -- Check users id in config for v,user in pairs(_config.sudo_users) do if user == msg.from.id then var = true end end return var end -- Returns the name of the sender function get_name(msg) local name = msg.from.first_name if name == nil then name = msg.from.id end return name end -- Returns at table of lua files inside plugins function plugins_names( ) local files = {} for k, v in pairs(scandir("plugins")) do -- Ends with .lua if (v:match(".lua$")) then table.insert(files, v) end end return files end -- Function name explains what it does. function file_exists(name) local f = io.open(name,"r") if f ~= nil then io.close(f) return true else return false end end -- Save into file the data serialized for lua. -- Set uglify true to minify the file. function serialize_to_file(data, file, uglify) file = io.open(file, 'w+') local serialized if not uglify then serialized = serpent.block(data, { comment = false, name = '_' }) else serialized = serpent.dump(data) end file:write(serialized) file:close() end -- Returns true if the string is empty function string:isempty() return self == nil or self == '' end -- Returns true if the string is blank function string:isblank() self = self:trim() return self:isempty() end -- DEPRECATED!!!!! function string.starts(String, Start) print("string.starts(String, Start) is DEPRECATED use string:starts(text) instead") return Start == string.sub(String,1,string.len(Start)) end -- Returns true if String starts with Start function string:starts(text) return text == string.sub(self,1,string.len(text)) end -- Send image to user and delete it when finished. -- cb_function and cb_extra are optionals callback function _send_photo(receiver, file_path, cb_function, cb_extra) local cb_extra = { file_path = file_path, cb_function = cb_function, cb_extra = cb_extra } -- Call to remove with optional callback send_photo(receiver, file_path, cb_function, cb_extra) end -- Download the image and send to receiver, it will be deleted. -- cb_function and cb_extra are optionals callback function send_photo_from_url(receiver, url, cb_function, cb_extra) -- If callback not provided cb_function = cb_function or ok_cb cb_extra = cb_extra or false local file_path = download_to_file(url, false) if not file_path then -- Error local text = 'Error downloading the image' send_msg(receiver, text, cb_function, cb_extra) else print("File path: "..file_path) _send_photo(receiver, file_path, cb_function, cb_extra) end end -- Same as send_photo_from_url but as callback function function send_photo_from_url_callback(cb_extra, success, result) local receiver = cb_extra.receiver local url = cb_extra.url local file_path = download_to_file(url, false) if not file_path then -- Error local text = 'Error downloading the image' send_msg(receiver, text, ok_cb, false) else print("File path: "..file_path) _send_photo(receiver, file_path, ok_cb, false) end end -- Send multiple images asynchronous. -- param urls must be a table. function send_photos_from_url(receiver, urls) local cb_extra = { receiver = receiver, urls = urls, remove_path = nil } send_photos_from_url_callback(cb_extra) end -- Use send_photos_from_url. -- This function might be difficult to understand. function send_photos_from_url_callback(cb_extra, success, result) -- cb_extra is a table containing receiver, urls and remove_path local receiver = cb_extra.receiver local urls = cb_extra.urls local remove_path = cb_extra.remove_path -- The previously image to remove if remove_path ~= nil then os.remove(remove_path) print("Deleted: "..remove_path) end -- Nil or empty, exit case (no more urls) if urls == nil or #urls == 0 then return false end -- Take the head and remove from urls table local head = table.remove(urls, 1) local file_path = download_to_file(head, false) local cb_extra = { receiver = receiver, urls = urls, remove_path = file_path } -- Send first and postpone the others as callback send_photo(receiver, file_path, send_photos_from_url_callback, cb_extra) end -- Callback to remove a file function rmtmp_cb(cb_extra, success, result) local file_path = cb_extra.file_path local cb_function = cb_extra.cb_function or ok_cb local cb_extra = cb_extra.cb_extra if file_path ~= nil then os.remove(file_path) print("Deleted: "..file_path) end -- Finally call the callback cb_function(cb_extra, success, result) end -- Send document to user and delete it when finished. -- cb_function and cb_extra are optionals callback function _send_document(receiver, file_path, cb_function, cb_extra) local cb_extra = { file_path = file_path, cb_function = cb_function or ok_cb, cb_extra = cb_extra or false } -- Call to remove with optional callback send_document(receiver, file_path, rmtmp_cb, cb_extra) end -- Download the image and send to receiver, it will be deleted. -- cb_function and cb_extra are optionals callback function send_document_from_url(receiver, url, cb_function, cb_extra) local file_path = download_to_file(url, false) print("File path: "..file_path) _send_document(receiver, file_path, cb_function, cb_extra) end -- Parameters in ?a=1&b=2 style function format_http_params(params, is_get) local str = '' -- If is get add ? to the beginning if is_get then str = '?' end local first = true -- Frist param for k,v in pairs (params) do if v then -- nil value if first then first = false str = str..k.. "="..v else str = str.."&"..k.. "="..v end end end return str end -- Check if user can use the plugin and warns user -- Returns true if user was warned and false if not warned (is allowed) function warns_user_not_allowed(plugin, msg) if not user_allowed(plugin, msg) then local text = 'This plugin requires privileged user' local receiver = get_receiver(msg) send_msg(receiver, text, ok_cb, false) return true else return false end end -- Check if user can use the plugin function user_allowed(plugin, msg) if plugin.privileged and not is_sudo(msg) then return false end return true end function send_order_msg(destination, msgs) local cb_extra = { destination = destination, msgs = msgs } send_order_msg_callback(cb_extra, true) end function send_order_msg_callback(cb_extra, success, result) local destination = cb_extra.destination local msgs = cb_extra.msgs local file_path = cb_extra.file_path if file_path ~= nil then os.remove(file_path) print("Deleted: " .. file_path) end if type(msgs) == 'string' then send_large_msg(destination, msgs) elseif type(msgs) ~= 'table' then return end if #msgs < 1 then return end local msg = table.remove(msgs, 1) local new_cb_extra = { destination = destination, msgs = msgs } if type(msg) == 'string' then send_msg(destination, msg, send_order_msg_callback, new_cb_extra) elseif type(msg) == 'table' then local typ = msg[1] local nmsg = msg[2] new_cb_extra.file_path = nmsg if typ == 'document' then send_document(destination, nmsg, send_order_msg_callback, new_cb_extra) elseif typ == 'image' or typ == 'photo' then send_photo(destination, nmsg, send_order_msg_callback, new_cb_extra) elseif typ == 'audio' then send_audio(destination, nmsg, send_order_msg_callback, new_cb_extra) elseif typ == 'video' then send_video(destination, nmsg, send_order_msg_callback, new_cb_extra) else send_file(destination, nmsg, send_order_msg_callback, new_cb_extra) end end end -- Same as send_large_msg_callback but friendly params function send_large_msg(destination, text) local cb_extra = { destination = destination, text = text } send_large_msg_callback(cb_extra, true) end -- If text is longer than 4096 chars, send multiple msg. -- https://core.telegram.org/method/messages.sendMessage function send_large_msg_callback(cb_extra, success, result) local text_max = 4096 local destination = cb_extra.destination local text = cb_extra.text local text_len = string.len(text) local num_msg = math.ceil(text_len / text_max) if num_msg <= 1 then send_msg(destination, text, ok_cb, false) else local my_text = string.sub(text, 1, 4096) local rest = string.sub(text, 4096, text_len) local cb_extra = { destination = destination, text = rest } send_msg(destination, my_text, send_large_msg_callback, cb_extra) end end -- Returns a table with matches or nil function match_pattern(pattern, text, lower_case) if text then local matches = {} if lower_case then matches = { string.match(text:lower(), pattern) } else matches = { string.match(text, pattern) } end if next(matches) then return matches end end -- nil end -- Function to read data from files function load_from_file(file, default_data) local f = io.open(file, "r+") -- If file doesn't exists if f == nil then -- Create a new empty table default_data = default_data or {} serialize_to_file(default_data, file) print ('Created file', file) else print ('Data loaded from file', file) f:close() end return loadfile (file)() end -- See http://stackoverflow.com/a/14899740 function unescape_html(str) local map = { ["lt"] = "<", ["gt"] = ">", ["amp"] = "&", ["quot"] = '"', ["apos"] = "'" } new = string.gsub(str, '(&(#?x?)([%d%a]+);)', function(orig, n, s) var = map[s] or n == "#" and string.char(s) var = var or n == "#x" and string.char(tonumber(s,16)) var = var or orig return var end) return new end --Check if this chat is realm or not function is_realm(msg) local var = false local realms = 'realms' local data = load_data(_config.moderation.data) local chat = msg.to.id if data[tostring(realms)] then if data[tostring(realms)][tostring(msg.to.id)] then var = true end return var end end --Check if this chat is a group or not function is_group(msg) local var = false local groups = 'groups' local data = load_data(_config.moderation.data) local chat = msg.to.id if data[tostring(groups)] then if data[tostring(groups)][tostring(msg.to.id)] then var = true end return var end end function savelog(group, logtxt) local text = (os.date("[ %c ]=> "..logtxt.."\n \n")) local file = io.open("./groups/logs/"..group.."log.txt", "a") file:write(text) file:close() end function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end --Check if user is the owner of that group or not function is_owner(msg) local var = false local data = load_data(_config.moderation.data) local user = msg.from.id if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['set_owner'] then if data[tostring(msg.to.id)]['set_owner'] == tostring(user) then var = true end end end if data['admins'] then if data['admins'][tostring(user)] then var = true end end for v,user in pairs(_config.sudo_users) do if user == msg.from.id then var = true end end return var end function is_owner2(user_id, group_id) local var = false local data = load_data(_config.moderation.data) if data[tostring(group_id)] then if data[tostring(group_id)]['set_owner'] then if data[tostring(group_id)]['set_owner'] == tostring(user_id) then var = true end end end if data['admins'] then if data['admins'][tostring(user_id)] then var = true end end for v,user in pairs(_config.sudo_users) do if user == user_id then var = true end end return var end --Check if user is admin or not function is_admin(msg) local var = false local data = load_data(_config.moderation.data) local user = msg.from.id local admins = 'admins' if data[tostring(admins)] then if data[tostring(admins)][tostring(user)] then var = true end end for v,user in pairs(_config.sudo_users) do if user == msg.from.id then var = true end end return var end function is_admin2(user_id) local var = false local data = load_data(_config.moderation.data) local user = user_id local admins = 'admins' if data[tostring(admins)] then if data[tostring(admins)][tostring(user)] then var = true end end for v,user in pairs(_config.sudo_users) do if user == user_id then var = true end end return var end --Check if user is the mod of that group or not function is_momod(msg) local var = false local data = load_data(_config.moderation.data) local user = msg.from.id if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['moderators'] then if data[tostring(msg.to.id)]['moderators'][tostring(user)] then var = true end end end if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['set_owner'] then if data[tostring(msg.to.id)]['set_owner'] == tostring(user) then var = true end end end if data['admins'] then if data['admins'][tostring(user)] then var = true end end for v,user in pairs(_config.sudo_users) do if user == msg.from.id then var = true end end return var end function is_momod2(user_id, group_id) local var = false local data = load_data(_config.moderation.data) local usert = user_id if data[tostring(group_id)] then if data[tostring(group_id)]['moderators'] then if data[tostring(group_id)]['moderators'][tostring(usert)] then var = true end end end if data[tostring(group_id)] then if data[tostring(group_id)]['set_owner'] then if data[tostring(group_id)]['set_owner'] == tostring(user_id) then var = true end end end if data['admins'] then if data['admins'][tostring(user_id)] then var = true end end for v,user in pairs(_config.sudo_users) do if user == usert then var = true end end return var end -- Returns the name of the sender function kick_user(user_id, chat_id) if tonumber(user_id) == tonumber(our_id) then -- Ignore bot return end if is_owner2(user_id, chat_id) then -- Ignore admins return end local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, ok_cb, true) end -- Ban function ban_user(user_id, chat_id) if tonumber(user_id) == tonumber(our_id) then -- Ignore bot return end if is_admin2(user_id) then -- Ignore admins return end -- Save to redis local hash = 'banned:'..chat_id redis:sadd(hash, user_id) -- Kick from chat kick_user(user_id, chat_id) end -- Global ban function banall_user(user_id) if tonumber(user_id) == tonumber(our_id) then -- Ignore bot return end if is_admin2(user_id) then -- Ignore admins return end -- Save to redis local hash = 'gbanned' redis:sadd(hash, user_id) end -- Global unban function unbanall_user(user_id) --Save on redis local hash = 'gbanned' redis:srem(hash, user_id) end -- Check if user_id is banned in chat_id or not function is_banned(user_id, chat_id) --Save on redis local hash = 'banned:'..chat_id local banned = redis:sismember(hash, user_id) return banned or false end -- Check if user_id is globally banned or not function is_gbanned(user_id) --Save on redis local hash = 'gbanned' local banned = redis:sismember(hash, user_id) return banned or false end -- Returns chat_id ban list function ban_list(chat_id) local hash = 'banned:'..chat_id local list = redis:smembers(hash) local text = "Ban list !\n\n" for k,v in pairs(list) do local user_info = redis:hgetall('user:'..v) -- vardump(user_info) if user_info then if user_info.username then user = '@'..user_info.username elseif user_info.print_name and not user_info.username then user = string.gsub(user_info.print_name, "_", " ") else user = '' end text = text..k.." - "..user.." ["..v.."]\n" end end return text end -- Returns globally ban list function banall_list() local hash = 'gbanned' local list = redis:smembers(hash) local text = "global bans !\n\n" for k,v in pairs(list) do local user_info = redis:hgetall('user:'..v) -- vardump(user_info) if user_info then if user_info.username then user = '@'..user_info.username elseif user_info.print_name and not user_info.username then user = string.gsub(user_info.print_name, "_", " ") else user = '' end text = text..k.." - "..user.." ["..v.."]\n" end end return text end -- /id by reply function get_message_callback_id(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id send_large_msg(chat, result.from.id) else return 'Use This in Your Groups' end end -- kick by reply for mods and owner function Kick_by_reply(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id if tonumber(result.from.id) == tonumber(our_id) then -- Ignore bot return "I won't kick myself" end if is_momod2(result.from.id, result.to.id) then -- Ignore mods,owner,admin return "you can't kick mods,owner and admins" end chat_del_user(chat, 'user#id'..result.from.id, ok_cb, false) else return 'Use This in Your Groups' end end -- Kick by reply for admins function Kick_by_reply_admins(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id if tonumber(result.from.id) == tonumber(our_id) then -- Ignore bot return "I won't kick myself" end if is_admin2(result.from.id) then -- Ignore admins return end chat_del_user(chat, 'user#id'..result.from.id, ok_cb, false) else return 'Use This in Your Groups' end end --Ban by reply for admins function ban_by_reply(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id if tonumber(result.from.id) == tonumber(our_id) then -- Ignore bot return "I won't ban myself" end if is_momod2(result.from.id, result.to.id) then -- Ignore mods,owner,admin return "you can't kick mods,owner and admins" end ban_user(result.from.id, result.to.id) send_large_msg(chat, "User "..result.from.id.." Banned") else return 'Use This in Your Groups' end end -- Ban by reply for admins function ban_by_reply_admins(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id if tonumber(result.from.id) == tonumber(our_id) then -- Ignore bot return "I won't ban myself" end if is_admin2(result.from.id) then -- Ignore admins return end ban_user(result.from.id, result.to.id) send_large_msg(chat, "User "..result.from.id.." Banned") else return 'Use This in Your Groups' end end -- Unban by reply function unban_by_reply(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id if tonumber(result.from.id) == tonumber(our_id) then -- Ignore bot return "I won't unban myself" end send_large_msg(chat, "User "..result.from.id.." Unbanned") -- Save on redis local hash = 'banned:'..result.to.id redis:srem(hash, result.from.id) else return 'Use This in Your Groups' end end function banall_by_reply(extra, success, result) if result.to.type == 'chat' then local chat = 'chat#id'..result.to.id if tonumber(result.from.id) == tonumber(our_id) then -- Ignore bot return "I won't banall myself" end if is_admin2(result.from.id) then -- Ignore admins return end local name = user_print_name(result.from) banall_user(result.from.id) chat_del_user(chat, 'user#id'..result.from.id, ok_cb, false) send_large_msg(chat, "User "..name.."["..result.from.id.."] hammered") else return 'Use This in Your Groups' end end
gpl-2.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/space/reactor/reactor_limiter_mk2.lua
1
3282
--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_space_reactor_reactor_limiter_mk2 = object_draft_schematic_space_reactor_shared_reactor_limiter_mk2:new { templateType = DRAFTSCHEMATIC, customObjectName = "Reactor Limiter - Mark II", craftingToolTab = 131072, -- (See DraftSchematicObjectTemplate.h) complexity = 23, size = 1, xpType = "shipwright", xp = 65, assemblySkill = "power_systems", experimentingSkill = "power_systems_experimentation", customizationSkill = "advanced_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n"}, ingredientTitleNames = {"casing", "reactor_limiting_mechanism"}, ingredientSlotType = {0, 0}, resourceTypes = {"steel", "radioactive_polymetric"}, resourceQuantities = {200, 50}, contribution = {100, 100}, targetTemplate = "object/tangible/ship/crafted/reactor/reactor_limiter_mk2.iff", additionalTemplates = { "object/tangible/ship/crafted/reactor/shared_reactor_limiter_mk2.iff", } } ObjectTemplates:addTemplate(object_draft_schematic_space_reactor_reactor_limiter_mk2, "object/draft_schematic/space/reactor/reactor_limiter_mk2.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/food/serverobjects.lua
3
8617
--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 includeFile("draft_schematic/food/additive/serverobjects.lua") includeFile("draft_schematic/food/component/serverobjects.lua") -- Server Objects includeFile("draft_schematic/food/base_food_schematic.lua") includeFile("draft_schematic/food/dessert_air_cake.lua") includeFile("draft_schematic/food/dessert_almond_kwevvu_crisp_munchies.lua") includeFile("draft_schematic/food/dessert_bantha_butter.lua") includeFile("draft_schematic/food/dessert_blap_biscuit.lua") includeFile("draft_schematic/food/dessert_blob_candy.lua") includeFile("draft_schematic/food/dessert_bofa_treat.lua") includeFile("draft_schematic/food/dessert_cavaellin_creams.lua") includeFile("draft_schematic/food/dessert_chandad.lua") includeFile("draft_schematic/food/dessert_citros_snow_cake.lua") includeFile("draft_schematic/food/dessert_corellian_fried_icecream.lua") includeFile("draft_schematic/food/dessert_deneelian_fizz_pudding.lua") includeFile("draft_schematic/food/dessert_dweezel.lua") includeFile("draft_schematic/food/dessert_felbar.lua") includeFile("draft_schematic/food/dessert_glazed_glucose_pate.lua") includeFile("draft_schematic/food/dessert_gorrnar.lua") includeFile("draft_schematic/food/dessert_kiwik_clusjo_swirl.lua") includeFile("draft_schematic/food/dessert_nanana_twist.lua") includeFile("draft_schematic/food/dessert_para_roll.lua") includeFile("draft_schematic/food/dessert_parwan_nutricake.lua") includeFile("draft_schematic/food/dessert_pastebread.lua") includeFile("draft_schematic/food/dessert_pikatta_pie.lua") includeFile("draft_schematic/food/dessert_pkneb.lua") includeFile("draft_schematic/food/dessert_puffcake.lua") includeFile("draft_schematic/food/dessert_pyollian_cake.lua") includeFile("draft_schematic/food/dessert_ryshcate.lua") includeFile("draft_schematic/food/dessert_smugglers_delight.lua") includeFile("draft_schematic/food/dessert_sweesonberry_rolls.lua") includeFile("draft_schematic/food/dessert_sweet_cake_mix.lua") includeFile("draft_schematic/food/dessert_tranna_nougat_cream.lua") includeFile("draft_schematic/food/dessert_vagnerian_canape.lua") includeFile("draft_schematic/food/dessert_wedding_cake.lua") includeFile("draft_schematic/food/dessert_won_won.lua") includeFile("draft_schematic/food/dish_ahrisa.lua") includeFile("draft_schematic/food/dish_bivoli_tempari.lua") includeFile("draft_schematic/food/dish_blood_chowder.lua") includeFile("draft_schematic/food/dish_braised_canron.lua") includeFile("draft_schematic/food/dish_cho_nor_hoola.lua") includeFile("draft_schematic/food/dish_crispic.lua") includeFile("draft_schematic/food/dish_dustcrepe.lua") includeFile("draft_schematic/food/dish_exo_protein_wafers.lua") includeFile("draft_schematic/food/dish_fire_stew.lua") includeFile("draft_schematic/food/dish_fried_endwa.lua") includeFile("draft_schematic/food/dish_gruuvan_shaal.lua") includeFile("draft_schematic/food/dish_havla.lua") includeFile("draft_schematic/food/dish_kanali_wafers.lua") includeFile("draft_schematic/food/dish_karkan_ribenes.lua") includeFile("draft_schematic/food/dish_meatlump.lua") includeFile("draft_schematic/food/dish_ormachek.lua") includeFile("draft_schematic/food/dish_patot_panak.lua") includeFile("draft_schematic/food/dish_protato.lua") includeFile("draft_schematic/food/dish_puk.lua") includeFile("draft_schematic/food/dish_rakririan_burnout_sauce.lua") includeFile("draft_schematic/food/dish_ramorrean_capanata.lua") includeFile("draft_schematic/food/dish_rations.lua") includeFile("draft_schematic/food/dish_scrimpi.lua") includeFile("draft_schematic/food/dish_soypro.lua") includeFile("draft_schematic/food/dish_stewed_gwouch.lua") includeFile("draft_schematic/food/dish_synthsteak.lua") includeFile("draft_schematic/food/dish_teltier_noodles.lua") includeFile("draft_schematic/food/dish_terratta.lua") includeFile("draft_schematic/food/dish_thakitillo.lua") includeFile("draft_schematic/food/dish_travel_biscuits.lua") includeFile("draft_schematic/food/dish_trimpian.lua") includeFile("draft_schematic/food/dish_vegeparsine.lua") includeFile("draft_schematic/food/dish_veghash.lua") includeFile("draft_schematic/food/dish_vercupti_of_agazza_boleruuee.lua") includeFile("draft_schematic/food/dish_wastril_bread.lua") includeFile("draft_schematic/food/dish_xermaauc.lua") includeFile("draft_schematic/food/drink_accarragm.lua") includeFile("draft_schematic/food/drink_aitha.lua") includeFile("draft_schematic/food/drink_alcohol.lua") includeFile("draft_schematic/food/drink_aludium_pu36.lua") includeFile("draft_schematic/food/drink_angerian_fishak_surprise.lua") includeFile("draft_schematic/food/drink_antakarian_fire_dancer.lua") includeFile("draft_schematic/food/drink_bantha_blaster.lua") includeFile("draft_schematic/food/drink_bespin_port.lua") includeFile("draft_schematic/food/drink_blue_milk.lua") includeFile("draft_schematic/food/drink_breath_of_heaven.lua") includeFile("draft_schematic/food/drink_caf.lua") includeFile("draft_schematic/food/drink_charde.lua") includeFile("draft_schematic/food/drink_corellian_ale.lua") includeFile("draft_schematic/food/drink_corellian_brandy.lua") includeFile("draft_schematic/food/drink_cortyg.lua") includeFile("draft_schematic/food/drink_deuterium_pyro.lua") includeFile("draft_schematic/food/drink_double_dip_outer_rim_rumdrop.lua") includeFile("draft_schematic/food/drink_durindfire.lua") includeFile("draft_schematic/food/drink_elshandruu_pica_thundercloud.lua") includeFile("draft_schematic/food/drink_flameout.lua") includeFile("draft_schematic/food/drink_garrmorl.lua") includeFile("draft_schematic/food/drink_gralinyn_juice.lua") includeFile("draft_schematic/food/drink_ice_blaster.lua") includeFile("draft_schematic/food/drink_ithorian_mist.lua") includeFile("draft_schematic/food/drink_jaar.lua") includeFile("draft_schematic/food/drink_jawa_beer.lua") includeFile("draft_schematic/food/drink_kylessian_fruit_distillate.lua") includeFile("draft_schematic/food/drink_mandalorian_wine.lua") includeFile("draft_schematic/food/drink_ruby_bliel.lua") includeFile("draft_schematic/food/drink_skannbult_likker.lua") includeFile("draft_schematic/food/drink_spiced_tea.lua") includeFile("draft_schematic/food/drink_starshine_surprise.lua") includeFile("draft_schematic/food/drink_sullustan_gin.lua") includeFile("draft_schematic/food/drink_tatooine_sunburn.lua") includeFile("draft_schematic/food/drink_tilla_tiil.lua") includeFile("draft_schematic/food/drink_tssolok.lua") includeFile("draft_schematic/food/drink_vasarian_brandy.lua") includeFile("draft_schematic/food/drink_vayerbok.lua") includeFile("draft_schematic/food/drink_veronian_berry_wine.lua")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/space/reverse_engineering/objects.lua
3
17662
--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_space_reverse_engineering_shared_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 4256991250, 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_space_reverse_engineering_shared_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_armor_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_armor_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 3368050000, 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_space_reverse_engineering_shared_armor_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_armor_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_booster_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_booster_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 1558712471, 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_space_reverse_engineering_shared_booster_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_booster_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_capacitor_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_capacitor_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 4158784961, 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_space_reverse_engineering_shared_capacitor_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_capacitor_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_droid_interface_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_droid_interface_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 1820998508, 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_space_reverse_engineering_shared_droid_interface_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_droid_interface_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_engine_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_engine_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 3400518634, 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_space_reverse_engineering_shared_engine_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_engine_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_reactor_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_reactor_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 1274882415, 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_space_reverse_engineering_shared_reactor_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_reactor_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_retrofit_kit = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_retrofit_kit.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 3323192675, 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_space_reverse_engineering_shared_retrofit_kit, "object/draft_schematic/space/reverse_engineering/shared_retrofit_kit.iff") object_draft_schematic_space_reverse_engineering_shared_shields_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_shields_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 2342685561, 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_space_reverse_engineering_shared_shields_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_shields_analysis_tool.iff") object_draft_schematic_space_reverse_engineering_shared_weapon_analysis_tool = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/space/reverse_engineering/shared_weapon_analysis_tool.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "abstract/slot/arrangement/arrangement_datapad.iff", 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 = 3831959480, 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_space_reverse_engineering_shared_weapon_analysis_tool, "object/draft_schematic/space/reverse_engineering/shared_weapon_analysis_tool.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/screenplays/caves/dathomir_spider_clan_cave.lua
1
7130
SpiderClanCaveScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "SpiderClanCaveScreenPlay", lootContainers = { 5165581, 5165583, 5165584, 5165585, 5165586, 5165587, 5165588, 5165591, 5165592, 5165593 }, lootLevel = 36, lootGroups = { { groups = { {group = "color_crystals", chance = 1000000}, {group = "junk", chance = 5000000}, {group = "rifles", chance = 500000}, {group = "pistols", chance = 500000}, {group = "clothing_attachments", chance = 1500000}, {group = "armor_attachments", chance = 1500000} }, lootChance = 10000000 } }, lootContainerRespawn = 1800 -- 30 minutes } registerScreenPlay("SpiderClanCaveScreenPlay", true) function SpiderClanCaveScreenPlay:start() if (isZoneEnabled("dathomir")) then self:spawnMobiles() self:initializeLootContainers() end end function SpiderClanCaveScreenPlay:spawnMobiles() --Cell[3695702] spawnMobile("dathomir", "spiderclan_sentry", 900, 2.1, -5.8, 6.9, -46, 3695702) spawnMobile("dathomir", "spiderclan_sentry", 900, -1.4, -13.2, -6.8, 11, 3695702) spawnMobile("dathomir", "spiderclan_sentry", 900, 12.0, -15.0, -7.0, -93, 3695702) --Cell[3695703] spawnMobile("dathomir", "spiderclan_acolyte", 900, -8.8, -30.6, -26.5, 75, 3695703) --Cell[3695704] spawnMobile("dathomir", "spiderclan_sentry", 900, -12.5, -41.1, -65.6, 164, 3695704) spawnMobile("dathomir", "spiderclan_sentinel", 900, -9.4, -40.5, -84.4, -163, 3695704) spawnMobile("dathomir", "spiderclan_sentry", 900, 0.7, -40.9, -77.8, 55, 3695704) spawnMobile("dathomir", "spiderclan_sentry", 900, 6.4, -40.9, -75.1, -85, 3695704) spawnMobile("dathomir", "spiderclan_acolyte", 900, -0.2, -40.9, -73.9, 124, 3695704) --Cell[3695705] spawnMobile("dathomir", "spiderclan_sentinel", 900, 38.9, -46.0, -52.8, 151, 3695705) spawnMobile("dathomir", "spiderclan_acolyte", 900, 46.0, -47.1, -55.1, -86, 3695705) spawnMobile("dathomir", "spiderclan_sentry", 900, 47.3, -46.2, -93.7, -73, 3695705) spawnMobile("dathomir", "spiderclan_sentry", 900, 43.0, -46.1, -94.3, 67, 3695705) --Cell[3695706] spawnMobile("dathomir", "spiderclan_sentinel", 900, 19.3, -47.7, -133.4, 11, 3695706) spawnMobile("dathomir", "spiderclan_sentry", 900, -1.5, -45.1, -135.2, -145, 3695706) spawnMobile("dathomir", "spiderclan_auspex", 900, -7.7, -45.0, -136.9, 121, 3695706) spawnMobile("dathomir", "spiderclan_sentinel", 900, -6.8, -45.1, -142.4, 39, 3695706) spawnMobile("dathomir", "spiderclan_sentry", 900, 54.7, -48.8, -129.1, 148, 3695706) spawnMobile("dathomir", "spiderclan_sentry", 900, 57.6, -49.1, -131.4, -54, 3695706) spawnMobile("dathomir", "spiderclan_sentinel", 900, 59.2, -55.3, -151.1, -138, 3695706) spawnMobile("dathomir", "spiderclan_sentry", 900, 63.0, -57.6, -165.1, -66, 3695706) spawnMobile("dathomir", "spiderclan_sentinel", 900, 56.1, -56.6, -170.0, -32, 3695706) spawnMobile("dathomir", "spiderclan_sentry", 900, 45.7, -56.6, -165.7, 68, 3695706) spawnMobile("dathomir", "spiderclan_protector", 900, 51.2, -56.2, -158.7, 134, 3695706) spawnMobile("dathomir", "spiderclan_elder", 3600, -6.4, -46.6, -150.8, 9, 3695706) --Cell[3695707] spawnMobile("dathomir", "spiderclan_sentry", 900, -9.0, -64.3, -188.5, 1, 3695707) spawnMobile("dathomir", "spiderclan_sentry", 900, -13.6, -64.1, -188.2, 1, 3695707) spawnMobile("dathomir", "spiderclan_sentry", 900, -28.1, -65.6, -177.6, 86, 3695707) spawnMobile("dathomir", "spiderclan_sentry", 900, -27.8, -64.4, -183.0, 85, 3695707) --Cell[3695708] spawnMobile("dathomir", "spiderclan_elder", 3600, -20.7, -62.8, -261.2, 18, 3695708) spawnMobile("dathomir", "spiderclan_web_dancer", 900, -12.0, -63.7, -260.5, -74, 3695708) spawnMobile("dathomir", "spiderclan_web_dancer", 900, 2.7, -63.4, -229.7, -99, 3695708) --v Spiders Here v-- spawnMobile("dathomir", "cavern_spider", 900, -23.0, -65.6, -241.3, 67, 3695708) spawnMobile("dathomir", "cavern_spider", 900, -3.1, -65.2, -242.3, 7, 3695708) spawnMobile("dathomir", "cavern_spider", 900, 0.4, -63.6, -235.9, -161, 3695708) spawnMobile("dathomir", "cavern_spider", 900, -13.3, -63.6, -226.1, 5, 3695708) spawnMobile("dathomir", "cavern_spider", 900, -20.8, -65.2, -213.6, 57, 3695708) spawnMobile("dathomir", "cavern_spider", 900, -0.6, -65.0, -209.6, -81, 3695708) --^ Spiders Here ^-- --Cell[3695709] spawnMobile("dathomir", "cavern_spider", 900, -64.8, -70.3, -197.4, 26, 3695709) spawnMobile("dathomir", "spiderclan_web_dancer", 900, -64.5, -69.3, -187.8, 164, 3695709) spawnMobile("dathomir", "cavern_spider", 900, -56.4, -70.5, -192.1, -123, 3695709) spawnMobile("dathomir", "spiderclan_web_dancer", 900, -117.9, -69.6, -200.4, 118, 3695709) spawnMobile("dathomir", "cavern_spider", 900, -111.1, -69.0, -205.1, -58, 3695709) spawnMobile("dathomir", "cavern_spider", 900, -120.3, -69.0, -167.5, -174, 3695709) spawnMobile("dathomir", "spiderclan_web_dancer", 900, -120.4, -69.4, -172.0, 0, 3695709) spawnMobile("dathomir", "cavern_spider", 900, -97.0, -73.7, -167.3, 163, 3695709) spawnMobile("dathomir", "spiderclan_web_dancer", 900, -93.5, -73.4, -174.1, -35, 3695709) spawnMobile("dathomir", "cavern_spider", 900, -101.1, -71.7, -175.6, 26, 3695709) spawnMobile("dathomir", "spiderclan_sentinel", 900, -98.1, -70.1, -109.7, -178, 3695709) spawnMobile("dathomir", "spiderclan_sentinel", 900, -92.5, -70.8, -111.2, -151, 3695709) --Cell[3695710] spawnMobile("dathomir", "reclusive_cavern_spider", 900, -68.1, -68.8, -99.1, -14, 3695710) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -65.3, -69.6, -91.5, -135, 3695710) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -73.6, -70.2, -92.3, 127, 3695710) spawnMobile("dathomir", "giant_cavern_spider_recluse", 900, -43.3, -69.8, -88.0, -140, 3695710) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -55.9, -68.5, -115.9, -33, 3695710) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -21.5, -69.4, -96.7, -91, 3695710) spawnMobile("dathomir", "giant_cavern_spider_recluse", 900, -19.9, -68.7, -107.0, -34, 3695710) --Cell[3695711] local pQueen = spawnMobile("dathomir", "reclusive_cavern_spider_queen", 7200, -26.6, -80.0, -149.5, 0, 3695711) createObserver(OBJECTDESTRUCTION, "SpiderClanCaveScreenPlay", "notifyQueenDead", pQueen) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -35.5, -80.4, -139.8, 129, 3695711) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -27.3, -77.9, -132.0, 172, 3695711) spawnMobile("dathomir", "reclusive_cavern_spider", 900, -17.3, -77.4, -132.3, -144, 3695711) end function SpiderClanCaveScreenPlay:notifyQueenDead(pQueen, pKiller) if (readData("spiderclancave:kiindray") == 0) then local pKiinDray = spawnMobile("dathomir", "kiin_dray", 0, -87.7, -100.8, -103.4, 174, 3695712) createObserver(OBJECTDESTRUCTION, "SpiderClanCaveScreenPlay", "notifyKiinDrayDead", pKiinDray) writeData("spiderclancave:kiindray",1) end return 0 end function SpiderClanCaveScreenPlay:notifyKiinDrayDead(pKiinDray, pKiller) writeData("spiderclancave:kiindray", 0) return 1 end
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/draft_schematic/furniture/furniture_table_small_tatooine.lua
1
3211
--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_furniture_furniture_table_small_tatooine = object_draft_schematic_furniture_shared_furniture_table_small_tatooine:new { templateType = DRAFTSCHEMATIC, customObjectName = "Small Table", craftingToolTab = 512, -- (See DraftSchematicObjectTemplate.h) complexity = 14, size = 2, xpType = "crafting_structure_general", xp = 160, assemblySkill = "structure_assembly", experimentingSkill = "structure_experimentation", customizationSkill = "structure_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_furniture_ingredients_n", "craft_furniture_ingredients_n"}, ingredientTitleNames = {"table_top", "frame"}, ingredientSlotType = {0, 0}, resourceTypes = {"mineral", "metal"}, resourceQuantities = {40, 40}, contribution = {100, 100}, targetTemplate = "object/tangible/furniture/tatooine/frn_tato_table_small_style_01.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_table_small_tatooine, "object/draft_schematic/furniture/furniture_table_small_tatooine.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/ship/components/droid_interface/ddi_sfs_elite.lua
3
2304
--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_droid_interface_ddi_sfs_elite = object_tangible_ship_components_droid_interface_shared_ddi_sfs_elite:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_droid_interface_ddi_sfs_elite, "object/tangible/ship/components/droid_interface/ddi_sfs_elite.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/hair/human/hair_human_male_s19.lua
3
2244
--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_human_hair_human_male_s19 = object_tangible_hair_human_shared_hair_human_male_s19:new { } ObjectTemplates:addTemplate(object_tangible_hair_human_hair_human_male_s19, "object/tangible/hair/human/hair_human_male_s19.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/ship/player/player_xwing.lua
3
2184
--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_xwing = object_ship_player_shared_player_xwing:new { } ObjectTemplates:addTemplate(object_ship_player_player_xwing, "object/ship/player/player_xwing.iff")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/weapon/ranged/creature/serverobjects.lua
3
3146
--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 includeFile("weapon/ranged/creature/base/serverobjects.lua") -- Server Objects includeFile("weapon/ranged/creature/creature_spit_heavy_flame.lua") includeFile("weapon/ranged/creature/creature_spit_large_green.lua") includeFile("weapon/ranged/creature/creature_spit_large_red.lua") includeFile("weapon/ranged/creature/creature_spit_large_toxicgreen.lua") includeFile("weapon/ranged/creature/creature_spit_large_yellow.lua") includeFile("weapon/ranged/creature/creature_spit_lightning_ball.lua") includeFile("weapon/ranged/creature/creature_spit_particle_beam.lua") includeFile("weapon/ranged/creature/creature_spit_small_green.lua") includeFile("weapon/ranged/creature/creature_spit_small_red.lua") includeFile("weapon/ranged/creature/creature_spit_small_toxicgreen.lua") includeFile("weapon/ranged/creature/creature_spit_small_yellow.lua") includeFile("weapon/ranged/creature/creature_spit_spray_green.lua") includeFile("weapon/ranged/creature/creature_spit_spray_red.lua") includeFile("weapon/ranged/creature/creature_spit_spray_toxicgreen.lua") includeFile("weapon/ranged/creature/creature_spit_spray_yellow.lua")
agpl-3.0
Tatwi/legend-of-hondo
MMOCoreORB/bin/scripts/object/tangible/loot/loot_schematic/bowl_carved_schematic.lua
1
2592
--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_loot_schematic_bowl_carved_schematic = object_tangible_loot_loot_schematic_shared_bowl_carved_schematic:new { templateType = LOOTSCHEMATIC, objectMenuComponent = "LootSchematicMenuComponent", attributeListComponent = "LootSchematicAttributeListComponent", requiredSkill = "crafting_artisan_domestic_02", targetDraftSchematic = "object/draft_schematic/furniture/furniture_bowl_carved.iff", targetUseCount = 1, } ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_bowl_carved_schematic, "object/tangible/loot/loot_schematic/bowl_carved_schematic.iff")
agpl-3.0