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
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/bio_engineer/utilities/objects.lua
3
12718
--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_bio_engineer_utilities_shared_pet_stimpack_a = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_a.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 = 2910061894, 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_bio_engineer_utilities_shared_pet_stimpack_a, "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_a.iff") object_draft_schematic_bio_engineer_utilities_shared_pet_stimpack_b = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_b.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 = 1986244049, 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_bio_engineer_utilities_shared_pet_stimpack_b, "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_b.iff") object_draft_schematic_bio_engineer_utilities_shared_pet_stimpack_c = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_c.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 = 1064225372, 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_bio_engineer_utilities_shared_pet_stimpack_c, "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_c.iff") object_draft_schematic_bio_engineer_utilities_shared_pet_stimpack_d = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_d.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 = 3297632584, 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_bio_engineer_utilities_shared_pet_stimpack_d, "object/draft_schematic/bio_engineer/utilities/shared_pet_stimpack_d.iff") object_draft_schematic_bio_engineer_utilities_shared_pet_vitapack_a = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_vitapack_a.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 = 996406481, 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_bio_engineer_utilities_shared_pet_vitapack_a, "object/draft_schematic/bio_engineer/utilities/shared_pet_vitapack_a.iff") object_draft_schematic_bio_engineer_utilities_shared_pet_vitapack_b = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_vitapack_b.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 = 3765722182, 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_bio_engineer_utilities_shared_pet_vitapack_b, "object/draft_schematic/bio_engineer/utilities/shared_pet_vitapack_b.iff") object_draft_schematic_bio_engineer_utilities_shared_pet_vitapack_c = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/bio_engineer/utilities/shared_pet_vitapack_c.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 = 2843294667, 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_bio_engineer_utilities_shared_pet_vitapack_c, "object/draft_schematic/bio_engineer/utilities/shared_pet_vitapack_c.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/components/booster/bst_moncal_deluxe_standard.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_booster_bst_moncal_deluxe_standard = object_tangible_ship_components_booster_shared_bst_moncal_deluxe_standard:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_moncal_deluxe_standard, "object/tangible/ship/components/booster/bst_moncal_deluxe_standard.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/structure/general/cave_stalactite_ice_style_03.lua
3
2300
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_static_structure_general_cave_stalactite_ice_style_03 = object_static_structure_general_shared_cave_stalactite_ice_style_03:new { } ObjectTemplates:addTemplate(object_static_structure_general_cave_stalactite_ice_style_03, "object/static/structure/general/cave_stalactite_ice_style_03.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/commands/saber2hBodyHit1.lua
1
2373
--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 Saber2hBodyHit1Command = { name = "saber2hbodyhit1", damageMultiplier = 1.25, speedMultiplier = 1.5, forceCostMultiplier = 1.5, -- Not correct animationCRC = hashCode("combo_3a_medium"), combatSpam = "saber2hbodyhit1", poolsToDamage = HEALTH_ATTRIBUTE, range = -1 } AddCommand(Saber2hBodyHit1Command)
lgpl-3.0
jvburnes/node9
LuaJIT-2.0.4/src/jit/vmdef.lua
56
6676
-- This is a generated file. DO NOT EDIT! module(...) bcnames = "ISLT ISGE ISLE ISGT ISEQV ISNEV ISEQS ISNES ISEQN ISNEN ISEQP ISNEP ISTC ISFC IST ISF MOV NOT UNM LEN ADDVN SUBVN MULVN DIVVN MODVN ADDNV SUBNV MULNV DIVNV MODNV ADDVV SUBVV MULVV DIVVV MODVV POW CAT KSTR KCDATAKSHORTKNUM KPRI KNIL UGET USETV USETS USETN USETP UCLO FNEW TNEW TDUP GGET GSET TGETV TGETS TGETB TSETV TSETS TSETB TSETM CALLM CALL CALLMTCALLT ITERC ITERN VARG ISNEXTRETM RET RET0 RET1 FORI JFORI FORL IFORL JFORL ITERL IITERLJITERLLOOP ILOOP JLOOP JMP FUNCF IFUNCFJFUNCFFUNCV IFUNCVJFUNCVFUNCC FUNCCW" irnames = "LT GE LE GT ULT UGE ULE UGT EQ NE ABC RETF NOP BASE PVAL GCSTEPHIOP LOOP USE PHI RENAMEKPRI KINT KGC KPTR KKPTR KNULL KNUM KINT64KSLOT BNOT BSWAP BAND BOR BXOR BSHL BSHR BSAR BROL BROR ADD SUB MUL DIV MOD POW NEG ABS ATAN2 LDEXP MIN MAX FPMATHADDOV SUBOV MULOV AREF HREFK HREF NEWREFUREFO UREFC FREF STRREFALOAD HLOAD ULOAD FLOAD XLOAD SLOAD VLOAD ASTOREHSTOREUSTOREFSTOREXSTORESNEW XSNEW TNEW TDUP CNEW CNEWI TBAR OBAR XBAR CONV TOBIT TOSTR STRTO CALLN CALLL CALLS CALLXSCARG " irfpm = { [0]="floor", "ceil", "trunc", "sqrt", "exp", "exp2", "log", "log2", "log10", "sin", "cos", "tan", "other", } irfield = { [0]="str.len", "func.env", "func.pc", "tab.meta", "tab.array", "tab.node", "tab.asize", "tab.hmask", "tab.nomm", "udata.meta", "udata.udtype", "udata.file", "cdata.ctypeid", "cdata.ptr", "cdata.int", "cdata.int64", "cdata.int64_4", } ircall = { [0]="lj_str_cmp", "lj_str_new", "lj_strscan_num", "lj_str_fromint", "lj_str_fromnum", "lj_tab_new1", "lj_tab_dup", "lj_tab_newkey", "lj_tab_len", "lj_gc_step_jit", "lj_gc_barrieruv", "lj_mem_newgco", "lj_math_random_step", "lj_vm_modi", "sinh", "cosh", "tanh", "fputc", "fwrite", "fflush", "lj_vm_floor", "lj_vm_ceil", "lj_vm_trunc", "sqrt", "exp", "lj_vm_exp2", "log", "lj_vm_log2", "log10", "sin", "cos", "tan", "lj_vm_powi", "pow", "atan2", "ldexp", "lj_vm_tobit", "softfp_add", "softfp_sub", "softfp_mul", "softfp_div", "softfp_cmp", "softfp_i2d", "softfp_d2i", "softfp_ui2d", "softfp_f2d", "softfp_d2ui", "softfp_d2f", "softfp_i2f", "softfp_ui2f", "softfp_f2i", "softfp_f2ui", "fp64_l2d", "fp64_ul2d", "fp64_l2f", "fp64_ul2f", "fp64_d2l", "fp64_d2ul", "fp64_f2l", "fp64_f2ul", "lj_carith_divi64", "lj_carith_divu64", "lj_carith_modi64", "lj_carith_modu64", "lj_carith_powi64", "lj_carith_powu64", "lj_cdata_setfin", "strlen", "memcpy", "memset", "lj_vm_errno", "lj_carith_mul64", } traceerr = { [0]="error thrown or hook called during recording", "trace too long", "trace too deep", "too many snapshots", "blacklisted", "NYI: bytecode %d", "leaving loop in root trace", "inner loop in root trace", "loop unroll limit reached", "bad argument type", "JIT compilation disabled for function", "call unroll limit reached", "down-recursion, restarting", "NYI: C function %p", "NYI: FastFunc %s", "NYI: unsupported variant of FastFunc %s", "NYI: return to lower frame", "store with nil or NaN key", "missing metamethod", "looping index lookup", "NYI: mixed sparse/dense table", "symbol not in cache", "NYI: unsupported C type conversion", "NYI: unsupported C function type", "guard would always fail", "too many PHIs", "persistent type instability", "failed to allocate mcode memory", "machine code too long", "hit mcode limit (retrying)", "too many spill slots", "inconsistent register allocation", "NYI: cannot assemble IR instruction %d", "NYI: PHI shuffling too complex", "NYI: register coalescing too complex", } ffnames = { [0]="Lua", "C", "assert", "type", "next", "pairs", "ipairs_aux", "ipairs", "getmetatable", "setmetatable", "getfenv", "setfenv", "rawget", "rawset", "rawequal", "unpack", "select", "tonumber", "tostring", "error", "pcall", "xpcall", "loadfile", "load", "loadstring", "dofile", "gcinfo", "collectgarbage", "newproxy", "print", "coroutine.status", "coroutine.running", "coroutine.create", "coroutine.yield", "coroutine.resume", "coroutine.wrap_aux", "coroutine.wrap", "math.abs", "math.floor", "math.ceil", "math.sqrt", "math.log10", "math.exp", "math.sin", "math.cos", "math.tan", "math.asin", "math.acos", "math.atan", "math.sinh", "math.cosh", "math.tanh", "math.frexp", "math.modf", "math.deg", "math.rad", "math.log", "math.atan2", "math.pow", "math.fmod", "math.ldexp", "math.min", "math.max", "math.random", "math.randomseed", "bit.tobit", "bit.bnot", "bit.bswap", "bit.lshift", "bit.rshift", "bit.arshift", "bit.rol", "bit.ror", "bit.band", "bit.bor", "bit.bxor", "bit.tohex", "string.len", "string.byte", "string.char", "string.sub", "string.rep", "string.reverse", "string.lower", "string.upper", "string.dump", "string.find", "string.match", "string.gmatch_aux", "string.gmatch", "string.gsub", "string.format", "table.foreachi", "table.foreach", "table.getn", "table.maxn", "table.insert", "table.remove", "table.concat", "table.sort", "io.method.close", "io.method.read", "io.method.write", "io.method.flush", "io.method.seek", "io.method.setvbuf", "io.method.lines", "io.method.__gc", "io.method.__tostring", "io.open", "io.popen", "io.tmpfile", "io.close", "io.read", "io.write", "io.flush", "io.input", "io.output", "io.lines", "io.type", "os.execute", "os.remove", "os.rename", "os.tmpname", "os.getenv", "os.exit", "os.clock", "os.date", "os.time", "os.difftime", "os.setlocale", "debug.getregistry", "debug.getmetatable", "debug.setmetatable", "debug.getfenv", "debug.setfenv", "debug.getinfo", "debug.getlocal", "debug.setlocal", "debug.getupvalue", "debug.setupvalue", "debug.upvalueid", "debug.upvaluejoin", "debug.sethook", "debug.gethook", "debug.debug", "debug.traceback", "jit.on", "jit.off", "jit.flush", "jit.status", "jit.attach", "jit.util.funcinfo", "jit.util.funcbc", "jit.util.funck", "jit.util.funcuvname", "jit.util.traceinfo", "jit.util.traceir", "jit.util.tracek", "jit.util.tracesnap", "jit.util.tracemc", "jit.util.traceexitstub", "jit.util.ircalladdr", "jit.opt.start", "ffi.meta.__index", "ffi.meta.__newindex", "ffi.meta.__eq", "ffi.meta.__len", "ffi.meta.__lt", "ffi.meta.__le", "ffi.meta.__concat", "ffi.meta.__call", "ffi.meta.__add", "ffi.meta.__sub", "ffi.meta.__mul", "ffi.meta.__div", "ffi.meta.__mod", "ffi.meta.__pow", "ffi.meta.__unm", "ffi.meta.__tostring", "ffi.meta.__pairs", "ffi.meta.__ipairs", "ffi.clib.__index", "ffi.clib.__newindex", "ffi.clib.__gc", "ffi.callback.free", "ffi.callback.set", "ffi.cdef", "ffi.new", "ffi.cast", "ffi.typeof", "ffi.istype", "ffi.sizeof", "ffi.alignof", "ffi.offsetof", "ffi.errno", "ffi.string", "ffi.copy", "ffi.fill", "ffi.abi", "ffi.metatype", "ffi.gc", "ffi.load", }
mit
eraffxi/darkstar
scripts/globals/items/vulcan_sword.lua
2
1118
----------------------------------------- -- ID: 17704 -- Item: Vulcan Sword -- Additional Effect: Fire Damage -- Enchantment: Enfire ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect(player,target,damage) local dmg = math.random(3,10); local params = {}; params.bonusmab = 0; params.includemab = false; dmg = addBonusesAbility(player, dsp.magic.ele.FIRE, target, dmg, params); dmg = dmg * applyResistanceAddEffect(player,target,dsp.magic.ele.FIRE,0); dmg = adjustForTarget(target,dmg,dsp.magic.ele.FIRE); dmg = finalMagicNonSpellAdjustments(player,target,dsp.magic.ele.FIRE,dmg); local message = dsp.msg.basic.ADD_EFFECT_DMG; if (dmg < 0) then message = dsp.msg.basic.ADD_EFFECT_HEAL; end return dsp.subEffect.FIRE_DAMAGE,message,dmg; end; function onItemCheck(target) return 0; end; function onItemUse(target) local effect = dsp.effect.ENFIRE; doEnspell(target,target,nil,effect); end;
gpl-3.0
russakkyo/GitHub
src/scripts/lua/Lua/Stable Scripts/Outland/Magisters Terrace/UNIT-MagistersTerrace-SunbladeMageGuard.lua
30
1409
--[[ ******************************** * * * The Moon Project * * * ******************************** This software is provided as free and open source by the staff of The Moon Project, in accordance with the GPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. Staff of Moon Project, Feb 2008 ~~End of License Agreement --Moon April 2008]] function SunbladeMageGuard_OnCombat(Unit, Event) Unit:RegisterAIUpdateEvent(7000) end function SunbladeMageGuard_GlaiveThrow(Unit) local FlipGlaive = math.random(2) if FlipGlaive ==1 and Unit:GetRandomPlayer(7) then Unit:CastSpellOnTarget(44478, Unit:GetRandomPlayer(7)) else Unit:CastSpellOnTarget(46028, Unit:GetRandomPlayer(7)) end end function SunbladeMageGuard_LeaveCombat(Unit, Event) Unit:RemoveAIUpdateEvent() end function SunbladeMageGuard_Died(Unit, Event) Unit:RemoveAIUpdateEvent() end RegisterUnitEvent(24683, 1, "SunbladeMageGuard_OnCombat") RegisterUnitEvent(24683, 21, "SunbladeMageGuard_GlaiveThrow") RegisterUnitEvent(24683, 2, "SunbladeMageGuard_LeaveCombat") RegisterUnitEvent(24683, 4, "SunbladeMageGuard_Died")
agpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/structure/tatooine/wall_archway_tatooine_wide_style_01.lua
3
2332
--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_tatooine_wall_archway_tatooine_wide_style_01 = object_static_structure_tatooine_shared_wall_archway_tatooine_wide_style_01:new { } ObjectTemplates:addTemplate(object_static_structure_tatooine_wall_archway_tatooine_wide_style_01, "object/static/structure/tatooine/wall_archway_tatooine_wide_style_01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/food/drink_tssolok.lua
2
3363
--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_food_drink_tssolok = object_draft_schematic_food_shared_drink_tssolok:new { templateType = DRAFTSCHEMATIC, customObjectName = "T\\\'ssolok", craftingToolTab = 4, -- (See DraftSchemticImplementation.h) complexity = 10, size = 1, xpType = "crafting_food_general", xp = 160, assemblySkill = "food_assembly", experimentingSkill = "food_experimentation", customizationSkill = "food_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n"}, ingredientTitleNames = {"alcohol", "flavoring_extract", "glass", "additive"}, ingredientSlotType = {1, 0, 2, 3}, resourceTypes = {"object/tangible/food/crafted/shared_drink_alcohol.iff", "organic", "object/tangible/component/food/base/shared_drink_container_base.iff", "object/tangible/food/crafted/additive/shared_additive_medium.iff"}, resourceQuantities = {3, 40, 1, 1}, contribution = {100, 100, 100, 100}, targetTemplate = "object/tangible/food/crafted/drink_tssolok.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_food_drink_tssolok, "object/draft_schematic/food/drink_tssolok.iff")
lgpl-3.0
russakkyo/GitHub
src/scripts/lua/LuaBridge/0Misc/0LCF_Includes/LCF_Unit.lua
13
6802
--[[ /* * ArcEmu MMORPG Server * Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/> * Copyright (C) 2008-2010 <http://www.ArcEmu.org/> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ ]] assert( include("LCF.lua") ) local UNIT = LCF.UnitMethods assert(UNIT) local function alias(LHAname, LBname) UNIT[LHAname] = function(self, ...) return self[LBname](self, ...); end end function UNIT:FullCastSpell( id) self:CastSpell(self, id, false) end function UNIT:FullCastSpellOnTarget( target, id) self:CastSpell( target, id, false) end function UNIT:CastSpell(id) self:CastSpell(self, id, true) end function UNIT:CastSpellOnTarget(target, id) self:CastSpell(target, id, true) end function UNIT:SetChannelTarget(target) local guid = nil if(target) then guid = target:GetGUID() end self:SetUInt64Value(LCF.UNIT_FIELD_CHANNEL_OBJECT,guid) end function UNIT:SetChannelSpell( spell) self:SetUInt32Value(LCF.UNIT_CHANNEL_SPELL, spell) end function UNIT:GetChannelTarget() local guid = self:GetUInt64Value(LCF.UNIT_FIELD_CHANNEL_OBJECT) print( tostring(guid) ) if(guid) then return MapMgr:GetObject(guid) end return nil end function UNIT:GetChannelSpell() return self:GetUInt32Value( LCF.UNIT_CHANNEL_SPELL ) end function UNIT:ChannelSpell( spell, target) self:SetChannelTarget( target) self:SetChannelSpell( spell) end function UNIT:StopChannel() self:SetChannelTarget( nil) self:SetChannelSpell( 0 ) end function UNIT:SetCreatedBy(creator) local guid = 0 if(creator) then guid = creator:GetGUID() end self:SetUInt64Value(LCF.UNIT_FIELD_CREATEDBY, guid) end function UNIT:SetSummonedBy( summoner) local guid = 0 if(summoner) then guid = summoner:GetGUID() end self:SetUInt64Value( LCF.UNIT_FIELD_SUMMONEDBY, summoner:GetGUID() ) end function UNIT:GetCreatedBy() return self:GetObject( self:GetUInt64Value(LCF.UNIT_FIELD_CREATEDBY) ) end function UNIT:GetSummonedBy() return self:GetObject( self:GetUInt64Value(LCF.UNIT_FIELD_SUMMONEDBY) ) end function UNIT:CastSpellAoFID(x,y,z,id) self:CastSpellAoF(x, y, z, dbcSpell.LookupEntry(id), true) end alias("CastSpellAoE", "CastSpellAoF") function UNIT:QuickChannel(id, tar) self:CastSpell(tar, id, true) self:ChannelSpell(id, tar) end alias("DeMorph", "Demorph") alias("EventChat", "SendChatMessage") function UNIT:FullCastSpellAoF(x,y,z,id) self:CastSpellAoF(x, y, z, dbcSpell.LookupEntry(id), false); end alias("FullCastSpellAoE", "FullCastSpellAoF") function UNIT:GetCreatureNearestCoords(x,y,z,e) return MapMgr:GetInterface():GetCreatureNearestCoords(x,y,z,e); end function UNIT:GetGameObjectNearestCoords(x,y,z,e) return MapMgr:GetInterface():getGameObjectNearestCoords(x,y,z,e); end alias("GetDisplay", "GetDisplayId") alias("GetGender", "getGender") alias("GetLevel", "getLevel") function UNIT:GetMana() return self:GetPower(0); end function UNIT:GetMaxMana() return self:GetMaxPower(0); end alias("GetNativeDisplay", "GetNativeDisplayId") alias("IsAlive", "isAlive") function UNIT:IsInCombat() return self.CombatStatus:IsInCombat(); end alias("SetAttackTimer", "setAttackTimer") alias("SetGender", "setGender") alias("SetLevel", "setLevel") function UNIT:SetMana(value) self:SetPower(0, value); end function UNIT:SetMaxMana(value) self:SetMaxPower(0, value); end alias("SetModel", "SetDisplayId") function UNIT:SetNPCFlags(value) self:SetUInt32Value(LCF.UNIT_NPC_FLAGS, value); end function UNIT:SetZoneWeather(zoneid, _type, density) return SetWeather("zone", zoneid, _type, density); end function UNIT:SpawnCreature(entry, x, y, z, o, fac, duration, e1, e2, e3, phase, save) return EasySpawn(1, entry, x, y, z, o, fac, duration, e1, e2, e3, save, phase) end function UNIT:SpawnGameObject(entry, x, y, z, o, duration, scale, phase, save) return EasySpawn(2, entry, x, y, z, o, scale, duration, nil, nil, nil, save, phase) end function UNIT:CreateGuardian(entry, duration, angle, lvl) return self:create_guardian(entry, duration, angle, lvl, 0) end alias("Emote", "EventAddEmote") local oldSendChatMessage = getregistry("Unit").SendChatMessage; getregistry("Unit").SendChatMessage = function(self, _type, lang, msg, delay) delay = delay or 0; oldSendChatMessage(self, _type, lang, msg, delay) end local oldGetPower = getregistry("Unit").GetPower; getregistry("Unit").GetPower = function(self, powtype) powtype = powtype or self:GetPowerType(); oldGetPower(self, powtype) end function UNIT:GetPowerPct(idx) return (self:GetPower(idx) / self:GetMaxPower(idx)) * 100; end local oldGetMaxPower = getregistry("Unit").GetMaxPower; getregistry("Unit").GetMaxPower = function(self, powtype) powtype = powtype or self:GetPowerType(); oldGetMaxPower(self, powtype) end local oldSetPower = getregistry("Unit").SetPower; getregistry("Unit").SetPower = function(self, powtype) powtype = powtype or self:GetPowerType(); oldSetPower(self, powtype) end function UNIT:SetPowerPct(pct, _type) self:SetPower(_type, (pct / 100) * self:GetMaxPower(_type)); end local oldSetMaxPower = getregistry("Unit").SetMaxPower; getregistry("Unit").SetMaxPower = function(self, powtype) powtype = powtype or self:GetPowerType(); oldSetMaxPower(self, powtype) end function UNIT:GetAreaId() return MapMgr:GetAreaID(self:GetX(), self:GetY()); end function UNIT:Actual() if (self:IsCreature()) then return TO_CREATURE(self); else return TO_PLAYER(self); end end alias("AddAuraObject", "AddAura") function UNIT:AddAuraByID(spellid, duration, temp) local aura = Aura(dbcSpell:LookupEntry(spellid), duration, self, self, temp) self:AddAura(aura) return true end --------------------------------- RE-DEFINED 'alias' here------------------------------ alias = function(_func, ...) for _,label in ipairs(arg) do UNIT[label] = _func end end alias( function(self, id, ...) for _,target in ipairs(arg) do self:CastSpell(target, id, false) end end, "FullCastSpellOnTargets", "fullCastSpellOnTargets", "fullcastspellontargets") alias( function(self, id, ...) for _,target in ipairs(arg) do self:CastSpell(target, id, true) end end, "CastSpellOnTargets", "castSpellOnTargets", "castspellontargets")
agpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/naboo/gungan_grand_army_soldier.lua
1
1112
gungan_grand_army_soldier = Creature:new { objectName = "@mob/creature_names:gungan_grand_army_soldier", socialGroup = "gungan", pvpFaction = "gungan", faction = "gungan", level = 18, chanceHit = 0.32, damageMin = 170, damageMax = 180, baseXp = 1257, baseHAM = 4100, baseHAMmax = 5000, armor = 0, resists = {5,5,5,-1,20,-1,-1,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK, optionsBitmask = 128, diet = HERBIVORE, templates = {"object/mobile/gungan_male.iff"}, lootGroups = { { groups = { {group = "junk", chance = 4000000}, {group = "gungan_common", chance = 2000000}, {group = "tailor_components", chance = 2000000}, {group = "loot_kit_parts", chance = 2000000} }, lootChance = 3200000 } }, weapons = {"rebel_weapons_medium"}, conversationTemplate = "", attacks = merge(brawlernovice,marksmannovice) } CreatureTemplates:addCreatureTemplate(gungan_grand_army_soldier, "gungan_grand_army_soldier")
lgpl-3.0
eraffxi/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Erlene.lua
2
6155
----------------------------------- -- Area: The Eldieme Necropolis (S) -- NPC: Erlene -- Involved in Quest: "A Little Knowledge" -- !pos 376.936 -39.999 17.914 175 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/titles"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- function onTrade(player,npc,trade) local ALittleKnowledge = player:getQuestStatus(CRYSTAL_WAR, A_LITTLE_KNOWLEDGE); local ALittleKnowledgeProgress = player:getVar("ALittleKnowledge"); if (ALittleKnowledge == QUEST_ACCEPTED and ALittleKnowledgeProgress == 1) then if (trade:hasItemQty(2550, 12) and trade:getGil() == 0 and trade:getItemCount() == 12) then if( player:getMainJob() == dsp.job.BLM or player:getMainJob() == dsp.job.RDM or player:getMainJob() == dsp.job.SMN or player:getMainJob() == dsp.job.BLU) then player:startEvent(12, 1); else player:startEvent(12); end end end end; function onTrigger(player,npc) local ALittleKnowledge = player:getQuestStatus(CRYSTAL_WAR, A_LITTLE_KNOWLEDGE); local ALittleKnowledgeProgress = player:getVar("ALittleKnowledge"); local mLvl = player:getMainLvl(); local mJob = player:getMainJob(); local onSabbatical = player:getQuestStatus(CRYSTAL_WAR,ON_SABBATICAL); local onSabbaticalProgress = player:getVar("OnSabbatical"); local downwardHelix = player:getQuestStatus(CRYSTAL_WAR, DOWNWARD_HELIX); if (ALittleKnowledge == QUEST_AVAILABLE) then if (mLvl >= ADVANCED_JOB_LEVEL) then player:startEvent(10,1); else player:startEvent(10); end elseif (ALittleKnowledgeProgress == 1 and ALittleKnowledge == QUEST_ACCEPTED) then player:startEvent(11); elseif (ALittleKnowledgeProgress == 2 and ALittleKnowledge == QUEST_ACCEPTED) then if (player:hasStatusEffect(dsp.effect.MANAFONT) or player:hasStatusEffect(dsp.effect.CHAINSPELL) or player:hasStatusEffect(dsp.effect.ASTRAL_FLOW) or player:hasStatusEffect(dsp.effect.AZURE_LORE)) then player:startEvent(14); else player:startEvent(13); end elseif (ALittleKnowledge == QUEST_COMPLETED and mJob == dsp.job.SCH and mLvl >= 5 and not (player:hasSpell(478) and player:hasSpell(502))) then player:startEvent(47); elseif (onSabbatical == QUEST_AVAILABLE and mJob == dsp.job.SCH and mLvl >= AF1_QUEST_LEVEL) then player:startEvent(18); elseif (onSabbatical == QUEST_ACCEPTED) then if (onSabbaticalProgress < 3) then player:startEvent(19); else player:startEvent(20); end elseif (onSabbatical == QUEST_COMPLETED and player:getVar("Erlene_Sabbatical_Timer")~=VanadielDayOfTheYear() and mJob == dsp.job.SCH and mLvl >= AF2_QUEST_LEVEL and downwardHelix == QUEST_AVAILABLE) then player:startEvent(23); elseif (downwardHelix == QUEST_ACCEPTED) then if (player:getVar("DownwardHelix") == 0) then player:startEvent(24); elseif (player:getVar("DownwardHelix") == 1) then player:startEvent(25); elseif (player:getVar("DownwardHelix") < 4) then player:startEvent(26); else player:startEvent(27); end else player:startEvent(15); end end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 10 and option == 0) then player:addQuest(CRYSTAL_WAR, A_LITTLE_KNOWLEDGE); player:setVar("ALittleKnowledge", 1); elseif (csid == 12) then player:tradeComplete(); player:setVar("ALittleKnowledge", 2); elseif (csid == 14) then player:addKeyItem(dsp.ki.GRIMOIRE); player:unlockJob(dsp.job.SCH); player:addTitle(dsp.title.SCHULTZ_SCHOLAR); player:setVar("ALittleKnowledge", 0); player:setVar("SheetsofVellum", 0); player:messageSpecial(YOU_CAN_NOW_BECOME_A_SCHOLAR); player:completeQuest(CRYSTAL_WAR, A_LITTLE_KNOWLEDGE); elseif (csid == 47) then if (player:canLearnSpell(478) and player:canLearnSpell(502)) then player:addSpell(478, true); player:addSpell(502, true); player:messageSpecial(YOU_LEARN_EMBRAVA_AND_KAUSTRA); end elseif (csid == 18) then player:addQuest(CRYSTAL_WAR, ON_SABBATICAL); player:addKeyItem(dsp.ki.ULBRECHTS_SEALED_LETTER); player:messageSpecial(KEYITEM_OBTAINED, dsp.ki.ULBRECHTS_SEALED_LETTER); player:setVar("OnSabbatical", 1); elseif (csid == 20) then if (player:getFreeSlotsCount() == 0) then player:messageSpecial(ITEM_CANNOT_BE_OBTAINED); else player:delKeyItem(dsp.ki.ULBRECHTS_SEALED_LETTER); player:delKeyItem(dsp.ki.SCHULTS_SEALED_LETTER); player:completeQuest(CRYSTAL_WAR,ON_SABBATICAL); player:addItem(6058); --klimaform player:messageSpecial(ITEM_OBTAINED, 6058); player:setVar("onSabbatical",0); player:setVar("Erlene_Sabbatical_Timer",VanadielDayOfTheYear()); end elseif (csid == 23) then player:setVar("Erlene_Sabbatical_Timer",0); player:addQuest(CRYSTAL_WAR, DOWNWARD_HELIX); elseif (csid == 25) then player:setVar("DownwardHelix",2); elseif (csid == 27) then if (player:getFreeSlotsCount() == 0) then player:messageSpecial(ITEM_CANNOT_BE_OBTAINED); else player:completeQuest(CRYSTAL_WAR, DOWNWARD_HELIX); player:addItem(15004); -- Schlar's Bracers player:messageSpecial(ITEM_OBTAINED, 15004); player:setVar("DownwardHelix",0); end end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/ship/firespray.lua
3
2144
--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_firespray = object_ship_shared_firespray:new { } ObjectTemplates:addTemplate(object_ship_firespray, "object/ship/firespray.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/spells/bluemagic/sub-zero_smash.lua
2
2019
----------------------------------------- -- Spell: Sub-zero Smash -- Additional Effect: Paralysis. Damage varies with TP -- Spell cost: 44 MP -- Monster Type: Aquans -- Spell Type: Physical (Blunt) -- Blue Magic Points: 4 -- Stat Bonus: HP+10 VIT+3 -- Level: 72 -- Casting Time: 1 second -- Recast Time: 30 seconds -- Skillchain Element(s): Fragmentation-IconFragmentation (can open/close Light-Icon Light with Fusion WSs and spells) -- Combos: Fast Cast ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnMagicCastingCheck ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; ----------------------------------------- -- OnSpellCast ----------------------------------------- function onSpellCast(caster,target,spell) local params = {}; -- This data should match information on http://wiki.ffxiclopedia.org/wiki/Calculating_Blue_Magic_Damage params.tpmod = TPMOD_CRITICAL; params.dmgtype = DMGTYPE_BLUNT; params.scattr = SC_FRAGMENTATION; params.numhits = 1; params.multiplier = 1.95; params.tp150 = 1.25; params.tp300 = 1.25; params.azuretp = 1.25; params.duppercap = 72; params.str_wsc = 0.0; params.dex_wsc = 0.0; params.vit_wsc = 0.0; params.agi_wsc = 0.0; params.int_wsc = 0.20; params.mnd_wsc = 0.3; params.chr_wsc = 0.0; damage = BluePhysicalSpell(caster, target, spell, params); damage = BlueFinalAdjustments(caster, target, spell, damage, params); local chance = math.random(1,20); if (damage > 0 and chance > 5) then local typeEffect = dsp.effect.PARALYSIS; target:delStatusEffect(typeEffect); target:addStatusEffect(typeEffect,1,0,getBlueEffectDuration(caster,resist,typeEffect)); end return damage; end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/loot/items/geonosian_lab/rifle_tenloss_dxr6_disruptor.lua
3
1052
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. rifle_tenloss_dxr6_disruptor = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/ranged/rifle/rifle_tenloss_dxr6_disruptor_loot.iff", craftingValues = { {"mindamage",40,150,0}, {"maxdamage",80,320,0}, {"attackspeed",9.4,6.7,1}, {"woundchance",4.8,12.3,0}, {"hitpoints",750,750,0}, {"attackhealthcost",21,12,0}, {"attackactioncost",32,19,0}, {"attackmindcost",77,42,0}, {"roundsused",30,65,0}, {"zerorangemod",-80,-40,0}, {"maxrangemod",10,30,0}, {"midrange",54,54,0}, {"midrangemod",45,70,0}, }, customizationStringNames = {}, customizationValues = {}, -- randomDotChance: The chance of this weapon object dropping with a random dot on it. Higher number means less chance. Set to 0 to always have a random dot. randomDotChance = 1000, junkDealerTypeNeeded = JUNKWEAPONS, junkMinValue = 20, junkMaxValue = 60 } addLootItemTemplate("rifle_tenloss_dxr6_disruptor", rifle_tenloss_dxr6_disruptor)
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/base/base_dress_poofysleeve_upper.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_wearables_base_base_dress_poofysleeve_upper = object_tangible_wearables_base_shared_base_dress_poofysleeve_upper:new { } ObjectTemplates:addTemplate(object_tangible_wearables_base_base_dress_poofysleeve_upper, "object/tangible/wearables/base/base_dress_poofysleeve_upper.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_aujante_klee.lua
3
2196
--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_aujante_klee = object_mobile_shared_dressed_aujante_klee:new { } ObjectTemplates:addTemplate(object_mobile_dressed_aujante_klee, "object/mobile/dressed_aujante_klee.iff")
lgpl-3.0
widelands/widelands
data/tribes/workers/empire/builder/init.lua
1
1198
push_textdomain("tribes") dirname = path.dirname(__file__) wl.Descriptions():new_worker_type { name = "empire_builder", -- TRANSLATORS: This is a worker name used in lists of workers descname = pgettext("empire_worker", "Builder"), animation_directory = dirname, icon = dirname .. "menu.png", vision_range = 2, buildcost = { empire_carrier = 1, hammer = 1 }, spritesheets = { idle = { fps = 10, frames = 150, rows = 13, columns = 12, hotspot = { 11, 21 } }, walk = { fps = 10, frames = 10, rows = 4, columns = 3, directional = true, hotspot = { 11, 23 } }, walkload = { basename = "walk", fps = 10, frames = 10, rows = 4, columns = 3, directional = true, hotspot = { 11, 23 } }, work = { sound_effect = { path = "sound/hammering/hammering", priority = "50%" }, fps = 10, frames = 92, rows = 11, columns = 9, hotspot = { 11, 21 } }, }, } pop_textdomain()
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/furniture/all/frn_all_throwpillow_med_s03.lua
1
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_tangible_furniture_all_frn_all_throwpillow_med_s03 = object_tangible_furniture_all_shared_frn_all_throwpillow_med_s03:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_throwpillow_med_s03, "object/tangible/furniture/all/frn_all_throwpillow_med_s03.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/item/item_crate_clothing_small.lua
3
2236
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_static_item_item_crate_clothing_small = object_static_item_shared_item_crate_clothing_small:new { } ObjectTemplates:addTemplate(object_static_item_item_crate_clothing_small, "object/static/item/item_crate_clothing_small.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/vest/vest_s06.lua
3
5168
--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_vest_vest_s06 = object_tangible_wearables_vest_shared_vest_s06: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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalProperties = {"XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints", "mod_idx_one", "mod_val_one", "mod_idx_two", "mod_val_two", "mod_idx_three", "mod_val_three", "mod_idx_four", "mod_val_four", "mod_idx_five", "mod_val_five", "mod_idx_six", "mod_val_six"}, experimentalMin = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalMax = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_wearables_vest_vest_s06, "object/tangible/wearables/vest/vest_s06.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/building/naboo/objects.lua
3
90938
--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_building_naboo_shared_association_hall_civilian_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_association_hall_civilian_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 35, clientDataFile = "clientdata/building/shared_association_hall.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:association_hall_civilian_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_association_hall_style_naboo2.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:association_hall_civilian_naboo", noBuildRadius = 0, objectName = "@building_name:association_hall_civilian_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/thm_nboo_assoc_hall_civ_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 17, useStructureFootprintOutline = 0, clientObjectCRC = 4161211751, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_association_hall.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_association_hall_civilian_naboo, "object/building/naboo/shared_association_hall_civilian_naboo.iff") object_building_naboo_shared_bank_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_bank_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/mun_nboo_bank_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 35, clientDataFile = "clientdata/building/shared_bank.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:bank", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:bank", noBuildRadius = 0, objectName = "@building_name:bank", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3658850000, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_bank.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_bank_naboo, "object/building/naboo/shared_bank_naboo.iff") object_building_naboo_shared_bubble_naboo_large_style_1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_bubble_naboo_large_style_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/otoh_lrgbuba.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:bubble_naboo_large_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:bubble_naboo_large_style_1", noBuildRadius = 0, objectName = "@building_name:bubble_naboo_large_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4092578549, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_bubble_naboo.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_bubble_naboo_large_style_1, "object/building/naboo/shared_bubble_naboo_large_style_1.iff") object_building_naboo_shared_bubble_naboo_medium_style_1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_bubble_naboo_medium_style_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/otoh_meda.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:bubble_naboo_medium_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:bubble_naboo_medium_style_1", noBuildRadius = 0, objectName = "@building_name:bubble_naboo_medium_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4060997575, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_bubble_naboo.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_bubble_naboo_medium_style_1, "object/building/naboo/shared_bubble_naboo_medium_style_1.iff") object_building_naboo_shared_bubble_naboo_medium_style_2 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_bubble_naboo_medium_style_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/otoh_medb.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:bubble_naboo_medium_style_2", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:bubble_naboo_medium_style_2", noBuildRadius = 0, objectName = "@building_name:bubble_naboo_medium_style_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 689590096, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_bubble_naboo.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_bubble_naboo_medium_style_2, "object/building/naboo/shared_bubble_naboo_medium_style_2.iff") object_building_naboo_shared_bubble_naboo_small_style_1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_bubble_naboo_small_style_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/otoh_smalla.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:bubble_naboo_small_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:bubble_naboo_small_style_1", noBuildRadius = 0, objectName = "@building_name:bubble_naboo_small_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1528349113, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_bubble_naboo.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_bubble_naboo_small_style_1, "object/building/naboo/shared_bubble_naboo_small_style_1.iff") object_building_naboo_shared_cantina_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_cantina_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 58, clientDataFile = "clientdata/building/shared_tatooine_cantina.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:cantina_general", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_cantina_style_01.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:cantina_general", noBuildRadius = 0, objectName = "@building_name:cantina_general", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/thm_nboo_cantina.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 15, useStructureFootprintOutline = 0, clientObjectCRC = 1964795921, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_cantina.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_cantina_naboo, "object/building/naboo/shared_cantina_naboo.iff") object_building_naboo_shared_capitol_naboo_theed = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_capitol_naboo_theed.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 65, clientDataFile = "clientdata/building/shared_capitol.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:capitol_naboo_theed", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_capitol_style_naboo.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:capitol_naboo_theed", noBuildRadius = 0, objectName = "@building_name:capitol_naboo_theed", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_capitol_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 11, useStructureFootprintOutline = 0, clientObjectCRC = 2574224334, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_palace.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_capitol_naboo_theed, "object/building/naboo/shared_capitol_naboo_theed.iff") object_building_naboo_shared_cloning_facility_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_cloning_facility_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "clientdata/building/shared_cloning.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:cloning_facility_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_cloning_facility.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:cloning_facility_naboo", noBuildRadius = 0, objectName = "@building_name:cloning_facility_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_cloning_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 6, useStructureFootprintOutline = 0, clientObjectCRC = 1114686474, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_cloning_facility.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_cloning_facility_naboo, "object/building/naboo/shared_cloning_facility_naboo.iff") object_building_naboo_shared_emperors_retreat = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_emperors_retreat.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 60, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:palace_naboo_theed", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/emperor_retreat.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:palace_naboo_theed", noBuildRadius = 0, objectName = "@building_name:palace_naboo_theed", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/thm_nboo_thed_emp_retreat.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 23, useStructureFootprintOutline = 0, clientObjectCRC = 120523031, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_palace.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_emperors_retreat, "object/building/naboo/shared_emperors_retreat.iff") object_building_naboo_shared_filler_building_naboo_style_10 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_10.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s10.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 32, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_10.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_10", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_10", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_10", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3073450826, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_10, "object/building/naboo/shared_filler_building_naboo_style_10.iff") object_building_naboo_shared_filler_building_naboo_style_11 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_11.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s11.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 32, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_11", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_11", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_11", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4265362631, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_11, "object/building/naboo/shared_filler_building_naboo_style_11.iff") object_building_naboo_shared_filler_building_naboo_style_2 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_2.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 10, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_2.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_2", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_2", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_2", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 343147098, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_2, "object/building/naboo/shared_filler_building_naboo_style_2.iff") object_building_naboo_shared_filler_building_naboo_style_3 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_3.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 35, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_3.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_3", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_3", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_3", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1568237015, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_3, "object/building/naboo/shared_filler_building_naboo_style_3.iff") object_building_naboo_shared_filler_building_naboo_style_4 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_4.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s04.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_4.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_4", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_4", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_4", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2795130563, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_4, "object/building/naboo/shared_filler_building_naboo_style_4.iff") object_building_naboo_shared_filler_building_naboo_style_5 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_5.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s05.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 20, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_5.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_5", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_5", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_5", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4019661134, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_5, "object/building/naboo/shared_filler_building_naboo_style_5.iff") object_building_naboo_shared_filler_building_naboo_style_6 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_6.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s06.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 12, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_6.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_6", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_6", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_6", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 880837081, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_6, "object/building/naboo/shared_filler_building_naboo_style_6.iff") object_building_naboo_shared_filler_building_naboo_style_8 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_8.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s08.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 12, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_8.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_8", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_8", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_8", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3347565126, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_8, "object/building/naboo/shared_filler_building_naboo_style_8.iff") object_building_naboo_shared_filler_building_naboo_style_9 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_building_naboo_style_9.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_imprv_building_s09.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/building/shared_naboo_filler_bldg_9.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_naboo_style_9", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_naboo_style_9", noBuildRadius = 0, objectName = "@building_name:filler_building_naboo_style_9", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2391453131, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_building_naboo_style_9, "object/building/naboo/shared_filler_building_naboo_style_9.iff") object_building_naboo_shared_filler_nboo_bldg_32x16_style_01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_nboo_bldg_32x16_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_block_bldg_32x16_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 20, clientDataFile = "clientdata/building/shared_naboo_32x16_s01.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_tatt_style01_10", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_tatt_style01_10", noBuildRadius = 0, objectName = "@building_name:filler_building_tatt_style01_10", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1370920904, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_nboo_bldg_32x16_style_01, "object/building/naboo/shared_filler_nboo_bldg_32x16_style_01.iff") object_building_naboo_shared_filler_nboo_bldg_32x16_style_02 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_nboo_bldg_32x16_style_02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_block_bldg_32x16_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 20, clientDataFile = "clientdata/building/shared_naboo_32x16_s02.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_tatt_style01_10", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_tatt_style01_10", noBuildRadius = 0, objectName = "@building_name:filler_building_tatt_style01_10", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2325823327, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_nboo_bldg_32x16_style_02, "object/building/naboo/shared_filler_nboo_bldg_32x16_style_02.iff") object_building_naboo_shared_filler_nboo_bldg_64x32_s02 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_nboo_bldg_64x32_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_block_bldg_64x32_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "clientdata/building/shared_naboo_64x32_s02.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_tatt_style01_10", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_tatt_style01_10", noBuildRadius = 0, objectName = "@building_name:filler_building_tatt_style01_10", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2522453461, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_nboo_bldg_64x32_s02, "object/building/naboo/shared_filler_nboo_bldg_64x32_s02.iff") object_building_naboo_shared_filler_nboo_bldg_64x32_style_01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_filler_nboo_bldg_64x32_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_block_bldg_64x32_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "clientdata/building/shared_naboo_64x32_s01.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:filler_building_tatt_style01_10", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:filler_building_tatt_style01_10", noBuildRadius = 0, objectName = "@building_name:filler_building_tatt_style01_10", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 166100265, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_filler_building.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_filler_nboo_bldg_64x32_style_01, "object/building/naboo/shared_filler_nboo_bldg_64x32_style_01.iff") object_building_naboo_shared_guild_combat_naboo_style_01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_guild_combat_naboo_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 35, clientDataFile = "clientdata/building/shared_guild_combat.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:guild_combat_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_guild_combat_style_naboo.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:guild_combat_naboo", noBuildRadius = 0, objectName = "@building_name:guild_combat_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_guild_combat_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 9, useStructureFootprintOutline = 0, clientObjectCRC = 2162092176, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_guild.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_guild_combat_naboo_style_01, "object/building/naboo/shared_guild_combat_naboo_style_01.iff") object_building_naboo_shared_guild_commerce_naboo_style_01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_guild_commerce_naboo_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 35, clientDataFile = "clientdata/building/shared_guild_commerce.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:guild_commerce_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_guild_commerce_style_naboo.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:guild_commerce_naboo", noBuildRadius = 0, objectName = "@building_name:guild_commerce_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_guild_commerce_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 9, useStructureFootprintOutline = 0, clientObjectCRC = 754152794, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_guild.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_guild_commerce_naboo_style_01, "object/building/naboo/shared_guild_commerce_naboo_style_01.iff") object_building_naboo_shared_guild_theater_naboo_s01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_guild_theater_naboo_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 80, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:theater", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_guild_theatre_style_01.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:theater", noBuildRadius = 0, objectName = "@building_name:theater", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_guild_theater_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 10, useStructureFootprintOutline = 0, clientObjectCRC = 2364526054, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_theater.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_guild_theater_naboo_s01, "object/building/naboo/shared_guild_theater_naboo_s01.iff") object_building_naboo_shared_guild_university_naboo_style_01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_guild_university_naboo_style_01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 35, clientDataFile = "clientdata/building/shared_guild_university.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:guild_university_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_guild_university_style_naboo.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:guild_university_naboo", noBuildRadius = 0, objectName = "@building_name:guild_university_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_guild_university_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 3, targetable = 0, terrainModificationFileName = "", totalCellNumber = 9, useStructureFootprintOutline = 0, clientObjectCRC = 1500355509, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_guild.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_guild_university_naboo_style_01, "object/building/naboo/shared_guild_university_naboo_style_01.iff") object_building_naboo_shared_hangar_naboo_theed = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_hangar_naboo_theed.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:theater", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/theed_hangar2.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:theater", noBuildRadius = 0, objectName = "@building_name:theater", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/thm_nboo_thed_hangar.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 5, useStructureFootprintOutline = 0, clientObjectCRC = 3224368648, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_hangar.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_hangar_naboo_theed, "object/building/naboo/shared_hangar_naboo_theed.iff") object_building_naboo_shared_hospital_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_hospital_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 55, clientDataFile = "clientdata/building/shared_hospital.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:hospital", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_hospital_style_naboo.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:hospital", noBuildRadius = 0, objectName = "@building_name:hospital", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_hospital_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 14, useStructureFootprintOutline = 0, clientObjectCRC = 3288048289, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_palace.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_hospital_naboo, "object/building/naboo/shared_hospital_naboo.iff") object_building_naboo_shared_hospital_naboo_s02 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_hospital_naboo_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 30, clientDataFile = "clientdata/building/shared_bank.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:hospital", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_hospital_style_02.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:hospital", noBuildRadius = 0, objectName = "@building_name:hospital", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_hospital_s02.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 3, useStructureFootprintOutline = 0, clientObjectCRC = 1309649332, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_palace.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_hospital_naboo_s02, "object/building/naboo/shared_hospital_naboo_s02.iff") object_building_naboo_shared_hotel_naboo_theed = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_hotel_naboo_theed.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "clientdata/building/shared_hotel.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:hotel_naboo_theed", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_hotel_style_naboo2.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:hotel_naboo_theed", noBuildRadius = 0, objectName = "@building_name:hotel_naboo_theed", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_hotel_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 10, useStructureFootprintOutline = 0, clientObjectCRC = 2256796740, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_hotel.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_hotel_naboo_theed, "object/building/naboo/shared_hotel_naboo_theed.iff") object_building_naboo_shared_housing_naboo_style_1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_housing_naboo_style_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 20, clientDataFile = "clientdata/building/shared_naboo_housing_s01.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_house_m_s01_fp1.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 7, useStructureFootprintOutline = 0, clientObjectCRC = 1207237066, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_housing_naboo_style_1, "object/building/naboo/shared_housing_naboo_style_1.iff") object_building_naboo_shared_housing_naboo_style_3 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_housing_naboo_style_3.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ply_nboo_house_m_s02_fp1.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/building/shared_naboo_housing_s03.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_3", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_3", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_3", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3589158608, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_housing_naboo_style_3, "object/building/naboo/shared_housing_naboo_style_3.iff") object_building_naboo_shared_merchant_tent_naboo_s01 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_merchant_tent_naboo_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:merchant_tent_tato_s01", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:merchant_tent_tato_s01", noBuildRadius = 0, objectName = "@building_name:merchant_tent_tato_s01", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_merchant_tent_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 1, useStructureFootprintOutline = 0, clientObjectCRC = 3127135334, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_merchant_tent_naboo_s01, "object/building/naboo/shared_merchant_tent_naboo_s01.iff") object_building_naboo_shared_palace_naboo_theed = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_palace_naboo_theed.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:palace_naboo_theed", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:palace_naboo_theed", noBuildRadius = 0, objectName = "@building_name:palace_naboo_theed", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/thm_nboo_thed_theed_palace.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 35, useStructureFootprintOutline = 0, clientObjectCRC = 243325651, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_palace.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_palace_naboo_theed, "object/building/naboo/shared_palace_naboo_theed.iff") object_building_naboo_shared_parking_garage_naboo_style_1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_parking_garage_naboo_style_1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/mun_nboo_garage_s01_u01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 25, clientDataFile = "clientdata/building/shared_garage.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:parking_garage_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:parking_garage_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:parking_garage_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 4129354478, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_parking_garage.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_parking_garage_naboo_style_1, "object/building/naboo/shared_parking_garage_naboo_style_1.iff") object_building_naboo_shared_ply_nboo_house_lg_s01_fp1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_ply_nboo_house_lg_s01_fp1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 25, clientDataFile = "clientdata/building/shared_naboo_ply_house_lg_01.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_house_lg_s01_fp1.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 14, useStructureFootprintOutline = 0, clientObjectCRC = 3110745453, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_ply_nboo_house_lg_s01_fp1, "object/building/naboo/shared_ply_nboo_house_lg_s01_fp1.iff") object_building_naboo_shared_ply_nboo_house_m_s01_fp1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_ply_nboo_house_m_s01_fp1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 25, clientDataFile = "clientdata/building/shared_naboo_ply_house_lg_01.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_house_m_s01_fp1.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 7, useStructureFootprintOutline = 0, clientObjectCRC = 2671892606, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_ply_nboo_house_m_s01_fp1, "object/building/naboo/shared_ply_nboo_house_m_s01_fp1.iff") object_building_naboo_shared_ply_nboo_house_m_s02_fp1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_ply_nboo_house_m_s02_fp1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ply_nboo_house_m_s02_fp1.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 25, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2374056803, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_ply_nboo_house_m_s02_fp1, "object/building/naboo/shared_ply_nboo_house_m_s02_fp1.iff") object_building_naboo_shared_ply_nboo_house_s_s01_fp1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_ply_nboo_house_s_s01_fp1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 25, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_house_sm_s01_fp1.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 3, useStructureFootprintOutline = 0, clientObjectCRC = 146028409, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_ply_nboo_house_s_s01_fp1, "object/building/naboo/shared_ply_nboo_house_s_s01_fp1.iff") object_building_naboo_shared_ply_nboo_house_s_s02_fp1 = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_ply_nboo_house_s_s02_fp1.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 25, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:housing_naboo_style_1", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:housing_naboo_style_1", noBuildRadius = 0, objectName = "@building_name:housing_naboo_style_1", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_house_sm_s02_fp1.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 4, useStructureFootprintOutline = 0, clientObjectCRC = 443864164, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_housing.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_ply_nboo_house_s_s02_fp1, "object/building/naboo/shared_ply_nboo_house_s_s02_fp1.iff") object_building_naboo_shared_power_generator_naboo_theed = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_power_generator_naboo_theed.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_nboo_thed_power_generator.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:power_generator_naboo_theed", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:power_generator_naboo_theed", noBuildRadius = 0, objectName = "@building_name:power_generator_naboo_theed", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2419077761, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_power_generator.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_power_generator_naboo_theed, "object/building/naboo/shared_power_generator_naboo_theed.iff") object_building_naboo_shared_salon_corellia = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_salon_corellia.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:salon_corellia", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:salon_corellia", noBuildRadius = 0, objectName = "@building_name:salon_corellia", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_corl_idesigner_tent_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 1, useStructureFootprintOutline = 0, clientObjectCRC = 4115268904, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_cave.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_salon_corellia, "object/building/naboo/shared_salon_corellia.iff") object_building_naboo_shared_salon_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_salon_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 40, clientDataFile = "", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:salon_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/shared_salon_style_naboo.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:salon_naboo", noBuildRadius = 0, objectName = "@building_name:salon_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/ply_nboo_idesigner_tent_s01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 1, useStructureFootprintOutline = 0, clientObjectCRC = 135005575, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_salon.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_salon_naboo, "object/building/naboo/shared_salon_naboo.iff") object_building_naboo_shared_shuttleport_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_shuttleport_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/mun_nboo_shuttleport_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 29, clientDataFile = "clientdata/building/shared_shuttleport.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:shuttleport_naboo", gameObjectType = 512, interiorLayoutFileName = "", locationReservationRadius = 0, lookAtText = "@building_lookat:shuttleport_naboo", noBuildRadius = 0, objectName = "@building_name:shuttleport_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 3818763165, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_starport.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_shuttleport_naboo, "object/building/naboo/shared_shuttleport_naboo.iff") object_building_naboo_shared_starport_naboo = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/naboo/shared_starport_naboo.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 100, clientDataFile = "clientdata/building/shared_starport.cdf", clientGameObjectType = 512, collisionActionBlockFlags = 255, collisionActionFlags = 255, collisionActionPassFlags = 0, collisionMaterialBlockFlags = 1, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 0, customizationVariableMapping = {}, detailedDescription = "@building_detail:starport_naboo", gameObjectType = 512, interiorLayoutFileName = "interiorlayout/starport_naboo_interior.ilf", locationReservationRadius = 0, lookAtText = "@building_lookat:starport_naboo", noBuildRadius = 0, objectName = "@building_name:starport_naboo", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "appearance/mun_nboo_starport_s01_u01.pob", rangedIntCustomizationVariables = {}, scale = 0, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 1, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 2, targetable = 0, terrainModificationFileName = "", totalCellNumber = 16, useStructureFootprintOutline = 0, clientObjectCRC = 1265259890, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/building/base/shared_base_building.iff", "object/building/base/shared_base_starport.iff"} ]] } ObjectTemplates:addClientTemplate(object_building_naboo_shared_starport_naboo, "object/building/naboo/shared_starport_naboo.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_eisley_officer_quarren_male_01.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_mobile_dressed_eisley_officer_quarren_male_01 = object_mobile_shared_dressed_eisley_officer_quarren_male_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_eisley_officer_quarren_male_01, "object/mobile/dressed_eisley_officer_quarren_male_01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/component/dna/dna_sample_average.lua
3
2326
--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_dna_dna_sample_average = object_tangible_component_dna_shared_dna_sample_average:new { quality = "Average", templateType = DNASAMPLE, gameObjectType = 262158 } ObjectTemplates:addTemplate(object_tangible_component_dna_dna_sample_average, "object/tangible/component/dna/dna_sample_average.iff")
lgpl-3.0
Softmotions/ejdb-lua
tools/ldoc/ldoc/builtin/math.lua
4
3483
--- standard mathematical functions. module 'math' --- -- Returns the absolute value of `x`. function math.abs(x) end --- -- Returns the arc cosine of `x` (in radians). function math.acos(x) end --- -- Returns the arc sine of `x` (in radians). function math.asin(x) end --- -- Returns the arc tangent of `x` (in radians). function math.atan(x) end --- -- Returns the arc tangent of `y/x` (in radians), but uses the signs -- of both parameters to find the quadrant of the result. (It also handles -- correctly the case of `x` being zero.) function math.atan2(y, x) end --- -- Returns the smallest integer larger than or equal to `x`. function math.ceil(x) end --- -- Returns the cosine of `x` (assumed to be in radians). function math.cos(x) end --- -- Returns the hyperbolic cosine of `x`. function math.cosh(x) end --- -- Returns the angle `x` (given in radians) in degrees. function math.deg(x) end --- -- Returns the value *e^x*. function math.exp(x) end --- -- Returns the largest integer smaller than or equal to `x`. function math.floor(x) end --- -- Returns the remainder of the division of `x` by `y` that rounds the -- quotient towards zero. function math.fmod(x, y) end --- -- Returns `m` and `e` such that *x = m2^e*, `e` is an integer and the -- absolute value of `m` is in the range *[0.5, 1)* (or zero when `x` is zero). function math.frexp(x) end --- -- The value `HUGE_VAL`, a value larger than or equal to any other -- numerical value. -- function math.huge end -- * `math.HUGE_VAL`: math.HUGE_VAL --- -- Returns *m2^e* (`e` should be an integer). function math.ldexp(m, e) end --- -- Returns the natural logarithm of `x`. function math.log(x) end --- -- Returns the base-10 logarithm of `x`. function math.log10(x) end --- -- Returns the maximum value among its arguments. function math.max(x, ...) end --- -- Returns the minimum value among its arguments. function math.min(x, ...) end --- -- Returns two numbers, the integral part of `x` and the fractional part of -- `x`. function math.modf(x) end --- -- The value of *pi*. -- function math.pi end -- * `math.pi`: math.pi --- -- Returns *x^y*. (You can also use the expression `x^y` to compute this -- value.) function math.pow(x, y) end --- -- Returns the angle `x` (given in degrees) in radians. function math.rad(x) end --- -- This function is an interface to the simple pseudo-random generator -- function `rand` provided by ANSI C. (No guarantees can be given for its -- statistical properties.) -- When called without arguments, returns a uniform pseudo-random real -- number in the range *[0,1)*. When called with an integer number `m`, -- `math.random` returns a uniform pseudo-random integer in the range *[1, -- m]*. When called with two integer numbers `m` and `n`, `math.random` -- returns a uniform pseudo-random integer in the range *[m, n]*. function math.random(m , n) end --- -- Sets `x` as the "seed" for the pseudo-random generator: equal seeds -- produce equal sequences of numbers. function math.randomseed(x) end --- -- Returns the sine of `x` (assumed to be in radians). function math.sin(x) end --- -- Returns the hyperbolic sine of `x`. function math.sinh(x) end --- -- Returns the square root of `x`. (You can also use the expression `x^0.5` -- to compute this value.) function math.sqrt(x) end --- -- Returns the tangent of `x` (assumed to be in radians). function math.tan(x) end --- -- Returns the hyperbolic tangent of `x`. function math.tanh(x) end
lgpl-2.1
Megaf/MinetestPi-Raspbian
builtin/game/chatcommands.lua
1
21774
-- Minetest: builtin/chatcommands.lua -- -- Chat command handler -- core.chatcommands = {} function core.register_chatcommand(cmd, def) def = def or {} def.params = def.params or "" def.description = def.description or "" def.privs = def.privs or {} core.chatcommands[cmd] = def end if core.setting_getbool("mod_profiling") then local tracefct = profiling_print_log profiling_print_log = nil core.register_chatcommand("save_mod_profile", { params = "", description = "save mod profiling data to logfile " .. "(depends on default loglevel)", func = tracefct, privs = { server=true } }) end core.register_on_chat_message(function(name, message) local cmd, param = string.match(message, "^/([^ ]+) *(.*)") if not param then param = "" end local cmd_def = core.chatcommands[cmd] if not cmd_def then return false end local has_privs, missing_privs = core.check_player_privs(name, cmd_def.privs) if has_privs then local success, message = cmd_def.func(name, param) if message then core.chat_send_player(name, message) end else core.chat_send_player(name, "You don't have permission" .. " to run this command (missing privileges: " .. table.concat(missing_privs, ", ") .. ")") end return true -- Handled chat message end) -- -- Chat commands -- core.register_chatcommand("me", { params = "<action>", description = "chat action (eg. /me orders a pizza)", privs = {shout=true}, func = function(name, param) core.chat_send_all("* " .. name .. " " .. param) end, }) core.register_chatcommand("help", { privs = {}, params = "[all/privs/<cmd>]", description = "Get help for commands or list privileges", func = function(name, param) local function format_help_line(cmd, def) local msg = "/"..cmd if def.params and def.params ~= "" then msg = msg .. " " .. def.params end if def.description and def.description ~= "" then msg = msg .. ": " .. def.description end return msg end if param == "" then local msg = "" local cmds = {} for cmd, def in pairs(core.chatcommands) do if core.check_player_privs(name, def.privs) then table.insert(cmds, cmd) end end table.sort(cmds) return true, "Available commands: " .. table.concat(cmds, " ") .. "\n" .. "Use '/help <cmd>' to get more information," .. " or '/help all' to list everything." elseif param == "all" then local cmds = {} for cmd, def in pairs(core.chatcommands) do if core.check_player_privs(name, def.privs) then table.insert(cmds, format_help_line(cmd, def)) end end table.sort(cmds) return true, "Available commands:\n"..table.concat(cmds, "\n") elseif param == "privs" then local privs = {} for priv, def in pairs(core.registered_privileges) do table.insert(privs, priv .. ": " .. def.description) end table.sort(privs) return true, "Available privileges:\n"..table.concat(privs, "\n") else local cmd = param local def = core.chatcommands[cmd] if not def then return false, "Command not available: "..cmd else return true, format_help_line(cmd, def) end end end, }) core.register_chatcommand("privs", { params = "<name>", description = "print out privileges of player", func = function(name, param) param = (param ~= "" and param or name) return true, "Privileges of " .. param .. ": " .. core.privs_to_string( core.get_player_privs(param), ' ') end, }) core.register_chatcommand("grant", { params = "<name> <privilege>|all", description = "Give privilege to player", func = function(name, param) if not core.check_player_privs(name, {privs=true}) and not core.check_player_privs(name, {basic_privs=true}) then return false, "Your privileges are insufficient." end local grantname, grantprivstr = string.match(param, "([^ ]+) (.+)") if not grantname or not grantprivstr then return false, "Invalid parameters (see /help grant)" elseif not core.auth_table[grantname] then return false, "Player " .. grantname .. " does not exist." end local grantprivs = core.string_to_privs(grantprivstr) if grantprivstr == "all" then grantprivs = core.registered_privileges end local privs = core.get_player_privs(grantname) local privs_unknown = "" for priv, _ in pairs(grantprivs) do if priv ~= "interact" and priv ~= "shout" and not core.check_player_privs(name, {privs=true}) then return false, "Your privileges are insufficient." end if not core.registered_privileges[priv] then privs_unknown = privs_unknown .. "Unknown privilege: " .. priv .. "\n" end privs[priv] = true end if privs_unknown ~= "" then return false, privs_unknown end core.set_player_privs(grantname, privs) core.log("action", name..' granted ('..core.privs_to_string(grantprivs, ', ')..') privileges to '..grantname) if grantname ~= name then core.chat_send_player(grantname, name .. " granted you privileges: " .. core.privs_to_string(grantprivs, ' ')) end return true, "Privileges of " .. grantname .. ": " .. core.privs_to_string( core.get_player_privs(grantname), ' ') end, }) core.register_chatcommand("revoke", { params = "<name> <privilege>|all", description = "Remove privilege from player", privs = {}, func = function(name, param) if not core.check_player_privs(name, {privs=true}) and not core.check_player_privs(name, {basic_privs=true}) then return false, "Your privileges are insufficient." end local revoke_name, revoke_priv_str = string.match(param, "([^ ]+) (.+)") if not revoke_name or not revoke_priv_str then return false, "Invalid parameters (see /help revoke)" elseif not core.auth_table[revoke_name] then return false, "Player " .. revoke_name .. " does not exist." end local revoke_privs = core.string_to_privs(revoke_priv_str) local privs = core.get_player_privs(revoke_name) for priv, _ in pairs(revoke_privs) do if priv ~= "interact" and priv ~= "shout" and priv ~= "interact_extra" and not core.check_player_privs(name, {privs=true}) then return false, "Your privileges are insufficient." end end if revoke_priv_str == "all" then privs = {} else for priv, _ in pairs(revoke_privs) do privs[priv] = nil end end core.set_player_privs(revoke_name, privs) core.log("action", name..' revoked (' ..core.privs_to_string(revoke_privs, ', ') ..') privileges from '..revoke_name) if revoke_name ~= name then core.chat_send_player(revoke_name, name .. " revoked privileges from you: " .. core.privs_to_string(revoke_privs, ' ')) end return true, "Privileges of " .. revoke_name .. ": " .. core.privs_to_string( core.get_player_privs(revoke_name), ' ') end, }) core.register_chatcommand("setpassword", { params = "<name> <password>", description = "set given password", privs = {password=true}, func = function(name, param) local toname, raw_password = string.match(param, "^([^ ]+) +(.+)$") if not toname then toname = param:match("^([^ ]+) *$") raw_password = nil end if not toname then return false, "Name field required" end local actstr = "?" if not raw_password then core.set_player_password(toname, "") actstr = "cleared" else core.set_player_password(toname, core.get_password_hash(toname, raw_password)) actstr = "set" end if toname ~= name then core.chat_send_player(toname, "Your password was " .. actstr .. " by " .. name) end return true, "Password of player \"" .. toname .. "\" " .. actstr end, }) core.register_chatcommand("clearpassword", { params = "<name>", description = "set empty password", privs = {password=true}, func = function(name, param) toname = param if toname == "" then return false, "Name field required" end core.set_player_password(toname, '') return true, "Password of player \"" .. toname .. "\" cleared" end, }) core.register_chatcommand("auth_reload", { params = "", description = "reload authentication data", privs = {server=true}, func = function(name, param) local done = core.auth_reload() return done, (done and "Done." or "Failed.") end, }) core.register_chatcommand("teleport", { params = "<X>,<Y>,<Z> | <to_name> | <name> <X>,<Y>,<Z> | <name> <to_name>", description = "teleport to given position", privs = {teleport=true}, func = function(name, param) -- Returns (pos, true) if found, otherwise (pos, false) local function find_free_position_near(pos) local tries = { {x=1,y=0,z=0}, {x=-1,y=0,z=0}, {x=0,y=0,z=1}, {x=0,y=0,z=-1}, } for _, d in ipairs(tries) do local p = {x = pos.x+d.x, y = pos.y+d.y, z = pos.z+d.z} local n = core.get_node_or_nil(p) if n and n.name then local def = core.registered_nodes[n.name] if def and not def.walkable then return p, true end end end return pos, false end local teleportee = nil local p = {} p.x, p.y, p.z = string.match(param, "^([%d.-]+)[, ] *([%d.-]+)[, ] *([%d.-]+)$") p.x = tonumber(p.x) p.y = tonumber(p.y) p.z = tonumber(p.z) teleportee = core.get_player_by_name(name) if teleportee and p.x and p.y and p.z then teleportee:setpos(p) return true, "Teleporting to "..core.pos_to_string(p) end local teleportee = nil local p = nil local target_name = nil target_name = param:match("^([^ ]+)$") teleportee = core.get_player_by_name(name) if target_name then local target = core.get_player_by_name(target_name) if target then p = target:getpos() end end if teleportee and p then p = find_free_position_near(p) teleportee:setpos(p) return true, "Teleporting to " .. target_name .. " at "..core.pos_to_string(p) end if not core.check_player_privs(name, {bring=true}) then return false, "You don't have permission to teleport other players (missing bring privilege)" end local teleportee = nil local p = {} local teleportee_name = nil teleportee_name, p.x, p.y, p.z = param:match( "^([^ ]+) +([%d.-]+)[, ] *([%d.-]+)[, ] *([%d.-]+)$") p.x, p.y, p.z = tonumber(p.x), tonumber(p.y), tonumber(p.z) if teleportee_name then teleportee = core.get_player_by_name(teleportee_name) end if teleportee and p.x and p.y and p.z then teleportee:setpos(p) return true, "Teleporting " .. teleportee_name .. " to " .. core.pos_to_string(p) end local teleportee = nil local p = nil local teleportee_name = nil local target_name = nil teleportee_name, target_name = string.match(param, "^([^ ]+) +([^ ]+)$") if teleportee_name then teleportee = core.get_player_by_name(teleportee_name) end if target_name then local target = core.get_player_by_name(target_name) if target then p = target:getpos() end end if teleportee and p then p = find_free_position_near(p) teleportee:setpos(p) return true, "Teleporting " .. teleportee_name .. " to " .. target_name .. " at " .. core.pos_to_string(p) end return false, 'Invalid parameters ("' .. param .. '") or player not found (see /help teleport)' end, }) core.register_chatcommand("set", { params = "[-n] <name> <value> | <name>", description = "set or read server configuration setting", privs = {server=true}, func = function(name, param) local arg, setname, setvalue = string.match(param, "(-[n]) ([^ ]+) (.+)") if arg and arg == "-n" and setname and setvalue then core.setting_set(setname, setvalue) return true, setname .. " = " .. setvalue end local setname, setvalue = string.match(param, "([^ ]+) (.+)") if setname and setvalue then if not core.setting_get(setname) then return false, "Failed. Use '/set -n <name> <value>' to create a new setting." end core.setting_set(setname, setvalue) return true, setname .. " = " .. setvalue end local setname = string.match(param, "([^ ]+)") if setname then local setvalue = core.setting_get(setname) if not setvalue then setvalue = "<not set>" end return true, setname .. " = " .. setvalue end return false, "Invalid parameters (see /help set)." end, }) core.register_chatcommand("mods", { params = "", description = "List mods installed on the server", privs = {}, func = function(name, param) return true, table.concat(core.get_modnames(), ", ") end, }) local function handle_give_command(cmd, giver, receiver, stackstring) core.log("action", giver .. " invoked " .. cmd .. ', stackstring="' .. stackstring .. '"') local itemstack = ItemStack(stackstring) if itemstack:is_empty() then return false, "Cannot give an empty item" elseif not itemstack:is_known() then return false, "Cannot give an unknown item" end local receiverref = core.get_player_by_name(receiver) if receiverref == nil then return false, receiver .. " is not a known player" end local leftover = receiverref:get_inventory():add_item("main", itemstack) if leftover:is_empty() then partiality = "" elseif leftover:get_count() == itemstack:get_count() then partiality = "could not be " else partiality = "partially " end -- The actual item stack string may be different from what the "giver" -- entered (e.g. big numbers are always interpreted as 2^16-1). stackstring = itemstack:to_string() if giver == receiver then return true, ("%q %sadded to inventory.") :format(stackstring, partiality) else core.chat_send_player(receiver, ("%q %sadded to inventory.") :format(stackstring, partiality)) return true, ("%q %sadded to %s's inventory.") :format(stackstring, partiality, receiver) end end core.register_chatcommand("give", { params = "<name> <ItemString>", description = "give item to player", privs = {give=true}, func = function(name, param) local toname, itemstring = string.match(param, "^([^ ]+) +(.+)$") if not toname or not itemstring then return false, "Name and ItemString required" end return handle_give_command("/give", name, toname, itemstring) end, }) core.register_chatcommand("giveme", { params = "<ItemString>", description = "give item to yourself", privs = {give=true}, func = function(name, param) local itemstring = string.match(param, "(.+)$") if not itemstring then return false, "ItemString required" end return handle_give_command("/giveme", name, name, itemstring) end, }) core.register_chatcommand("spawnentity", { params = "<EntityName>", description = "Spawn entity at your position", privs = {give=true, interact=true}, func = function(name, param) local entityname = string.match(param, "(.+)$") if not entityname then return false, "EntityName required" end core.log("action", ("/spawnentity invoked, entityname=%q") :format(entityname)) local player = core.get_player_by_name(name) if player == nil then core.log("error", "Unable to spawn entity, player is nil") return false, "Unable to spawn entity, player is nil" end local p = player:getpos() p.y = p.y + 1 core.add_entity(p, entityname) return true, ("%q spawned."):format(entityname) end, }) core.register_chatcommand("pulverize", { params = "", description = "Destroy item in hand", func = function(name, param) local player = core.get_player_by_name(name) if not player then core.log("error", "Unable to pulverize, no player.") return false, "Unable to pulverize, no player." end if player:get_wielded_item():is_empty() then return false, "Unable to pulverize, no item in hand." end player:set_wielded_item(nil) return true, "An item was pulverized." end, }) -- Key = player name core.rollback_punch_callbacks = {} core.register_on_punchnode(function(pos, node, puncher) local name = puncher:get_player_name() if core.rollback_punch_callbacks[name] then core.rollback_punch_callbacks[name](pos, node, puncher) core.rollback_punch_callbacks[name] = nil end end) core.register_chatcommand("rollback_check", { params = "[<range>] [<seconds>] [limit]", description = "Check who has last touched a node or near it," .. " max. <seconds> ago (default range=0," .. " seconds=86400=24h, limit=5)", privs = {rollback=true}, func = function(name, param) local range, seconds, limit = param:match("(%d+) *(%d*) *(%d*)") range = tonumber(range) or 0 seconds = tonumber(seconds) or 86400 limit = tonumber(limit) or 5 if limit > 100 then return false, "That limit is too high!" end core.rollback_punch_callbacks[name] = function(pos, node, puncher) local name = puncher:get_player_name() core.chat_send_player(name, "Checking " .. core.pos_to_string(pos) .. "...") local actions = core.rollback_get_node_actions(pos, range, seconds, limit) local num_actions = #actions if num_actions == 0 then core.chat_send_player(name, "Nobody has touched" .. " the specified location in " .. seconds .. " seconds") return end local time = os.time() for i = num_actions, 1, -1 do local action = actions[i] core.chat_send_player(name, ("%s %s %s -> %s %d seconds ago.") :format( core.pos_to_string(action.pos), action.actor, action.oldnode.name, action.newnode.name, time - action.time)) end end return true, "Punch a node (range=" .. range .. ", seconds=" .. seconds .. "s, limit=" .. limit .. ")" end, }) core.register_chatcommand("rollback", { params = "<player name> [<seconds>] | :<actor> [<seconds>]", description = "revert actions of a player; default for <seconds> is 60", privs = {rollback=true}, func = function(name, param) local target_name, seconds = string.match(param, ":([^ ]+) *(%d*)") if not target_name then local player_name = nil player_name, seconds = string.match(param, "([^ ]+) *(%d*)") if not player_name then return false, "Invalid parameters. See /help rollback" .. " and /help rollback_check." end target_name = "player:"..player_name end seconds = tonumber(seconds) or 60 core.chat_send_player(name, "Reverting actions of " .. target_name .. " since " .. seconds .. " seconds.") local success, log = core.rollback_revert_actions_by( target_name, seconds) local response = "" if #log > 100 then response = "(log is too long to show)\n" else for _, line in pairs(log) do response = response .. line .. "\n" end end response = response .. "Reverting actions " .. (success and "succeeded." or "FAILED.") return success, response end, }) core.register_chatcommand("status", { description = "Print server status", func = function(name, param) return true, core.get_server_status() end, }) core.register_chatcommand("time", { params = "<0...24000>", description = "set time of day", privs = {settime=true}, func = function(name, param) if param == "" then return false, "Missing time." end local newtime = tonumber(param) if newtime == nil then return false, "Invalid time." end core.set_timeofday((newtime % 24000) / 24000) core.log("action", name .. " sets time " .. newtime) return true, "Time of day changed." end, }) core.register_chatcommand("shutdown", { description = "shutdown server", privs = {server=true}, func = function(name, param) core.log("action", name .. " shuts down server") core.request_shutdown() core.chat_send_all("*** Server shutting down (operator request).") end, }) core.register_chatcommand("ban", { params = "<name>", description = "Ban IP of player", privs = {ban=true}, func = function(name, param) if param == "" then return true, "Ban list: " .. core.get_ban_list() end if not core.get_player_by_name(param) then return false, "No such player." end if not core.ban_player(param) then return false, "Failed to ban player." end local desc = core.get_ban_description(param) core.log("action", name .. " bans " .. desc .. ".") return true, "Banned " .. desc .. "." end, }) core.register_chatcommand("unban", { params = "<name/ip>", description = "remove IP ban", privs = {ban=true}, func = function(name, param) if not core.unban_player_or_ip(param) then return false, "Failed to unban player/IP." end core.log("action", name .. " unbans " .. param) return true, "Unbanned " .. param end, }) core.register_chatcommand("kick", { params = "<name> [reason]", description = "kick a player", privs = {kick=true}, func = function(name, param) local tokick, reason = param:match("([^ ]+) (.+)") tokick = tokick or param if not core.kick_player(tokick, reason) then return false, "Failed to kick player " .. tokick end core.log("action", name .. " kicked " .. tokick) return true, "Kicked " .. tokick end, }) core.register_chatcommand("clearobjects", { description = "clear all objects in world", privs = {server=true}, func = function(name, param) core.log("action", name .. " clears all objects.") core.chat_send_all("Clearing all objects. This may take long." .. " You may experience a timeout. (by " .. name .. ")") core.clear_objects() core.log("action", "Object clearing done.") core.chat_send_all("*** Cleared all objects.") end, }) core.register_chatcommand("msg", { params = "<name> <message>", description = "Send a private message", privs = {shout=true}, func = function(name, param) local sendto, message = param:match("^(%S+)%s(.+)$") if not sendto then return false, "Invalid usage, see /help msg." end if not core.get_player_by_name(sendto) then return false, "The player " .. sendto .. " is not online." end core.log("action", "PM from " .. name .. " to " .. sendto .. ": " .. message) core.chat_send_player(sendto, "PM from " .. name .. ": " .. message) return true, "Message sent." end, })
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/mobile/faction/imperial/command_security_guard.lua
1
1253
command_security_guard = Creature:new { objectName = "@mob/creature_names:command_security_guard", socialGroup = "imperial", pvpFaction = "imperial", faction = "imperial", level = 15, chanceHit = 0.31, damageMin = 160, damageMax = 170, baseXp = 831, baseHAM = 2400, baseHAMmax = 3000, armor = 0, resists = {0,0,0,0,0,0,0,0,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE, creatureBitmask = PACK, optionsBitmask = 128, diet = HERBIVORE, templates = {"object/mobile/dressed_imperial_soldier_m.iff"}, lootGroups = { { groups = { {group = "color_crystals", chance = 200000}, {group = "junk", chance = 6900000}, {group = "rifles", chance = 800000}, {group = "pistols", chance = 800000}, {group = "clothing_attachments", chance = 150000}, {group = "armor_attachments", chance = 150000}, {group = "wearables_common", chance = 1000000} }, lootChance = 2300000 } }, weapons = {"imperial_weapons_light"}, conversationTemplate = "", attacks = merge(riflemanmaster,carbineermaster) } CreatureTemplates:addCreatureTemplate(command_security_guard, "command_security_guard")
lgpl-3.0
Har1eyquinn/Har1eybot
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data end local function bugzilla_check(id) -- data = bugzilla_login() local url = BASE_URL.."bug/" .. id .. "?api_key=" .. _config.bugzilla.apikey -- print(url) local res,code = https.request( url ) local data = json:decode(res) return data end local function bugzilla_listopened(email) local url = BASE_URL.."bug?include_fields=id,summary,status,whiteboard,resolution&email1=" .. email .. "&email2=" .. email .. "&emailassigned_to2=1&emailreporter1=1&emailtype1=substring&emailtype2=substring&f1=bug_status&f2=bug_status&n1=1&n2=1&o1=equals&o2=equals&resolution=---&v1=closed&v2=resolved&api_key=" .. _config.bugzilla.apikey local res,code = https.request( url ) print(res) local data = json:decode(res) return data end local function run(msg, matches) local response = "" if matches[1] == "status" then local data = bugzilla_check(matches[2]) vardump(data) if data.error == true then return "Sorry, API failed with message: " .. data.message else response = "Bug #"..matches[1]..":\nReporter: "..data.bugs[1].creator response = response .. "\n Last update: "..data.bugs[1].last_change_time response = response .. "\n Status: "..data.bugs[1].status.." "..data.bugs[1].resolution response = response .. "\n Whiteboard: "..data.bugs[1].whiteboard response = response .. "\n Access: https://bugzilla.mozilla.org/show_bug.cgi?id=" .. matches[1] print(response) end elseif matches[1] == "list" then local data = bugzilla_listopened(matches[2]) vardump(data) if data.error == true then return "Sorry, API failed with message: " .. data.message else -- response = "Bug #"..matches[1]..":\nReporter: "..data.bugs[1].creator -- response = response .. "\n Last update: "..data.bugs[1].last_change_time -- response = response .. "\n Status: "..data.bugs[1].status.." "..data.bugs[1].resolution -- response = response .. "\n Whiteboard: "..data.bugs[1].whiteboard -- response = response .. "\n Access: https://bugzilla.mozilla.org/show_bug.cgi?id=" .. matches[1] local total = table.map_length(data.bugs) print("total bugs: " .. total) local response = "There are " .. total .. " number of bug(s) assigned/reported by " .. matches[2] if total > 0 then response = response .. ": " for tableKey, bug in pairs(data.bugs) do response = response .. "\n #" .. bug.id response = response .. "\n Status: " .. bug.status .. " " .. bug.resolution response = response .. "\n Whiteboard: " .. bug.whiteboard response = response .. "\n Summary: " .. bug.summary end end end end return response end -- (table) -- [bugs] = (table) -- [1] = (table) -- [status] = (string) ASSIGNED -- [id] = (number) 927704 -- [whiteboard] = (string) [approved][full processed] -- [summary] = (string) Budget Request - Arief Bayu Purwanto - https://reps.mozilla.org/e/mozilla-summit-2013/ -- [2] = (table) -- [status] = (string) ASSIGNED -- [id] = (number) 1049337 -- [whiteboard] = (string) [approved][full processed][waiting receipts][waiting report and photos] -- [summary] = (string) Budget Request - Arief Bayu Purwanto - https://reps.mozilla.org/e/workshop-firefox-os-pada-workshop-media-sosial-untuk-perubahan-1/ -- total bugs: 2 return { description = "Lookup bugzilla status update", usage = "/bot bugzilla [bug number]", patterns = { "^/bugzilla (status) (.*)$", "^/bugzilla (list) (.*)$" }, run = run } end
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/commands/stopCitySpawner.lua
4
2138
--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 StopCitySpawnerCommand = { name = "stopcityspawner", } AddCommand(StopCitySpawnerCommand)
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/attachment/weapon/blacksun_heavy_weapon1_s05.lua
3
2320
--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_attachment_weapon_blacksun_heavy_weapon1_s05 = object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s05:new { } ObjectTemplates:addTemplate(object_tangible_ship_attachment_weapon_blacksun_heavy_weapon1_s05, "object/tangible/ship/attachment/weapon/blacksun_heavy_weapon1_s05.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/spells/bluemagic/infrasonics.lua
2
1365
----------------------------------------- -- Spell: Infrasonics -- Lowers the evasion of enemies within a fan-shaped area originating from the caster -- Spell cost: 42 MP -- Monster Type: Lizards -- Spell Type: Magical (Ice) -- Blue Magic Points: 4 -- Stat Bonus: INT+1 -- Level: 65 -- Casting Time: 5 seconds -- Recast Time: 120 seconds -- Magic Bursts on: Induration, Distortion, Darkness -- Combos: None ----------------------------------------- require("scripts/globals/bluemagic"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,spell) local params = {}; params.attribute = dsp.mod.INT; params.skillType = dsp.skill.BLUE_MAGIC; params.effect = dsp.effect.EVASION_DOWN; local resist = applyResistance(caster, target, spell, params); local duration = 60 * resist; local power = 20; if (resist > 0.5) then -- Do it! if (target:addStatusEffect(params.effect,power,0,duration)) then spell:setMsg(dsp.msg.basic.MAGIC_ENFEEB_IS); else spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT); end else spell:setMsg(dsp.msg.basic.MAGIC_RESIST); end; return params.effect; end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_binayre_chief_human_female_01.lua
3
2264
--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_binayre_chief_human_female_01 = object_mobile_shared_dressed_binayre_chief_human_female_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_binayre_chief_human_female_01, "object/mobile/dressed_binayre_chief_human_female_01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/space/reactor/reactor_limiter_mk5.lua
2
3198
--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_mk5 = object_draft_schematic_space_reactor_shared_reactor_limiter_mk5:new { templateType = DRAFTSCHEMATIC, customObjectName = "Reactor Limiter - Mark V", craftingToolTab = 131072, -- (See DraftSchemticImplementation.h) complexity = 34, size = 1, xpType = "shipwright", xp = 625, assemblySkill = "power_systems", experimentingSkill = "power_systems_experimentation", customizationSkill = "medicine_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 = {2000, 500}, contribution = {100, 100}, targetTemplate = "object/tangible/ship/crafted/reactor/reactor_limiter_mk5.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_space_reactor_reactor_limiter_mk5, "object/draft_schematic/space/reactor/reactor_limiter_mk5.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_tatooine_kormund_thrylle.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_mobile_dressed_tatooine_kormund_thrylle = object_mobile_shared_dressed_tatooine_kormund_thrylle:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_kormund_thrylle, "object/mobile/dressed_tatooine_kormund_thrylle.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_cobral_boss_twk_male_01.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_mobile_dressed_cobral_boss_twk_male_01 = object_mobile_shared_dressed_cobral_boss_twk_male_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_cobral_boss_twk_male_01, "object/mobile/dressed_cobral_boss_twk_male_01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/attachment/wing/hutt_medium_wing_s02.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_tangible_ship_attachment_wing_hutt_medium_wing_s02 = object_tangible_ship_attachment_wing_shared_hutt_medium_wing_s02:new { } ObjectTemplates:addTemplate(object_tangible_ship_attachment_wing_hutt_medium_wing_s02, "object/tangible/ship/attachment/wing/hutt_medium_wing_s02.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_stranded_imperial_soldier.lua
3
2248
--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_stranded_imperial_soldier = object_mobile_shared_dressed_stranded_imperial_soldier:new { } ObjectTemplates:addTemplate(object_mobile_dressed_stranded_imperial_soldier, "object/mobile/dressed_stranded_imperial_soldier.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/lair/qurvel/serverobjects.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 --Children folder includes -- Server Objects includeFile("tangible/lair/qurvel/lair_qurvel.lua") includeFile("tangible/lair/qurvel/lair_qurvel_forest.lua") includeFile("tangible/lair/qurvel/lair_qurvel_mountain.lua")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/clothing/component/clothing_reinforced_fiber_panels.lua
2
3532
--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_component_clothing_reinforced_fiber_panels = object_draft_schematic_clothing_component_shared_clothing_reinforced_fiber_panels:new { templateType = DRAFTSCHEMATIC, customObjectName = "Reinforced Fiber Panel", craftingToolTab = 8, -- (See DraftSchemticImplementation.h) complexity = 15, size = 1, xpType = "crafting_clothing_general", xp = 75, assemblySkill = "clothing_assembly", experimentingSkill = "clothing_experimentation", customizationSkill = "clothing_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"}, ingredientTitleNames = {"body", "binding", "padding", "reinforcement", "enhancement"}, ingredientSlotType = {0, 0, 0, 0, 3}, resourceTypes = {"fiberplast", "petrochem_inert", "fiberplast", "metal", "object/tangible/component/bio/shared_base_bio_component_clothing_field.iff"}, resourceQuantities = {5, 5, 15, 5, 1}, contribution = {100, 100, 100, 100, 100}, targetTemplate = "object/tangible/component/clothing/reinforced_fiber_panels.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_clothing_component_clothing_reinforced_fiber_panels, "object/draft_schematic/clothing/component/clothing_reinforced_fiber_panels.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/crafted/reactor/serverobjects.lua
3
3985
--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/ship/crafted/reactor/advanced_fusion_core.lua") includeFile("tangible/ship/crafted/reactor/advanced_power_distributor.lua") includeFile("tangible/ship/crafted/reactor/base_reactor.lua") includeFile("tangible/ship/crafted/reactor/base_reactor_subcomponent.lua") includeFile("tangible/ship/crafted/reactor/base_reactor_subcomponent_mk1.lua") includeFile("tangible/ship/crafted/reactor/base_reactor_subcomponent_mk2.lua") includeFile("tangible/ship/crafted/reactor/base_reactor_subcomponent_mk3.lua") includeFile("tangible/ship/crafted/reactor/base_reactor_subcomponent_mk4.lua") includeFile("tangible/ship/crafted/reactor/base_reactor_subcomponent_mk5.lua") includeFile("tangible/ship/crafted/reactor/basic_reactor.lua") includeFile("tangible/ship/crafted/reactor/fusion_reactor_mk1.lua") includeFile("tangible/ship/crafted/reactor/fusion_reactor_mk2.lua") includeFile("tangible/ship/crafted/reactor/fusion_reactor_mk3.lua") includeFile("tangible/ship/crafted/reactor/fusion_reactor_mk4.lua") includeFile("tangible/ship/crafted/reactor/fusion_reactor_mk5.lua") includeFile("tangible/ship/crafted/reactor/reactor_limiter_mk1.lua") includeFile("tangible/ship/crafted/reactor/reactor_limiter_mk2.lua") includeFile("tangible/ship/crafted/reactor/reactor_limiter_mk3.lua") includeFile("tangible/ship/crafted/reactor/reactor_limiter_mk4.lua") includeFile("tangible/ship/crafted/reactor/reactor_limiter_mk5.lua") includeFile("tangible/ship/crafted/reactor/reactor_overcharger_mk1.lua") includeFile("tangible/ship/crafted/reactor/reactor_overcharger_mk2.lua") includeFile("tangible/ship/crafted/reactor/reactor_overcharger_mk3.lua") includeFile("tangible/ship/crafted/reactor/reactor_overcharger_mk4.lua") includeFile("tangible/ship/crafted/reactor/reactor_overcharger_mk5.lua") includeFile("tangible/ship/crafted/reactor/standard_fusion_core.lua") includeFile("tangible/ship/crafted/reactor/standard_power_distributor.lua")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/bio_engineer/dna_template/serverobjects.lua
3
4925
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --Children folder includes -- Server Objects includeFile("draft_schematic/bio_engineer/dna_template/dna_template_angler.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_bantha.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_bearded_jax.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_blurrg.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_bol.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_bolle_bol.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_bolma.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_brackaset.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_carrion_spat.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_choku.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_dalyrake.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_dewback.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_eopie.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_falumpaset.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_fambaa.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_generic.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_gualama.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_guf_drolg.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_gurrcat.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_gurreck.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_kaadu.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_kahmurra.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_kimogila.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_krahbu.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_kusak.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_narglatch.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_pugoriss.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_rancor.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_ronto.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_sand_panther.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_snorbal.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_torton.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_tybis.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_veermok.lua") includeFile("draft_schematic/bio_engineer/dna_template/dna_template_zucca_boar.lua")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/deed/pet_deed/deed_droid_basic_base.lua
3
2264
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_deed_pet_deed_deed_droid_basic_base = object_tangible_deed_pet_deed_shared_deed_droid_basic_base:new { } ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_deed_droid_basic_base, "object/tangible/deed/pet_deed/deed_droid_basic_base.iff")
lgpl-3.0
eraffxi/darkstar
scripts/zones/RuLude_Gardens/TextIDs.lua
2
3339
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6521; -- You cannot obtain the <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6525; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 6527; -- Obtained: <item>. GIL_OBTAINED = 6528; -- Obtained <number> gil. KEYITEM_OBTAINED = 6530; -- Obtained key item: <keyitem>. ITEMS_OBTAINED = 6533; -- You obtain <param2 number> <param1 item>! MOG_LOCKER_OFFSET = 6691; -- Your Mog Locker lease is valid until <timestamp>, kupo. HOMEPOINT_SET = 10270; -- Home point set! -- Conquest system CONQUEST = 10557; -- You've earned conquest points! -- Other dialog NOTHING_OUT_OF_ORDINARY = 11415; -- There is nothing out of the ordinary here. SOVEREIGN_WITHOUT_AN_APPOINTMENT = 10166; -- Nobody sees the sovereign without an appointment! ITEM_DELIVERY_DIALOG = 10257; -- Now offering quick and easy delivery of packages to homes everywhere! MAAT_DIALOG = 10363; -- Heh. You've got no business talking to me. Why, you're just a pup. -- Mission Dialog WINDURST_EMBASSY = 12436; -- It reads -- Dynamis dialogs YOU_CANNOT_ENTER_DYNAMIS = 11221; -- You cannot enter Dynamis PLAYERS_HAVE_NOT_REACHED_LEVEL = 11223; -- Players who have not reached level are prohibited from entering Dynamis. UNUSUAL_ARRANGEMENT_LEAVES = 11236; -- There is an unusual arrangement of leaves on the ground. TEAR_IN_FABRIC_OF_SPACE = 15914; -- There appears to be a tear in the fabric of space... -- Quest Dialog YOUR_LEVEL_LIMIT_IS_NOW_55 = 10374; -- Your level limit is now 55. YOUR_LEVEL_LIMIT_IS_NOW_60 = 10386; -- Your level limit is now 60. YOUR_LEVEL_LIMIT_IS_NOW_65 = 10395; -- Your level limit is now 65. YOUR_LEVEL_LIMIT_IS_NOW_70 = 10437; -- Your level limit is now 70. YOUR_LEVEL_LIMIT_IS_NOW_75 = 10496; -- Your level limit is now 75. YOUR_LEVEL_LIMIT_IS_NOW_80 = 12187; -- Your level limit is now 80! YOUR_LEVEL_LIMIT_IS_NOW_85 = 12235; -- Your level limit is now 85! YOUR_LEVEL_LIMIT_IS_NOW_90 = 12334; -- Your level limit is now 90! YOUR_LEVEL_LIMIT_IS_NOW_95 = 12435; -- Your level limit is now 95! YOUR_LEVEL_LIMIT_IS_NOW_99 = 12515; -- Your level limit is now 99! YOUR_MAXIMUM_LEVEL = 6583; -- Your maximum level has been raised to -- Shop Texts DABIHJAJALIOH_SHOP_DIALOG = 10894; -- Hello therrre. I worrrk for the M&P Market. I'm still new, so I don't know much about selling stuff... MACCHI_GAZLITAH_SHOP_DIALOG1 = 10900; -- Hello therrre. I work for the Buffalo Bonanza Ranch. I'm still new, so I don't know much about selling stuff... MACCHI_GAZLITAH_SHOP_DIALOG2 = 10901; -- The Buffalo Bonanza Ranch has a lot of useful items, just for you! MACCHI_GAZLITAH_SHOP_DIALOG3 = 10902; -- Business is booming! The Buffalo Bonanza Ranch even made me managerrr of this local shop! MACCHI_GAZLITAH_SHOP_DIALOG4 = 10903; -- My new shipment has finally come in. Talk to me, and I can show you what we have! -- conquest Base CONQUEST_BASE = 0;
gpl-3.0
eraffxi/darkstar
scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua
2
1975
----------------------------------- -- Area: Waughroon Shrine -- NPC: Burning Circle -- Waughroon Shrine Burning Circle -- !pos -345 104 -260 144 ------------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/missions"); require("scripts/zones/Waughroon_Shrine/TextIDs"); ---- 0: Rank 2 Final Mission for Bastok "The Emissary" and Sandy "Journey Abroad" ---- 1: Worms Turn ---- 2: Grimshell Shocktroopers ---- 3: On my Way ---- 4: Thief in Norg ---- 5: 3, 2, 1 ---- 6: Shattering Stars (RDM) ---- 7: Shattering Stars (THF) ---- 8: Shattering Stars (BST) ---- 9: Birds of the feather ---- 10: Crustacean Conundrum ---- 11: Grove Gardians ---- 12: The Hills are alive ---- 13: Royal Jelly ---- 14: The Final Bout ---- 15: Up in arms ---- 16: Copy Cat ---- 17: Operation Desert Swarm ---- 18: Prehistoric Pigeons ---- 19: The Palborough Project ---- 20: Shell Shocked ---- 21: Beyond infinity function onTrade(player,npc,trade) if (TradeBCNM(player,player:getZoneID(),trade,npc)) then return; end end; function onTrigger(player,npc) if (EventTriggerBCNM(player,npc)) then return; end end; function onEventUpdate(player,csid,option) -- printf("onUpdate CSID: %u",csid); -- printf("onUpdate RESULT: %u",option); if (EventUpdateBCNM(player,csid,option)) then return; end end; ----------------------------------- -- onEventFinish Action ----------------------------------- function onEventFinish(player,csid,option) -- printf("onFinish CSID: %u",csid); -- printf("onFinish RESULT: %u",option); if (EventFinishBCNM(player,csid,option)) then return; end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/dressed_imperial_soldier_m.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_mobile_dressed_imperial_soldier_m = object_mobile_shared_dressed_imperial_soldier_m:new { } ObjectTemplates:addTemplate(object_mobile_dressed_imperial_soldier_m, "object/mobile/dressed_imperial_soldier_m.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/armor/padded/armor_padded_s01_gloves.lua
1
5545
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_armor_padded_armor_padded_s01_gloves = object_tangible_wearables_armor_padded_shared_armor_padded_s01_gloves:new { templateType = ARMOROBJECT, playerRaces = { "object/creature/player/bothan_male.iff", "object/creature/player/bothan_female.iff", "object/creature/player/human_male.iff", "object/creature/player/human_female.iff", "object/creature/player/moncal_male.iff", "object/creature/player/moncal_female.iff", "object/creature/player/rodian_male.iff", "object/creature/player/rodian_female.iff", "object/creature/player/sullustan_male.iff", "object/creature/player/sullustan_female.iff", "object/creature/player/twilek_male.iff", "object/creature/player/twilek_female.iff", "object/creature/player/zabrak_male.iff", "object/creature/player/zabrak_female.iff", "object/mobile/vendor/aqualish_female.iff", "object/mobile/vendor/aqualish_male.iff", "object/mobile/vendor/bith_female.iff", "object/mobile/vendor/bith_male.iff", "object/mobile/vendor/bothan_female.iff", "object/mobile/vendor/bothan_male.iff", "object/mobile/vendor/devaronian_male.iff", "object/mobile/vendor/gran_male.iff", "object/mobile/vendor/human_female.iff", "object/mobile/vendor/human_male.iff", "object/mobile/vendor/ishi_tib_male.iff", "object/mobile/vendor/moncal_female.iff", "object/mobile/vendor/moncal_male.iff", "object/mobile/vendor/nikto_male.iff", "object/mobile/vendor/quarren_male.iff", "object/mobile/vendor/rodian_female.iff", "object/mobile/vendor/rodian_male.iff", "object/mobile/vendor/sullustan_female.iff", "object/mobile/vendor/sullustan_male.iff", "object/mobile/vendor/twilek_female.iff", "object/mobile/vendor/twilek_male.iff", "object/mobile/vendor/weequay_male.iff", "object/mobile/vendor/zabrak_female.iff", "object/mobile/vendor/zabrak_male.iff" }, -- Damage types in WeaponObject vulnerability = HEAT + ACID + STUN + LIGHTSABER, -- These are default Blue Frog stats healthEncumbrance = 1, actionEncumbrance = 1, mindEncumbrance = 1, -- LIGHT, MEDIUM, HEAVY rating = LIGHT, kinetic = 15, energy = 15, electricity = 15, stun = 15, blast = 15, heat = 15, cold = 15, acid = 15, lightSaber = 0, numberExperimentalProperties = {1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1}, experimentalProperties = {"XX", "XX", "XX", "OQ", "SR", "OQ", "SR", "OQ", "UT", "MA", "OQ", "MA", "OQ", "MA", "OQ", "XX", "XX", "OQ", "SR", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "exp_durability", "exp_quality", "exp_durability", "exp_durability", "exp_durability", "exp_durability", "null", "null", "exp_resistance", "null"}, experimentalSubGroupTitles = {"null", "null", "sockets", "hit_points", "armor_effectiveness", "armor_integrity", "armor_health_encumbrance", "armor_action_encumbrance", "armor_mind_encumbrance", "armor_rating", "armor_special_type", "armor_special_effectiveness", "armor_special_integrity"}, experimentalMin = {0, 0, 0, 1000, 1, 18750, 17, 44, 23, 1, 4, 1, 18750}, experimentalMax = {0, 0, 0, 1000, 30, 31250, 10, 26, 14, 1, 4, 40, 31250}, experimentalPrecision = {0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 1, 1, 1, 1, 1, 1, 4, 4, 4, 1}, } ObjectTemplates:addTemplate(object_tangible_wearables_armor_padded_armor_padded_s01_gloves, "object/tangible/wearables/armor/padded/armor_padded_s01_gloves.iff")
lgpl-3.0
MADE-barcelona/beacon-fi
_deprecated-files/beaconapp_withcomments.lua
1
4506
_DELAY_STARTUP = 3000 --Wait at startup _EXT_LED_PIN = 4 --The pin where the external LED is connected _DEFAULT_INITIAL_STRENGTH = -100 --[dB] lowest strength _SIGNAL_STRENGTH_OPEN = _DEFAULT_INITIAL_STRENGTH --[dB] _SIGNAL_STRENGTH_TARGET = _DEFAULT_INITIAL_STRENGTH --[dB] _SIGNAL_CUTOFF_STRENGTH = -65 --[dB]Minimum signal strength that cause blinking to go faster _IMPULSE_DURATION = 40 --[ms] Duration of an impulse of light _BLUE_LED_INTERVAL = 6000 --[ms] Interval of blue LED blinking _DEFAULT_BLINKING_INTERVAL_EXT = 5000 --[ms] Default interval of external LED blinking when seeking --Define the index of timers _TIMER_INDEX_SCAN = 1 _TIMER_INDEX_BLUE_LED = 4 _TIMER_INDEX_EXT_LED_ON = 5 _TIMER_INDEX_EXT_LED_OFF = 6 _TARGET_SSID_STRING = 'ESP_' --SSID prefix to identify the cache-mode Access Points _CACHE_MODE = false -- If set to false will seek the strongest open wifi. If set true will seek the target string in SSID (and blink blue) --This function starts the impulse function initImpulse() print("Starting the impulse") ledON() end function computeInterval(db) interval = math.floor((db * db) /5) return interval end -- START Blinking main loop function ledON() gpio.write(_EXT_LED_PIN, gpio.HIGH) tmr.alarm(_TIMER_INDEX_EXT_LED_ON, _IMPULSE_DURATION, 0, ledOFF) end function containz(what,where) if string.find(where,what) then return true else return false end end function ledOFF() gpio.write(_EXT_LED_PIN, gpio.LOW) if(_CACHE_MODE) then --Cache mode if(_SIGNAL_STRENGTH_TARGET>_SIGNAL_CUTOFF_STRENGTH) then --Only take into account strong-ish signals nextDelay = computeInterval(_SIGNAL_STRENGTH_TARGET) else print("No targets in range") nextDelay = _DEFAULT_BLINKING_INTERVAL_EXT end else --OpenWifiMode if(_SIGNAL_STRENGTH_OPEN>_DEFAULT_INITIAL_STRENGTH) then --Take into account any signal > default nextDelay = computeInterval(_SIGNAL_STRENGTH_OPEN) else print("No openwifi in range") nextDelay = _DEFAULT_BLINKING_INTERVAL_EXT end end print("cacheMode:".. tostring(_CACHE_MODE) .." ,nextDelay:" .. nextDelay) tmr.alarm(_TIMER_INDEX_EXT_LED_OFF, nextDelay, 0, ledON) end -- END Blinking main loop --Simple trick to make the blue LED blink function blueLED() if _CACHE_MODE then print('.') end end function processAPlist(t) local foundSomeTarget = false local targetStrength = _DEFAULT_INITIAL_STRENGTH local foundSomeOpenNetwork = false local openStrength = _DEFAULT_INITIAL_STRENGTH for k,v in pairs(t) do authmode, rssi, bssid, channel = string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)") --Check for target SSIDs to determine if cache mode and store the highest value if (containz(_TARGET_SSID_STRING,k)) then foundSomeTarget = true if (targetStrength < tonumber(rssi)) then targetStrength = tonumber(rssi) end end --Check for OpenWifi networks and store the highest value if(foundSomeTarget==false) then --execute only if not in caching mode if (authmode=="0") then foundSomeOpenNetwork = true if (openStrength < tonumber(rssi)) then openStrength = tonumber(rssi) end end end end --End of foor loop if (foundSomeTarget) then _CACHE_MODE = true _SIGNAL_STRENGTH_TARGET = targetStrength --Update the strength variable for cacheMode print("targetStrength:" .. targetStrength) elseif (foundSomeOpenNetwork) then --Update the strength variable for openWifiMode _SIGNAL_STRENGTH_OPEN = openStrength print("openStrength:" .. openStrength) else _SIGNAL_STRENGTH_TARGET = _DEFAULT_INITIAL_STRENGTH end end --End processAPlist function function scanWifi() wifi.sta.getap(processAPlist) end -- Main Procedure print("Startup sequence initiated") wifi.setmode(wifi.STATION) gpio.mode(_EXT_LED_PIN, gpio.OUTPUT) --Initialise external LED gpio.write(_EXT_LED_PIN, gpio.LOW) --Turn off LED print('Perform initial WiFi signal scan') wifi.sta.getap(processAPlist) print('Scheduling WiFi signal scanner every ' .. _TIMER_INDEX_SCAN ..' ms') tmr.alarm(_TIMER_INDEX_SCAN, _DELAY_STARTUP, 1, scanWifi) print('Initiating the external LED blinking') initImpulse() print('Scheduling blue LED blinking every ' .. _BLUE_LED_INTERVAL ..' ms') tmr.alarm(_TIMER_INDEX_BLUE_LED, _BLUE_LED_INTERVAL, 1, blueLED)
mit
eraffxi/darkstar
scripts/zones/Cape_Teriggan/npcs/Bright_Moon.lua
2
1461
----------------------------------- -- Area: Cape Teriggan -- NPC: Bright Moon -- Type: Outpost Vendor -- !pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); require("scripts/zones/Cape_Teriggan/TextIDs"); local region = dsp.region.VOLLBOW; local csid = 0x7ff4; function onTrade(player,npc,trade) end; function onTrigger(player,npc) local owner = GetRegionOwner(region); local arg1 = getArg1(owner,player); if (owner == player:getNation()) then nation = 1; elseif (arg1 < 1792) then nation = 2; else nation = 0; end player:startEvent(csid,nation,OP_TeleFee(player,region),0,OP_TeleFee(player,region),player:getCP(),0,0,0); end; function onEventUpdate(player,csid,option) -- printf("OPTION: %u",option); player:updateEvent(player:getGil(),OP_TeleFee(player,region),0,OP_TeleFee(player,region),player:getCP()); end; function onEventFinish(player,csid,option) -- printf("OPTION: %u",option); if (option == 1) then dsp.shop.outpost(player); elseif (option == 2) then if (player:delGil(OP_TeleFee(player,region))) then toHomeNation(player); end elseif (option == 6) then player:delCP(OP_TeleFee(player,region)); toHomeNation(player); end end;
gpl-3.0
EhsanFox/Self-Bot-V3
plugins/ids.lua
2
6735
--[[ # ____ _ __ ____ _ __ _______ # / ___| ___| |/ _| | __ ) ___ | |_ \ \ / /___ / # \___ \ / _ \ | |_ _____| _ \ / _ \| __|___\ \ / / |_ \ # ___) | __/ | _|_____| |_) | (_) | ||_____\ V / ___) | # |____/ \___|_|_| |____/ \___/ \__| \_/ |____/ # # Plugin : ASdd-PL # Using For Adding Plugin Than Telegram # Writend By > Yagop # Edited By > BoyCode # __ __ # \ \ / /_ _ __ _ ___ _ __ # \ V / _` |/ _` |/ _ \| '_ \ # | | (_| | (_| | (_) | |_) | # |_|\__,_|\__, |\___/| .__/ # |___/ |_| # ____ ____ _ # | __ ) ___ _ _ / ___|___ __| | ___ # | _ \ / _ \| | | | | / _ \ / _` |/ _ \ # | |_) | (_) | |_| | |__| (_) | (_| | __/ # |____/ \___/ \__, |\____\___/ \__,_|\___| # |___/ ]] local function usernameinfo (user) if user.username then return '@'..user.username end 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 local function channelUserIDs (extra, success, result) local receiver = extra.receiver print('Result') vardump(result) local text = '' for k,user in ipairs(result) do local id = user.peer_id local username = usernameinfo (user) text = text..("%s - %s\n"):format(username, id) end send_large_msg(receiver, text) end local function returnids (extra, success, result) local receiver = extra.receiver local chatname = result.print_name local id = result.peer_id local text = ('ID for chat %s (%s):\n'):format(chatname, id) for k,user in ipairs(result.members) do local username = usernameinfo(user) local id = user.peer_id local userinfo = ("%s - %s\n"):format(username, id) text = text .. userinfo end send_large_msg(receiver, text) end local function run(msg, matches) local receiver = get_receiver(msg) -- Id of the user and info about group / channel if matches[1] == "/id" then if msg.to.type == 'channel' then return ('<b>Chat ID:</b> <code>%s</code>\n➖➖➖➖➖➖\n<b>User ID</b>: <code>%s</code>'):format(msg.to.id, msg.from.id) end if msg.to.type == 'chat' then return ('<b>Chat ID:</b> <code>%s</code>\n➖➖➖➖➖➖\n<b>User ID</b>: <code>%s</code>'):format(msg.to.id, msg.from.id) end return ('<b>User ID<b>: <code>%s</code>'):format(msg.from.id) elseif matches[1] == 'chat' or matches[1] == 'channel' then local type = matches[1] local chanId = matches[2] -- !ids? (chat) (%d+) if chanId then local chan = ("%s#id%s"):format(type, chanId) if type == 'chat' then chat_info(chan, returnids, {receiver=receiver}) else channel_get_users(chan, channelUserIDs, {receiver=receiver}) end else -- !id chat/channel local chan = ("%s#id%s"):format(msg.to.type, msg.to.id) if msg.to.type == 'channel' then channel_get_users(chan, channelUserIDs, {receiver=receiver}) end if msg.to.type == 'chat' then chat_info(chan, returnids, {receiver=receiver}) else return "You are not in a group." end end elseif matches[1] == "member" and matches[2] == "@" then local nick = matches[3] local chan = get_receiver(msg) if msg.to.type == 'chat' then chat_info(chan, function (extra, success, result) local receiver = extra.receiver local nick = extra.nick local found for k,user in pairs(result.members) do if user.username == nick then found = user end end if not found then send_msg(receiver, "User not found on this chat.", ok_cb, false) else local text = found.peer_id send_msg(receiver, text, ok_cb, false) end end, {receiver=chan, nick=nick}) elseif msg.to.type == 'channel' then -- TODO return 'Channels currently not supported' else return 'You are not in a group' end elseif matches[1] == "members" and matches[2] == "name" then local text = matches[3] local chan = get_receiver(msg) if msg.to.type == 'chat' then chat_info(chan, function (extra, success, result) local members = result.members local receiver = extra.receiver local text = extra.text local founds = {} for k,member in pairs(members) do local fields = {'first_name', 'print_name', 'username'} for k,field in pairs(fields) do if member[field] and type(member[field]) == "string" then if member[field]:match(text) then local id = tostring(member.peer_id) founds[id] = member end end end end if next(founds) == nil then -- Empty table send_msg(receiver, "User not found on this chat.", ok_cb, false) else local text = "" for k,user in pairs(founds) do local first_name = user.first_name or "" local print_name = user.print_name or "" local user_name = user.user_name or "" local id = user.peer_id or "" -- This would be funny text = text.."First name: "..first_name.."\n" .."Print name: "..print_name.."\n" .."User name: "..user_name.."\n" .."ID: "..id end send_msg(receiver, text, ok_cb, false) end end, {receiver=chan, text=text}) elseif msg.to.type == 'channel' then -- TODO return 'Channels currently not supported' else return 'You are not in a group' end end end return { description = "Know your id or the id of a chat members.", usage = { "/id: Return your ID and the chat id if you are in one.", "/ids chat: Return the IDs of the current chat members.", "/ids chat <chat_id>: Return the IDs of the <chat_id> members.", "/ids channel: Return the IDs of the current channel members.", "/ids channel <channel_id>: Return the IDs of the <channel_id> members.", "/id member @<user_name>: Return the member @<user_name> ID from the current chat", "/id members name <text>: Search for users with <text> on first_name, print_name or username on current chat" }, patterns = { "^/id$", "^/ids? (chat) (%d+)$", "^/ids? (chat)$", "^/ids (channel)$", "^/ids (channel) (%d+)$", "^/id (member) (@)(.+)", "^/id (members) (name) (.+)" }, run = run }
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/clothing/clothing_ith_belt_formal_18.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_draft_schematic_clothing_clothing_ith_belt_formal_18 = object_draft_schematic_clothing_shared_clothing_ith_belt_formal_18:new { } ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_ith_belt_formal_18, "object/draft_schematic/clothing/clothing_ith_belt_formal_18.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/sign/player/base/objects.lua
3
5502
--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_sign_player_base_shared_player_sign_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/sign/player/base/shared_player_sign_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_sign_all_hanging.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8207, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@sign_detail:sign", gameObjectType = 8207, locationReservationRadius = 0, lookAtText = "@sign_lookat:sign", noBuildRadius = 0, objectName = "@sign_name:sign", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1607004274, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/sign/base/shared_base_sign.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_sign_player_base_shared_player_sign_base, "object/tangible/sign/player/base/shared_player_sign_base.iff") object_tangible_sign_player_base_shared_shop_sign_base = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/sign/player/base/shared_shop_sign_base.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/thm_all_gravestone_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8207, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@sign_detail:sign", gameObjectType = 8207, locationReservationRadius = 0, lookAtText = "@sign_lookat:sign", noBuildRadius = 0, objectName = "@sign_name:sign", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "", surfaceType = 0, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1431689328, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/sign/base/shared_base_sign.iff", "object/tangible/sign/player/base/shared_player_sign_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_sign_player_base_shared_shop_sign_base, "object/tangible/sign/player/base/shared_shop_sign_base.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/building/military/military_base_police_station_imperial_lok_otto.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_lok_otto = object_building_military_shared_military_base_police_station_imperial_lok_otto:new { } ObjectTemplates:addTemplate(object_building_military_military_base_police_station_imperial_lok_otto, "object/building/military/military_base_police_station_imperial_lok_otto.iff")
lgpl-3.0
koreader/koreader-base
ffi/mupdf_h.lua
3
15272
local ffi = require("ffi") ffi.cdef[[ static const int FZ_STEXT_BLOCK_TEXT = 0; typedef struct fz_point_s fz_point; struct fz_point_s { float x; float y; }; typedef struct fz_rect_s fz_rect; struct fz_rect_s { float x0; float y0; float x1; float y1; }; extern const fz_rect fz_unit_rect; extern const fz_rect fz_empty_rect; extern const fz_rect fz_infinite_rect; fz_rect *fz_intersect_rect(fz_rect *restrict, const fz_rect *restrict); fz_rect *fz_union_rect(fz_rect *restrict, const fz_rect *restrict); typedef struct fz_irect_s fz_irect; struct fz_irect_s { int x0; int y0; int x1; int y1; }; extern const fz_irect fz_empty_irect; extern const fz_irect fz_infinite_irect; fz_irect *fz_intersect_irect(fz_irect *restrict, const fz_irect *restrict); fz_irect *fz_irect_from_rect(fz_irect *restrict, const fz_rect *restrict); fz_irect *fz_round_rect(fz_irect *restrict, const fz_rect *restrict); typedef struct fz_matrix_s fz_matrix; struct fz_matrix_s { float a; float b; float c; float d; float e; float f; }; extern const fz_matrix fz_identity; fz_matrix *fz_concat(fz_matrix *, const fz_matrix *, const fz_matrix *); fz_matrix *fz_scale(fz_matrix *, float, float); fz_matrix *fz_pre_scale(fz_matrix *, float, float); fz_matrix *fz_rotate(fz_matrix *, float); fz_matrix *fz_pre_rotate(fz_matrix *, float); fz_matrix *fz_translate(fz_matrix *, float, float); fz_matrix *fz_pre_translate(fz_matrix *, float, float); fz_rect *fz_transform_rect(fz_rect *restrict, const fz_matrix *restrict); typedef struct fz_context_s fz_context; typedef struct fz_font_s fz_font; typedef struct fz_hash_table_s fz_hash_table; typedef struct fz_storable_s fz_storable; typedef struct fz_key_storable_s fz_key_storable; typedef void fz_store_drop_fn(fz_context *, fz_storable *); struct fz_storable_s { int refs; fz_store_drop_fn *drop; }; struct fz_key_storable_s { fz_storable storable; short int store_key_refs; }; void fz_install_external_font_funcs(fz_context *); struct fz_buffer_s *mupdf_new_buffer_from_shared_data(fz_context *, const unsigned char *, size_t); void *mupdf_drop_buffer(fz_context *, struct fz_buffer_s *); typedef struct fz_alloc_context_s fz_alloc_context; typedef struct fz_colorspace_s fz_colorspace; fz_context *fz_new_context_imp(const fz_alloc_context *, const struct fz_locks_context_s *, size_t, const char *); void fz_drop_context(fz_context *); void fz_register_document_handlers(fz_context *); typedef struct fz_image_s fz_image; typedef struct fz_pixmap_s fz_pixmap; struct fz_image_s { fz_key_storable key_storable; int w; int h; uint8_t n; uint8_t bpc; unsigned int imagemask : 1; unsigned int interpolate : 1; unsigned int use_colorkey : 1; unsigned int use_decode : 1; unsigned int invert_cmyk_jpeg : 1; unsigned int decoded : 1; unsigned int scalable : 1; fz_image *mask; int xres; int yres; fz_colorspace *colorspace; void (*drop_image)(fz_context *, fz_image *); fz_pixmap *(*get_pixmap)(fz_context *, fz_image *, fz_irect *, int, int, int *); size_t (*get_size)(fz_context *, fz_image *); int colorkey[64]; float decode[64]; }; struct fz_pixmap_s { fz_storable storable; int x; int y; int w; int h; unsigned char n; unsigned char s; unsigned char alpha; unsigned char flags; ptrdiff_t stride; struct fz_separations_s *seps; int xres; int yres; fz_colorspace *colorspace; unsigned char *samples; fz_pixmap *underlying; }; fz_image *mupdf_new_image_from_buffer(fz_context *, struct fz_buffer_s *); fz_pixmap *mupdf_get_pixmap_from_image(fz_context *, fz_image *, const fz_irect *, fz_matrix *, int *, int *); void *mupdf_save_pixmap_as_png(fz_context *, fz_pixmap *, const char *); fz_image *fz_keep_image(fz_context *, fz_image *); void fz_drop_image(fz_context *, fz_image *); fz_pixmap *fz_load_png(fz_context *, const unsigned char *, size_t); int fz_runetochar(char *, int); typedef struct fz_annot_s fz_annot; struct fz_annot_s { int refs; void (*drop_annot)(fz_context *, fz_annot *); fz_rect *(*bound_annot)(fz_context *, fz_annot *, fz_rect *); void (*run_annot)(fz_context *, fz_annot *, struct fz_device_s *, const fz_matrix *, struct fz_cookie_s *); fz_annot *(*next_annot)(fz_context *, fz_annot *); }; typedef struct fz_outline_s fz_outline; struct fz_outline_s { int refs; char *title; char *uri; int page; float x; float y; fz_outline *next; fz_outline *down; int is_open; }; typedef struct fz_document_s fz_document; typedef struct fz_page_s fz_page; typedef struct fz_link_s fz_link; struct fz_document_s { int refs; void (*drop_document)(fz_context *, fz_document *); int (*needs_password)(fz_context *, fz_document *); int (*authenticate_password)(fz_context *, fz_document *, const char *); int (*has_permission)(fz_context *, fz_document *, enum { FZ_PERMISSION_PRINT = 112, FZ_PERMISSION_COPY = 99, FZ_PERMISSION_EDIT = 101, FZ_PERMISSION_ANNOTATE = 110, }); fz_outline *(*load_outline)(fz_context *, fz_document *); void (*layout)(fz_context *, fz_document *, float, float, float); intptr_t (*make_bookmark)(fz_context *, fz_document *, int); int (*lookup_bookmark)(fz_context *, fz_document *, intptr_t); int (*resolve_link)(fz_context *, fz_document *, const char *, float *, float *); int (*count_pages)(fz_context *, fz_document *); fz_page *(*load_page)(fz_context *, fz_document *, int); int (*lookup_metadata)(fz_context *, fz_document *, const char *, char *, int); fz_colorspace *(*get_output_intent)(fz_context *, fz_document *); int did_layout; int is_reflowable; }; struct fz_page_s { int refs; void (*drop_page)(fz_context *, fz_page *); fz_rect *(*bound_page)(fz_context *, fz_page *, fz_rect *); void (*run_page_contents)(fz_context *, fz_page *, struct fz_device_s *, const fz_matrix *, struct fz_cookie_s *); fz_link *(*load_links)(fz_context *, fz_page *); fz_annot *(*first_annot)(fz_context *, fz_page *); struct fz_transition_s *(*page_presentation)(fz_context *, fz_page *, struct fz_transition_s *, float *); void (*control_separation)(fz_context *, fz_page *, int, int); int (*separation_disabled)(fz_context *, fz_page *, int); struct fz_separations_s *(*separations)(fz_context *, fz_page *); int (*overprint)(fz_context *, fz_page *); }; fz_document *mupdf_open_document(fz_context *, const char *); fz_document *mupdf_open_document_with_stream(fz_context *, const char *, struct fz_stream_s *); int fz_is_document_reflowable(fz_context *, fz_document *); int fz_needs_password(fz_context *, fz_document *); int fz_authenticate_password(fz_context *, fz_document *, const char *); void fz_drop_document(fz_context *, fz_document *); int mupdf_count_pages(fz_context *, fz_document *); void *mupdf_layout_document(fz_context *, fz_document *, float, float, float); int fz_lookup_metadata(fz_context *, fz_document *, const char *, char *, int); int fz_resolve_link(fz_context *, fz_document *, const char *, float *, float *); fz_page *mupdf_load_page(fz_context *, fz_document *, int); fz_rect *fz_bound_page(fz_context *, fz_page *, fz_rect *); void fz_drop_page(fz_context *, fz_page *); struct fz_link_s { int refs; fz_link *next; fz_rect rect; void *doc; char *uri; }; fz_link *mupdf_load_links(fz_context *, fz_page *); void fz_drop_link(fz_context *, fz_link *); fz_outline *mupdf_load_outline(fz_context *, fz_document *); void fz_drop_outline(fz_context *, fz_outline *); void *mupdf_drop_stream(fz_context *, struct fz_stream_s *); struct fz_stream_s *mupdf_open_memory(fz_context *, const unsigned char *, size_t); typedef struct fz_stext_char_s fz_stext_char; struct fz_stext_char_s { int c; fz_point origin; fz_rect bbox; float size; fz_font *font; fz_stext_char *next; }; typedef struct fz_stext_line_s fz_stext_line; struct fz_stext_line_s { int wmode; fz_point dir; fz_rect bbox; fz_stext_char *first_char; fz_stext_char *last_char; fz_stext_line *prev; fz_stext_line *next; }; typedef struct fz_stext_block_s fz_stext_block; struct fz_stext_block_s { int type; fz_rect bbox; union { struct { fz_stext_line *first_line; fz_stext_line *last_line; } t; struct { fz_matrix transform; fz_image *image; } i; } u; fz_stext_block *prev; fz_stext_block *next; }; typedef struct fz_stext_options_s fz_stext_options; struct fz_stext_options_s { int flags; }; typedef struct fz_stext_page_s fz_stext_page; struct fz_stext_page_s { struct fz_pool_s *pool; fz_rect mediabox; fz_stext_block *first_block; fz_stext_block *last_block; }; fz_stext_page *mupdf_new_stext_page_from_page(fz_context *, fz_page *, const fz_stext_options *); void fz_drop_stext_page(fz_context *, fz_stext_page *); fz_pixmap *mupdf_new_pixmap(fz_context *, fz_colorspace *, int, int, struct fz_separations_s *, int); fz_pixmap *fz_new_pixmap(fz_context *, fz_colorspace *, int, int, struct fz_separations_s *, int); fz_pixmap *mupdf_new_pixmap_with_bbox(fz_context *, fz_colorspace *, const fz_irect *, struct fz_separations_s *, int); fz_pixmap *mupdf_new_pixmap_with_data(fz_context *, fz_colorspace *, int, int, struct fz_separations_s *, int, int, unsigned char *); fz_pixmap *mupdf_new_pixmap_with_bbox_and_data(fz_context *, fz_colorspace *, const fz_irect *, struct fz_separations_s *, int, unsigned char *); fz_pixmap *fz_convert_pixmap(fz_context *, fz_pixmap *, fz_colorspace *, fz_colorspace *, struct fz_default_colorspaces_s *, const struct fz_color_params_s *, int); fz_pixmap *fz_keep_pixmap(fz_context *, fz_pixmap *); void fz_drop_pixmap(fz_context *, fz_pixmap *); void fz_clear_pixmap_with_value(fz_context *, fz_pixmap *, int); void fz_gamma_pixmap(fz_context *, fz_pixmap *, float); fz_pixmap *fz_scale_pixmap(fz_context *, fz_pixmap *, float, float, float, float, fz_irect *); int fz_pixmap_width(fz_context *, fz_pixmap *); int fz_pixmap_height(fz_context *, fz_pixmap *); int fz_pixmap_components(fz_context *, fz_pixmap *); unsigned char *fz_pixmap_samples(fz_context *, fz_pixmap *); fz_colorspace *fz_device_gray(fz_context *); fz_colorspace *fz_device_rgb(fz_context *); fz_colorspace *fz_device_bgr(fz_context *); struct fz_color_params_s { uint8_t ri; uint8_t bp; uint8_t op; uint8_t opm; }; const struct fz_color_params_s *fz_default_color_params(fz_context *); struct fz_device_s *mupdf_new_draw_device(fz_context *, const fz_matrix *, fz_pixmap *); struct fz_device_s *mupdf_new_text_device(fz_context *, fz_stext_page *, const fz_stext_options *); struct fz_device_s *mupdf_new_bbox_device(fz_context *, fz_rect *); void *mupdf_run_page(fz_context *, fz_page *, struct fz_device_s *, const fz_matrix *, struct fz_cookie_s *); void fz_close_device(fz_context *, struct fz_device_s *); void fz_drop_device(fz_context *, struct fz_device_s *); enum pdf_annot_type { PDF_ANNOT_TEXT = 0, PDF_ANNOT_LINK = 1, PDF_ANNOT_FREE_TEXT = 2, PDF_ANNOT_LINE = 3, PDF_ANNOT_SQUARE = 4, PDF_ANNOT_CIRCLE = 5, PDF_ANNOT_POLYGON = 6, PDF_ANNOT_POLY_LINE = 7, PDF_ANNOT_HIGHLIGHT = 8, PDF_ANNOT_UNDERLINE = 9, PDF_ANNOT_SQUIGGLY = 10, PDF_ANNOT_STRIKE_OUT = 11, PDF_ANNOT_STAMP = 12, PDF_ANNOT_CARET = 13, PDF_ANNOT_INK = 14, PDF_ANNOT_POPUP = 15, PDF_ANNOT_FILE_ATTACHMENT = 16, PDF_ANNOT_SOUND = 17, PDF_ANNOT_MOVIE = 18, PDF_ANNOT_WIDGET = 19, PDF_ANNOT_SCREEN = 20, PDF_ANNOT_PRINTER_MARK = 21, PDF_ANNOT_TRAP_NET = 22, PDF_ANNOT_WATERMARK = 23, PDF_ANNOT_3D = 24, PDF_ANNOT_UNKNOWN = -1, }; typedef struct pdf_hotspot_s pdf_hotspot; struct pdf_hotspot_s { int num; int state; }; typedef struct pdf_lexbuf_s pdf_lexbuf; struct pdf_lexbuf_s { int size; int base_size; int len; int64_t i; float f; char *scratch; char buffer[256]; }; typedef struct pdf_lexbuf_large_s pdf_lexbuf_large; struct pdf_lexbuf_large_s { pdf_lexbuf base; char buffer[65280]; }; typedef struct pdf_obj_s pdf_obj; typedef struct pdf_annot_s pdf_annot; typedef struct pdf_page_s pdf_page; struct pdf_annot_s { fz_annot super; pdf_page *page; pdf_obj *obj; pdf_obj *ap; int needs_new_ap; int has_new_ap; pdf_annot *next; }; typedef struct pdf_document_s pdf_document; struct pdf_document_s { fz_document super; struct fz_stream_s *file; int version; int64_t startxref; int64_t file_size; struct pdf_crypt_s *crypt; struct pdf_ocg_descriptor_s *ocg; struct pdf_portfolio_s *portfolio; pdf_hotspot hotspot; fz_colorspace *oi; int max_xref_len; int num_xref_sections; int saved_num_xref_sections; int num_incremental_sections; int xref_base; int disallow_new_increments; struct pdf_xref_s *xref_sections; struct pdf_xref_s *saved_xref_sections; int *xref_index; int freeze_updates; int has_xref_streams; int rev_page_count; struct pdf_rev_page_map_s *rev_page_map; int repair_attempted; int file_reading_linearly; int64_t file_length; int linear_page_count; pdf_obj *linear_obj; pdf_obj **linear_page_refs; int linear_page1_obj_num; int64_t linear_pos; int linear_page_num; int hint_object_offset; int hint_object_length; int hints_loaded; struct { int number; int64_t offset; int64_t index; } *hint_page; int *hint_shared_ref; struct { int number; int64_t offset; } *hint_shared; int hint_obj_offsets_max; int64_t *hint_obj_offsets; int resources_localised; pdf_lexbuf_large lexbuf; pdf_annot *focus; pdf_obj *focus_obj; struct pdf_js_s *js; int recalculating; int dirty; void (*event_cb)(fz_context *, pdf_document *, struct pdf_doc_event_s *, void *); void *event_cb_data; int num_type3_fonts; int max_type3_fonts; fz_font **type3_fonts; struct { fz_hash_table *images; fz_hash_table *fonts; } resources; int orphans_max; int orphans_count; pdf_obj **orphans; }; pdf_document *pdf_specifics(fz_context *, fz_document *); pdf_annot *mupdf_pdf_create_annot(fz_context *, pdf_page *, enum pdf_annot_type); void *mupdf_pdf_delete_annot(fz_context *, pdf_page *, pdf_annot *); void *mupdf_pdf_set_annot_quad_points(fz_context *, pdf_annot *, int, const float *); void *mupdf_pdf_set_annot_contents(fz_context *, pdf_annot *, const char *); pdf_annot *mupdf_pdf_first_annot(fz_context *, pdf_page *); pdf_annot *mupdf_pdf_next_annot(fz_context *, pdf_annot *); int mupdf_pdf_annot_quad_point_count(fz_context *, pdf_annot *); void *mupdf_pdf_annot_quad_point(fz_context *, pdf_annot *, int, float *); void *mupdf_pdf_set_text_annot_position(fz_context *, pdf_annot *, fz_point); void *mupdf_pdf_set_markup_appearance(fz_context *, pdf_document *, pdf_annot *, float *, float, float, float); typedef struct pdf_write_options_s pdf_write_options; struct pdf_write_options_s { int do_incremental; int do_pretty; int do_ascii; int do_compress; int do_compress_images; int do_compress_fonts; int do_decompress; int do_garbage; int do_linear; int do_clean; int do_sanitize; int continue_on_error; int *errors; }; void *mupdf_pdf_save_document(fz_context *, pdf_document *, const char *, pdf_write_options *); fz_alloc_context *mupdf_get_my_alloc_context(); int mupdf_get_cache_size(); int mupdf_error_code(fz_context *); char *mupdf_error_message(fz_context *); ]]
agpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/bio_engineer/creature/creature_kaadu.lua
1
3337
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_draft_schematic_bio_engineer_creature_creature_kaadu = object_draft_schematic_bio_engineer_creature_shared_creature_kaadu:new { templateType = DRAFTSCHEMATIC, customObjectName = "Kaadu", craftingToolTab = 256, -- (See DraftSchemticImplementation.h) complexity = 17, size = 1, xpType = "crafting_bio_engineer_creature", xp = 100, assemblySkill = "bio_engineer_assembly", experimentingSkill = "bio_engineer_experimentation", customizationSkill = "bio_engineer_experimentation", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_creature_ingredients_n", "craft_creature_ingredients_n", "craft_creature_ingredients_n"}, ingredientTitleNames = {"dna_template", "protein_base", "organic_nutrition_materials"}, ingredientSlotType = {1, 0, 0}, resourceTypes = {"object/tangible/component/dna/shared_dna_template_generic.iff", "creature_food", "flora_food"}, resourceQuantities = {1, 35, 20}, contribution = {100, 100, 100}, targetTemplate = "object/tangible/deed/pet_deed/kaadu_deed.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_creature_creature_kaadu, "object/draft_schematic/bio_engineer/creature/creature_kaadu.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/commands/harvesterTakeSurvey.lua
4
2150
--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 HarvesterTakeSurveyCommand = { name = "harvestertakesurvey", } AddCommand(HarvesterTakeSurveyCommand)
lgpl-3.0
eraffxi/darkstar
scripts/globals/spells/cursna.lua
2
2392
----------------------------------------- -- Spell: Cursna -- Removes curse and bane from target. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,spell) local curse = target:getStatusEffect(dsp.effect.CURSE_I); local curse2 = target:getStatusEffect(dsp.effect.CURSE_II); local bane = target:getStatusEffect(dsp.effect.BANE); local bonus = caster:getMod(dsp.mod.ENHANCES_CURSNA) + target:getMod(dsp.mod.ENHANCES_CURSNA_RCVD); local power = 25*((100+bonus)/100); -- This 25 is temp until the skill calculation is in. spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT); if (target:hasStatusEffect(dsp.effect.DOOM) and power > math.random(1, 100)) then -- remove doom final = dsp.effect.DOOM; target:delStatusEffect(dsp.effect.DOOM); spell:setMsg(dsp.msg.basic.NARROWLY_ESCAPE); elseif (curse ~= nil and curse2 ~= nil and bane ~= nil) then target:delStatusEffect(dsp.effect.CURSE_I); target:delStatusEffect(dsp.effect.CURSE_II); target:delStatusEffect(dsp.effect.BANE); final = dsp.effect.CURSE_II; spell:setMsg(dsp.msg.basic.MAGIC_REMOVE_EFFECT); elseif (curse ~= nil and bane ~= nil) then target:delStatusEffect(dsp.effect.CURSE_I); target:delStatusEffect(dsp.effect.BANE); final = dsp.effect.CURSE_I; spell:setMsg(dsp.msg.basic.MAGIC_REMOVE_EFFECT); elseif (curse2 ~= nil and bane ~= nil) then target:delStatusEffect(dsp.effect.CURSE_II); target:delStatusEffect(dsp.effect.BANE); final = dsp.effect.CURSE_II; spell:setMsg(dsp.msg.basic.MAGIC_REMOVE_EFFECT); elseif (curse ~= nil) then target:delStatusEffect(dsp.effect.CURSE_I); final = dsp.effect.CURSE_I; spell:setMsg(dsp.msg.basic.MAGIC_REMOVE_EFFECT); elseif (curse2 ~= nil) then target:delStatusEffect(dsp.effect.CURSE_II); final = dsp.effect.CURSE_II; spell:setMsg(dsp.msg.basic.MAGIC_REMOVE_EFFECT); elseif (bane ~= nil) then target:delStatusEffect(dsp.effect.BANE); final = dsp.effect.BANE; spell:setMsg(dsp.msg.basic.MAGIC_REMOVE_EFFECT); end return final; end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/item/wp_mle_sword_lightsaber_leather.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_item_wp_mle_sword_lightsaber_leather = object_static_item_shared_wp_mle_sword_lightsaber_leather:new { } ObjectTemplates:addTemplate(object_static_item_wp_mle_sword_lightsaber_leather, "object/static/item/wp_mle_sword_lightsaber_leather.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/food/dessert_pyollian_cake.lua
2
3352
--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_food_dessert_pyollian_cake = object_draft_schematic_food_shared_dessert_pyollian_cake:new { templateType = DRAFTSCHEMATIC, customObjectName = "Pyollian Cake", craftingToolTab = 4, -- (See DraftSchemticImplementation.h) complexity = 8, size = 1, xpType = "crafting_food_general", xp = 120, assemblySkill = "food_assembly", experimentingSkill = "food_experimentation", customizationSkill = "food_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n", "craft_food_ingredients_n"}, ingredientTitleNames = {"sweet_cake_mix", "oats", "topping", "additive"}, ingredientSlotType = {1, 0, 0, 3}, resourceTypes = {"object/tangible/food/crafted/shared_dessert_sweet_cake_mix.iff", "oats", "fruit_fruits", "object/tangible/food/crafted/additive/shared_additive_medium.iff"}, resourceQuantities = {1, 20, 10, 1}, contribution = {100, 100, 100, 100}, targetTemplate = "object/tangible/food/crafted/dessert_pyollian_cake.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_food_dessert_pyollian_cake, "object/draft_schematic/food/dessert_pyollian_cake.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/thug/pirate_armsman.lua
1
1061
pirate_armsman = Creature:new { objectName = "@mob/creature_names:naboo_pirate_armsman", socialGroup = "Pirate", pvpFaction = "", faction = "", level = 13, chanceHit = 0.3, damageMin = 140, damageMax = 150, baseXp = 714, baseHAM = 1500, baseHAMmax = 1900, 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, optionsBitmask = 128, diet = HERBIVORE, templates = {}, lootGroups = { { groups = { {group = "junk", chance = 4000000}, {group = "wearables_common", chance = 3000000}, {group = "loot_kit_parts", chance = 2000000}, {group = "tailor_components", chance = 1000000}, }, lootChance = 3000000 } }, weapons = {"ranged_weapons"}, conversationTemplate = "", attacks = merge(riflemanmaster,pistoleermaster,carbineermaster,brawlermaster) } CreatureTemplates:addCreatureTemplate(pirate_armsman, "pirate_armsman")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/container/jar/objects.lua
3
15766
--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_container_jar_shared_jar_berries_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_berries_s01.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 = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_berries", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_berries", 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 = 4139801999, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_berries_s01, "object/tangible/container/jar/shared_jar_berries_s01.iff") object_tangible_container_jar_shared_jar_bugs_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_bugs_s01.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 = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_bugs", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_bugs", 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 = 835828013, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_bugs_s01, "object/tangible/container/jar/shared_jar_bugs_s01.iff") object_tangible_container_jar_shared_jar_empty_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_empty_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_empty_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_empty", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_empty", 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 = 1210399766, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_empty_s01, "object/tangible/container/jar/shared_jar_empty_s01.iff") object_tangible_container_jar_shared_jar_funk_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_funk_s01.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 = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_funk", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_funk", 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 = 790427742, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_funk_s01, "object/tangible/container/jar/shared_jar_funk_s01.iff") object_tangible_container_jar_shared_jar_guts_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_guts_s01.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 = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_guts", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_guts", 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 = 2207170789, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_guts_s01, "object/tangible/container/jar/shared_jar_guts_s01.iff") object_tangible_container_jar_shared_jar_spice_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_spice_s01.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_spice_s01.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_spice", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_spice", 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 = 2797429817, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_spice_s01, "object/tangible/container/jar/shared_jar_spice_s01.iff") object_tangible_container_jar_shared_jar_spice_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_spice_s02.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_spice_s02.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_spice", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_spice", 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 = 2108345518, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_spice_s02, "object/tangible/container/jar/shared_jar_spice_s02.iff") object_tangible_container_jar_shared_jar_spice_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/container/jar/shared_jar_spice_s03.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/edb_con_tato_jar_spice_s03.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 0, clientDataFile = "", clientGameObjectType = 8211, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 0, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@container_name:jar_spice", gameObjectType = 8211, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@container_name:jar_spice", 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 = 883403555, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/container/jar/base/shared_jar_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_tangible_container_jar_shared_jar_spice_s03, "object/tangible/container/jar/shared_jar_spice_s03.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/food/crafted/dish_kanali_wafers.lua
3
3244
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_food_crafted_dish_kanali_wafers = object_tangible_food_crafted_shared_dish_kanali_wafers:new { templateType = CONSUMABLE, duration = 45, filling = 10, nutrition = 10, effectType = 1, fillingMin = 17, fillingMax = 10, flavorMin = 1800, flavorMax = 3600, nutritionMin = 30, nutritionMax = 60, quantityMin = 6, quantityMax = 10, modifiers = { "constitution", 0 }, buffName = "food.dish_kanali_wafers", buffCRC = 0, speciesRestriction = "", numberExperimentalProperties = {1, 1, 1, 2, 2, 2, 2}, experimentalProperties = {"XX", "XX", "XX", "OQ", "PE", "FL", "OQ", "DR", "SR", "DR", "OQ"}, experimentalWeights = {1, 1, 1, 1, 2, 2, 1, 1, 3, 3, 1}, experimentalGroupTitles = {"null", "null", "null", "exp_nutrition", "exp_flavor", "exp_quantity", "exp_filling"}, experimentalSubGroupTitles = {"null", "null", "hitpoints", "nutrition", "flavor", "quantity", "filling"}, experimentalMin = {0, 0, 1000, 75, 60, 60, 80}, experimentalMax = {0, 0, 1000, 120, 120, 100, 120}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_food_crafted_dish_kanali_wafers, "object/tangible/food/crafted/dish_kanali_wafers.iff")
lgpl-3.0
EhsanFox/Self-Bot-V3
plugins/Show-PL.lua
3
1194
--[[ # ____ _ __ ____ _ __ _______ # / ___| ___| |/ _| | __ ) ___ | |_ \ \ / /___ / # \___ \ / _ \ | |_ _____| _ \ / _ \| __|___\ \ / / |_ \ # ___) | __/ | _|_____| |_) | (_) | ||_____\ V / ___) | # |____/ \___|_|_| |____/ \___/ \__| \_/ |____/ # # Plugin : Show-PL # Using For Show/Send Plugin with Pm # Writend By > BoyCode # # ____ ____ _ # | __ ) ___ _ _ / ___|___ __| | ___ # | _ \ / _ \| | | | | / _ \ / _` |/ _ \ # | |_) | (_) | |_| | |__| (_) | (_| | __/ # |____/ \___/ \__, |\____\___/ \__,_|\___| # |___/ ]] do local function view_sura(chat_id, target) local f = io.open("./plugins/("..target..").lua","r") if f ~= nil then local text = f:read("*all") return text else return '<b>Plugin Not Found</b> !' end end local function run(msg, matches) local chat_id = msg.to.id if matches [1] == "how" and is_sudo(msg) then local file = io.open("./plugins/"..matches [2]..".lua", "r") local text = file:read("*all") return text end end return { patterns = { "^[Ss](how) (.+)$", }, run = run, } end
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/naboo/gungan_thug.lua
1
1110
gungan_thug = Creature:new { objectName = "", customName = "a Gungan Thug", socialGroup = "gungan", pvpFaction = "gungan", faction = "gungan", level = 14, chanceHit = 0.3, damageMin = 150, damageMax = 160, baseXp = 714, baseHAM = 2000, baseHAMmax = 2400, armor = 0, resists = {15,15,15,15,30,15,0,-1,-1}, meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = ATTACKABLE + AGGRESSIVE + ENEMY, creatureBitmask = PACK, optionsBitmask = 128, diet = HERBIVORE, templates = {"object/mobile/gungan_male.iff", "object/mobile/gungan_s02_male.iff"}, lootGroups = { { groups = { {group = "junk", chance = 4000000}, {group = "gungan_common", chance = 2000000}, {group = "tailor_components", chance = 2000000}, {group = "loot_kit_parts", chance = 2000000} }, lootChance = 3200000 } }, weapons = {"rebel_weapons_medium"}, conversationTemplate = "", attacks = merge(brawlernovice,marksmannovice) } CreatureTemplates:addCreatureTemplate(gungan_thug, "gungan_thug")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/mobile/yavin4/swarming_kliknik.lua
1
1056
swarming_kliknik = Creature:new { objectName = "@mob/creature_names:kliknik_swarming", socialGroup = "kliknik", pvpFaction = "", faction = "", level = 10, chanceHit = 0.27, damageMin = 170, damageMax = 180, baseXp = 356, baseHAM = 675, baseHAMmax = 825, armor = 0, resists = {20,0,0,-1,0,-1,0,-1,-1}, meatType = "meat_carnivore", meatAmount = 5, hideType = "hide_scaley", hideAmount = 4, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0.05, ferocity = 0, pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY, creatureBitmask = PACK, optionsBitmask = 128, diet = CARNIVORE, templates = {"object/mobile/kliknik_hue.iff"}, controlDeviceTemplate = "object/intangible/pet/kliknik_hue.iff", lootGroups = { { groups = { {group = "kliknik_common", chance = 10000000} }, lootChance = 1500000 } }, weapons = {"creature_spit_small_yellow"}, conversationTemplate = "", attacks = { {"posturedownattack","postureDownChance=50"} } } CreatureTemplates:addCreatureTemplate(swarming_kliknik, "swarming_kliknik")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/ithorian/ith_jacket_s02.lua
3
3455
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_ithorian_ith_jacket_s02 = object_tangible_wearables_ithorian_shared_ith_jacket_s02:new { playerRaces = { "object/creature/player/ithorian_male.iff", "object/creature/player/ithorian_female.iff", "object/mobile/vendor/ithorian_female.iff", "object/mobile/vendor/ithorian_male.iff" }, numberExperimentalProperties = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalProperties = {"XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints", "mod_idx_one", "mod_val_one", "mod_idx_two", "mod_val_two", "mod_idx_three", "mod_val_three", "mod_idx_four", "mod_val_four", "mod_idx_five", "mod_val_five", "mod_idx_six", "mod_val_six"}, experimentalMin = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalMax = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_wearables_ithorian_ith_jacket_s02, "object/tangible/wearables/ithorian/ith_jacket_s02.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/medicine/pet/droid_stimpack_c.lua
3
2240
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_medicine_pet_droid_stimpack_c = object_tangible_medicine_pet_shared_droid_stimpack_c:new { } ObjectTemplates:addTemplate(object_tangible_medicine_pet_droid_stimpack_c, "object/tangible/medicine/pet/droid_stimpack_c.iff")
lgpl-3.0
NezzKryptic/Wire
lua/wire/stools/thruster.lua
5
5699
WireToolSetup.setCategory( "Physics/Force" ) WireToolSetup.open( "thruster", "Thruster", "gmod_wire_thruster", nil, "Thrusters" ) if CLIENT then language.Add( "tool.wire_thruster.name", "Thruster Tool (Wire)" ) language.Add( "tool.wire_thruster.desc", "Spawns a thruster for use with the wire system." ) language.Add( "WireThrusterTool_Model", "Model:" ) language.Add( "WireThrusterTool_force", "Force multiplier:" ) language.Add( "WireThrusterTool_force_min", "Input threshold:" ) language.Add( "WireThrusterTool_force_min.help", "If the input force is below this amount, the thruster will not fire.") language.Add( "WireThrusterTool_force_max", "Force maximum:" ) language.Add( "WireThrusterTool_bidir", "Bi-directional" ) language.Add( "WireThrusterTool_soundname", "Select sound" ) language.Add( "WireThrusterTool_owater", "Works out of water" ) language.Add( "WireThrusterTool_uwater", "Works under water" ) TOOL.Information = { { name = "left", text = "Create/Update " .. TOOL.Name } } end WireToolSetup.BaseLang() WireToolSetup.SetupMax( 10 ) TOOL.ClientConVar = { force = 1500, force_min = 0, force_max = 10000, model = "models/props_c17/lampShade001a.mdl", bidir = 1, soundname = "", oweffect = "fire", uweffect = "same", owater = 1, uwater = 1, } if SERVER then function TOOL:GetConVars() return self:GetClientNumber( "force" ), self:GetClientNumber( "force_min" ), self:GetClientNumber( "force_max" ), self:GetClientInfo( "oweffect" ), self:GetClientInfo( "uweffect" ), self:GetClientNumber( "owater" ) ~= 0, self:GetClientNumber( "uwater" ) ~= 0, self:GetClientNumber( "bidir" ) ~= 0, self:GetClientInfo( "soundname" ) end end function TOOL.BuildCPanel(panel) WireToolHelpers.MakePresetControl(panel, "wire_thruster") WireDermaExts.ModelSelect(panel, "wire_thruster_model", list.Get( "ThrusterModels" ), 4, true) local Effects = { ["#No Effects"] = "none", --["#Same as over water"] = "same", ["#Flames"] = "fire", ["#Plasma"] = "plasma", ["#Smoke"] = "smoke", ["#Smoke Random"] = "smoke_random", ["#Smoke Do it Youself"] = "smoke_diy", ["#Rings"] = "rings", ["#Rings Growing"] = "rings_grow", ["#Rings Shrinking"] = "rings_shrink", ["#Bubbles"] = "bubble", ["#Magic"] = "magic", ["#Magic Random"] = "magic_color", ["#Magic Do It Yourself"] = "magic_diy", ["#Colors"] = "color", ["#Colors Random"] = "color_random", ["#Colors Do It Yourself"] = "color_diy", ["#Blood"] = "blood", ["#Money"] = "money", ["#Sperms"] = "sperm", ["#Feathers"] = "feather", ["#Candy Cane"] = "candy_cane", ["#Goldstar"] = "goldstar", ["#Water Small"] = "water_small", ["#Water Medium"] = "water_medium", ["#Water Big"] = "water_big", ["#Water Huge"] = "water_huge", ["#Striderblood Small"] = "striderblood_small", ["#Striderblood Medium"] = "striderblood_medium", ["#Striderblood Big"] = "striderblood_big", ["#Striderblood Huge"] = "striderblood_huge", ["#More Sparks"] = "more_sparks", ["#Spark Fountain"] = "spark_fountain", ["#Jetflame"] = "jetflame", ["#Jetflame Blue"] = "jetflame_blue", ["#Jetflame Red"] = "jetflame_red", ["#Jetflame Purple"] = "jetflame_purple", ["#Comic Balls"] = "balls", ["#Comic Balls Random"] = "balls_random", ["#Comic Balls Fire Colors"] = "balls_firecolors", ["#Souls"] = "souls", --["#Debugger 10 Seconds"] = "debug_10", These are just buggy and shouldn't be used. --["#Debugger 30 Seconds"] = "debug_30", --["#Debugger 60 Seconds"] = "debug_60", ["#Fire and Smoke"] = "fire_smoke", ["#Fire and Smoke Huge"] = "fire_smoke_big", ["#5 Growing Rings"] = "rings_grow_rings", ["#Color and Magic"] = "color_magic", } local CateGoryOW = vgui.Create("DCollapsibleCategory") CateGoryOW:SetSize(0, 50) CateGoryOW:SetExpanded(0) CateGoryOW:SetLabel("Overwater Effect List") local ctrl = vgui.Create( "MatSelect", CateGoryOW ) ctrl:SetItemWidth( 128 ) ctrl:SetItemHeight( 128 ) ctrl:SetConVar("wire_thruster_oweffect") for name, mat in pairs( Effects ) do ctrl:AddMaterialEx( name, "gui/thrustereffects/"..mat, mat, {wire_thruster_oweffect = mat} ) end CateGoryOW:SetContents( ctrl ) panel:AddItem(CateGoryOW) Effects["#Same as over water"] = "same" local CateGoryUW = vgui.Create("DCollapsibleCategory") CateGoryUW:SetSize(0, 50) CateGoryUW:SetExpanded(0) CateGoryUW:SetLabel("Underwater Effect List") local ctrlUW = vgui.Create( "MatSelect", CateGoryUW ) ctrlUW:SetItemWidth( 128 ) ctrlUW:SetItemHeight( 128 ) ctrlUW:SetConVar("wire_thruster_uweffect") for name, mat in pairs( Effects ) do ctrlUW:AddMaterialEx( name, "gui/thrustereffects/"..mat, mat, {wire_thruster_uweffect = mat} ) end CateGoryUW:SetContents( ctrlUW ) panel:AddItem(CateGoryUW) local lst = {} for k,v in pairs( list.Get("ThrusterSounds") ) do lst[k] = {} for k2,v2 in pairs( v ) do lst[k]["wire_"..k2] = v2 end end panel:AddControl( "ComboBox", { Label = "#WireThrusterTool_soundname", Description = "Thruster_Sounds_Desc", MenuButton = "0", Options = lst } ) panel:NumSlider("#WireThrusterTool_force", "wire_thruster_force", 1, 10000, 0) panel:NumSlider("#WireThrusterTool_force_min", "wire_thruster_force_min", -10000, 10000, 0):SetTooltip("#WireThrusterTool_force_min.help") panel:NumSlider("#WireThrusterTool_force_max", "wire_thruster_force_max", -10000, 10000, 0) panel:CheckBox("#WireThrusterTool_bidir", "wire_thruster_bidir") panel:CheckBox("#WireThrusterTool_owater", "wire_thruster_owater") panel:CheckBox("#WireThrusterTool_uwater", "wire_thruster_uwater") end --from model pack 1 list.Set( "ThrusterModels", "models/jaanus/thruster_flat.mdl", {} )
apache-2.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/space/engine/engine_limiter_mk3.lua
2
3267
--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_engine_engine_limiter_mk3 = object_draft_schematic_space_engine_shared_engine_limiter_mk3:new { templateType = DRAFTSCHEMATIC, customObjectName = "Engine Limiter - Mark III", craftingToolTab = 131072, -- (See DraftSchemticImplementation.h) complexity = 27, size = 1, xpType = "shipwright", xp = 125, assemblySkill = "engine_assembly", experimentingSkill = "engine_experimentation", customizationSkill = "medicine_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n"}, ingredientTitleNames = {"casing", "speed_limiting_mechanism"}, ingredientSlotType = {0, 0}, resourceTypes = {"steel", "ore_siliclastic_fermionic"}, resourceQuantities = {350, 150}, contribution = {100, 100}, targetTemplate = "object/tangible/ship/crafted/engine/engine_limiter_mk3.iff", additionalTemplates = { "object/tangible/ship/crafted/engine/shared_engine_limiter_mk3.iff", } } ObjectTemplates:addTemplate(object_draft_schematic_space_engine_engine_limiter_mk3, "object/draft_schematic/space/engine/engine_limiter_mk3.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/components/booster/bst_incom_nkj31.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_ship_components_booster_bst_incom_nkj31 = object_tangible_ship_components_booster_shared_bst_incom_nkj31:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_incom_nkj31, "object/tangible/ship/components/booster/bst_incom_nkj31.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/spells/paralyga.lua
2
1883
----------------------------------------- -- Spell: Paralyze -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,spell) if (target:hasStatusEffect(dsp.effect.PARALYSIS)) then --effect already on, do nothing spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT); else -- Calculate duration. local duration = 120; local dMND = caster:getStat(dsp.mod.MND) - target:getStat(dsp.mod.MND); -- Calculate potency. local potency = math.floor(dMND / 4) + 15; if (potency > 25) then potency = 25; end if (potency < 5) then potency = 5; end --printf("Duration : %u",duration); --printf("Potency : %u",potency); local params = {}; params.diff = nil; params.attribute = dsp.mod.MND; params.skillType = 35; params.bonus = 0; params.effect = dsp.effect.PARALYSIS; local resist = applyResistanceEffect(caster, target, spell, params); if (resist >= 0.5) then --there are no quarter or less hits, if target resists more than .5 spell is resisted completely if (target:addStatusEffect(dsp.effect.PARALYSIS,potency,0,duration*resist)) then spell:setMsg(dsp.msg.basic.MAGIC_ENFEEB_IS); else -- no effect spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT); end else -- resist spell:setMsg(dsp.msg.basic.MAGIC_RESIST); end end return dsp.effect.PARALYSIS; end;
gpl-3.0
eraffxi/darkstar
scripts/zones/Northern_San_dOria/npcs/Pinok-Morok.lua
2
1419
----------------------------------- -- Area: Northern San d'Oria -- NPC: Pinok-Morok -- Type: Smithing Synthesis Image Support -- !pos -186.650 10.25 148.380 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); require("scripts/zones/Northern_San_dOria/TextIDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) local guildMember = isGuildMember(player,8); local SkillCap = getCraftSkillCap(player,dsp.skill.SMITHING); local SkillLevel = player:getSkillLevel(dsp.skill.SMITHING); if (guildMember == 1) then if (player:hasStatusEffect(dsp.effect.SMITHING_IMAGERY) == false) then player:startEvent(629,SkillCap,SkillLevel,1,205,player:getGil(),0,4095,0); else player:startEvent(629,SkillCap,SkillLevel,1,205,player:getGil(),7128,4095,0); end else player:startEvent(629,SkillCap,SkillLevel,1,201,player:getGil(),0,0,0); -- Standard Dialogue end end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 629 and option == 1) then player:messageSpecial(IMAGE_SUPPORT,0,2,1); player:addStatusEffect(dsp.effect.SMITHING_IMAGERY,1,0,120); end end;
gpl-3.0
RoMBotCommunity/RoMBot
loginxml/charactercreate.lua
1
23038
CHARACTER_CREATE_UPDATE_STOP = nil; CHARACTER_CREATE_ROTATION_START_X = nil; CHARACTERCREATE_SLIDERBUTTON_SCROLL_DELAY = 0.05; CHARACTERCREATE_UPDATEMODEL = 1; --CHARACTERCREATE_RACE_LIST = { TEXT("LOGIN_HUMAN") }; CHARACTERCREATE_RACE_LIST = { TEXT("LOGIN_HUMAN"), TEXT("LOGIN_ELF"), TEXT("LOGIN_DWARF") }; CHARACTERCREATE_GENDER_LIST1 = { TEXT("LOGIN_MALE"), TEXT("LOGIN_FEMALE") }; CHARACTERCREATE_GENDER_LIST2 = { TEXT("LOGIN_MALE") }; CHARACTERCREATE_GENDER_LIST = CHARACTERCREATE_GENDER_LIST1; function FigureSlider_OnLoad(this) local partName = string.sub(this:GetName(), 13); local min_value, max_value, default_value = GetCharacterCreateFigureInfo(partName); this.step = 0.1; this:SetMinMaxValues(min_value, max_value); this:SetValue(default_value); getglobal(this:GetName().."Text"):SetText(TEXT("LOGIN_"..string.upper(partName))); end function FigureSlider_OnValueChanged(this, arg1) CharacterCreate_UpdateFigure(); end function CharacterCreate_UpdateFigure() if ( CharacterCreate:IsVisible() ) then local headScale = FigureSliderHead:GetValue(); local breastsScale = FigureSliderBreasts:GetValue(); local statureScale = FigureSliderStature:GetValue(); local chestScale = FigureSliderChest:GetValue(); local figureScale = FigureSliderFigure:GetValue(); local armScale = FigureSliderArm:GetValue(); local forearmScale = FigureSliderForearm:GetValue(); local handScale = FigureSliderHand:GetValue(); local legScale = FigureSliderLeg:GetValue(); local calfScale = FigureSliderCalf:GetValue(); local footScale = FigureSliderFoot:GetValue(); UpdateCharacterCreateModelBoneScale(headScale, breastsScale, statureScale, chestScale, figureScale, armScale, forearmScale, handScale, legScale, calfScale, footScale); end end g_SetLookAtFace = false; function CharacterCreateLookAtFaceButton_OnClick() if( g_SetLookAtFace )then g_SetLookAtFace = false; CharacterCreateLookAtFaceButton:SetText( CHARACTERCREATE_ZOOM_IN ); else g_SetLookAtFace = true; CharacterCreateLookAtFaceButton:SetText( CHARACTERCREATE_ZOOM_OUT ); end CharacterCreate_SetLookAtFace( g_SetLookAtFace ); end function CharacterCreate_Okay() local name = CharacterCreateNameEdit:GetText(); if ( string.len(name) < 1 ) then LoginDialog_Show("OKAY", TEXT("CHARACTER_CREATE_NAME_ERR")); return; end CreateCharacter(CharacterCreateNameEdit:GetText()); CharacterCreateOkayButton:Disable(); LoginDialog_Show("CREATE_CHARACTER"); g_SetLookAtFace = false; CharacterCreateLookAtFaceButton:SetText( CHARACTERCREATE_ZOOM_IN ); CharacterCreate_SetLookAtFace( g_SetLookAtFace ); end function CharacterCreate_Default() local min_value, max_value, default_value; min_value, max_value, default_value = GetCharacterCreateFigureInfo("Head"); FigureSliderHead:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Breasts"); FigureSliderBreasts:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Stature"); FigureSliderStature:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Chest"); FigureSliderChest:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Figure"); FigureSliderFigure:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Arm"); FigureSliderArm:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Forearm"); FigureSliderForearm:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Hand"); FigureSliderHand:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Leg"); FigureSliderLeg:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Calf"); FigureSliderCalf:SetValue(default_value); min_value, max_value, default_value = GetCharacterCreateFigureInfo("Foot"); FigureSliderFoot:SetValue(default_value); CharacterCreate_UpdateFigure(); end function CharacterCreate_Back() g_SetLookAtFace = false; CharacterCreateLookAtFaceButton:SetText( CHARACTERCREATE_ZOOM_IN ); CharacterCreate_SetLookAtFace( g_SetLookAtFace ); SetLoginScreen("charselect"); end function CharacterCreate_OnLoad(this) this:RegisterEvent("CHARACTER_CREATE_SUCCESS"); this:RegisterEvent("CHARACTER_CREATE_FAILED"); end function CharacterCreate_OnEvent(this, event) if ( event == "CHARACTER_CREATE_SUCCESS" ) then local text; if ( arg1 ) then text = string.format("%s\n%s", CREATE_CHARACTER_SUCCESS, arg1); else text = CREATE_CHARACTER_SUCCESS; end LoginDialog_Show("CREATE_CHARACTER_SUCCESS", text); elseif ( event == "CHARACTER_CREATE_FAILED" ) then CharacterCreateOkayButton:Enable(); end end function CharacterCreate_OnShow(this) OpenCharacterCreateModel(); CHARACTER_CREATE_UPDATE_STOP = 1; LoginDropDownList_Initialize(this, CharacterCreateRaceDropDown_Initialize); LoginDropDownList_SetSelectedID(CharacterCreateRaceDropDown, GetCharacterRace()); LoginDropDownList_Initialize(this, CharacterCreateGenderDropDown_Initialize); LoginDropDownList_SetSelectedID(CharacterCreateGenderDropDown, GetCharacterSex()); LoginDropDownList_Initialize(this, CharacterCreateClassDropDown_Initialize); LoginDropDownList_SetSelectedValue(CharacterCreateClassDropDown, GetCharacterVocation()); CharacterCreateFaceSlider_Update(); CharacterCreateHairSlider_Update(); --CharacterCreateFaceSlider:SetValue(GetCharacterFace()); --CharacterCreateHairSlider:SetValue(GetCharacterHair()); ColorDropDownList_SetSelectedID(CharacterCreateSkinColorDropDown, GetCharacterSkinIndex()); local r, g, b = GetCharacterHairColor(); CharacterCreateHairColorButton.r = r; CharacterCreateHairColorButton.g = g; CharacterCreateHairColorButton.b = b; CharacterCreateHairColorButtonTexture:SetColor(r, g, b); CHARACTER_CREATE_UPDATE_STOP = nil; CharacterCreate_UpdateModel(); CharacterCreateNameEdit:SetText(""); CharacterCreateOkayButton:Enable(); local numReserveCharacter = GetReserveNumCharacters(); if ( numReserveCharacter > 0 ) then CharacterCreateReserveButton:Show(); LoginDialog_Show("RESERVE_CHARACTER"); else CharacterCreateReserveButton:Hide(); end end function CharacterCreate_OnHide(this) CloseCharacterCreateModel(); CloseAllDropDownList(); end function CharacterCreate_OnMouseDown(this) CHARACTER_CREATE_ROTATION_START_X = GetCursorPos(); end function CharacterCreate_OnMouseUp(this) CHARACTER_CREATE_ROTATION_START_X = nil; end function CharacterCreate_OnUpdate(this, elapsedTime) if ( CHARACTER_CREATE_ROTATION_START_X ) then local x = GetCursorPos(); local diff = (x - CHARACTER_CREATE_ROTATION_START_X) * CHARACTER_ROTATION_CONSTANT; CHARACTER_CREATE_ROTATION_START_X = x; SetCharacterCreateFacing(GetCharacterCreateFacing() - diff); end end function CharacterCreate_OnMouseWheel(this, delta) end function CharacterCreate_UpdateModel() if ( CharacterCreate:IsVisible() and not CHARACTER_CREATE_UPDATE_STOP ) then local race = LoginDropDownList_GetSelectedID(CharacterCreateRaceDropDown); local gender = LoginDropDownList_GetSelectedID(CharacterCreateGenderDropDown); local class = LoginDropDownList_GetSelectedValue(CharacterCreateClassDropDown); local skinColor = ColorDropDownList_GetSelectedID(CharacterCreateSkinColorDropDown); local hair_r = CharacterCreateHairColorButton.r; local hair_g = CharacterCreateHairColorButton.g; local hair_b = CharacterCreateHairColorButton.b; local face = CharacterCreateFaceSlider:GetValue(); local hair = CharacterCreateHairSlider:GetValue(); local location = GetImageLocation("ClassImage"); CharacterCreateClassTexture:SetTexture(string.format("Interface\\Login\\CharacterCreate\\"..location.."\\CharacterCreate_Class%02d", class)); ChacacterCreateClassText:SetText(TEXT(string.format("CLASS_%02d", class))); CharacterCreateClassScrollFrame:UpdateScrollChildRect(); UpdateCharacterCreateModel(race, gender, class, face, hair, skinColor, hair_r, hair_g, hair_b); CharacterCreate_UpdateFigure(); end end function CharacterCreateRotateLeftButton_OnUpdate(this, elapsed) if ( this:IsButtonPushed("LeftButton") ) then SetCharacterCreateFacing(GetCharacterCreateFacing() + CHARACTER_FACING_INCREMENT); end end function CharacterCreateRotateRightButton_OnUpdate(this, elapsed) if ( this:IsButtonPushed("LeftButton") ) then SetCharacterCreateFacing(GetCharacterCreateFacing() - CHARACTER_FACING_INCREMENT); end end function CharacterCreateSlider_Initialize(slider, mode, step) slider.step = step; if ( mode == "INT" ) then slider:SetValueStepMode("INT"); elseif ( mode == "FLOAT" ) then slider:SetValueStepMode("FLOAT"); end slider:SetMinMaxValues(0, 0); slider:SetValue(0); end function CharacterCreateSlider_Scroll(slider, left) local step = 1; if ( slider.step ) then step = slider.step; end if ( left ) then slider:SetValue(slider:GetValue() - step); else slider:SetValue(slider:GetValue() + step); end end function CharacterCreateSlider_OnMouseDown(this, left) CharacterCreateSlider_Scroll(this:GetParent(), left); this.downDelay = CHARACTERCREATE_SLIDERBUTTON_SCROLL_DELAY * 10; end function CharacterCreateSlider_OnUpdate(this, elapsed, left) if ( this:IsButtonPushed("LeftButton") and this.downDelay ) then this.downDelay = this.downDelay - elapsed; if ( this.downDelay < 0 ) then this.downDelay = CHARACTERCREATE_SLIDERBUTTON_SCROLL_DELAY; CharacterCreateSlider_Scroll(this:GetParent(), left); end end end -- Race DropDown function CharacterCreateRaceDropDown_OnLoad(this) LoginDropDownList_Initialize(this, CharacterCreateRaceDropDown_Initialize); LoginDropDownList_SetSelectedID(CharacterCreateRaceDropDown, 1); end function CharacterCreateRaceDropDown_Initialize() local info; for index, value in pairs(CHARACTERCREATE_RACE_LIST) do if ( CheckCharacterCreateRace(index) ) then info = {}; info.value = index; info.text = value; info.func = CharacterCreateRaceDropDown_Click; LoginDropDownList_AddButton(info); end end end function CharacterCreateRaceDropDown_Click(button) local id = button:GetID(); if ( LoginDropDownList_GetSelectedID(CharacterCreateRaceDropDown) ~= id ) then LoginDropDownList_SetSelectedID(CharacterCreateRaceDropDown, id); CharacterCreate_UpdateModel(); if ( id == 3 ) then CHARACTERCREATE_GENDER_LIST = CHARACTERCREATE_GENDER_LIST2; else CHARACTERCREATE_GENDER_LIST = CHARACTERCREATE_GENDER_LIST1; end LoginDropDownList_Initialize(CharacterCreateGenderDropDown, CharacterCreateGenderDropDown_Initialize); LoginDropDownList_SetSelectedID(CharacterCreateGenderDropDown, 1); LoginDropDownList_Initialize(CharacterCreateClassDropDown, CharacterCreateClassDropDown_Initialize); LoginDropDownList_SetSelectedValue(CharacterCreateClassDropDown, GetCharacterVocation()); RandomCharacterCreateHair(); RandomCharacterCreateFace(); CharacterCreateHairSlider_Update(); CharacterCreateFaceSlider_Update(); local r, g, b = GetCharacterFaceColor(); ColorDropDownList_SetSelectedID(CharacterCreateSkinColorDropDown, GetCharacterSkinIndex()); ColorDropDownList_SetColor(CharacterCreateSkinColorDropDown, r, g, b); CharacterCreate_UpdateModel(); end end -- Gender DropDown function CharacterCreateGenderDropDown_OnLoad(this) LoginDropDownList_Initialize(this, CharacterCreateGenderDropDown_Initialize); LoginDropDownList_SetSelectedID(CharacterCreateGenderDropDown, 1); end function CharacterCreateGenderDropDown_Initialize() local info; for index, value in pairs(CHARACTERCREATE_GENDER_LIST) do info = {}; info.text = value; info.func = CharacterCreateGenderDropDown_Click; LoginDropDownList_AddButton(info); end end function CharacterCreateGenderDropDown_Click(button) local id = button:GetID(); if ( LoginDropDownList_GetSelectedID(CharacterCreateGenderDropDown) ~= id ) then LoginDropDownList_SetSelectedID(CharacterCreateGenderDropDown, id); CharacterCreate_UpdateModel(); RandomCharacterCreateHair(); RandomCharacterCreateFace(); CharacterCreateHairSlider_Update(); CharacterCreateFaceSlider_Update(); CharacterCreate_UpdateModel(); end end -- Class DropDown function CharacterCreateClassDropDown_OnLoad(this) LoginDropDownList_Initialize(this, CharacterCreateClassDropDown_Initialize); LoginDropDownList_SetSelectedValue(CharacterCreateClassDropDown, 1); end function CharacterCreateClassDropDown_Initialize() CharacterCreateClassDropDown_SetClass(GetCharacterCreateClassInfo()); end function CharacterCreateClassDropDown_SetClass(...) local info; for i = 1, arg.n, 2 do info = {}; info.value = arg[i]; info.text = arg[i+1]; info.func = CharacterCreateClassDropDown_Click; LoginDropDownList_AddButton(info); end end function CharacterCreateClassDropDown_Click(button) local value = button.value; if ( LoginDropDownList_GetSelectedValue(CharacterCreateClassDropDown) ~= value ) then LoginDropDownList_SetSelectedValue(CharacterCreateClassDropDown, value); CharacterCreate_UpdateModel(); end end -- Skin ColorDropDown function CharacterCreateSkinColorDropDown_OnLoad(this) ColorDropDownList_Initialize(this, CharacterCreateSkinColorDropDown_Initialize); ColorDropDownList_SetSelectedID(CharacterCreateSkinColorDropDown, 1); end function CharacterCreateSkinColorDropDown_Initialize() local info; local colors = GetCharacterCreateNumSkinColors(); for i = 1, colors do info = {}; info.red, info.green, info.blue = GetCharacterCreateSkinColorInfo(i); info.func = CharacterCreateSkinColorDropDown_Click; ColorDropDownList_AddButton(info); end end function CharacterCreateSkinColorDropDown_Click(button) local id = button:GetID(); if ( ColorDropDownList_GetSelectedID(CharacterCreateSkinColorDropDown) ~= id ) then ColorDropDownList_SetSelectedID(CharacterCreateSkinColorDropDown, id); CharacterCreate_UpdateModel(); end end -- Hair Dropdown function CharacterCreateHairColorButton_CallBack() CharacterCreateHairColorButton.r = LoginColorPickerFrame.r; CharacterCreateHairColorButton.g = LoginColorPickerFrame.g; CharacterCreateHairColorButton.b = LoginColorPickerFrame.b; CharacterCreateHairColorButtonTexture:SetColor(CharacterCreateHairColorButton.r, CharacterCreateHairColorButton.g, CharacterCreateHairColorButton.b); CharacterCreate_UpdateModel(); end -- Hair Style function CharacterCreateHairSlider_Update() local numHairs = GetCharacterCreateNumHairs(GetCharacterRace(), GetCharacterSex()); CHARACTERCREATE_UPDATEMODEL = nil; if ( numHairs > 0 ) then CharacterCreateHairSlider:SetMaxValue(numHairs); CharacterCreateHairSlider:SetMinValue(1); CharacterCreateHairSlider:SetValue(GetCharacterHair()); else CharacterCreateHairSlider:SetMaxValue(0); CharacterCreateHairSlider:SetMinValue(0); CharacterCreateHairSlider:SetValue(0); end CHARACTERCREATE_UPDATEMODEL = 1; end function CharacterCreateHairSlider_OnLoad(this) CharacterCreateSlider_Initialize(this, "INT", 1); CharacterCreateHairSlider_Update(); end function CharacterCreateHairSlider_OnValueChanged(this) if ( CHARACTERCREATE_UPDATEMODEL ) then CharacterCreate_UpdateModel(); end end -- Face Style function CharacterCreateFaceSlider_Update() local numFaces = GetCharacterCreateNumFaces(GetCharacterRace(), GetCharacterSex()); CHARACTERCREATE_UPDATEMODEL = nil; if ( numFaces > 0 ) then CharacterCreateFaceSlider:SetMaxValue(numFaces); CharacterCreateFaceSlider:SetMinValue(1); CharacterCreateFaceSlider:SetValue(GetCharacterFace()); else CharacterCreateFaceSlider:SetMaxValue(0); CharacterCreateFaceSlider:SetMinValue(0); CharacterCreateFaceSlider:SetValue(0); end CHARACTERCREATE_UPDATEMODEL = 1; end function CharacterCreateFaceSlider_OnLoad(this) CharacterCreateSlider_Initialize(this, "INT", 1); CharacterCreateFaceSlider_Update(); end function CharacterCreateFaceSlider_OnValueChanged(this) if ( CHARACTERCREATE_UPDATEMODEL ) then CharacterCreate_UpdateModel(); end end --[[ function SetCharacterGender(gender) CharacterCreateGenderButtonMale:SetChecked(false); CharacterCreateGenderButtonFemale:SetChecked(false); if ( gender == 1 ) then CharacterCreateGenderButtonMale:SetChecked(true); elseif ( gender == 2 ) then CharacterCreateGenderButtonFemale:SetChecked(true); else return; end CHARACTER_CREATE_GENDER = gender; end function CharacterClass_OnClick(id) local classButton; for i = 1, 3 do classButton = getglobal("CharacterCreateClassButton"..i); if ( i == id ) then classButton:SetChecked(true); else classButton:SetChecked(false); end end CHARACTER_CREATE_CLASS = id; end function CharacterCreate_OnLoad(this) SetCharacterGender(CHARACTER_CREATE_GENDER); CharacterClass_OnClick(CHARACTER_CREATE_CLASS); end ]] function CharacterCreateScrollFrame_OnShow(this) this:UpdateScrollChildRect(); end function CharacterCreateReserveDropdown_OnLoad(this) LoginDropDownList_Initialize(this, CharacterCreateReserveDropdown_Initialize, "MENU"); end function CharacterCreateReserveDropdown_Initialize(this) local info; local numCharacters = GetReserveNumCharacters(); local name, race, sex, class; for i = 1, numCharacters do name, race, sex, class = GetReserveCharacterInfo(i); info = {}; info.text = name; info.func = CharacterCreateReserveDropdown_Click; LoginDropDownList_AddButton(info); end end function CharacterCreateReserveDropdown_Click(this) CharacterCreateNameEdit:SetText(this:GetText()); end function CharacterCreateReserveButton_OnUpdate(this, elapsedTime) if ( this.alphaValue == nil ) then this.alphaValue = 0; end if ( this.state ) then this.alphaValue = this.alphaValue - elapsedTime; if ( this.alphaValue < 0 ) then this.alphaValue = 0; this.state = nil; end else this.alphaValue = this.alphaValue + elapsedTime; if ( this.alphaValue > 0.9 ) then this.alphaValue = 0.9; this.state = 1; end end CharacterCreateReserveButtonFlash:SetAlpha(this.alphaValue); end --==========================================-- --== Fast login added and moded functions ==-- function CharacterCreate_Okay() local name = CharacterCreateNameEdit:GetText(); if ( string.len(name) < 1 ) then LoginDialog_Show("OKAY", TEXT("CHARACTER_CREATE_NAME_ERR")); return; end CreateCharacter(CharacterCreateNameEdit:GetText()); CharacterCreateOkayButton:Disable(); g_SetLookAtFace = false; CharacterCreateLookAtFaceButton:SetText( CHARACTERCREATE_ZOOM_IN ); CharacterCreate_SetLookAtFace( g_SetLookAtFace ); end function CharacterCreate_OnEvent(this, event) if ( event == "CHARACTER_CREATE_SUCCESS" ) then SetLoginScreen("charselect"); elseif ( event == "CHARACTER_CREATE_FAILED" ) then CharacterCreateOkayButton:Enable(); end end function CharacterCreate_OnShow(this) OpenCharacterCreateModel(); CHARACTER_CREATE_UPDATE_STOP = 1; -- Set Character Race. LoginDropDownList_Initialize(this, CharacterCreateRaceDropDown_Initialize); if fastLoginDefaultRace ~= nil and type(fastLoginDefaultRace) == "number" and fastLoginDefaultRace > 0 and 4 > fastLoginDefaultRace then LoginDropDownList_SetSelectedID(CharacterCreateRaceDropDown, fastLoginDefaultRace); else LoginDropDownList_SetSelectedID(CharacterCreateRaceDropDown, GetCharacterRace()); end LoginDropDownList_Initialize(this, CharacterCreateGenderDropDown_Initialize); LoginDropDownList_SetSelectedID(CharacterCreateGenderDropDown, GetCharacterSex()); -- Set Character Class. LoginDropDownList_Initialize(this, CharacterCreateClassDropDown_Initialize); if fastLoginDefaultClass ~= nil and type(fastLoginDefaultClass) == "number" and fastLoginDefaultClass > 0 and 7 > fastLoginDefaultClass then LoginDropDownList_SetSelectedValue(CharacterCreateClassDropDown, fastLoginDefaultClass); else LoginDropDownList_SetSelectedValue(CharacterCreateClassDropDown, GetCharacterVocation()); end CharacterCreateFaceSlider_Update(); CharacterCreateHairSlider_Update(); --CharacterCreateFaceSlider:SetValue(GetCharacterFace()); --CharacterCreateHairSlider:SetValue(GetCharacterHair()); ColorDropDownList_SetSelectedID(CharacterCreateSkinColorDropDown, GetCharacterSkinIndex()); local r, g, b = GetCharacterHairColor(); CharacterCreateHairColorButton.r = r; CharacterCreateHairColorButton.g = g; CharacterCreateHairColorButton.b = b; CharacterCreateHairColorButtonTexture:SetColor(r, g, b); CHARACTER_CREATE_UPDATE_STOP = nil; CharacterCreate_UpdateModel(); -- Auto generate character name CharacterCreateNameEdit:SetText(GenerateName()); CharacterCreateOkayButton:Enable(); local numReserveCharacter = GetReserveNumCharacters(); if ( numReserveCharacter > 0 ) then CharacterCreateReserveButton:Show(); LoginDialog_Show("RESERVE_CHARACTER"); else CharacterCreateReserveButton:Hide(); end end function CharacterCreate_GenerateName() CharacterCreateNameEdit:SetText(GenerateName()); CharacterCreateOkayButton:Enable(); end function GenerateName() -- Variable holding the default or constructed name local TheName = getDefaultName() if TheName == nil then local min, max = 6,8 -- min and max length of name to generate. -- Rule for StartCons: Consolonant combinations that would work at the beginning of a name. local StartCons = {"b","c","d","f","g","h","j","k","l","m","n","p","r","s","t","v","w","z", "br","bl","cr","cl","ch","chr","dr","dw","fr","fl","gr","gl","gh","gn", "kr","kl","pr","pl","ph","phr","qu","sc","scr","sh","shr","sk","sl","sm", "sn","sp","spr","spl","squ","st","str","sw","th","thr","tr","tw","wr","wh"} -- Rules for EndCons: Consonant combinations that would work at the end of a name. These will be used in the middle of name too. local EndCons = {"b","c","d","f","g","h","k","l","m","n","p","que","r","s","t","w", "rd","nd","ld","ff","rf","lf","ng","rg","gh","sh","ch","rch","th","rth","nth","ph", "rk","sk","lk","ll","rl","rn","gn","rp","sp","lp","ss","st","rst","ct","nt","lt"} -- Rule for StartVows: These will be used at the beginning of names. local StartVows = {"a","e","i","o","ai","ea","ei","ee","oo","oa","oi"} -- Rule for EndVows: These will be used in the middle and end of names. local EndVows = {"a","e","i","o","u","ae","ai","ea","ei","ee","oo","oa","oi","y"} local NextIsVowel = #StartVows >= math.random(#StartVows+#StartCons) -- Randomly start with a vowel sound or a consonant sound local NameLength = math.random(min, max) -- Between min and max letters long -- Start the name if NextIsVowel then TheName = StartVows[math.random(#StartVows)] else TheName = StartCons[math.random(#StartCons)] end repeat NextIsVowel = not NextIsVowel -- Toggle if NextIsVowel then TheName = TheName .. EndVows[math.random(#EndVows)] else TheName = TheName .. EndCons[math.random(#EndCons)] end until #TheName >= NameLength end -- Capitalise TheName = TheName:sub(1,1):upper() .. TheName:sub(2,-1):lower() return TheName end
gpl-2.0
eraffxi/darkstar
scripts/zones/Caedarva_Mire/npcs/qm12.lua
1
1540
----------------------------------- -- Area: Caedarva Mire -- NPC: ??? -- !pos 456.993 -7.000 -270.815 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Caedarva_Mire/TextIDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) local notMeantToBeProg = player:getVar("notmeanttobeCS"); if (notMeantToBeProg == 1) then player:startEvent(16); elseif (player:getQuestStatus(AHT_URHGAN,NOT_MEANT_TO_BE) == QUEST_ACCEPTED and notMeantToBeProg == 3) then player:startEvent(17); elseif (player:getVar("notmeanttobeMoshdahnKilled") == 1 and player:getVar("notmeanttobeLamia27Killed") == 1) then player:startEvent(18); else player:messageSpecial(NOTHING_HAPPENS); end end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if (csid == 16) then player:setVar("notmeanttobeCS",2); elseif (csid == 17) then if (GetMobAction(17101149) == 0 and GetMobAction(17101148) == 0) then SpawnMob(17101149):updateClaim(player); SpawnMob(17101148):updateClaim(player); end elseif (csid == 18) then player:setVar("notmeanttobeMoshdahnKilled",0); player:setVar("notmeanttobeLamia27Killed",0); player:setVar("notmeanttobeCS",5); end end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/bio_engineer/creature/creature_dalyrake.lua
1
3355
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_draft_schematic_bio_engineer_creature_creature_dalyrake = object_draft_schematic_bio_engineer_creature_shared_creature_dalyrake:new { templateType = DRAFTSCHEMATIC, customObjectName = "Dalyrake", craftingToolTab = 256, -- (See DraftSchemticImplementation.h) complexity = 28, size = 1, xpType = "crafting_bio_engineer_creature", xp = 250, assemblySkill = "bio_engineer_assembly", experimentingSkill = "bio_engineer_experimentation", customizationSkill = "bio_engineer_experimentation", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_creature_ingredients_n", "craft_creature_ingredients_n", "craft_creature_ingredients_n"}, ingredientTitleNames = {"dna_template", "protein_base", "organic_nutrition_materials"}, ingredientSlotType = {1, 0, 0}, resourceTypes = {"object/tangible/component/dna/shared_dna_template_generic.iff", "creature_food", "flora_food"}, resourceQuantities = {1, 65, 65}, contribution = {100, 100, 100}, targetTemplate = "object/tangible/deed/pet_deed/dalyrake_deed.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_creature_creature_dalyrake, "object/draft_schematic/bio_engineer/creature/creature_dalyrake.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/attachment/wing/hutt_medium_wing_s01.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_tangible_ship_attachment_wing_hutt_medium_wing_s01 = object_tangible_ship_attachment_wing_shared_hutt_medium_wing_s01:new { } ObjectTemplates:addTemplate(object_tangible_ship_attachment_wing_hutt_medium_wing_s01, "object/tangible/ship/attachment/wing/hutt_medium_wing_s01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/screenplays/tasks/hefsen_zindalai.lua
1
2391
hefsen_zindalai_missions = { { missionType = "deliver", primarySpawns = { { npcTemplate = "maestro", planetName = "rori", npcName = "Maestro" } }, secondarySpawns = { }, itemSpawns = { { itemTemplate = "object/tangible/mission/quest_item/hefsen_zindalai_q1_needed.iff", itemName = "" } }, rewards = { { rewardType = "credits", amount = 25 }, { rewardType = "faction", faction = "naboo", amount = 5 }, } }, { missionType = "escort", silentTarget = "yes", primarySpawns = { { npcTemplate = "runaway_gualama", planetName = "rori", npcName = "a runaway gualama" } }, secondarySpawns = { { npcTemplate = "blood_thirsty_borgle", planetName = "rori", npcName = "" }, { npcTemplate = "blood_thirsty_borgle", planetName = "rori", npcName = "" } }, itemSpawns = { }, rewards = { { rewardType = "credits", amount = 50 }, { rewardType = "faction", faction = "naboo", amount = 10 } } }, { missionType = "escort", primarySpawns = { { npcTemplate = "wealthy_patron", planetName = "rori", npcName = "a wealthy patron" } }, secondarySpawns = { { npcTemplate = "bandit", planetName = "rori", npcName = "" }, { npcTemplate = "bandit", planetName = "rori", npcName = "" }, { npcTemplate = "bandit", planetName = "rori", npcName = "" } }, itemSpawns = { }, rewards = { { rewardType = "credits", amount = 100 }, { rewardType = "faction", faction = "naboo", amount = 15 } } } } npcMapHefsenZindalai = { { spawnData = { planetName = "rori", npcTemplate = "hefsen_zindalai", x = -11, z = 1.7, y = -20, direction = 0, cellID = 4635710, position = STAND }, worldPosition = { x = 5298.6, y = 5896.8 }, npcNumber = 1, stfFile = "@static_npc/rori/rori_restuss_hefsen_zindalai", missions = hefsen_zindalai_missions }, } HefsenZindalai = ThemeParkLogic:new { numberOfActs = 1, npcMap = npcMapHefsenZindalai, permissionMap = {}, className = "HefsenZindalai", screenPlayState = "hefsen_zindalai_quest", distance = 600, missionDescriptionStf = "", missionCompletionMessageStf = "" } registerScreenPlay("HefsenZindalai", true) hefsen_zindalai_mission_giver_conv_handler = mission_giver_conv_handler:new { themePark = HefsenZindalai } hefsen_zindalai_mission_target_conv_handler = mission_target_conv_handler:new { themePark = HefsenZindalai }
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/item/item_recycler_chemical.lua
2
3379
--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_recycler_chemical = object_draft_schematic_item_shared_item_recycler_chemical:new { templateType = DRAFTSCHEMATIC, customObjectName = "Chemical Recycler Schematic", craftingToolTab = 524288, -- (See DraftSchemticImplementation.h) complexity = 12, size = 1, xpType = "crafting_general", xp = 28, assemblySkill = "general_assembly", experimentingSkill = "general_experimentation", customizationSkill = "general_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n"}, ingredientTitleNames = {"tumble_blender", "feed_tubes", "chemical_tubing", "reaction_housing"}, ingredientSlotType = {1, 1, 0, 0}, resourceTypes = {"object/tangible/loot/simple_kit/shared_tumble_blender.iff", "object/tangible/loot/simple_kit/shared_feed_tubes.iff", "fiberplast", "gemstone"}, resourceQuantities = {1, 1, 50, 30}, contribution = {100, 100, 100, 100}, targetTemplate = "object/tangible/recycler/chemical_recycler.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_item_item_recycler_chemical, "object/draft_schematic/item/item_recycler_chemical.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/lair/base/poi_all_lair_garbage_large_evil_fire_red.lua
2
2376
--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_base_poi_all_lair_garbage_large_evil_fire_red = object_tangible_lair_base_shared_poi_all_lair_garbage_large_evil_fire_red:new { objectMenuComponent = {"cpp", "LairMenuComponent"}, } ObjectTemplates:addTemplate(object_tangible_lair_base_poi_all_lair_garbage_large_evil_fire_red, "object/tangible/lair/base/poi_all_lair_garbage_large_evil_fire_red.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/space/debris/tradefed_hulk_debris_s01.lua
3
2264
--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_debris_tradefed_hulk_debris_s01 = object_static_space_debris_shared_tradefed_hulk_debris_s01:new { } ObjectTemplates:addTemplate(object_static_space_debris_tradefed_hulk_debris_s01, "object/static/space/debris/tradefed_hulk_debris_s01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/installation/manufacture/objects.lua
3
12001
--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_installation_manufacture_shared_clothing_factory = SharedInstallationObjectTemplate:new { clientTemplateFileName = "object/installation/manufacture/shared_clothing_factory.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ins_all_factory_clothing.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/installation/client_shared_manufacture_clothing_factory.cdf", clientGameObjectType = 4097, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 1, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "", gameObjectType = 4097, locationReservationRadius = 0, lookAtText = "", noBuildRadius = 0, objectName = "@installation_n:clothing_factory", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/manufacture_installation.iff", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "footprint/installation/manufacture/shared_clothing_factory.sfp", surfaceType = 1, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2037216595, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/installation/base/shared_installation_base.iff", "object/installation/manufacture/base/shared_manufacture_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_installation_manufacture_shared_clothing_factory, "object/installation/manufacture/shared_clothing_factory.iff") object_installation_manufacture_shared_food_factory = SharedInstallationObjectTemplate:new { clientTemplateFileName = "object/installation/manufacture/shared_food_factory.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ins_all_factory_organic.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/installation/client_shared_manufacture_food_factory.cdf", clientGameObjectType = 4097, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 1, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "", gameObjectType = 4097, locationReservationRadius = 0, lookAtText = "", noBuildRadius = 0, objectName = "@installation_n:food_factory", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/manufacture_installation.iff", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "footprint/installation/manufacture/shared_food_factory.sfp", surfaceType = 1, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 2484565682, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/installation/base/shared_installation_base.iff", "object/installation/manufacture/base/shared_manufacture_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_installation_manufacture_shared_food_factory, "object/installation/manufacture/shared_food_factory.iff") object_installation_manufacture_shared_structure_factory = SharedInstallationObjectTemplate:new { clientTemplateFileName = "object/installation/manufacture/shared_structure_factory.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ins_all_factory_machine.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/installation/client_shared_manufacture_structure_factory.cdf", clientGameObjectType = 4097, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 1, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "", gameObjectType = 4097, locationReservationRadius = 0, lookAtText = "", noBuildRadius = 0, objectName = "@installation_n:structure_factory", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/manufacture_installation.iff", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "footprint/installation/manufacture/shared_structure_factory.sfp", surfaceType = 1, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1556571915, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/installation/base/shared_installation_base.iff", "object/installation/manufacture/base/shared_manufacture_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_installation_manufacture_shared_structure_factory, "object/installation/manufacture/shared_structure_factory.iff") object_installation_manufacture_shared_weapon_factory = SharedInstallationObjectTemplate:new { clientTemplateFileName = "object/installation/manufacture/shared_weapon_factory.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "appearance/ins_all_factory_item.apt", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "clientdata/installation/client_shared_manufacture_weapon_factory.cdf", clientGameObjectType = 4097, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 1, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "", gameObjectType = 4097, locationReservationRadius = 0, lookAtText = "", noBuildRadius = 0, objectName = "@installation_n:item_factory", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/manufacture_installation.iff", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "footprint/installation/manufacture/shared_weapon_factory.sfp", surfaceType = 1, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 1304272380, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/installation/base/shared_installation_base.iff", "object/installation/manufacture/base/shared_manufacture_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_installation_manufacture_shared_weapon_factory, "object/installation/manufacture/shared_weapon_factory.iff") object_installation_manufacture_shared_weapon_installation = SharedInstallationObjectTemplate:new { clientTemplateFileName = "object/installation/manufacture/shared_weapon_installation.iff" --Data below here is deprecated and loaded from the tres, keeping for easy lookups --[[ appearanceFilename = "", arrangementDescriptorFilename = "", certificationsRequired = {}, clearFloraRadius = 15, clientDataFile = "", clientGameObjectType = 4097, collisionActionBlockFlags = 0, collisionActionFlags = 51, collisionActionPassFlags = 1, collisionMaterialBlockFlags = 0, collisionMaterialFlags = 1, collisionMaterialPassFlags = 0, containerType = 1, containerVolumeLimit = 1, customizationVariableMapping = {}, detailedDescription = "@item_n:default_craftable", gameObjectType = 4097, locationReservationRadius = 0, lookAtText = "string_id_table", noBuildRadius = 0, objectName = "@obj_n:unknown_installation", onlyVisibleInTools = 0, paletteColorCustomizationVariables = {}, portalLayoutFilename = "", rangedIntCustomizationVariables = {}, scale = 1, scaleThresholdBeforeExtentTest = 0.5, sendToClient = 1, slotDescriptorFilename = "abstract/slot/descriptor/manufacture_installation.iff", snapToTerrain = 0, socketDestinations = {}, structureFootprintFileName = "footprint/installation/mining_ore/shared_mining_ore_harvester_style_2.sfp", surfaceType = 1, targetable = 1, totalCellNumber = 0, useStructureFootprintOutline = 0, clientObjectCRC = 415547091, derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/installation/base/shared_installation_base.iff", "object/installation/manufacture/base/shared_manufacture_base.iff"} ]] } ObjectTemplates:addClientTemplate(object_installation_manufacture_shared_weapon_installation, "object/installation/manufacture/shared_weapon_installation.iff")
lgpl-3.0
eraffxi/darkstar
scripts/globals/effects/last_resort.lua
2
1371
----------------------------------- -- -- dsp.effect.LAST_RESORT -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(dsp.mod.ATTP, 25 + target:getMerit(dsp.merit.LAST_RESORT_EFFECT)); target:addMod(dsp.mod.HASTE_ABILITY, target:getMod(dsp.mod.DESPERATE_BLOWS) + target:getMerit(dsp.merit.DESPERATE_BLOWS)); -- Gear that affects this mod is handled by a Latent Effect because the gear must remain equipped target:addMod(dsp.mod.DEFP, -25 - target:getMerit(dsp.merit.LAST_RESORT_EFFECT)); end; ----------------------------------- -- onEffectTick Action ----------------------------------- function onEffectTick(target,effect) end; ----------------------------------- -- onEffectLose Action ----------------------------------- function onEffectLose(target,effect) target:delMod(dsp.mod.ATTP, 25 + target:getMerit(dsp.merit.LAST_RESORT_EFFECT)); target:delMod(dsp.mod.HASTE_ABILITY, target:getMod(dsp.mod.DESPERATE_BLOWS) + target:getMerit(dsp.merit.DESPERATE_BLOWS)); -- Gear that affects this mod is handled by a Latent Effect because the gear must remain equipped target:delMod(dsp.mod.DEFP, -25 - target:getMerit(dsp.merit.LAST_RESORT_EFFECT)); end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/draft_schematic/space/weapon/speed_limiter_upgrade_mk3.lua
2
3228
--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_weapon_speed_limiter_upgrade_mk3 = object_draft_schematic_space_weapon_shared_speed_limiter_upgrade_mk3:new { templateType = DRAFTSCHEMATIC, customObjectName = "Speed Limiter Upgrade - Mark III", craftingToolTab = 131072, -- (See DraftSchemticImplementation.h) complexity = 27, size = 1, xpType = "shipwright", xp = 125, assemblySkill = "weapon_systems", experimentingSkill = "weapons_systems_experimentation", customizationSkill = "medicine_customization", customizationOptions = {}, customizationStringNames = {}, customizationDefaults = {}, ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n"}, ingredientTitleNames = {"casing", "limiting_mechanism"}, ingredientSlotType = {0, 0}, resourceTypes = {"steel", "ore_siliclastic_fermionic"}, resourceQuantities = {350, 150}, contribution = {100, 100}, targetTemplate = "object/tangible/ship/crafted/weapon/speed_limiter_upgrade_mk3.iff", additionalTemplates = { } } ObjectTemplates:addTemplate(object_draft_schematic_space_weapon_speed_limiter_upgrade_mk3, "object/draft_schematic/space/weapon/speed_limiter_upgrade_mk3.iff")
lgpl-3.0
airstruck/luigi
example/main.lua
1
2955
local Layout = require 'luigi.layout' local layout = Layout(require 'layout.main') local aboutDialog = Layout(require 'layout.about') local licenseDialog = Layout(require 'layout.license') layout:setStyle(require 'style') aboutDialog:setStyle(require 'style') licenseDialog:setStyle(require 'style') layout.slidey:onChange(function (event) layout.progressBar.value = event.value end) layout.flowToggle:onChange(function (event) layout.slidey.flow = event.value and 'y' or 'x' layout.progressBar.flow = event.value and 'y' or 'x' layout.stepper.flow = event.value and 'y' or 'x' local height = layout.flowTest:getHeight() layout.flowTest.flow = event.value and 'x' or 'y' layout.flowTest.height = height end) layout.newButton:onPress(function (event) print('creating a new thing!') end) layout.mainCanvas.text = [[ This program demonstrates some features of the Luigi UI library. Luigi is a widget toolkit that runs under Love or LuaJIT. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]] layout.mainCanvas.align = 'top' layout.mainCanvas.wrap = true layout.mainCanvas.scroll = true -- help dialogs layout.about:onPress(function() licenseDialog:hide() aboutDialog:show() end) layout.license:onPress(function() aboutDialog:hide() licenseDialog:show() end) aboutDialog.closeButton:onPress(function() aboutDialog:hide() end) licenseDialog.closeButton:onPress(function() licenseDialog:hide() end) -- menu/view/theme layout.themeLight:onPress(function (event) local light = require 'luigi.theme.light' layout:setTheme(light) licenseDialog:setTheme(light) aboutDialog:setTheme(light) end) layout.themeDark:onPress(function (event) local dark = require 'luigi.theme.dark' layout:setTheme(dark) licenseDialog:setTheme(dark) aboutDialog:setTheme(dark) end) -- menu/file/quit -- uses Backend for compat with Love or LuaJIT/SDL local Backend = require 'luigi.backend' layout.menuQuit:onPress(Backend.quit) layout.mono:onPress(function() layout.leftSideBox.font = 'font/DejaVuSansMono.ttf' end) layout.sans:onPress(function() layout.leftSideBox.font = false end) layout.mono2:onPress(function() layout.stepper.font = 'font/DejaVuSansMono.ttf' end) layout.sans2:onPress(function() layout.stepper.font = false end) layout.fish:onChange(function() layout.fishStatus.text = 'Selected: ' .. layout.fish.selected.text end) -- show the main layout layout:show() -- only needed when using LuaJIT/SDL and not using launch.lua -- Backend.run()
mit
kidaa/Awakening-Core3
bin/scripts/object/tangible/ship/components/reactor/rct_subpro_dyna2.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_tangible_ship_components_reactor_rct_subpro_dyna2 = object_tangible_ship_components_reactor_shared_rct_subpro_dyna2:new { } ObjectTemplates:addTemplate(object_tangible_ship_components_reactor_rct_subpro_dyna2, "object/tangible/ship/components/reactor/rct_subpro_dyna2.iff")
lgpl-3.0
meshr-net/meshr_tomato-RT-N
usr/lib/lua/luci/lucid/http/handler/luci.lua
2
2701
--[[ LuCId HTTP-Slave (c) 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local rootfs = rootfs or '' local dsp = require "luci.dispatcher" local util = require "luci.util" local http = require "luci.http" local ltn12 = require "luci.ltn12" local srv = require "luci.lucid.http.server" local coroutine = require "coroutine" local type = type --- LuCI web handler -- @cstyle instance module "luci.lucid.http.handler.luci" --- Create a LuCI web handler. -- @class function -- @param name Name -- @param prefix Dispatching prefix -- @return LuCI web handler object Luci = util.class(srv.Handler) function Luci.__init__(self, name, prefix) srv.Handler.__init__(self, name) self.prefix = prefix dsp.indexcache = rootfs .. "/tmp/luci-indexcache" end --- Handle a HEAD request. -- @param request Request object -- @return status code, header table, response source function Luci.handle_HEAD(self, ...) local stat, head = self:handle_GET(...) return stat, head end --- Handle a POST request. -- @param request Request object -- @return status code, header table, response source function Luci.handle_POST(self, ...) return self:handle_GET(...) end --- Handle a GET request. -- @param request Request object -- @return status code, header table, response source function Luci.handle_GET(self, request, sourcein) local r = http.Request( request.env, sourcein ) local res, id, data1, data2 = true, 0, nil, nil local headers = {} local status = 200 local active = true local x = coroutine.create(dsp.httpdispatch) while not id or id < 3 do res, id, data1, data2 = coroutine.resume(x, r, self.prefix) if not res then status = 500 headers["Content-Type"] = "text/plain" return status, headers, ltn12.source.string(id) end if id == 1 then status = data1 elseif id == 2 then if not headers[data1] then headers[data1] = data2 elseif type(headers[data1]) ~= "table" then headers[data1] = {headers[data1], data2} else headers[data1][#headers[data1]+1] = data2 end end end if id == 6 then while (coroutine.resume(x)) do end return status, headers, srv.IOResource(data1, data2) end local function iter() local res, id, data = coroutine.resume(x) if not res then return nil, id elseif not id or not active then return true elseif id == 5 then active = false while (coroutine.resume(x)) do end return nil elseif id == 4 then return data end end return status, headers, iter end
apache-2.0
eraffxi/darkstar
scripts/zones/The_Garden_of_RuHmet/npcs/qm1.lua
2
1918
----------------------------------- -- Area: The_Garden_of_RuHmet -- NPC: ??? (Jailer of Fortitude Spawn) -- Allows players to spawn the Jailer of Fortitude by trading 12 Ghrah M Chips to a ???. -- Random positions: -- !pos -420 0 755 -- !pos -43 0 460 -- !pos -260 0 44.821 -- !pos -580 0 43 -- !pos -796 0 460 ----------------------------------- package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Garden_of_RuHmet/TextIDs"); require("scripts/zones/The_Garden_of_RuHmet/MobIDs"); ----------------------------------- function onTrade(player,npc,trade) -- Trade 12 Ghrah M Chips if (GetMobAction(Jailer_of_Fortitude) == 0 and trade:hasItemQty(1872,12) and trade:getItemCount() == 12) then local qm1 = GetNPCByID(Jailer_of_Fortitude_QM); -- Complete the trade player:tradeComplete(); -- Hide the NPC, will become unhidden after Jailer of Fortitude despawns qm1:setStatus(dsp.status.DISAPPEAR); -- Change MobSpawn to ???'s pos. GetMobByID(Jailer_of_Fortitude):setSpawn(qm1:getXPos(),qm1:getYPos(),qm1:getZPos()); -- Change spawn point of pets to be at the ???'s pos as well GetMobByID(Kf_Ghrah_WHM):setSpawn(qm1:getXPos(),qm1:getYPos(),qm1:getZPos()); GetMobByID(Kf_Ghrah_BLM):setSpawn(qm1:getXPos(),qm1:getYPos(),qm1:getZPos()); -- Spawn Jailer of Fortitude SpawnMob(Jailer_of_Fortitude):updateClaim(player); SpawnMob(Kf_Ghrah_WHM):updateClaim(player); SpawnMob(Kf_Ghrah_BLM):updateClaim(player); end end; function onTrigger(player,npc) end; function onEventUpdate(player,csid,option) -- printf("onUpdate CSID: %u",csid); -- printf("onUpdate RESULT: %u",option); end; function onEventFinish(player,csid,option) -- printf("onFinish CSID: %u",csid); -- printf("onFinish RESULT: %u",option); end;
gpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/static/structure/general/lucky_despot_debris_lg_engine_s01.lua
3
2320
--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_general_lucky_despot_debris_lg_engine_s01 = object_static_structure_general_shared_lucky_despot_debris_lg_engine_s01:new { } ObjectTemplates:addTemplate(object_static_structure_general_lucky_despot_debris_lg_engine_s01, "object/static/structure/general/lucky_despot_debris_lg_engine_s01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/component/droid/r4_droid_chassis.lua
3
3248
--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_droid_r4_droid_chassis = object_tangible_component_droid_shared_r4_droid_chassis:new { numberExperimentalProperties = {1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1}, experimentalProperties = {"XX", "XX", "OQ", "SR", "UT", "XX", "XX", "XX", "OQ", "SR", "UT", "OQ", "XX", "XX", "XX", "XX", "XX", "XX"}, experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, experimentalGroupTitles = {"null", "null", "exp_durability", "null", "null", "null", "exp_quality", "exp_effectiveness", "null", "null", "null", "null", "null", "null"}, experimentalSubGroupTitles = {"null", "null", "decayrate", "armoreffectiveness", "armorintegrity", "armorencumbrance", "mechanism_quality", "power_level", "storage_module", "data_module", "personality_module", "medical_module", "repair_module", "armor_module"}, experimentalMin = {0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalMax = {0, 0, 15, 0, 0, 0, 100, 50, 0, 0, 0, 0, 0, 0}, experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_component_droid_r4_droid_chassis, "object/tangible/component/droid/r4_droid_chassis.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/weapon/melee/baton/serverobjects.lua
3
2269
--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/melee/baton/base/serverobjects.lua") -- Server Objects includeFile("weapon/melee/baton/baton_gaderiffi.lua") includeFile("weapon/melee/baton/baton_stun.lua") includeFile("weapon/melee/baton/victor_baton_gaderiffi.lua")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/mobile/fath_hray.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_fath_hray = object_mobile_shared_fath_hray:new { } ObjectTemplates:addTemplate(object_mobile_fath_hray, "object/mobile/fath_hray.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/screenplays/caves/endor_orphaned_marauder_cave.lua
2
4294
EndorOrphanedMarauderCaveScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "EndorOrphanedMarauderCaveScreenPlay", lootContainers = { 733413, 733416, 733422 }, lootLevel = 26, lootGroups = { { groups = { {group = "color_crystals", chance = 160000}, {group = "junk", chance = 6240000}, {group = "heavy_weapons_consumable", chance = 1000000}, {group = "melee_weapons", chance = 1000000}, {group = "ranged_weapons", chance = 1000000}, {group = "clothing_attachments", chance = 300000}, {group = "armor_attachments", chance = 300000} }, lootChance = 8000000 } }, lootContainerRespawn = 1800 } registerScreenPlay("EndorOrphanedMarauderCaveScreenPlay", true) function EndorOrphanedMarauderCaveScreenPlay:start() if (isZoneEnabled("endor")) then self:spawnMobiles() self:initializeLootContainers() end end function EndorOrphanedMarauderCaveScreenPlay:spawnMobiles() spawnMobile("endor", "berserk_marauder", 300, 191.7, -66.7, -101.7, 105, 733405) spawnMobile("endor", "berserk_marauder", 300, 188.0, -66.1, -103.1, -78, 733405) spawnMobile("endor", "berserk_marauder", 300, 188.2, -66.1, -98.6, -101, 733405) spawnMobile("endor", "frenzied_marauder", 300, 136.0, -67.0, -97.7, -144, 733404) spawnMobile("endor", "frenzied_marauder", 300, 134.5, -66.9, -93.0, -48, 733404) spawnMobile("endor", "frenzied_marauder", 300, 131.4, -66.9, -88.7, 116, 733404) spawnMobile("endor", "frenzied_marauder", 300, 152.6, -66.2, -129.1, 109, 733404) spawnMobile("endor", "frenzied_marauder", 300, 121.1, -66.5, -127.7, 66, 733404) spawnMobile("endor", "frenzied_marauder", 300, 125.6, -66.5, -126.8, -73, 733404) spawnMobile("endor", "feral_marauder", 300, 95.4, -66.0, -110.7, -168, 733401) spawnMobile("endor", "feral_marauder", 300, 64.9, -66.5, -136.3, -33, 733402) spawnMobile("endor", "marauder", 300, 52.3, -77.0, -91.0, 45, 733402) spawnMobile("endor", "marauder", 300, 94.8, -75.7, -69.5, -48, 733400) spawnMobile("endor", "marauder", 300, 92.2, -75.9, -67.1, 77, 733400) spawnMobile("endor", "berserk_marauder", 300, 95.4, -75.6, -66.1, -132, 733400) spawnMobile("endor", "frenzied_marauder", 300, 63.9, -75.2, -56.3, 110, 733400) spawnMobile("endor", "berserk_marauder", 300, 70.5, -75.2, -61.7, 28, 733400) spawnMobile("endor", "berserk_marauder", 300, 54.6, -68.2, -43.4, 55, 733398) spawnMobile("endor", "marauder", 300, 89.7, -62.3, -18.4, -39, 733399) spawnMobile("endor", "marauder", 300, 92.3, -62.0, -15.7, -89, 733399) spawnMobile("endor", "marauder", 300, 90.0, -61.9, -13.0, 179, 733399) spawnMobile("endor", "marauder", 300, 87.7, -62.2, -14.9, 96, 733399) spawnMobile("endor", "marauder", 300, 44.7, -47.1, -8.6, -139, 733398) spawnMobile("endor", "marauder", 300, 44.3, -47.2, -12.1, 7, 733398) spawnMobile("endor", "marauder", 300, 46.4, -48.0, -60.3, 86, 733398) spawnMobile("endor", "marauder", 300, 51.7, -48.1, -67.8, 94, 733398) spawnMobile("endor", "marauder", 300, 23.0, -42.2, -62.0, 0, 733398) spawnMobile("endor", "marauder", 300, 26.1, -41.9, -60.6, -10, 733398) spawnMobile("endor", "frenzied_marauder", 300, 76.6, -45.7, -147.8, 33, 733407) spawnMobile("endor", "frenzied_marauder", 300, 82.3, -46.4, -148.1, -23, 733407) spawnMobile("endor", "marauder", 300, 89.7, -46.6, -113.3, -40, 733401) spawnMobile("endor", "marauder", 300, 91.7, -46.5, -108.0, -102, 733401) spawnMobile("endor", "marauder", 300, 86.2, -46.7, -109.8, -79, 733401) spawnMobile("endor", "feral_marauder", 300, -6889.2, 8.0, 724.5, 72, 0) spawnMobile("endor", "feral_marauder", 300, -6888.3, 7.9, 730.4, 144, 0) spawnMobile("endor", "feral_marauder", 300, -6882.6, 7.4, 727.3, -90, 0) spawnMobile("endor", "feral_marauder", 300, -6906.2, 10.6, 687.4, 131, 0) spawnMobile("endor", "feral_marauder", 300, -6906.8, 10.8, 681.8, 85, 0) spawnMobile("endor", "feral_marauder", 300, -6899.9, 10.2, 685.5, -102, 0) end
lgpl-3.0
mohammad1212/robot12240
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_document(receiver, file, rmtmp_cb, cb_extra) elseif mime_type == 'text' then print('send_document') send_document(receiver, file, rmtmp_cb, cb_extra) elseif mime_type == 'image' then print('send_photo') send_photo(receiver, file, rmtmp_cb, cb_extra) elseif mime_type == 'audio' then print('send_audio') send_audio(receiver, file, rmtmp_cb, cb_extra) elseif mime_type == 'video' then print('send_video') send_video(receiver, file, rmtmp_cb, cb_extra) else print('send_file') send_file(receiver, file, rmtmp_cb, cb_extra) end end return { description = "When user sends media URL (ends with gif, mp4, pdf, etc.) download and send it to origin.", usage = "When user sends media URL (ends with gif, mp4, pdf, etc.) download and send it to origin.", patterns = { "(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(pdf))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(ogg))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(zip))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(mp3))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(rar))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(wmv))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(doc))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(avi))$", "(https?://[%w-_%.%?%.:/%+=&]+%.(webp))$" }, run = run } end
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/object/installation/battlefield/destructible/bfield_nightsister_target_sith_crystal.lua
3
2392
--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_nightsister_target_sith_crystal = object_installation_battlefield_destructible_shared_bfield_nightsister_target_sith_crystal:new { } ObjectTemplates:addTemplate(object_installation_battlefield_destructible_bfield_nightsister_target_sith_crystal, "object/installation/battlefield/destructible/bfield_nightsister_target_sith_crystal.iff")
lgpl-3.0
eraffxi/darkstar
scripts/zones/Spire_of_Mea/npcs/_0l1.lua
6
1076
----------------------------------- -- Area: Spire_of_Mea -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Mea/TextIDs"); function onTrade(player,npc,trade) if (TradeBCNM(player,player:getZoneID(),trade,npc)) then return; end end; function onTrigger(player,npc) if (EventTriggerBCNM(player,npc)) then return 1; end end; function onEventUpdate(player,csid,option) -- printf("onUpdate CSID: %u",csid); -- printf("onUpdate RESULT: %u",option); if (EventUpdateBCNM(player,csid,option)) then return; end end; ----------------------------------- -- onEventFinish Action ----------------------------------- function onEventFinish(player,csid,option) -- printf("onFinish CSID: %u",csid); -- printf("onFinish RESULT: %u",option); if (EventFinishBCNM(player,csid,option)) then return; end end;
gpl-3.0
eraffxi/darkstar
scripts/zones/Qulun_Dome/npcs/_440.lua
2
1139
----------------------------------- -- Area: Qulun Dome -- NPC: Door -- Involved in Mission: Magicite -- !pos 60 24 -2 148 ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Qulun_Dome/TextIDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:hasKeyItem(dsp.ki.SILVER_BELL) and player:hasKeyItem(dsp.ki.CORUSCANT_ROSARY) and player:hasKeyItem(dsp.ki.BLACK_MATINEE_NECKLACE)) then if (player:getZPos() < -7.2) then player:startEvent(51); else player:startEvent(50); end else player:messageSpecial(IT_SEEMS_TO_BE_LOCKED_BY_POWERFUL_MAGIC); end return 1; end; function onEventUpdate(player,csid,option) end; function onEventFinish(player,csid,option) if ((csid == 50 or csid == 51) and option == 1) then player:messageSpecial(THE_3_ITEMS_GLOW_FAINTLY,dsp.ki.SILVER_BELL,dsp.ki.CORUSCANT_ROSARY,dsp.ki.BLACK_MATINEE_NECKLACE); end end;
gpl-3.0
tsoliman/scummvm
devtools/create_ultima/files/ultima6/scripts/common/common.lua
18
9350
--note nuvie direction values aren't the same as the original it uses the following scheme --701 --6 2 --543 DIR_NORTH = 0 DIR_EAST = 1 DIR_SOUTH = 2 DIR_WEST = 3 DIR_NORTHEAST = 4 DIR_SOUTHEAST = 5 DIR_SOUTHWEST = 6 DIR_NORTHWEST = 7 DIR_NONE = 8 UI_STYLE_ORIG = 0 UI_STYLE_NEW = 1 UI_STYLE_ORIG_PLUS_CUTOFF_MAP = 2 UI_STYLE_ORIG_PLUS_FULL_MAP = 3 STACK_OBJECT_QTY = true movement_offset_x_tbl = {0, 1, 1, 1, 0, -1, -1, -1} movement_offset_y_tbl = {-1, -1, 0, 1, 1, 1, 0, -1 } if not setfenv then -- Lua 5.2 -- based on http://lua-users.org/lists/lua-l/2010-06/msg00314.html -- this assumes f is a function local function findenv(f) local level = 1 repeat local name, value = debug.getupvalue(f, level) if name == '_ENV' then return level, value end level = level + 1 until name == nil return nil end getfenv = function (f) return(select(2, findenv(f)) or _G) end setfenv = function (f, t) local level = findenv(f) if level then debug.setupvalue(f, level, t) end return f end end function get_target() local loc = coroutine.yield("target") return loc end function get_direction(prompt) if prompt ~= nil then print(prompt) end local dir = coroutine.yield("dir") return dir end function really_get_direction(prompt) if prompt ~= nil then print(prompt) end local dir = coroutine.yield("need_dir") return dir end function direction_string(dir) if dir ~= nil then if dir == DIR_NORTH then return "north" end if dir == DIR_NORTHEAST then return "northeast" end if dir == DIR_EAST then return "east" end if dir == DIR_SOUTHEAST then return "southeast" end if dir == DIR_SOUTH then return "south" end if dir == DIR_SOUTHWEST then return "southwest" end if dir == DIR_WEST then return "west" end if dir == DIR_NORTHWEST then return "northwest" end end return "unknown" end local dir_rev_tbl = { [DIR_NORTH] = DIR_SOUTH, [DIR_NORTHEAST] = DIR_SOUTHWEST, [DIR_EAST] = DIR_WEST, [DIR_SOUTHEAST] = DIR_NORTHWEST, [DIR_SOUTH] = DIR_NORTH, [DIR_SOUTHWEST] = DIR_NORTHEAST, [DIR_WEST] = DIR_EAST, [DIR_NORTHWEST] = DIR_SOUTHEAST } function direction_reverse(dir) return dir_rev_tbl[dir] end local g_dir_offset_tbl = { [DIR_NORTH] = {["x"]=0, ["y"]=-1}, [DIR_NORTHEAST] = {["x"]=1, ["y"]=-1}, [DIR_EAST] = {["x"]=1, ["y"]=0}, [DIR_SOUTHEAST] = {["x"]=1, ["y"]=1}, [DIR_SOUTH] = {["x"]=0, ["y"]=1}, [DIR_SOUTHWEST] = {["x"]=-1, ["y"]=1}, [DIR_WEST] = {["x"]=-1, ["y"]=0}, [DIR_NORTHWEST] = {["x"]=-1, ["y"]=-1}, [DIR_NONE] = {["x"]=0, ["y"]=0} } function direction_get_loc(dir, from_x, from_y) return g_dir_offset_tbl[dir].x + from_x, g_dir_offset_tbl[dir].y + from_y end function abs(val) if val < 0 then return -val end return val end --collect Yes/No input from user and return true if Yes selected. false otherwise. function input_should_proceed() local input = input_select("yn", true) print("\n") if input == nil or input == "N" or input == "n" then return false end return true end function play_midgame_sequence(seq_num) local ui_style = game_get_ui_style() canvas_show() canvas_hide_all_sprites() canvas_set_opacity(0xff); canvas_set_update_interval(25) canvas_rotate_game_palette(true) local bg = sprite_new(nil, 8, 16, true) local avatar = sprite_new(nil, 8, 16, false) local text_sprite --local text_sprite_bg if ui_style == UI_STYLE_ORIG then canvas_set_solid_bg(false) else --[[ text_sprite_bg = sprite_new(nil, 8, 160, true) text_sprite_bg.text_align = 2 text_sprite_bg.text_color = 14 --]] text_sprite = sprite_new(nil, 8, 160, true) text_sprite.text_align = 2 text_sprite.text_color = 15 bg.x = 80 bg.y = 12 avatar.x = 80 avatar.y = 12 end local midgame_data = midgame_load("midgame"..string.format("%x", seq_num)..".lzc") local i = 0 local data = midgame_data[i] while data ~= nil do bg.image = data.images[0] if data.images[1] ~= nil then local gender = player_get_gender() avatar.image = data.images[1+gender] avatar.visible = true else avatar.visible = false end local j = 0 local text = data.text[j] while text ~= nil do if text ~= "*END*" then if ui_style == UI_STYLE_ORIG then clear_scroll() print(text) else text_sprite.text = text --text_sprite_bg.text = text end local input = nil while input == nil do canvas_update() input = input_poll() if input ~= nil then break end end end j = j + 1 text = data.text[j] end i = i + 1 data = midgame_data[i] end if ui_style == UI_STYLE_ORIG then clear_scroll() end canvas_set_solid_bg(true) canvas_rotate_game_palette(false) canvas_hide() end function get_wrapped_dist(pt1, pt2) local diff if pt2 >= pt1 then diff = pt2 - pt1 else diff = pt1 - pt2 end if diff > 512 then diff = 1024 - diff end return diff end function get_anim_index_for_tile(tile_number) local total_anims = anim_get_number_of_entries() for i=0,total_anims-1 do if anim_get_tile(i) == tile_number then return i end end return nil end function altcode_242_set_actor_talk_flag() print("NPC: ") local input = input_select(nil, true) local actor_num = tonumber(input, 16) local actor = Actor.get(actor_num) print("\n"..actor.name.."\n") print("flags: \n") --FIXME print talk flags print("\nBit: ") local bit = input_select_integer(nil, true) local value = Actor.get_talk_flag(actor, bit) local value_str = "off" if value == true then value_str = "on" end print(" is "..value_str..".\n") print("New value? ") value = input_select_integer(nil, true) value_str = "off" if value == 1 or value == "o" then value_str = "on" Actor.set_talk_flag(actor, bit) else Actor.clear_talk_flag(actor, bit) end print("\n"..value_str.."\n") end function altcode_250_create_object() print("Create Item:\nType:0x") local input = input_select(nil, true) local obj_n = tonumber(input, 16) local obj = Obj.new(obj_n) local tmp_obj = Obj.new(obj_n+1) if tmp_obj ~= nil and tmp_obj.tile_num - obj.tile_num > 1 then print("\nFrame:0x") input = input_select(nil, true) obj.frame_n = tonumber(input, 16) end print("\nQual:0x") input = input_select(nil, true) obj.quality = tonumber(input, 16) if obj.stackable or create_object_needs_quan(obj_n) then print("\nQuan:0x") input = input_select(nil, true) obj.qty = tonumber(input, 16) end Obj.moveToInv(obj, Actor.get(1).actor_num) print("\n") end function altcode_913_export_tmx_map_files() print("\nExport maps to savedir? ") if not input_should_proceed() then return end print("saving.\n") script_wait(1) if map_export_tmx_files() == true then print("done.\n\n") else print("error!!\n\n") end end function altcode_914_export_tileset() print("Exporting tileset to \"data/images/tiles/"..config_get_game_type().."/custom_tiles.bmp\" in the savegame directory.\n") if not tileset_export() then print("file already exists. Overwrite? ") if not input_should_proceed() then return end tileset_export(true) end print("done.\n\n") end function altcode_999_find_objs_on_map() print("Find Object\nObj_n: ") local input = input_select(nil, true) local obj_n = tonumber(input, 10) if obj_n == nil then print("Nothing.\n") return end print("\nFrame: ") input = input_select(nil, true) local frame_n = tonumber(input, 10) print("\nQuality: ") input = input_select(nil, true) local quality = tonumber(input, 10) print("\nz: ") input = input_select(nil, true) local z = tonumber(input, 10) if z == nil then z = 0 end print("\n") for obj in find_obj(z, obj_n, frame_n, quality) do print(string.format("OBJ: (%x,%x,%x)\n", obj.x, obj.y, obj.z)) party_move(obj.x, obj.y, obj.z) print("continue? ") input = input_select("yn", false) print("\n") if input == "N" or input == "n" then return end end end local altcode_tbl = { [242]=altcode_242_set_actor_talk_flag, [250]=altcode_250_create_object, [913]=altcode_913_export_tmx_map_files, [914]=altcode_914_export_tileset, [999]=altcode_999_find_objs_on_map, } function handle_alt_code(altcode) local func = altcode_tbl[altcode] if func ~= nil then func() end end function get_actor_or_obj_from_loc(location) local target = map_get_actor(location) if target == nil then target = map_get_obj(location) end return target end --load other common functions local lua_file = nil lua_file = nuvie_load("common/lang.lua"); lua_file(); lang_init("game") lua_file = nuvie_load("common/actor.lua"); lua_file();
gpl-2.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/wearables/robe/robe_tusken_raider_s02.lua
3
4231
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_wearables_robe_robe_tusken_raider_s02 = object_tangible_wearables_robe_shared_robe_tusken_raider_s02:new { playerRaces = { "object/creature/player/bothan_male.iff", "object/creature/player/bothan_female.iff", "object/creature/player/human_male.iff", "object/creature/player/human_female.iff", "object/creature/player/moncal_male.iff", "object/creature/player/moncal_female.iff", "object/creature/player/rodian_male.iff", "object/creature/player/rodian_female.iff", "object/creature/player/sullustan_male.iff", "object/creature/player/sullustan_female.iff", "object/creature/player/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" }, } ObjectTemplates:addTemplate(object_tangible_wearables_robe_robe_tusken_raider_s02, "object/tangible/wearables/robe/robe_tusken_raider_s02.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/fishing/fish/ray.lua
3
2210
--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_fishing_fish_ray = object_tangible_fishing_fish_shared_ray:new { gameObjectType = 8234 } ObjectTemplates:addTemplate(object_tangible_fishing_fish_ray, "object/tangible/fishing/fish/ray.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/furniture/city/statue_sentinel_01.lua
3
2309
--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_city_statue_sentinel_01 = object_tangible_furniture_city_shared_statue_sentinel_01:new { objectMenuComponent = "CityDecorationMenuComponent", } ObjectTemplates:addTemplate(object_tangible_furniture_city_statue_sentinel_01, "object/tangible/furniture/city/statue_sentinel_01.iff")
lgpl-3.0
kidaa/Awakening-Core3
bin/scripts/object/tangible/food/crafted/dessert_felbar.lua
3
3258
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. --This program is distributed in the hope that it will be useful, --but WITHOUT ANY WARRANTY; without even the implied warranty of --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --See the GNU Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version object_tangible_food_crafted_dessert_felbar = object_tangible_food_crafted_shared_dessert_felbar:new { templateType = CONSUMABLE, duration = 45, filling = 10, nutrition = 1000, effectType = 1, fillingMin = 23, fillingMax = 15, flavorMin = 1800, flavorMax = 3600, nutritionMin = 675, nutritionMax = 1250, quantityMin = 3, quantityMax = 7, -- 4 on http://swgemu.wikia.com/wiki/Category:Chef speciesRestriction = "pets", modifiers = { "mind", 0 }, buffName = "", buffCRC = 0, numberExperimentalProperties = {1, 1, 1, 2, 2, 2, 2}, experimentalProperties = {"XX", "XX", "XX", "OQ", "PE", "FL", "OQ", "DR", "PE", "DR", "OQ"}, experimentalWeights = {1, 1, 1, 1, 2, 2, 1, 1, 3, 3, 1}, experimentalGroupTitles = {"null", "null", "null", "exp_nutrition", "exp_flavor", "exp_quantity", "exp_filling"}, experimentalSubGroupTitles = {"null", "null", "hitpoints", "nutrition", "flavor", "quantity", "filling"}, experimentalMin = {0, 0, 1000, 75, 60, 60, 80}, experimentalMax = {0, 0, 1000, 120, 120, 100, 120}, experimentalPrecision = {0, 0, 0, 10, 10, 10, 10}, experimentalCombineType = {0, 0, 4, 1, 1, 1, 1}, } ObjectTemplates:addTemplate(object_tangible_food_crafted_dessert_felbar, "object/tangible/food/crafted/dessert_felbar.iff")
lgpl-3.0