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 |
|---|---|---|---|---|---|
DailyShana/ygopro-scripts | c4179255.lua | 3 | 2539 | --妖精竜 エンシェント
function c4179255.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--draw
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetDescription(aux.Stringid(4179255,0))
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_CHAIN_SOLVED)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,4179255)
e1:SetCondition(c4179255.drcon)
e1:SetTarget(c4179255.drtg)
e1:SetOperation(c4179255.drop)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetDescription(aux.Stringid(4179255,1))
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c4179255.descon)
e2:SetTarget(c4179255.destg)
e2:SetOperation(c4179255.desop)
c:RegisterEffect(e2)
end
function c4179255.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and re and re:IsActiveType(TYPE_FIELD) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c4179255.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and e:GetHandler():IsFaceup() end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c4179255.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
function c4179255.check()
local tc=Duel.GetFieldCard(0,LOCATION_SZONE,5)
if tc and tc:IsFaceup() then return true end
tc=Duel.GetFieldCard(1,LOCATION_SZONE,5)
return tc and tc:IsFaceup()
end
function c4179255.descon(e,tp,eg,ep,ev,re,r,rp)
return c4179255.check()
end
function c4179255.desfilter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsDestructable()
end
function c4179255.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c4179255.desfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c4179255.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c4179255.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c4179255.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsPosition(POS_FACEUP_ATTACK) and c4179255.check() then
Duel.Destroy(tc,REASON_EFFECT)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/weather_object/weather_object_base.lua | 3 | 2260 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_weather_object_weather_object_base = object_tangible_weather_object_shared_weather_object_base:new {
}
ObjectTemplates:addTemplate(object_tangible_weather_object_weather_object_base, "object/tangible/weather_object/weather_object_base.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/crafted/chassis/chassis_z95_wing_l.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_crafted_chassis_chassis_z95_wing_l = object_tangible_ship_crafted_chassis_shared_chassis_z95_wing_l:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_crafted_chassis_chassis_z95_wing_l, "object/tangible/ship/crafted/chassis/chassis_z95_wing_l.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | projects/YappyBirds_macOS_Xcode/build/Debug/NJLIGameEngine.app/Contents/Resources/assets/scripts/YAPPYBIRDS/SCENES/MENU/STATES/About.lua | 4 | 4780 | local BaseClass = require "NJLI.STATEMACHINE.SceneEntityState"
local About = {}
About.__index = About
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--#############################################################################
--Begin Custom Code
--Required local functions:
-- __ctor()
-- __dtor()
-- __load()
-- __unLoad()
--#############################################################################
local __ctor = function(self, init)
--TODO: construct this Entity
end
local __dtor = function(self)
--TODO: destruct this Entity
end
local __load = function(self)
--TODO: load this Entity
end
local __unLoad = function(self)
--TODO: unload this Entity
end
--#############################################################################
function About:enter()
BaseClass.enter(self)
end
function About:update(timeStep)
BaseClass.update(self, timeStep)
end
function About:exit()
BaseClass.exit(self)
end
function About:onMessage(message)
BaseClass.onMessage(self, message)
end
function About:renderHUD()
BaseClass.renderHUD(self)
end
function About:touchesDown(touches)
BaseClass.touchesDown(self, touches)
end
function About:touchesUp(touches)
BaseClass.touchesUp(self, touches)
end
function About:touchesMove(touches)
BaseClass.touchesMove(self, touches)
end
function About:touchesCancelled(touches)
BaseClass.touchesCancelled(self, touches)
end
function About:touchDown(touches)
BaseClass.touchDown(self, touches)
end
function About:touchUp(touches)
BaseClass.touchUp(self, touches)
end
function About:touchMove(touches)
BaseClass.touchMove(self, touches)
end
function About:touchCancelled(touches)
BaseClass.touchCancelled(self, touches)
end
function About:mouseDown(mouse)
BaseClass.mouseDown(self, mouse)
end
function About:mouseUp(mouse)
BaseClass.mouseUp(self, mouse)
end
function About:mouseMove(mouse)
BaseClass.mouseMove(self, mouse)
end
function About:pause()
BaseClass.pause(self)
end
function About:unPause()
BaseClass.unPause(self)
end
function About:keyboardShow()
BaseClass.keyboardShow(self)
end
function About:keyboardCancel()
BaseClass.keyboardCancel(self)
end
function About:keyboardReturn(text)
BaseClass.keyboardReturn(self, text)
end
function About:willResignActive()
BaseClass.willResignActive(self)
end
function About:didBecomeActive()
BaseClass.didBecomeActive(self)
end
function About:didEnterBackground()
BaseClass.didEnterBackground(self)
end
function About:willEnterForeground()
BaseClass.willEnterForeground(self)
end
function About:willTerminate()
BaseClass.willTerminate(self)
end
function About:interrupt()
BaseClass.interrupt(self)
end
function About:resumeInterrupt()
BaseClass.resumeInterrupt(self)
end
function About:receivedMemoryWarning()
BaseClass.receivedMemoryWarning(self)
end
--#############################################################################
--End Custom Code
--#############################################################################
--#############################################################################
--DO NOT EDIT BELOW
--#############################################################################
setmetatable(About, {
__index = BaseClass,
__call = function (cls, ...)
local self = setmetatable({}, cls)
--Create the base first
BaseClass._create(self, ...)
self:_create(...)
return self
end,
})
function About:className()
return "About"
end
function About:class()
return self
end
function About:superClass()
return BaseClass
end
function About:__gc()
--Destroy derived class first
About._destroy(self)
--Destroy base class after derived class
BaseClass._destroy(self)
end
function About:__tostring()
local ret = self:className() .. " =\n{\n"
for pos,val in pairs(self) do
ret = ret .. "\t" .. "["..pos.."]" .. " => " .. type(val) .. " = " .. tostring(val) .. "\n"
end
ret = ret .. "\n\t" .. tostring_r(BaseClass) .. "\n}"
return ret .. "\n\t" .. tostring_r(getmetatable(self)) .. "\n}"
end
function About:_destroy()
assert(not self.__AboutCalledLoad, "Must unload before you destroy")
__dtor(self)
end
function About:_create(init)
self.__AboutCalledLoad = false
__ctor(self, init)
end
function About:load()
--load base first
BaseClass.load(self)
--load derived last...
__load(self)
self.__AboutCalledLoad = true
end
function About:unLoad()
assert(self.__AboutCalledLoad, "Must load before unAbout")
--unload derived first...
__unLoad(self)
self.__AboutCalledLoad = false
--unload base last...
BaseClass.unLoad(self)
end
return About
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/tool/calibrator_broken.lua | 3 | 2232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_loot_tool_calibrator_broken = object_tangible_loot_tool_shared_calibrator_broken:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_tool_calibrator_broken, "object/tangible/loot/tool/calibrator_broken.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/creature/npc/base/objects.lua | 3 | 142929 | --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_creature_npc_base_shared_aqualish_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_aqualish_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/aqualish_f_01.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:aqualish_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:aqualish_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.85, 0.9},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2762844902,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_aqualish_base_female, "object/creature/npc/base/shared_aqualish_base_female.iff")
object_creature_npc_base_shared_aqualish_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_aqualish_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/aqualish_m_01.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:aqualish_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:aqualish_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.89, 0.95},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 9,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 643792170,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_aqualish_base_male, "object/creature/npc/base/shared_aqualish_base_male.iff")
object_creature_npc_base_shared_aqualish_s02_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_aqualish_s02_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/aqualish_f_02.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:aqualish_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:aqualish_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.85, 0.9},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1130200645,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_aqualish_s02_base_female, "object/creature/npc/base/shared_aqualish_s02_base_female.iff")
object_creature_npc_base_shared_aqualish_s02_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_aqualish_s02_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/aqualish_m_02.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:aqualish_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:aqualish_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.89, 0.95},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 9,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1420546336,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_aqualish_s02_base_male, "object/creature/npc/base/shared_aqualish_s02_base_male.iff")
object_creature_npc_base_shared_aqualish_s03_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_aqualish_s03_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/aqualish_f_03.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:aqualish_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:aqualish_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.85, 0.9},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1418612504,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_aqualish_s03_base_female, "object/creature/npc/base/shared_aqualish_s03_base_female.iff")
object_creature_npc_base_shared_aqualish_s03_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_aqualish_s03_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/aqualish_m_03.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:aqualish_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:aqualish_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.89, 0.95},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 9,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2309238866,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_aqualish_s03_base_male, "object/creature/npc/base/shared_aqualish_s03_base_male.iff")
object_creature_npc_base_shared_base_droid = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_base_droid.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {4,2},
animationMapFilename = "all_male.map",
appearanceFilename = "",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1026,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1026,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@droid_lookat:base_droid",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 3,
noBuildRadius = 0,
objectName = "@droid_name:base_droid",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3496555527,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_base_droid, "object/creature/npc/base/shared_base_droid.iff")
object_creature_npc_base_shared_base_npc = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_base_npc.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:base_npc",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:base_npc",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 636692298,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_base_npc, "object/creature/npc/base/shared_base_npc.iff")
object_creature_npc_base_shared_base_npc_theme_park = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_base_npc_theme_park.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@theme_park_lookat:base_npc_theme_park",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@theme_park_name:base_npc_theme_park",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 654644587,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_base_npc_theme_park, "object/creature/npc/base/shared_base_npc_theme_park.iff")
object_creature_npc_base_shared_bith_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_bith_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/bith_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:bith_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:bith_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.75, 0.875},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 12,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2412520178,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_bith_base_female, "object/creature/npc/base/shared_bith_base_female.iff")
object_creature_npc_base_shared_bith_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_bith_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/bith_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:bith_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:bith_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.75, 0.875},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1042888288,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_bith_base_male, "object/creature/npc/base/shared_bith_base_male.iff")
object_creature_npc_base_shared_bothan_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_bothan_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/bth_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:bothan_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:bothan_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.76, 0.88},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 5,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3759013611,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_bothan_base_female, "object/creature/npc/base/shared_bothan_base_female.iff")
object_creature_npc_base_shared_bothan_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_bothan_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/bth_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:bothan_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:bothan_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.76, 0.88},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 5,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1590149475,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_bothan_base_male, "object/creature/npc/base/shared_bothan_base_male.iff")
object_creature_npc_base_shared_chadra_fan_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_chadra_fan_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/chadra_fan_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:chadra_fan_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:chadra_fan_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.49, 0.51},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 14,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 896393245,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_chadra_fan_base_female, "object/creature/npc/base/shared_chadra_fan_base_female.iff")
object_creature_npc_base_shared_chadra_fan_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_chadra_fan_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/chadra_fan_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:chadra_fan_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:chadra_fan_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.5, 0.55},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 14,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 313334022,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_chadra_fan_base_male, "object/creature/npc/base/shared_chadra_fan_base_male.iff")
object_creature_npc_base_shared_dantari_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_dantari_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/dantari_fm.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:dantari_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:dantari_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.85, 1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 16,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3185808736,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_dantari_base_male, "object/creature/npc/base/shared_dantari_base_male.iff")
object_creature_npc_base_shared_devaronian_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_devaronian_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/devaronian_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:devaronian_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:devaronian_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.8, 0.95},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 4086632991,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_devaronian_base_male, "object/creature/npc/base/shared_devaronian_base_male.iff")
object_creature_npc_base_shared_drall_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_drall_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/drall_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:drall_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:drall_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 0.5,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 18,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1636192846,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_drall_base_female, "object/creature/npc/base/shared_drall_base_female.iff")
object_creature_npc_base_shared_drall_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_drall_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/drall_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:drall_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:drall_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 0.5,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 18,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 999880424,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_drall_base_male, "object/creature/npc/base/shared_drall_base_male.iff")
object_creature_npc_base_shared_dulok_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_dulok_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/dulok_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:dulok_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:dulok_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 2,
rangedIntCustomizationVariables = {},
scale = {0.72, 0.74},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 22,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2138236706,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_dulok_base_female, "object/creature/npc/base/shared_dulok_base_female.iff")
object_creature_npc_base_shared_dulok_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_dulok_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/dulok_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:dulok_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:dulok_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 2,
rangedIntCustomizationVariables = {},
scale = {0.74, 0.78},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 22,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 748671429,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_dulok_base_male, "object/creature/npc/base/shared_dulok_base_male.iff")
object_creature_npc_base_shared_ewok_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_ewok_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "ewok.map",
appearanceFilename = "appearance/ewok_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:ewok_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:ewok_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.72, 0.74},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 22,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1504641037,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_ewok_base_female, "object/creature/npc/base/shared_ewok_base_female.iff")
object_creature_npc_base_shared_ewok_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_ewok_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "ewok.map",
appearanceFilename = "appearance/ewok_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:ewok_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:ewok_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 1,
rangedIntCustomizationVariables = {},
scale = {0.72, 0.74},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 22,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2588984693,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_ewok_base_male, "object/creature/npc/base/shared_ewok_base_male.iff")
object_creature_npc_base_shared_gamorrean_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_gamorrean_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/gamorrean_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:gamorrean_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:gamorrean_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 0.85,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 25,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3906894721,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_gamorrean_base_male, "object/creature/npc/base/shared_gamorrean_base_male.iff")
object_creature_npc_base_shared_geonosian_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_geonosian_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/geonosian_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:geonosian_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:geonosian_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 228,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 595885541,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_geonosian_base_male, "object/creature/npc/base/shared_geonosian_base_male.iff")
object_creature_npc_base_shared_gorax_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_gorax_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/gorax_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:gorax_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:gorax_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 10,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 26,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2975619975,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_gorax_base_male, "object/creature/npc/base/shared_gorax_base_male.iff")
object_creature_npc_base_shared_gran_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_gran_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/gran_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:gran_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:gran_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.55, 0.9},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3900679321,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_gran_base_male, "object/creature/npc/base/shared_gran_base_male.iff")
object_creature_npc_base_shared_gungan_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_gungan_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/gungan_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:gungan_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:gungan_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 2,
rangedIntCustomizationVariables = {},
scale = {0.85, 1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 29,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2826781885,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_gungan_base_male, "object/creature/npc/base/shared_gungan_base_male.iff")
object_creature_npc_base_shared_human_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_human_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/hum_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:human_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:human_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1, 1.12},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 53721594,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_human_base_female, "object/creature/npc/base/shared_human_base_female.iff")
object_creature_npc_base_shared_human_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_human_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/hum_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:human_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:human_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1, 1.12},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2134943660,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_human_base_male, "object/creature/npc/base/shared_human_base_male.iff")
object_creature_npc_base_shared_hutt_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_hutt_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/hutt_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:hutt_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:hutt_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 31,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 36831134,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_hutt_base_female, "object/creature/npc/base/shared_hutt_base_female.iff")
object_creature_npc_base_shared_hutt_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_hutt_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/hutt_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:hutt_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:hutt_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 31,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3532419442,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_hutt_base_male, "object/creature/npc/base/shared_hutt_base_male.iff")
object_creature_npc_base_shared_ishi_tib_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_ishi_tib_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/ishi_tib_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:ishi_tib_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:ishi_tib_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.85, 0.95},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3055229554,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_ishi_tib_base_male, "object/creature/npc/base/shared_ishi_tib_base_male.iff")
object_creature_npc_base_shared_ithorian_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_ithorian_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/ithorian_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:ithorian_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:ithorian_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.9, 1.65},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 33,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1397449143,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_ithorian_base_male, "object/creature/npc/base/shared_ithorian_base_male.iff")
object_creature_npc_base_shared_jawa_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_jawa_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/jawa_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:jawa_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:jawa_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.95, 1.05},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 34,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3349422050,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_jawa_base_male, "object/creature/npc/base/shared_jawa_base_male.iff")
object_creature_npc_base_shared_jinda_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_jinda_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/jinda_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:jinda_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:jinda_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 3,
rangedIntCustomizationVariables = {},
scale = {0.72, 0.74},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 22,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 4291004780,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_jinda_base_female, "object/creature/npc/base/shared_jinda_base_female.iff")
object_creature_npc_base_shared_jinda_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_jinda_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/jinda_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:jinda_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:jinda_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 3,
rangedIntCustomizationVariables = {},
scale = {0.72, 0.74},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 22,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 242045215,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_jinda_base_male, "object/creature/npc/base/shared_jinda_base_male.iff")
object_creature_npc_base_shared_klatooinian_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_klatooinian_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/klatoonian_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:klatooinian_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:klatooinian_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 0.915,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 37,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3370318767,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_klatooinian_base_male, "object/creature/npc/base/shared_klatooinian_base_male.iff")
object_creature_npc_base_shared_marauder_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_marauder_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/marauder_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:marauder_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:marauder_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 40,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2355090288,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_marauder_base_female, "object/creature/npc/base/shared_marauder_base_female.iff")
object_creature_npc_base_shared_marauder_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_marauder_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/marauder_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:marauder_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:marauder_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 40,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1688940240,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_marauder_base_male, "object/creature/npc/base/shared_marauder_base_male.iff")
object_creature_npc_base_shared_moncal_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_moncal_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/mon_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:moncal_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:moncal_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.88, 1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 3,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1371353669,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_moncal_base_female, "object/creature/npc/base/shared_moncal_base_female.iff")
object_creature_npc_base_shared_moncal_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_moncal_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/mon_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:moncal_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:moncal_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.88, 1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 3,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1617753563,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_moncal_base_male, "object/creature/npc/base/shared_moncal_base_male.iff")
object_creature_npc_base_shared_nikto_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_nikto_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/nikto_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:nikto_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:nikto_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.8, 0.95},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2839443196,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_nikto_base_male, "object/creature/npc/base/shared_nikto_base_male.iff")
object_creature_npc_base_shared_quarren_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_quarren_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/quarren_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:quarren_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:quarren_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.65, 0.9},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2606234616,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_quarren_base_male, "object/creature/npc/base/shared_quarren_base_male.iff")
object_creature_npc_base_shared_rodian_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_rodian_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/rod_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:rodian_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:rodian_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.88, 1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 1,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2803462038,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_rodian_base_female, "object/creature/npc/base/shared_rodian_base_female.iff")
object_creature_npc_base_shared_rodian_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_rodian_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/rod_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:rodian_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:rodian_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.88, 1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 1,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 873111919,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_rodian_base_male, "object/creature/npc/base/shared_rodian_base_male.iff")
object_creature_npc_base_shared_selonian_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_selonian_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/selonian_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:selonian_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:selonian_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.9, 1.1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 47,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 4114788784,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_selonian_base_female, "object/creature/npc/base/shared_selonian_base_female.iff")
object_creature_npc_base_shared_selonian_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_selonian_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/selonian_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:selonian_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:selonian_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.9, 1.1},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 47,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 1841868410,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_selonian_base_male, "object/creature/npc/base/shared_selonian_base_male.iff")
object_creature_npc_base_shared_sullustan_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_sullustan_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/sullustan_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 2,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:sullustan_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:sullustan_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.5, 0.9},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 381383099,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_sullustan_base_male, "object/creature/npc/base/shared_sullustan_base_male.iff")
object_creature_npc_base_shared_trandoshan_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_trandoshan_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/trn_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:trandoshan_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:trandoshan_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1.12, 1.24},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 2,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2585187332,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_trandoshan_base_female, "object/creature/npc/base/shared_trandoshan_base_female.iff")
object_creature_npc_base_shared_trandoshan_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_trandoshan_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/trn_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:trandoshan_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:trandoshan_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1.12, 1.24},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 2,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 193024850,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_trandoshan_base_male, "object/creature/npc/base/shared_trandoshan_base_male.iff")
object_creature_npc_base_shared_tusken_raider_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_tusken_raider_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/tusken_raider_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:tusken_raider_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 6,
noBuildRadius = 0,
objectName = "@npc_name:tusken_raider_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 54,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 344809642,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_tusken_raider_base_male, "object/creature/npc/base/shared_tusken_raider_base_male.iff")
object_creature_npc_base_shared_twilek_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_twilek_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/twk_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:twilek_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:twilek_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1, 1.12},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 6,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 4167458949,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_twilek_base_female, "object/creature/npc/base/shared_twilek_base_female.iff")
object_creature_npc_base_shared_twilek_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_twilek_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/twk_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:twilek_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:twilek_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1, 1.12},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 6,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3121839578,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_twilek_base_male, "object/creature/npc/base/shared_twilek_base_male.iff")
object_creature_npc_base_shared_weequay_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_weequay_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/weequay_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:weequay_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:weequay_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.75, 0.85},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 0,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3478426739,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_weequay_base_male, "object/creature/npc/base/shared_weequay_base_male.iff")
object_creature_npc_base_shared_whiphid_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_whiphid_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/whiphid_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:whiphid_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:whiphid_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.5, 1.3},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 56,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 858760919,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_whiphid_base_female, "object/creature/npc/base/shared_whiphid_base_female.iff")
object_creature_npc_base_shared_whiphid_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_whiphid_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/whiphid_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:whiphid_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:whiphid_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.5, 1.3},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 56,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 929953104,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_whiphid_base_male, "object/creature/npc/base/shared_whiphid_base_male.iff")
object_creature_npc_base_shared_wookiee_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_wookiee_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/wke_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:wookiee_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:wookiee_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1.24, 1.36},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 4,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 3361749167,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_wookiee_base_female, "object/creature/npc/base/shared_wookiee_base_female.iff")
object_creature_npc_base_shared_wookiee_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_wookiee_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/wke_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:wookiee_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:wookiee_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {1.24, 1.36},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 4,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 627149744,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_wookiee_base_male, "object/creature/npc/base/shared_wookiee_base_male.iff")
object_creature_npc_base_shared_zabrak_base_female = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_zabrak_base_female.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/zab_f.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 1,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:zabrak_base_female",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:zabrak_base_female",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.94, 1.06},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 7,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2580396153,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_zabrak_base_female, "object/creature/npc/base/shared_zabrak_base_female.iff")
object_creature_npc_base_shared_zabrak_base_male = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/creature/npc/base/shared_zabrak_base_male.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
acceleration = {6,2},
animationMapFilename = "all_male.map",
appearanceFilename = "appearance/zab_m.sat",
arrangementDescriptorFilename = "",
cameraHeight = 0,
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 1025,
collisionActionBlockFlags = 0,
collisionActionFlags = 255,
collisionActionPassFlags = 0,
collisionHeight = 1.8,
collisionLength = 1.5,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
collisionOffsetX = 0,
collisionOffsetZ = 0,
collisionRadius = 0.5,
containerType = 1,
containerVolumeLimit = 0,
customizationVariableMapping = {},
detailedDescription = "",
gameObjectType = 1025,
gender = 0,
locationReservationRadius = 0,
lookAtText = "@npc_lookat:zabrak_base_male",
movementDatatable = "datatables/movement/movement_human.iff",
niche = 5,
noBuildRadius = 0,
objectName = "@npc_name:zabrak_base_male",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
postureAlignToTerrain = {0,0,1,0,0,1,0,1,0,0,0,0,1,1,1},
race = 0,
rangedIntCustomizationVariables = {},
scale = {0.94, 1.06},
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slopeModAngle = 15,
slopeModPercent = 0.1,
slotDescriptorFilename = "abstract/slot/descriptor/player.iff",
snapToTerrain = 1,
socketDestinations = {},
species = 7,
speed = {6,2},
stepHeight = 0.5,
structureFootprintFileName = "",
surfaceType = 0,
swimHeight = 1,
targetable = 1,
totalCellNumber = 0,
turnRate = {90,180},
useStructureFootprintOutline = 0,
warpTolerance = 17,
waterModPercent = 0.5,
clientObjectCRC = 2904879514,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/creature/base/shared_base_creature.iff", "object/creature/npc/base/shared_base_npc.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_creature_npc_base_shared_zabrak_base_male, "object/creature/npc/base/shared_zabrak_base_male.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c76407432.lua | 3 | 1177 | --バスター・カウンター
function c76407432.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c76407432.condition)
e1:SetTarget(c76407432.target)
e1:SetOperation(c76407432.activate)
c:RegisterEffect(e1)
end
function c76407432.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x104f)
end
function c76407432.condition(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(c76407432.cfilter,tp,LOCATION_MZONE,0,1,nil) then return false end
if not Duel.IsChainNegatable(ev) then return false end
return re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c76407432.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end
function c76407432.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
end
| gpl-2.0 |
mohammad051/bb | plugins/msg-checks.lua | 26 | 13860 | --Begin msg_checks.lua By @SoLiD
local function pre_process(msg)
local data = load_data(_config.moderation.data)
local chat = msg.to.id
local user = msg.from.id
local is_channel = msg.to.type == "channel"
local is_chat = msg.to.type == "chat"
local auto_leave = 'auto_leave_bot'
local hash = "gp_lang:"..chat
local lang = redis:get(hash)
if not redis:get('autodeltime') then
redis:setex('autodeltime', 14400, true)
run_bash("rm -rf ~/.telegram-cli/data/sticker/*")
run_bash("rm -rf ~/.telegram-cli/data/photo/*")
run_bash("rm -rf ~/.telegram-cli/data/animation/*")
run_bash("rm -rf ~/.telegram-cli/data/video/*")
run_bash("rm -rf ~/.telegram-cli/data/audio/*")
run_bash("rm -rf ~/.telegram-cli/data/voice/*")
run_bash("rm -rf ~/.telegram-cli/data/temp/*")
run_bash("rm -rf ~/.telegram-cli/data/thumb/*")
run_bash("rm -rf ~/.telegram-cli/data/document/*")
run_bash("rm -rf ~/.telegram-cli/data/profile_photo/*")
run_bash("rm -rf ~/.telegram-cli/data/encrypted/*")
run_bash("rm -rf ./data/photos/*")
end
if is_channel or is_chat then
local TIME_CHECK = 2
if data[tostring(chat)] then
if data[tostring(chat)]['settings']['time_check'] then
TIME_CHECK = tonumber(data[tostring(chat)]['settings']['time_check'])
end
end
if msg.text then
if msg.text:match("(.*)") then
if not data[tostring(msg.to.id)] and not redis:get(auto_leave) and not is_admin(msg) then
tdcli.sendMessage(msg.to.id, "", 0, "_This Is Not One Of My_ *Groups*", 0, "md")
tdcli.changeChatMemberStatus(chat, our_id, 'Left', dl_cb, nil)
end
end
end
if data[tostring(chat)] and data[tostring(chat)]['mutes'] then
mutes = data[tostring(chat)]['mutes']
else
return
end
if mutes.mute_all then
mute_all = mutes.mute_all
else
mute_all = 'no'
end
if mutes.mute_gif then
mute_gif = mutes.mute_gif
else
mute_gif = 'no'
end
if mutes.mute_photo then
mute_photo = mutes.mute_photo
else
mute_photo = 'no'
end
if mutes.mute_sticker then
mute_sticker = mutes.mute_sticker
else
mute_sticker = 'no'
end
if mutes.mute_contact then
mute_contact = mutes.mute_contact
else
mute_contact = 'no'
end
if mutes.mute_inline then
mute_inline = mutes.mute_inline
else
mute_inline = 'no'
end
if mutes.mute_game then
mute_game = mutes.mute_game
else
mute_game = 'no'
end
if mutes.mute_text then
mute_text = mutes.mute_text
else
mute_text = 'no'
end
if mutes.mute_keyboard then
mute_keyboard = mutes.mute_keyboard
else
mute_keyboard = 'no'
end
if mutes.mute_forward then
mute_forward = mutes.mute_forward
else
mute_forward = 'no'
end
if mutes.mute_location then
mute_location = mutes.mute_location
else
mute_location = 'no'
end
if mutes.mute_document then
mute_document = mutes.mute_document
else
mute_document = 'no'
end
if mutes.mute_voice then
mute_voice = mutes.mute_voice
else
mute_voice = 'no'
end
if mutes.mute_audio then
mute_audio = mutes.mute_audio
else
mute_audio = 'no'
end
if mutes.mute_video then
mute_video = mutes.mute_video
else
mute_video = 'no'
end
if mutes.mute_tgservice then
mute_tgservice = mutes.mute_tgservice
else
mute_tgservice = 'no'
end
if data[tostring(chat)] and data[tostring(chat)]['settings'] then
settings = data[tostring(chat)]['settings']
else
return
end
if settings.lock_link then
lock_link = settings.lock_link
else
lock_link = 'no'
end
if settings.lock_join then
lock_join = settings.lock_join
else
lock_join = 'no'
end
if settings.lock_tag then
lock_tag = settings.lock_tag
else
lock_tag = 'no'
end
if settings.lock_pin then
lock_pin = settings.lock_pin
else
lock_pin = 'no'
end
if settings.lock_arabic then
lock_arabic = settings.lock_arabic
else
lock_arabic = 'no'
end
if settings.lock_mention then
lock_mention = settings.lock_mention
else
lock_mention = 'no'
end
if settings.lock_edit then
lock_edit = settings.lock_edit
else
lock_edit = 'no'
end
if settings.lock_spam then
lock_spam = settings.lock_spam
else
lock_spam = 'no'
end
if settings.flood then
lock_flood = settings.flood
else
lock_flood = 'no'
end
if settings.lock_markdown then
lock_markdown = settings.lock_markdown
else
lock_markdown = 'no'
end
if settings.lock_webpage then
lock_webpage = settings.lock_webpage
else
lock_webpage = 'no'
end
if msg.adduser or msg.joinuser or msg.deluser then
if mute_tgservice == "yes" then
del_msg(chat, tonumber(msg.id))
end
end
if not is_mod(msg) and not is_whitelist(msg.from.id, msg.to.id) and msg.from.id ~= our_id then
if msg.adduser or msg.joinuser then
if lock_join == "yes" then
function join_kick(arg, data)
kick_user(data.id_, msg.to.id)
end
if msg.adduser then
tdcli.getUser(msg.adduser, join_kick, nil)
elseif msg.joinuser then
tdcli.getUser(msg.joinuser, join_kick, nil)
end
end
end
end
if msg.pinned and is_channel then
if lock_pin == "yes" then
if is_owner(msg) then
return
end
if tonumber(msg.from.id) == our_id then
return
end
local pin_msg = data[tostring(chat)]['pin']
if pin_msg then
tdcli.pinChannelMessage(msg.to.id, pin_msg, 1)
elseif not pin_msg then
tdcli.unpinChannelMessage(msg.to.id)
end
if lang then
tdcli.sendMessage(msg.to.id, msg.id, 0, '<b>User ID :</b> <code>'..msg.from.id..'</code>\n<b>Username :</b> '..('@'..msg.from.username or '<i>No Username</i>')..'\n<i>شما اجازه دسترسی به سنجاق پیام را ندارید، به همین دلیل پیام قبلی مجدد سنجاق میگردد</i>', 0, "html")
elseif not lang then
tdcli.sendMessage(msg.to.id, msg.id, 0, '<b>User ID :</b> <code>'..msg.from.id..'</code>\n<b>Username :</b> '..('@'..msg.from.username or '<i>No Username</i>')..'\n<i>You Have Not Permission To Pin Message, Last Message Has Been Pinned Again</i>', 0, "html")
end
end
end
if not is_mod(msg) and not is_whitelist(msg.from.id, msg.to.id) and msg.from.id ~= our_id then
if msg.edited and lock_edit == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.forward_info_ and mute_forward == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.photo_ and mute_photo == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.video_ and mute_video == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.document_ and mute_document == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.sticker_ and mute_sticker == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.animation_ and mute_gif == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.contact_ and mute_contact == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.location_ and mute_location == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.voice_ and mute_voice == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.content_ and mute_keyboard == "yes" then
if msg.reply_markup_ and msg.reply_markup_.ID == "ReplyMarkupInlineKeyboard" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
if tonumber(msg.via_bot_user_id_) ~= 0 and mute_inline == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.game_ and mute_game == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.audio_ and mute_audio == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.media.caption then
local link_caption = msg.media.caption:match("[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm].[Mm][Ee]/") or msg.media.caption:match("[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm].[Dd][Oo][Gg]/") or msg.media.caption:match("[Tt].[Mm][Ee]/") or msg.media.caption:match("[Tt][Ll][Gg][Rr][Mm].[Mm][Ee]/")
if link_caption
and lock_link == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
local tag_caption = msg.media.caption:match("@") or msg.media.caption:match("#")
if tag_caption and lock_tag == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if is_filter(msg, msg.media.caption) then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
local arabic_caption = msg.media.caption:match("[\216-\219][\128-\191]")
if arabic_caption and lock_arabic == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
if msg.text then
local _nl, ctrl_chars = string.gsub(msg.text, '%c', '')
local max_chars = 40
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings']['set_char'] then
max_chars = tonumber(data[tostring(msg.to.id)]['settings']['set_char'])
end
end
local _nl, real_digits = string.gsub(msg.text, '%d', '')
local max_real_digits = tonumber(max_chars) * 50
local max_len = tonumber(max_chars) * 51
if lock_spam == "yes" then
if string.len(msg.text) > max_len or ctrl_chars > max_chars or real_digits > max_real_digits then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
local link_msg = msg.text:match("[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm].[Mm][Ee]/") or msg.text:match("[Tt][Ee][Ll][Ee][Gg][Rr][Aa][Mm].[Dd][Oo][Gg]/") or msg.text:match("[Tt].[Mm][Ee]/") or msg.text:match("[Tt][Ll][Gg][Rr][Mm].[Mm][Ee]/")
if link_msg
and lock_link == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
local tag_msg = msg.text:match("@") or msg.text:match("#")
if tag_msg and lock_tag == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if is_filter(msg, msg.text) then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
local arabic_msg = msg.text:match("[\216-\219][\128-\191]")
if arabic_msg and lock_arabic == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.text:match("(.*)")
and mute_text == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
if mute_all == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
if msg.content_.entities_ and msg.content_.entities_[0] then
if msg.content_.entities_[0].ID == "MessageEntityMentionName" then
if lock_mention == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
if msg.content_.entities_[0].ID == "MessageEntityUrl" or msg.content_.entities_[0].ID == "MessageEntityTextUrl" then
if lock_webpage == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
if msg.content_.entities_[0].ID == "MessageEntityBold" or msg.content_.entities_[0].ID == "MessageEntityCode" or msg.content_.entities_[0].ID == "MessageEntityPre" or msg.content_.entities_[0].ID == "MessageEntityItalic" then
if lock_markdown == "yes" then
if is_channel then
del_msg(chat, tonumber(msg.id))
elseif is_chat then
kick_user(user, chat)
end
end
end
end
if msg.to.type ~= 'pv' then
if lock_flood == "yes" and not is_mod(msg) and not is_whitelist(msg.from.id, msg.to.id) and not msg.adduser and msg.from.id ~= our_id then
local hash = 'user:'..user..':msgs'
local msgs = tonumber(redis:get(hash) or 0)
local NUM_MSG_MAX = 5
if data[tostring(chat)] then
if data[tostring(chat)]['settings']['num_msg_max'] then
NUM_MSG_MAX = tonumber(data[tostring(chat)]['settings']['num_msg_max'])
end
end
if msgs > NUM_MSG_MAX then
if msg.from.username then
user_name = "@"..msg.from.username
else
user_name = msg.from.first_name
end
if redis:get('sender:'..user..':flood') then
return
else
del_msg(chat, msg.id)
kick_user(user, chat)
if not lang then
tdcli.sendMessage(chat, msg.id, 0, "_User_ "..user_name.." `[ "..user.." ]` _has been_ *kicked* _because of_ *flooding*", 0, "md")
elseif lang then
tdcli.sendMessage(chat, msg.id, 0, "_کاربر_ "..user_name.." `[ "..user.." ]` _به دلیل ارسال پیام های مکرر اخراج شد_", 0, "md")
end
redis:setex('sender:'..user..':flood', 30, true)
end
end
redis:setex(hash, TIME_CHECK, msgs+1)
end
end
end
end
end
return {
patterns = {},
pre_process = pre_process
}
--End msg_checks.lua--
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/lair/npc_theater/tatooine_tusken_raider_kingdom_neutral_large_theater.lua | 3 | 1349 | tatooine_tusken_raider_kingdom_neutral_large_theater = Lair:new {
mobiles = {
{"tusken_berserker",3},
{"tusken_blood_champion",3},
{"tusken_chief",3},
{"tusken_elite_guard",3},
{"tusken_gore_chief",2},
{"tusken_king",1},
{"tusken_torture_lord",2},
},
spawnLimit = 15,
buildingsVeryEasy = {"object/building/poi/tatooine_tuskenwar_large1.iff","object/building/poi/tatooine_tuskenwar_large2.iff","object/building/poi/tatooine_tuskenwar_large3.iff"},
buildingsEasy = {"object/building/poi/tatooine_tuskenwar_large1.iff","object/building/poi/tatooine_tuskenwar_large2.iff","object/building/poi/tatooine_tuskenwar_large3.iff"},
buildingsMedium = {"object/building/poi/tatooine_tuskenwar_large1.iff","object/building/poi/tatooine_tuskenwar_large2.iff","object/building/poi/tatooine_tuskenwar_large3.iff"},
buildingsHard = {"object/building/poi/tatooine_tuskenwar_large1.iff","object/building/poi/tatooine_tuskenwar_large2.iff","object/building/poi/tatooine_tuskenwar_large3.iff"},
buildingsVeryHard = {"object/building/poi/tatooine_tuskenwar_large1.iff","object/building/poi/tatooine_tuskenwar_large2.iff","object/building/poi/tatooine_tuskenwar_large3.iff"},
mobType = "npc",
buildingType = "theater"
}
addLairTemplate("tatooine_tusken_raider_kingdom_neutral_large_theater", tatooine_tusken_raider_kingdom_neutral_large_theater)
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_s2_gen1.lua | 1 | 6228 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_weapon_melee_sword_crafted_saber_sword_lightsaber_one_handed_s2_gen1 = object_weapon_melee_sword_crafted_saber_shared_sword_lightsaber_one_handed_s2_gen1:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff" },
-- RANGEDATTACK, MELEEATTACK, FORCEATTACK, TRAPATTACK, GRENADEATTACK, HEAVYACIDBEAMATTACK,
-- HEAVYLIGHTNINGBEAMATTACK, HEAVYPARTICLEBEAMATTACK, HEAVYROCKETLAUNCHERATTACK, HEAVYLAUNCHERATTACK
attackType = MELEEATTACK,
-- ENERGY, KINETIC, ELECTRICITY, STUN, BLAST, HEAT, COLD, ACID, FORCE, LIGHTSABER
damageType = LIGHTSABER,
-- NONE, LIGHT, MEDIUM, HEAVY
armorPiercing = MEDIUM,
-- combat_rangedspecialize_bactarifle, combat_rangedspecialize_rifle, combat_rangedspecialize_pistol, combat_rangedspecialize_heavy, combat_rangedspecialize_carbine
-- combat_meleespecialize_unarmed, combat_meleespecialize_twohand, combat_meleespecialize_polearm, combat_meleespecialize_onehand, combat_general,
-- combat_meleespecialize_twohandlightsaber, combat_meleespecialize_polearmlightsaber, jedi_general
xpType = "jedi_general",
-- See http://www.ocdsoft.com/files/certifications.xls
certificationsRequired = { "cert_onehandlightsaber_gen1" },
-- See http://www.ocdsoft.com/files/accuracy.xls
creatureAccuracyModifiers = { "onehandlightsaber_accuracy" },
-- See http://www.ocdsoft.com/files/defense.xls
defenderDefenseModifiers = { "melee_defense" },
-- Leave as "dodge" for now, may have additions later
defenderSecondaryDefenseModifiers = { "saber_block" },
-- See http://www.ocdsoft.com/files/speed.xls
speedModifiers = { "onehandlightsaber_speed" },
-- Leave blank for now
damageModifiers = { },
-- The values below are the default values. To be used for blue frog objects primarily
healthAttackCost = 20,
actionAttackCost = 35,
mindAttackCost = 40,
forceCost = 12,
pointBlankRange = 0,
pointBlankAccuracy = 20,
idealRange = 3,
idealAccuracy = 15,
maxRange = 5,
maxRangeAccuracy = 5,
minDamage = 70,
maxDamage = 160,
attackSpeed = 4.5,
woundsRatio = 15,
defenderToughnessModifiers = { "lightsaber_toughness" },
noTrade = 1,
childObjects = {
{templateFile = "object/tangible/inventory/lightsaber_inventory_1.iff", x = 0, z = 0, y = 0, ox = 0, oy = 0, oz = 0, ow = 0, cellid = -1, containmentType = 4}
},
numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 1, 1, 1},
experimentalProperties = {"XX", "XX", "CD", "OQ", "CD", "OQ", "CD", "OQ", "SR", "UT", "CD", "OQ", "OQ", "OQ", "OQ"},
experimentalWeights = {1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "expDamage", "expDamage", "expDamage", "expDamage", "expEffeciency", "expEffeciency", "expEffeciency", "expEffeciency"},
experimentalSubGroupTitles = {"null", "null", "mindamage", "maxdamage", "attackspeed", "woundchance", "forcecost", "attackhealthcost", "attackactioncost", "attackmindcost"},
experimentalMin = {0, 0, 70, 160, 4.5, 10, 15, 20, 35, 40},
experimentalMax = {0, 0, 90, 200, 4.2, 20, 12, 15, 25, 25},
experimentalPrecision = {0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_weapon_melee_sword_crafted_saber_sword_lightsaber_one_handed_s2_gen1, "object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_s2_gen1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/base/earthmound_light.lua | 2 | 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_lair_base_earthmound_light = object_tangible_lair_base_shared_earthmound_light:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_base_earthmound_light, "object/tangible/lair/base/earthmound_light.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/engine/eng_rss_imperial_skyrunner.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_components_engine_eng_rss_imperial_skyrunner = object_tangible_ship_components_engine_shared_eng_rss_imperial_skyrunner:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_engine_eng_rss_imperial_skyrunner, "object/tangible/ship/components/engine/eng_rss_imperial_skyrunner.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | projects/YappyBirds/gameplay_scripts/yappybirds_game/scripts/YAPPYBIRDS/NODES/BaseGameplayNode.lua | 4 | 7168 | local BaseClass = require "NJLI.STATEMACHINE.NodeEntity"
local BaseGameplayNode = {}
BaseGameplayNode.__index = BaseGameplayNode
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--#############################################################################
--Begin Custom Code
--Required local functions:
-- __ctor()
-- __dtor()
-- __load()
-- __unLoad()
--#############################################################################
local __ctor = function(self, init)
assert(init, "init variable is nil.")
assert(type(init) == "table", "Init variable is expecting a states table")
assert(init.atlas ~= nil, "init.atlas variable is nil")
assert(init.geometry ~= nil, "init.geometry variable is nil")
local node = self:getNode()
node:setGeometry(init.geometry)
self._spriteFrameAtlas = init.atlas
self._physicsShape = njli.PhysicsShapeBox.create()
self._physicsBody = njli.PhysicsBodyRigid.create()
self._physicsBody:setDynamicPhysics()
self._physicsBody:setPhysicsShape(self._physicsShape)
node:setPhysicsBody(self._physicsBody)
end
local __dtor = function(self)
njli.PhysicsBodyRigid.destroy(self._physicsBody)
self._physicsBody = nil
njli.PhysicsShapeBox.destroy(self._physicsShape)
self._physicsShape = nil
self._spriteFrameAtlas = nil
self:getNode():removeGeometry()
end
local __load = function(self)
--TODO: load this Entity
end
local __unLoad = function(self)
--TODO: unload this Entity
end
--#############################################################################
function BaseGameplayNode:enter()
BaseClass.enter(self)
end
function BaseGameplayNode:update(timeStep)
BaseClass.update(self, timeStep)
end
function BaseGameplayNode:exit()
BaseClass.exit(self)
end
function BaseGameplayNode:onMessage()
BaseClass.onMessage(self)
end
function BaseGameplayNode:rayTouchesDown(rayContact)
BaseClass.rayTouchesDown(self, rayContact)
end
function BaseGameplayNode:rayTouchesUp(rayContact)
BaseClass.rayTouchesUp(self, rayContact)
end
function BaseGameplayNode:rayTouchesMove(rayContact)
BaseClass.rayTouchesMove(self, rayContact)
end
function BaseGameplayNode:rayTouchesCancelled(rayContact)
BaseClass.rayTouchesCancelled(self, rayContact)
end
function BaseGameplayNode:rayTouchesMissed(node)
BaseClass.rayTouchesMissed(self, node)
end
function BaseGameplayNode:rayTouchDown(rayContact)
BaseClass.rayTouchDown(self, rayContact)
end
function BaseGameplayNode:rayTouchUp(rayContact)
BaseClass.rayTouchUp(self, rayContact)
end
function BaseGameplayNode:rayTouchMove(rayContact)
BaseClass.rayTouchMove(self, rayContact)
end
function BaseGameplayNode:rayTouchCancelled(rayContact)
BaseClass.rayTouchCancelled(self, rayContact)
end
function BaseGameplayNode:rayTouchMissed(node)
BaseClass.rayTouchMissed(self, node)
end
function BaseGameplayNode:rayMouseDown(rayContact)
BaseClass.rayMouseDown(self, rayContact)
end
function BaseGameplayNode:rayMouseUp(rayContact)
BaseClass.rayMouseUp(self, rayContact)
end
function BaseGameplayNode:rayMouseMove(rayContact)
BaseClass.rayMouseMove(self, rayContact)
end
function BaseGameplayNode:rayMouseMissed(node)
BaseClass.rayMouseMissed(self, node)
end
function BaseGameplayNode:collide(otherNode, collisionPoint)
BaseClass.collide(self, otherNode, collisionPoint)
end
function BaseGameplayNode:near(otherNode)
BaseClass.near(self, otherNode)
end
function BaseGameplayNode:actionUpdate(action, timeStep)
BaseClass.actionUpdate(self, action, timeStep)
end
function BaseGameplayNode:actionComplete(action)
BaseClass.actionComplete(self, action)
end
function BaseGameplayNode:keyboardShow()
BaseClass.keyboardShow(self)
end
function BaseGameplayNode:keyboardCancel()
BaseClass.keyboardCancel(self)
end
function BaseGameplayNode:keyboardReturn()
BaseClass.keyboardReturn(self)
end
function BaseGameplayNode:renderHUD()
BaseClass.renderHUD(self)
end
function BaseGameplayNode:gamePause()
BaseClass.gamePause(self)
end
function BaseGameplayNode:gameUnPause()
BaseClass.gameUnPause(self)
end
function BaseGameplayNode:touchesDown(touches)
BaseClass.touchesDown(self, touches)
end
function BaseGameplayNode:touchesUp(touches)
BaseClass.touchesUp(self, touches)
end
function BaseGameplayNode:touchesMove(touches)
BaseClass.touchesMove(self, touches)
end
function BaseGameplayNode:touchesCancelled(touches)
BaseClass.touchesCancelled(self, touches)
end
function BaseGameplayNode:touchDown(touch)
BaseClass.touchDown(self, touch)
end
function BaseGameplayNode:touchUp(touch)
BaseClass.touchUp(self, touch)
end
function BaseGameplayNode:touchMove(touch)
BaseClass.touchMove(self, touch)
end
function BaseGameplayNode:touchCancelled(touch)
BaseClass.touchCancelled(self, touch)
end
function BaseGameplayNode:mouseDown(mouse)
BaseClass.mouseDown(self, mouse)
end
function BaseGameplayNode:mouseUp(mouse)
BaseClass.mouseUp(self, mouse)
end
function BaseGameplayNode:mouseMove(mouse)
BaseClass.mouseMove(self, mouse)
end
--#############################################################################
--End Custom Code
--#############################################################################
--#############################################################################
--DO NOT EDIT BELOW
--#############################################################################
setmetatable(BaseGameplayNode, {
__index = BaseClass,
__call = function (cls, ...)
local self = setmetatable({}, cls)
--Create the base first
BaseClass._create(self, ...)
self:_create(...)
return self
end,
})
function BaseGameplayNode:className()
return "BaseGameplayNode"
end
function BaseGameplayNode:class()
return self
end
function BaseGameplayNode:superClass()
return BaseClass
end
function BaseGameplayNode:__gc()
--Destroy derived class first
BaseGameplayNode._destroy(self)
--Destroy base class after derived class
BaseClass._destroy(self)
end
function BaseGameplayNode:__tostring()
local ret = self:className() .. " =\n{\n"
for pos,val in pairs(self) do
ret = ret .. "\t" .. "["..pos.."]" .. " => " .. type(val) .. " = " .. tostring(val) .. "\n"
end
ret = ret .. "\n\t" .. tostring_r(BaseClass) .. "\n}"
return ret .. "\n\t" .. tostring_r(getmetatable(self)) .. "\n}"
end
function BaseGameplayNode:_destroy()
assert(not self.__BaseGameplayNodeCalledLoad, "Must unload before you destroy")
__dtor(self)
end
function BaseGameplayNode:_create(init)
self.__BaseGameplayNodeCalledLoad = false
__ctor(self, init)
end
function BaseGameplayNode:load()
--load base first
BaseClass.load(self)
--load derived last...
__load(self)
self.__BaseGameplayNodeCalledLoad = true
end
function BaseGameplayNode:unLoad()
assert(self.__BaseGameplayNodeCalledLoad, "Must load before unloading")
--unload derived first...
__unLoad(self)
self.__BaseGameplayNodeCalledLoad = false
--unload base last...
BaseClass.unLoad(self)
end
return BaseGameplayNode
| mit |
DailyShana/ygopro-scripts | c85967160.lua | 3 | 1442 | --アロマージ-ベルガモット
function c85967160.initial_effect(c)
--pierce
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_PIERCE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCondition(c85967160.pccon)
e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_PLANT))
c:RegisterEffect(e1)
--atk & def
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_RECOVER)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c85967160.adcon)
e2:SetTarget(c85967160.adtg)
e2:SetOperation(c85967160.adop)
c:RegisterEffect(e2)
end
function c85967160.pccon(e)
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)>Duel.GetLP(1-tp)
end
function c85967160.adcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp
end
function c85967160.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return ep==tp and e:GetHandler():IsRelateToEffect(e) end
end
function c85967160.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+RESET_END+RESET_OPPO_TURN)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENCE)
c:RegisterEffect(e2)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/food/crafted/dish_fried_endwa.lua | 3 | 2240 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_food_crafted_dish_fried_endwa = object_tangible_food_crafted_shared_dish_fried_endwa:new {
}
ObjectTemplates:addTemplate(object_tangible_food_crafted_dish_fried_endwa, "object/tangible/food/crafted/dish_fried_endwa.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Nyzul_Isle/mobs/Alexander.lua | 5 | 2702 | -----------------------------------
-- Area: Nyzul Isle (Nashmeira's Plea)
-- MOB: Alexander
-----------------------------------
require("scripts/zones/Nyzul_Isle/IDs");
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:setMobMod(MOBMOD_NO_MOVE, 1);
-- "Draw in" should only trigger when target is beyond 20' (out of Radiant_Sacrament range)
mob:setMobMod(MOBMOD_DRAW_IN, 1);
mob:addListener("WEAPONSKILL_STATE_ENTER", "WS_START_MSG", function(mob, skillID)
-- Radiant Sacrament
if (skillID == 2141) then
mob:showText(mob,NyzulIsle.text.OFFER_THY_WORSHIP);
-- Mega Holy
elseif (skillID == 2142) then
mob:showText(mob,NyzulIsle.text.OPEN_THINE_EYES);
-- Perfect Defense
elseif (skillID == 2143) then
mob:showText(mob,NyzulIsle.text.CEASE_THY_STRUGGLES);
-- Divine Spear
elseif (skillID == 2144) then
mob:showText(mob,NyzulIsle.text.RELEASE_THY_SELF);
-- Gospel of the Lost
elseif (skillID == 2145) then
mob:showText(mob,NyzulIsle.text.BASK_IN_MY_GLORY);
-- Void of Repentance
elseif (skillID == 2146) then
mob:showText(mob,NyzulIsle.text.REPENT_THY_IRREVERENCE);
-- Divine Judgement
elseif (skillID == 2147) then
mob:showText(mob,NyzulIsle.text.ACCEPT_THY_DESTRUCTION);
mob:showText(mob,NyzulIsle.text.OMEGA_SPAM);
end
end);
end;
function onMobEngaged(mob,target)
mob:showText(mob,NyzulIsle.text.SHALL_BE_JUDGED);
end;
function onMobFight(mob,target)
-- BG Wiki: "He will use this ability at 50% of his HP and several times again as his health decreases."
-- ffxiclopedia: "Alexander will use this ability as his next TP move once its HP falls below 50%."
if (mob:getHPP() <= 50 and mob:getTP() >= 1000 and mob:getLocalVar("DivineJudgement") == 0) then
mob:setLocalVar("DivineJudgement", 1)
mob:useMobAbility(2147);
end
-- ffxiclopedia: "In addition to this, it's possible he'll use it several times again at low (5%?) HP."
-- Per same wiki, may use Perfect Defense as a regular skill at 10%..Assuming same % for both skills.
local skill_list = mob:getMobMod(MOBMOD_SKILL_LIST);
if (mob:getHPP() <= 10 and skill_list == 784) then
mob:setMobMod(MOBMOD_SKILL_LIST, 785);
end
end;
function onMobDeath(mob, player, isKiller)
if (isKiller) then
mob:showText(mob,NyzulIsle.text.SHALL_KNOW_OBLIVION);
end
end;
function onMobDespawn(mob)
local instance = mob:getInstance();
instance:setProgress(instance:getProgress() + 1);
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/general/parking_garage_general.lua | 2 | 2273 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_general_parking_garage_general = object_building_general_shared_parking_garage_general:new {
planetMapCategory = "garage"
}
ObjectTemplates:addTemplate(object_building_general_parking_garage_general, "object/building/general/parking_garage_general.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/soundobject/soundobject_hydro_power_generator.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_soundobject_soundobject_hydro_power_generator = object_soundobject_shared_soundobject_hydro_power_generator:new {
}
ObjectTemplates:addTemplate(object_soundobject_soundobject_hydro_power_generator, "object/soundobject/soundobject_hydro_power_generator.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/item/item_bowl_plain.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_static_item_item_bowl_plain = object_static_item_shared_item_bowl_plain:new {
}
ObjectTemplates:addTemplate(object_static_item_item_bowl_plain, "object/static/item/item_bowl_plain.iff")
| agpl-3.0 |
Zefiros-Software/premake-core | tests/api/test_register.lua | 16 | 1711 | --
-- tests/api/test_register.lua
-- Tests the new API registration function.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("api_register")
local api = p.api
--
-- Setup and teardown
--
function suite.teardown()
testapi = nil
end
--
-- Verify that the function exists.
--
function suite.registerFunctionExists()
test.isequal("function", type(p.api.register))
end
--
-- When called, a new function with with provided name should
-- added to the global namespace.
--
function suite.createsNewGlobalFunction()
api.register { name = "testapi", kind = "string", scope = "project" }
test.isequal("function", type(testapi));
end
--
-- Verify that an error is raised if no name is provided.
--
function suite.raisesError_onMissingName()
ok, err = pcall(function ()
api.register { kind = "string", scope = "project" }
end)
test.isfalse(ok)
end
--
-- Verify that an error is raised if the name is already in use.
--
function suite.raisesError_onExistingGlobalName()
testapi = "testapi"
ok, err = pcall(function ()
api.register { name = "testapi", kind = "string", scope = "project" }
end)
test.isfalse(ok)
end
--
-- Verify that an error is raised if an invalid kind is used.
--
function suite.raisesError_onInvalidKind()
ok, err = pcall(function ()
api.register { name = "testapi", kind = "bogus", scope = "project" }
end)
test.isfalse(ok)
end
--
-- Verify that key-value forms are accepted.
--
function suite.succeeds_onKeyValueForm()
ok, err = pcall(function ()
api.register { name = "testapi", kind = "string", keyed = true, scope = "project" }
end)
test.istrue(ok)
end
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/mission/quest_item/green_laser_q1_needed.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_mission_quest_item_green_laser_q1_needed = object_tangible_mission_quest_item_shared_green_laser_q1_needed:new {
}
ObjectTemplates:addTemplate(object_tangible_mission_quest_item_green_laser_q1_needed, "object/tangible/mission/quest_item/green_laser_q1_needed.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/test/test_barrel_b.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_tangible_test_test_barrel_b = object_tangible_test_shared_test_barrel_b:new {
}
ObjectTemplates:addTemplate(object_tangible_test_test_barrel_b, "object/tangible/test/test_barrel_b.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
Zefiros-Software/premake-core | src/_premake_init.lua | 1 | 29895 | --
-- _premake_init.lua
--
-- Prepares the runtime environment for the add-ons and user project scripts.
--
-- Copyright (c) 2012-2015 Jason Perkins and the Premake project
--
local p = premake
local api = p.api
local DOC_URL = "See https://github.com/premake/premake-core/wiki/"
-----------------------------------------------------------------------------
--
-- Register the core API functions.
--
-----------------------------------------------------------------------------
api.register {
name = "architecture",
scope = "config",
kind = "string",
allowed = {
"universal",
p.X86,
p.X86_64,
p.ARM,
p.ARM64,
},
aliases = {
i386 = p.X86,
amd64 = p.X86_64,
x32 = p.X86, -- these should be DEPRECATED
x64 = p.X86_64,
},
}
api.register {
name = "atl",
scope = "config",
kind = "string",
allowed = {
"Off",
"Dynamic",
"Static",
},
}
api.register {
name = "basedir",
scope = "project",
kind = "path"
}
api.register {
name = "buildaction",
scope = "config",
kind = "string",
}
api.register {
name = "buildcommands",
scope = { "config", "rule" },
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "buildcustomizations",
scope = "project",
kind = "list:string",
}
api.register {
name = "builddependencies",
scope = { "rule" },
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "buildlog",
scope = { "config" },
kind = "path",
tokens = true,
pathVars = true,
}
api.register {
name = "buildmessage",
scope = { "config", "rule" },
kind = "string",
tokens = true,
pathVars = true,
}
api.register {
name = "buildoptions",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "buildoutputs",
scope = { "config", "rule" },
kind = "list:path",
tokens = true,
pathVars = false,
}
api.register {
name = "buildinputs",
scope = "config",
kind = "list:path",
tokens = true,
pathVars = false,
}
api.register {
name = "buildrule", -- DEPRECATED
scope = "config",
kind = "table",
tokens = true,
}
api.register {
name = "characterset",
scope = "config",
kind = "string",
allowed = {
"Default",
"ASCII",
"MBCS",
"Unicode",
}
}
api.register {
name = "cleancommands",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "cleanextensions",
scope = "config",
kind = "list:string",
}
api.register {
name = "clr",
scope = "config",
kind = "string",
allowed = {
"Off",
"On",
"Pure",
"Safe",
"Unsafe",
}
}
api.register {
name = "compilebuildoutputs",
scope = "config",
kind = "boolean"
}
api.register {
name = "compileas",
scope = "config",
kind = "string",
allowed = {
"Default",
"C",
"C++",
}
}
api.register {
name = "configmap",
scope = "project",
kind = "list:keyed:array:string",
}
api.register {
name = "configurations",
scope = "project",
kind = "list:string",
}
api.register {
name = "copylocal",
scope = "config",
kind = "list:mixed",
tokens = true,
}
api.register {
name = "debugargs",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
allowDuplicates = true,
}
api.register {
name = "debugcommand",
scope = "config",
kind = "path",
tokens = true,
pathVars = true,
}
api.register {
name = "debugconnectcommands",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "debugdir",
scope = "config",
kind = "path",
tokens = true,
pathVars = true,
}
api.register {
name = "debugenvs",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "debugextendedprotocol",
scope = "config",
kind = "boolean",
}
api.register {
name = "debugformat",
scope = "config",
kind = "string",
allowed = {
"c7",
},
}
api.register {
name = "debugger",
scope = "config",
kind = "string",
allowed = {
"Default",
"GDB",
"LLDB",
}
}
api.register {
name = "debuggertype",
scope = "config",
kind = "string",
allowed = {
"Mixed",
"NativeOnly",
"ManagedOnly",
}
}
api.register {
name = "debugpathmap",
scope = "config",
kind = "list:keyed:path",
tokens = true,
}
api.register {
name = "debugport",
scope = "config",
kind = "integer",
}
api.register {
name = "debugremotehost",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "debugsearchpaths",
scope = "config",
kind = "list:path",
tokens = true,
}
api.register {
name = "debugstartupcommands",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "debugtoolargs",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "debugtoolcommand",
scope = "config",
kind = "path",
tokens = true,
pathVars = true,
}
api.register {
name = "defaultplatform",
scope = "project",
kind = "string",
}
api.register {
name = "defines",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "dependson",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "disablewarnings",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "display",
scope = "rule",
kind = "string",
}
api.register {
name = "dpiawareness",
scope = "config",
kind = "string",
allowed = {
"Default",
"None",
"High",
"HighPerMonitor",
}
}
api.register {
name = "editandcontinue",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off",
},
}
api.register {
name = "exceptionhandling",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off",
"SEH",
"CThrow",
},
}
api.register {
name = "enablewarnings",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "endian",
scope = "config",
kind = "string",
allowed = {
"Default",
"Little",
"Big",
},
}
api.register {
name = "entrypoint",
scope = "config",
kind = "string",
}
api.register {
name = "fatalwarnings",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "fileextension",
scope = "rule",
kind = "list:string",
}
api.register {
name = "filename",
scope = { "project", "rule" },
kind = "string",
tokens = true,
}
api.register {
name = "files",
scope = "config",
kind = "list:file",
tokens = true,
}
api.register {
name = "functionlevellinking",
scope = "config",
kind = "boolean"
}
api.register {
name = "flags",
scope = "config",
kind = "list:string",
allowed = {
"Component", -- DEPRECATED
"DebugEnvsDontMerge",
"DebugEnvsInherit",
"EnableSSE", -- DEPRECATED
"EnableSSE2", -- DEPRECATED
"ExcludeFromBuild",
"ExtraWarnings", -- DEPRECATED
"FatalCompileWarnings",
"FatalLinkWarnings",
"FloatFast", -- DEPRECATED
"FloatStrict", -- DEPRECATED
"LinkTimeOptimization",
"Managed", -- DEPRECATED
"Maps",
"MFC",
"MultiProcessorCompile",
"NativeWChar", -- DEPRECATED
"No64BitChecks",
"NoCopyLocal",
"NoEditAndContinue", -- DEPRECATED
"NoFramePointer", -- DEPRECATED
"NoImplicitLink",
"NoImportLib",
"NoIncrementalLink",
"NoManifest",
"NoMinimalRebuild",
"NoNativeWChar", -- DEPRECATED
"NoPCH",
"NoRuntimeChecks",
"NoBufferSecurityCheck",
"NoWarnings", -- DEPRECATED
"OmitDefaultLibrary",
"Optimize", -- DEPRECATED
"OptimizeSize", -- DEPRECATED
"OptimizeSpeed", -- DEPRECATED
"RelativeLinks",
"ReleaseRuntime", -- DEPRECATED
"ShadowedVariables",
"StaticRuntime", -- DEPRECATED
"Symbols", -- DEPRECATED
"UndefinedIdentifiers",
"WinMain", -- DEPRECATED
"WPF",
"C++11", -- DEPRECATED
"C++14", -- DEPRECATED
"C90", -- DEPRECATED
"C99", -- DEPRECATED
"C11", -- DEPRECATED
},
aliases = {
FatalWarnings = { "FatalWarnings", "FatalCompileWarnings", "FatalLinkWarnings" },
Optimise = 'Optimize',
OptimiseSize = 'OptimizeSize',
OptimiseSpeed = 'OptimizeSpeed',
},
}
api.register {
name = "floatingpoint",
scope = "config",
kind = "string",
allowed = {
"Default",
"Fast",
"Strict",
}
}
api.register {
name = "floatingpointexceptions",
scope = "config",
kind = "boolean"
}
api.register {
name = "inlining",
scope = "config",
kind = "string",
allowed = {
"Default",
"Disabled",
"Explicit",
"Auto"
}
}
api.register {
name = "callingconvention",
scope = "config",
kind = "string",
allowed = {
"Cdecl",
"FastCall",
"StdCall",
"VectorCall",
}
}
api.register {
name = "forceincludes",
scope = "config",
kind = "list:mixed",
tokens = true,
}
api.register {
name = "forceusings",
scope = "config",
kind = "list:file",
tokens = true,
}
api.register {
name = "fpu",
scope = "config",
kind = "string",
allowed = {
"Software",
"Hardware",
}
}
api.register {
name = "dotnetframework",
scope = "config",
kind = "string",
}
api.register {
name = "gccprefix",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "ignoredefaultlibraries",
scope = "config",
kind = "list:mixed",
tokens = true,
}
api.register {
name = "icon",
scope = "project",
kind = "file",
tokens = true,
}
api.register {
name = "imageoptions",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "imagepath",
scope = "config",
kind = "path",
tokens = true,
}
api.register {
name = "implibdir",
scope = "config",
kind = "path",
tokens = true,
}
api.register {
name = "implibextension",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "implibname",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "implibprefix",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "implibsuffix",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "includedirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "intrinsics",
scope = "config",
kind = "boolean"
}
api.register {
name = "bindirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "kind",
scope = "config",
kind = "string",
allowed = {
"ConsoleApp",
"Makefile",
"None",
"SharedLib",
"StaticLib",
"WindowedApp",
"Utility",
},
}
api.register {
name = "sharedlibtype",
scope = "project",
kind = "string",
allowed = {
"OSXBundle",
"OSXFramework",
},
}
api.register {
name = "language",
scope = "project",
kind = "string",
allowed = {
"C",
"C++",
"C#",
"F#"
}
}
api.register {
name = "cdialect",
scope = "config",
kind = "string",
allowed = {
"Default",
"C89",
"C90",
"C99",
"C11",
"gnu89",
"gnu90",
"gnu99",
"gnu11",
}
}
api.register {
name = "cppdialect",
scope = "config",
kind = "string",
allowed = {
"Default",
"C++latest",
"C++98",
"C++0x",
"C++11",
"C++1y",
"C++14",
"C++1z",
"C++17",
"gnu++98",
"gnu++0x",
"gnu++11",
"gnu++1y",
"gnu++14",
"gnu++1z",
"gnu++17",
}
}
api.register {
name = "libdirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "frameworkdirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "linkbuildoutputs",
scope = "config",
kind = "boolean"
}
api.register {
name = "linkoptions",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "links",
scope = "config",
kind = "list:mixed",
tokens = true,
}
api.register {
name = "linkgroups",
scope = "config",
kind = "string",
allowed = {
"Off",
"On",
}
}
api.register {
name = "locale",
scope = "config",
kind = "string",
tokens = false,
}
api.register {
name = "location",
scope = { "project", "rule" },
kind = "path",
tokens = true,
}
api.register {
name = "makesettings",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "namespace",
scope = "project",
kind = "string",
tokens = true,
}
api.register {
name = "nativewchar",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off",
}
}
api.register {
name = "nuget",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "nugetsource",
scope = "project",
kind = "string",
tokens = true,
}
api.register {
name = "objdir",
scope = "config",
kind = "path",
tokens = true,
}
api.register {
name = "optimize",
scope = "config",
kind = "string",
allowed = {
"Off",
"On",
"Debug",
"Size",
"Speed",
"Full",
}
}
api.register {
name = "runpathdirs",
scope = "config",
kind = "list:path",
tokens = true,
}
api.register {
name = "runtime",
scope = "config",
kind = "string",
allowed = {
"Debug",
"Release",
}
}
api.register {
name = "pchheader",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "pchsource",
scope = "config",
kind = "path",
tokens = true,
}
api.register {
name = "pic",
scope = "config",
kind = "string",
allowed = {
"Off",
"On",
}
}
api.register {
name = "platforms",
scope = "project",
kind = "list:string",
}
api.register {
name = "postbuildcommands",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
allowDuplicates = true,
}
api.register {
name = "postbuildmessage",
scope = "config",
kind = "string",
tokens = true,
pathVars = true,
}
api.register {
name = "prebuildcommands",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
allowDuplicates = true,
}
api.register {
name = "prebuildmessage",
scope = "config",
kind = "string",
tokens = true,
pathVars = true,
}
api.register {
name = "prelinkcommands",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "prelinkmessage",
scope = "config",
kind = "string",
tokens = true,
pathVars = true,
}
api.register {
name = "propertydefinition",
scope = "rule",
kind = "list:table",
}
api.register {
name = "rebuildcommands",
scope = "config",
kind = "list:string",
tokens = true,
pathVars = true,
}
api.register {
name = "resdefines",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "resincludedirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "resoptions",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "resourcegenerator",
scope = "project",
kind = "string",
allowed = {
"internal",
"public"
}
}
api.register {
name = "rtti",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off",
},
}
api.register {
name = "rules",
scope = "project",
kind = "list:string",
}
api.register {
name = "startproject",
scope = "workspace",
kind = "string",
tokens = true,
}
api.register {
name = "staticruntime",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off"
}
}
api.register {
name = "strictaliasing",
scope = "config",
kind = "string",
allowed = {
"Off",
"Level1",
"Level2",
"Level3",
}
}
api.register {
name = "stringpooling",
scope = "config",
kind = "boolean"
}
api.register {
name = "symbols",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off",
"FastLink", -- Visual Studio 2015+ only, considered 'On' for all other cases.
"Full", -- Visual Studio 2017+ only, considered 'On' for all other cases.
},
}
api.register {
name = "symbolspath",
scope = "config",
kind = "path",
tokens = true,
}
api.register {
name = "sysincludedirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "syslibdirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "system",
scope = "config",
kind = "string",
allowed = {
"aix",
"bsd",
"haiku",
"ios",
"linux",
"macosx",
"solaris",
"wii",
"windows",
},
}
api.register {
name = "systemversion",
scope = "config",
kind = "string",
}
api.register {
name = "tags",
scope = "config",
kind = "list:string",
}
api.register {
name = "tailcalls",
scope = "config",
kind = "boolean"
}
api.register {
name = "targetdir",
scope = "config",
kind = "path",
tokens = true,
}
api.register {
name = "targetextension",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "targetname",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "targetprefix",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "targetsuffix",
scope = "config",
kind = "string",
tokens = true,
}
api.register {
name = "toolset",
scope = "config",
kind = "string",
allowed = function(value)
value = value:lower()
local tool, version = p.tools.canonical(value)
if tool then
return p.tools.normalize(value)
else
return nil
end
end,
}
api.register {
name = "customtoolnamespace",
scope = "config",
kind = "string",
}
api.register {
name = "undefines",
scope = "config",
kind = "list:string",
tokens = true,
}
api.register {
name = "usingdirs",
scope = "config",
kind = "list:directory",
tokens = true,
}
api.register {
name = "uuid",
scope = "project",
kind = "string",
allowed = function(value)
local ok = true
if (#value ~= 36) then ok = false end
for i=1,36 do
local ch = value:sub(i,i)
if (not ch:find("[ABCDEFabcdef0123456789-]")) then ok = false end
end
if (value:sub(9,9) ~= "-") then ok = false end
if (value:sub(14,14) ~= "-") then ok = false end
if (value:sub(19,19) ~= "-") then ok = false end
if (value:sub(24,24) ~= "-") then ok = false end
if (not ok) then
return nil, "invalid UUID"
end
return value:upper()
end
}
api.register {
name = "vectorextensions",
scope = "config",
kind = "string",
allowed = {
"Default",
"AVX",
"AVX2",
"IA32",
"SSE",
"SSE2",
"SSE3",
"SSSE3",
"SSE4.1",
}
}
api.register {
name = "isaextensions",
scope = "config",
kind = "list:string",
allowed = {
"MOVBE",
"POPCNT",
"PCLMUL",
"LZCNT",
"BMI",
"BMI2",
"F16C",
"AES",
"FMA",
"FMA4",
"RDRND",
}
}
api.register {
name = "vpaths",
scope = "project",
kind = "list:keyed:list:path",
tokens = true,
pathVars = true,
}
api.register {
name = "warnings",
scope = "config",
kind = "string",
allowed = {
"Off",
"Default",
"High",
"Extra",
}
}
api.register {
name = "largeaddressaware",
scope = "config",
kind = "boolean",
}
api.register {
name = "editorintegration",
scope = "workspace",
kind = "boolean",
}
api.register {
name = "preferredtoolarchitecture",
scope = "workspace",
kind = "string",
allowed = {
"Default",
p.X86,
p.X86_64,
}
}
api.register {
name = "unsignedchar",
scope = "config",
kind = "boolean",
}
p.api.register {
name = "structmemberalign",
scope = "config",
kind = "integer",
allowed = {
"1",
"2",
"4",
"8",
"16",
}
}
api.register {
name = "omitframepointer",
scope = "config",
kind = "string",
allowed = {
"Default",
"On",
"Off"
}
}
api.register {
name = "visibility",
scope = "config",
kind = "string",
allowed = {
"Default",
"Hidden",
"Internal",
"Protected"
}
}
api.register {
name = "inlinesvisibility",
scope = "config",
kind = "string",
allowed = {
"Default",
"Hidden"
}
}
-----------------------------------------------------------------------------
--
-- Field name aliases for backward compatibility
--
-----------------------------------------------------------------------------
api.alias("buildcommands", "buildCommands")
api.alias("builddependencies", "buildDependencies")
api.alias("buildmessage", "buildMessage")
api.alias("buildoutputs", "buildOutputs")
api.alias("cleanextensions", "cleanExtensions")
api.alias("dotnetframework", "framework")
api.alias("editandcontinue", "editAndContinue")
api.alias("fileextension", "fileExtension")
api.alias("propertydefinition", "propertyDefinition")
api.alias("removefiles", "excludes")
-----------------------------------------------------------------------------
--
-- Handlers for deprecated fields and values.
--
-----------------------------------------------------------------------------
-- 13 Apr 2017
api.deprecateField("buildrule", 'Use `buildcommands`, `buildoutputs`, and `buildmessage` instead.',
function(value)
if value.description then
buildmessage(value.description)
end
buildcommands(value.commands)
buildoutputs(value.outputs)
end)
api.deprecateValue("flags", "Component", 'Use `buildaction "Component"` instead.',
function(value)
buildaction "Component"
end)
api.deprecateValue("flags", "EnableSSE", 'Use `vectorextensions "SSE"` instead.',
function(value)
vectorextensions("SSE")
end,
function(value)
vectorextensions "Default"
end)
api.deprecateValue("flags", "EnableSSE2", 'Use `vectorextensions "SSE2"` instead.',
function(value)
vectorextensions("SSE2")
end,
function(value)
vectorextensions "Default"
end)
api.deprecateValue("flags", "FloatFast", 'Use `floatingpoint "Fast"` instead.',
function(value)
floatingpoint("Fast")
end,
function(value)
floatingpoint "Default"
end)
api.deprecateValue("flags", "FloatStrict", 'Use `floatingpoint "Strict"` instead.',
function(value)
floatingpoint("Strict")
end,
function(value)
floatingpoint "Default"
end)
api.deprecateValue("flags", "NativeWChar", 'Use `nativewchar "On"` instead."',
function(value)
nativewchar("On")
end,
function(value)
nativewchar "Default"
end)
api.deprecateValue("flags", "NoNativeWChar", 'Use `nativewchar "Off"` instead."',
function(value)
nativewchar("Off")
end,
function(value)
nativewchar "Default"
end)
api.deprecateValue("flags", "Optimize", 'Use `optimize "On"` instead.',
function(value)
optimize ("On")
end,
function(value)
optimize "Off"
end)
api.deprecateValue("flags", "OptimizeSize", 'Use `optimize "Size"` instead.',
function(value)
optimize ("Size")
end,
function(value)
optimize "Off"
end)
api.deprecateValue("flags", "OptimizeSpeed", 'Use `optimize "Speed"` instead.',
function(value)
optimize ("Speed")
end,
function(value)
optimize "Off"
end)
api.deprecateValue("flags", "ReleaseRuntime", 'Use `runtime "Release"` instead.',
function(value)
runtime "Release"
end,
function(value)
end)
api.deprecateValue("flags", "ExtraWarnings", 'Use `warnings "Extra"` instead.',
function(value)
warnings "Extra"
end,
function(value)
warnings "Default"
end)
api.deprecateValue("flags", "NoWarnings", 'Use `warnings "Off"` instead.',
function(value)
warnings "Off"
end,
function(value)
warnings "Default"
end)
api.deprecateValue("flags", "Managed", 'Use `clr "On"` instead.',
function(value)
clr "On"
end,
function(value)
clr "Off"
end)
api.deprecateValue("flags", "NoEditAndContinue", 'Use editandcontinue "Off"` instead.',
function(value)
editandcontinue "Off"
end,
function(value)
editandcontinue "On"
end)
-- 21 June 2016
api.deprecateValue("flags", "Symbols", 'Use `symbols "On"` instead',
function(value)
symbols "On"
end,
function(value)
symbols "Default"
end)
-- 31 January 2017
api.deprecateValue("flags", "C++11", 'Use `cppdialect "C++11"` instead',
function(value)
cppdialect "C++11"
end,
function(value)
cppdialect "Default"
end)
api.deprecateValue("flags", "C++14", 'Use `cppdialect "C++14"` instead',
function(value)
cppdialect "C++14"
end,
function(value)
cppdialect "Default"
end)
api.deprecateValue("flags", "C90", 'Use `cdialect "gnu90"` instead',
function(value)
cdialect "gnu90"
end,
function(value)
cdialect "Default"
end)
api.deprecateValue("flags", "C99", 'Use `cdialect "gnu99"` instead',
function(value)
cdialect "gnu99"
end,
function(value)
cdialect "Default"
end)
api.deprecateValue("flags", "C11", 'Use `cdialect "gnu11"` instead',
function(value)
cdialect "gnu11"
end,
function(value)
cdialect "Default"
end)
-- 13 April 2017
api.deprecateValue("flags", "WinMain", 'Use `entrypoint "WinMainCRTStartup"` instead',
function(value)
entrypoint "WinMainCRTStartup"
end,
function(value)
entrypoint "mainCRTStartup"
end)
-- 31 October 2017
api.deprecateValue("flags", "StaticRuntime", 'Use `staticruntime "On"` instead',
function(value)
staticruntime "On"
end,
function(value)
staticruntime "Default"
end)
-- 08 April 2018
api.deprecateValue("flags", "NoFramePointer", 'Use `omitframepointer "On"` instead.',
function(value)
omitframepointer("On")
end,
function(value)
omitframepointer("Default")
end)
-----------------------------------------------------------------------------
--
-- Install Premake's default set of command line arguments.
--
-----------------------------------------------------------------------------
newoption
{
trigger = "cc",
value = "VALUE",
description = "Choose a C/C++ compiler set",
allowed = {
{ "clang", "Clang (clang)" },
{ "gcc", "GNU GCC (gcc/g++)" },
}
}
newoption
{
trigger = "dotnet",
value = "VALUE",
description = "Choose a .NET compiler set",
allowed = {
{ "msnet", "Microsoft .NET (csc)" },
{ "mono", "Novell Mono (mcs)" },
{ "pnet", "Portable.NET (cscc)" },
}
}
newoption
{
trigger = "fatal",
description = "Treat warnings from project scripts as errors"
}
newoption
{
trigger = "debugger",
description = "Start MobDebug remote debugger. Works with ZeroBrane Studio"
}
newoption
{
trigger = "file",
value = "FILE",
description = "Read FILE as a Premake script; default is 'premake5.lua'"
}
newoption
{
trigger = "help",
description = "Display this information"
}
newoption
{
trigger = "verbose",
description = "Generate extra debug text output"
}
newoption
{
trigger = "interactive",
description = "Interactive command prompt"
}
newoption
{
trigger = "os",
value = "VALUE",
description = "Generate files for a different operating system",
allowed = {
{ "aix", "IBM AIX" },
{ "bsd", "OpenBSD, NetBSD, or FreeBSD" },
{ "haiku", "Haiku" },
{ "hurd", "GNU/Hurd" },
{ "linux", "Linux" },
{ "macosx", "Apple Mac OS X" },
{ "solaris", "Solaris" },
{ "windows", "Microsoft Windows" },
}
}
newoption
{
trigger = "scripts",
value = "PATH",
description = "Search for additional scripts on the given path"
}
newoption
{
trigger = "systemscript",
value = "FILE",
description = "Override default system script (premake5-system.lua)"
}
newoption
{
trigger = "version",
description = "Display version information"
}
if http ~= nil then
newoption {
trigger = "insecure",
description = "forfit SSH certification checks."
}
end
-----------------------------------------------------------------------------
--
-- Set up the global environment for the systems I know about. I would like
-- to see at least some if not all of this moved into add-ons in the future.
--
-----------------------------------------------------------------------------
characterset "Default"
clr "Off"
editorintegration "Off"
exceptionhandling "Default"
rtti "Default"
symbols "Default"
nugetsource "https://api.nuget.org/v3/index.json"
-- Setting a default language makes some validation easier later
language "C++"
-- Use Posix-style target naming by default, since it is the most common.
filter { "kind:SharedLib" }
targetprefix "lib"
targetextension ".so"
filter { "kind:StaticLib" }
targetprefix "lib"
targetextension ".a"
-- Add variations for other Posix-like systems.
filter { "system:MacOSX", "kind:WindowedApp" }
targetextension ".app"
filter { "system:MacOSX", "kind:SharedLib" }
targetextension ".dylib"
-- Windows and friends.
filter { "system:Windows or language:C# or language:F#", "kind:ConsoleApp or WindowedApp" }
targetextension ".exe"
filter { "system:Windows", "kind:SharedLib" }
targetprefix ""
targetextension ".dll"
implibextension ".lib"
filter { "system:Windows", "kind:StaticLib" }
targetprefix ""
targetextension ".lib"
filter { "language:C# or language:F#", "kind:SharedLib" }
targetprefix ""
targetextension ".dll"
implibextension ".dll"
filter { "kind:SharedLib", "system:not Windows" }
pic "On"
filter { "system:macosx" }
toolset "clang"
filter {}
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/weapon/blaster_power_handler_quest.lua | 3 | 2300 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_weapon_blaster_power_handler_quest = object_tangible_component_weapon_shared_blaster_power_handler_quest:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_blaster_power_handler_quest, "object/tangible/component/weapon/blaster_power_handler_quest.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/naboo/trade_federation_avenger.lua | 1 | 1244 | trade_federation_avenger = Creature:new {
objectName = "@mob/creature_names:trade_federation_avenger",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "trade_federation",
faction = "trade_federation",
level = 16,
chanceHit = 0.31,
damageMin = 170,
damageMax = 180,
baseXp = 960,
baseHAM = 2900,
baseHAMmax = 3500,
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 = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + STALKER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_trade_federation_avenger.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 2000000},
{group = "wearables_common", chance = 2000000},
{group = "melee_weapons", chance = 2000000},
{group = "tailor_components", chance = 2000000},
{group = "loot_kit_parts", chance = 2000000}
}
}
},
weapons = {"rebel_weapons_medium"},
conversationTemplate = "",
reactionStf = "@npc_reaction/slang",
attacks = merge(brawlermaster,marksmanmaster)
}
CreatureTemplates:addCreatureTemplate(trade_federation_avenger, "trade_federation_avenger")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/weapon/ranged/droid/droid_probot_ranged.lua | 2 | 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_weapon_ranged_droid_droid_probot_ranged = object_weapon_ranged_droid_shared_droid_probot_ranged:new {
}
ObjectTemplates:addTemplate(object_weapon_ranged_droid_droid_probot_ranged, "object/weapon/ranged/droid/droid_probot_ranged.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/droid/droid_r4_advanced.lua | 1 | 3900 | --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_droid_droid_r4_advanced = object_draft_schematic_droid_shared_droid_r4_advanced:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Deed for: R4 Droid, Advanced Model",
craftingToolTab = 32, -- (See DraftSchemticImplementation.h)
complexity = 25,
size = 1,
xpType = "crafting_droid_general",
xp = 100,
assemblySkill = "droid_assembly",
experimentingSkill = "droid_experimentation",
customizationSkill = "droid_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n"},
ingredientTitleNames = {"base_chassis", "chassis_frame_interface", "general_droid_module", "general_droid_module2", "general_droid_module3", "droid_defensive_module", "droid_defensive_module2"},
ingredientSlotType = {1, 0, 3, 3, 3, 3, 3},
resourceTypes = {"object/tangible/component/droid/shared_r4_droid_chassis.iff", "steel", "object/tangible/component/droid/shared_droid_combat_service_module_base.iff", "object/tangible/component/droid/shared_droid_combat_service_module_base.iff", "object/tangible/component/droid/shared_droid_combat_service_module_base.iff", "object/tangible/component/droid/shared_defensive_module_base.iff", "object/tangible/component/droid/shared_defensive_module_base.iff"},
resourceQuantities = {1, 65, 1, 1, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/deed/pet_deed/deed_r4_advanced_basic.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_droid_r4_advanced, "object/draft_schematic/droid/droid_r4_advanced.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_imperial_officer_m_5.lua | 3 | 2228 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_imperial_officer_m_5 = object_mobile_shared_dressed_imperial_officer_m_5:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_imperial_officer_m_5, "object/mobile/dressed_imperial_officer_m_5.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/screenplays/hondo/buff_terminals.lua | 1 | 1139 | -- Buff Terminals
-- R. Bassett Jr. www.tpot.ca
-- June 2015 (Oiringally July 2014)
--
-- Terminals located insdide Medical Centers
BuffTerminals = ScreenPlay:new {
numberOfActs = 1,
}
registerScreenPlay("BuffTerminals", true)
function BuffTerminals:start()
self:spawnSceneObjects()
end
function BuffTerminals:spawnSceneObjects()
-- Bestine
spawnSceneObject("tatooine", "object/tangible/beta/beta_terminal_wound.iff", 1.1233, 0.184067, 0.0367278, 4005383, 0.790803, 0, 0.61207, 0)
-- Mos Eisley
spawnSceneObject("tatooine", "object/tangible/beta/beta_terminal_wound.iff", 1.1233, 0.184067, 0.0367278, 9655496, 0.790803, 0, 0.61207, 0)
-- Mos Entha
spawnSceneObject("tatooine", "object/tangible/beta/beta_terminal_wound.iff", -21.7355, 0.26, -2.34, 1153586, 0.999413, 0, 0.0342538, 0)
-- Mos Espa
spawnSceneObject("tatooine", "object/tangible/beta/beta_terminal_wound.iff", 1.1233, 0.184067, 0.0367278, 4005424, 0.790803, 0, 0.61207, 0)
-- XP Termina, Mos Espa Cantina
spawnSceneObject("tatooine", "object/tangible/beta/beta_terminal_xp.iff", 27.0829, -0.894995, 8.00572, 1256058, -0.704913, 0, 0.709294, 0)
end
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/items/fish_mithkabob.lua | 2 | 1215 | -----------------------------------------
-- ID: 4398
-- Item: fish_mithkabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 90
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(dsp.effects.FOOD) == true or target:hasStatusEffect(dsp.effects.FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
function onItemUse(target)
target:addStatusEffect(dsp.effects.FOOD,0,0,1800,4398);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_DEX, 1);
target:addMod(MOD_VIT, 2);
target:addMod(MOD_MND, -1);
target:addMod(MOD_FOOD_DEFP, 25);
target:addMod(MOD_FOOD_DEF_CAP, 90);
end;
function onEffectLose(target, effect)
target:delMod(MOD_DEX, 1);
target:delMod(MOD_VIT, 2);
target:delMod(MOD_MND, -1);
target:delMod(MOD_FOOD_DEFP, 25);
target:delMod(MOD_FOOD_DEF_CAP, 90);
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/weapon/wpn_corellian_ag2g_quad_laser.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_tangible_ship_components_weapon_wpn_corellian_ag2g_quad_laser = object_tangible_ship_components_weapon_shared_wpn_corellian_ag2g_quad_laser:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_weapon_wpn_corellian_ag2g_quad_laser, "object/tangible/ship/components/weapon/wpn_corellian_ag2g_quad_laser.iff")
| agpl-3.0 |
epitech-labfree/vlc-1.1-encre | share/lua/playlist/anevia_streams.lua | 112 | 3664 | --[[
$Id$
Parse list of available streams on Anevia Toucan servers.
The URI http://ipaddress:554/list_streams.idp describes a list of
available streams on the server.
Copyright © 2009 M2X BV
Authors: Jean-Paul Saman <jpsaman@videolan.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "list_streams.idp" )
end
-- Parse function.
function parse()
p = {}
_,_,server = string.find( vlc.path, "(.*)/list_streams.idp" )
while true do
line = vlc.readline()
if not line then break end
if string.match( line, "<streams[-]list> </stream[-]list>" ) then
break
elseif string.match( line, "<streams[-]list xmlns=\"(.*)\">" ) then
while true do
line = vlc.readline()
if not line then break end
if string.match( line, "<streamer name=\"(.*)\"> </streamer>" ) then
break;
elseif string.match( line, "<streamer name=\"(.*)\">" ) then
_,_,streamer = string.find( line, "name=\"(.*)\"" )
while true do
line = vlc.readline()
if not line then break end
-- ignore <host name=".." /> tags
-- ignore <port number=".." /> tags
if string.match( line, "<input name=\"(.*)\">" ) then
_,_,path = string.find( line, "name=\"(.*)\"" )
while true do
line = vlc.readline()
if not line then break end
if string.match( line, "<stream id=\"(.*)\" />" ) then
_,_,media = string.find( line, "id=\"(.*)\"" )
video = "rtsp://" .. tostring(server) .. "/" .. tostring(path) .. "/" .. tostring(media)
vlc.msg.dbg( "adding to playlist " .. tostring(video) )
table.insert( p, { path = video; name = media, url = video } )
end
-- end of input tag found
if string.match( line, "</input>" ) then
break
end
end
end
end
if not line then break end
-- end of streamer tag found
if string.match( line, "</streamer>" ) then
break
end
end
if not line then break end
-- end of streams-list tag found
if string.match( line, "</streams-list>" ) then
break
end
end
end
end
return p
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/bantha_hue.lua | 3 | 2156 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_bantha_hue = object_mobile_shared_bantha_hue:new {
}
ObjectTemplates:addTemplate(object_mobile_bantha_hue, "object/mobile/bantha_hue.iff")
| agpl-3.0 |
lehinevych/Dato-Core | src/unity/python/graphlab/lua/pl/file.lua | 32 | 1585 | --- File manipulation functions: reading, writing, moving and copying.
--
-- Dependencies: `pl.utils`, `pl.dir`, `pl.path`
-- @module pl.file
local os = os
local utils = require 'pl.utils'
local dir = require 'pl.dir'
local path = require 'pl.path'
--[[
module ('pl.file',utils._module)
]]
local file = {}
--- return the contents of a file as a string
-- @function file.read
-- @string filename The file path
-- @return file contents
file.read = utils.readfile
--- write a string to a file
-- @function file.write
-- @string filename The file path
-- @string str The string
file.write = utils.writefile
--- copy a file.
-- @function file.copy
-- @string src source file
-- @string dest destination file
-- @bool flag true if you want to force the copy (default)
-- @return true if operation succeeded
file.copy = dir.copyfile
--- move a file.
-- @function file.move
-- @string src source file
-- @string dest destination file
-- @return true if operation succeeded, else false and the reason for the error.
file.move = dir.movefile
--- Return the time of last access as the number of seconds since the epoch.
-- @function file.access_time
-- @string path A file path
file.access_time = path.getatime
---Return when the file was created.
-- @function file.creation_time
-- @string path A file path
file.creation_time = path.getctime
--- Return the time of last modification
-- @function file.modified_time
-- @string path A file path
file.modified_time = path.getmtime
--- Delete a file
-- @function file.delete
-- @string path A file path
file.delete = os.remove
return file
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/cu_pa/lair_cu_pa.lua | 3 | 2207 | --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_cu_pa_lair_cu_pa = object_tangible_lair_cu_pa_shared_lair_cu_pa:new {
}
ObjectTemplates:addTemplate(object_tangible_lair_cu_pa_lair_cu_pa, "object/tangible/lair/cu_pa/lair_cu_pa.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/pt_flocking_glowzees.lua | 3 | 2232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_particle_pt_flocking_glowzees = object_static_particle_shared_pt_flocking_glowzees:new {
}
ObjectTemplates:addTemplate(object_static_particle_pt_flocking_glowzees, "object/static/particle/pt_flocking_glowzees.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | projects/ELIA/_archive/scripts_9.16.2016/steering/MovingEntity.lua | 2 | 4746 |
local getVelocity = function(self)
return self.vVelocity
end
local setVelocity = function(self, velocity)
self.vVelocity = velocity
end
local getMass = function(self)
return self.node:getPhysicsBody():getMass()
end
local getPos = function(self)
return self.node:getWorldTransform():getOrigin()
end
local setPos = function(self, pos)
return self.node:setOrigin(pos)
end
local getSideVector = function(self)
return self.sideVector
end
local getMaxSpeed = function(self)
return self.maxSpeed
end
local setMaxSpeed = function(self, maxSpeed)
self.maxSpeed = maxSpeed
end
local getMaxForce = function(self)
return self.maxForce
end
local setMaxForce = function(self, maxForce)
self.maxForce = maxForce
end
local isSpeedMaxedOut = function(self)
local maxSpeedSq = (self.maxSpeed * self.maxSpeed)
return (maxSpeedSq >= self:getVelocity():length2())
end
local getSpeed = function(self)
return self:getVelocity():length()
end
local getSpeedSq = function(self)
return self:getVelocity():length2()
end
local getHeadingVector = function(self)
return self.headingVector
end
local setHeadingVector = function(self, heading)
assert( (heading:length2() - 1.0) < 0.00001, "")
self.headingVector = heading
self.sideVector = self.headingVector:cross(self.upVector)
end
local rotateHeadingVectorToFacePosition = function(self, target)
assert(false, "not implemented...")
end
local getMaxTurnRate = function(self)
return self.maxTurnRate
end
local setMaxTurnRate = function(self, maxTurnRate)
self.maxTurnRate = maxTurnRate
end
local getSmoothedHeading = function(self)
return self.smoothedHeading
end
local isSmoothingOn = function(self)
return self.smoothingOn
end
local smoothingOn = function(self)
self.smoothingOn = true
end
local smoothingOff = function(self)
self.smoothingOn = false
end
local toggleSmoothing = function(self)
self.smoothingOn = not self.smoothingOn
end
local update = function(self, timeStep)
if not njli.World.getInstance():getScene():getPhysicsWorld():isPaused() then
local oldPos = self:getPos()
local steeringForce = bullet.btVector3(0, 0, 0)
steeringForce = self:getSteeringBehaviors():calculate()
local acceleration = steeringForce / self:getMass()
self:setVelocity(self:getVelocity() + acceleration * timeStep)
self:setVelocity(Truncate(self:getVelocity(), self:getMaxSpeed()))
local newPos = self:getPos() + self:getVelocity() * timeStep
self:setPos(newPos)
if self:getVelocity():length() > 0.00000001 then
self:setHeadingVector(self:getVelocity():normalized())
end
if self:isSmoothingOn() then
end
end
end
local getSteeringBehaviors = function(self)
if self.steeringBehavior == nil then
local SB = require "steering.SteeringBehaviors"
self.steeringBehavior = SB.new(self)
end
return self.steeringBehavior
end
local setTagged = function(self, tagged)
self.tagged = tagged
end
local isTagged = function(self)
return self.tagged
end
local delete = function(self)
end
local methods =
{
getVelocity = getVelocity,
setVelocity = setVelocity,
getMass = getMass,
getPos = getPos,
setPos = setPos,
getSideVector = getSideVector,
getMaxSpeed = getMaxSpeed,
setMaxSpeed = setMaxSpeed,
getMaxForce = getMaxForce,
setMaxForce = setMaxForce,
isSpeedMaxedOut = isSpeedMaxedOut,
getSpeed = getSpeed,
getSpeedSq = getSpeedSq,
getHeadingVector = getHeadingVector,
setHeadingVector = setHeadingVector,
rotateHeadingVectorToFacePosition = rotateHeadingVectorToFacePosition,
maxTurnRate = maxTurnRate,
setMaxTurnRate = setMaxTurnRate,
getSmoothedHeading = getSmoothedHeading,
isSmoothingOn = isSmoothingOn,
smoothingOn = smoothingOn,
smoothingOff = smoothingOff,
toggleSmoothing = toggleSmoothing,
update = update,
getSteeringBehaviors = getSteeringBehaviors,
setTagged = setTagged,
isTagged = isTagged,
__gc = delete
}
local new = function(node, maxSpeed, headingVector, upVector, turnRate, maxForce)
local node = node
local maxSpeed = maxSpeed
local headingVector = headingVector
local upVector = upVector
local maxTurnRate = turnRate
local maxForce = maxForce
local headingSmoother = {}
local smoothedHeading = bullet.btVector3(0,0,0)
local smoothingOn = true
local properties =
{
node = node,
maxSpeed = maxSpeed,
headingVector = headingVector,
upVector = upVector,
sideVector = headingVector:cross(upVector),
maxTurnRate = maxTurnRate,
maxForce = maxForce,
headingSmoother = headingSmoother,
smoothedHeading = smoothedHeading,
smoothingOn = smoothingOn,
steeringBehavior = nil,
vVelocity = bullet.btVector3(0, 0, 0),
tagged = false,
}
return setmetatable(properties, {__index = methods})
end
return {
new = new,
} | mit |
Whitechaser/darkstar | scripts/zones/La_Theine_Plateau/mobs/Lumbering_Lambert.lua | 4 | 1069 | -----------------------------------
-- Area: La Theine Plateau
-- MOB: Lumbering Lambert
-----------------------------------
require("scripts/zones/La_Theine_Plateau/MobIDs");
-----------------------------------
function onMobSpawn(mob)
end;
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local mobID = mob:getID();
local chanceForBaldurf = 0;
if (GetServerVariable("[POP]Bloodtear_Baldurf") <= os.time()) then
chanceForBaldurf = math.random(1,100);
end
if (chanceForBaldurf > 95 and GetMobAction(Battering_Ram) == ACTION_NONE and GetMobAction(Bloodtear_Baldurf) == ACTION_NONE) then
UpdateNMSpawnPoint(Bloodtear_Baldurf);
GetMobByID(Bloodtear_Baldurf):setRespawnTime(GetMobRespawnTime(Battering_Ram));
DisallowRespawn(mobID, true);
else
GetMobByID(Battering_Ram):setRespawnTime(GetMobRespawnTime(Battering_Ram));
DisallowRespawn(mobID, true);
end
SetServerVariable("[POP]Lumbering_Lambert", os.time() + math.random(3600, 28800)); -- 1-8hours repop
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/loot/groups/junk.lua | 1 | 3397 | --Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
-- Legend of Hondo
-- "Junk" is the go-to generic loot group for mobs that otherwise would not drop loot.
junk = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
-- Junk/Misc Items (25% chance)
{itemTemplate = "broken_decryptor", weight = 62500},
{itemTemplate = "camera", weight = 62500},
{itemTemplate = "corrupt_datadisk", weight = 62500},
{itemTemplate = "corsec_id_badge", weight = 62500},
{itemTemplate = "damaged_datapad", weight = 62500},
{itemTemplate = "decorative_bowl", weight = 62500},
{itemTemplate = "decorative_shisa", weight = 62500},
{itemTemplate = "dermal_analyzer", weight = 62500},
{itemTemplate = "dud_firework_grey", weight = 62500},
{itemTemplate = "dud_firework_red", weight = 62500},
{itemTemplate = "empty_cage", weight = 62500},
{itemTemplate = "expensive_basket", weight = 62500},
{itemTemplate = "expired_ticket", weight = 62500},
{itemTemplate = "hyperdrive_part", weight = 62500},
{itemTemplate = "ledger", weight = 62500},
{itemTemplate = "locked_briefcase", weight = 62500},
{itemTemplate = "locked_container", weight = 62500},
{itemTemplate = "loudspeaker", weight = 62500},
{itemTemplate = "palm_frond", weight = 62500},
{itemTemplate = "photographic_image", weight = 62500},
{itemTemplate = "recorded_image_1", weight = 62500},
{itemTemplate = "recording_rod", weight = 62500},
{itemTemplate = "slave_collar", weight = 62500},
{itemTemplate = "used_ticket", weight = 62500},
{itemTemplate = "worklight", weight = 62500},
{itemTemplate = "satchel", weight = 62500},
{itemTemplate = "resource_deed", weight = 62500},
{itemTemplate = "force_color_crystal", weight = 62500},
{itemTemplate = "jedi_holocron_dark", weight = 62500},
{itemTemplate = "jedi_holocron_light", weight = 62500},
{itemTemplate = "picture_printer", weight = 62500},
{itemTemplate = "furniture_cheap_armoire", weight = 62500},
{itemTemplate = "furniture_cheap_bookcase", weight = 62500},
{itemTemplate = "furniture_cheap_cabinet", weight = 62500},
{itemTemplate = "furniture_cheap_chair", weight = 62500},
{itemTemplate = "furniture_cheap_chest", weight = 62500},
{itemTemplate = "furniture_cheap_couch", weight = 62500},
{itemTemplate = "furniture_potted_plants_sml_s03", weight = 62500},
{itemTemplate = "furniture_potted_plants_sml_s04", weight = 62500},
{itemTemplate = "furniture_potted_plants_sml_s05", weight = 62500},
-- Groups of Items (75% Chance total)
-- Armor Attachments (10% chance)
{groupTemplate = "armor_attachments", weight = 1000000},
-- Clothing Attachments (10% chance)
{groupTemplate = "clothing_attachments", weight = 1000000},
-- Weapons (10% chance)
{groupTemplate = "weapons_all", weight = 1000000},
-- Clothing (10% chance)
{groupTemplate = "wearables_all", weight = 1000000},
-- Armor (10% chance)
{groupTemplate = "armor_all", weight = 1000000},
-- Loot Kit Parts (10% chance)
{groupTemplate = "loot_kit_parts", weight = 1000000},
-- Tailor Components (5% chance)
{groupTemplate = "tailor_components", weight = 500000},
-- Recycler Parts (5% chance)
{groupTemplate = "recycler_parts", weight = 500000},
-- Skill Buffs (5% chance)
{groupTemplate = "skill_buffs", weight = 500000},
}
}
addLootGroupTemplate("junk", junk)
| agpl-3.0 |
vansatchen/dlink327 | releases/sources/Domoticz/domoticz/scripts/dzVents/runtime/tests/tstData.lua | 5 | 9499 | local testData = {
domoticzData = {
[1] = {
["id"] = 1,
["name"] = "device1",
["description"] = "Description 1";
["batteryLevel"] = 10,
["signalLevel"] = 10,
["subType"] = "Zone";
["timedOut"] = true,
["switchType"] = "Contact",
["switchTypeValue"] = 2,
["lastUpdate"] = "2016-03-20 12:23:00";
["data"] = {
["_state"] = "On",
temperature = 37,
dewpoint = 55,
humidity = 66,
setPoint = 2,
["deviceType"] = "Heating",
["hardwareName"] = "hw1",
["hardwareType"] = "ht1",
["hardwareTypeValue"] = 1;
["hardwareID"] = 1,
['unit'] = 1,
heatingMode = '3'
};
["deviceID"] = "__1",
["rawData"] = {
[1] = "1",
[2] = '2',
[3] = '3'
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[2] = {
["id"] = 2,
["name"] = "device2",
["description"] = "Description 2";
["batteryLevel"] = 20,
["signalLevel"] = 20,
["subType"] = "Lux";
["deviceType"] = "Lux",
["timedOut"] = false,
["switchType"] = "Motion Sensor",
["switchTypeValue"] = 8,
["lastUpdate"] = "2016-03-20 12:23:00";
["data"] = {
["_state"] = "Off",
["hardwareName"] = "hw2",
["hardwareType"] = "ht2",
["hardwareTypeValue"] = 2;
["hardwareID"] = 2,
['unit'] = 1,
temperature = 12,
dewpoint = 66,
humidity = 67,
--lux = 4
};
["deviceID"] = "__2",
["rawData"] = {
[1] = "4",
[2] = '5',
[3] = '6'
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[3] = {
["id"] = 3,
["name"] = "device3",
["description"] = "Description 3";
["batteryLevel"] = 30,
["signalLevel"] = 30,
["subType"] = "Energy";
["deviceType"] = "P1 Smart Meter",
["timedOut"] = false,
["switchType"] = "On/Off",
["switchTypeValue"] = 0,
["lastUpdate"] = "2016-03-20 12:23:00";
["data"] = {
["_state"] = 120,
["hardwareName"] = "hw3",
["hardwareType"] = "ht3",
["hardwareTypeValue"] = 3;
["hardwareID"] = 3,
['unit'] = 1,
WActual = 11,
uv = 23
};
["deviceID"] = "__3",
["rawData"] = {
[1] = "7",
[2] = '8',
[3] = '9',
[4] = '10',
[5] = '11'
},
["baseType"] = "device";
["changed"] = false;
["changedAttribute"] = nil --tbd
},
[4] = {
["id"] = 4,
["name"] = "device4",
["description"] = "Description 4";
["batteryLevel"] = 40,
["signalLevel"] = 0,
["subType"] = "SetPoint";
["deviceType"] = "Thermostat",
["timedOut"] = false,
["switchType"] = "Security",
["switchTypeValue"] = 0,
["lastUpdate"] = "2016-03-20 12:23:00";
["data"] = {
["_state"] = "Set Level 5%",
level = 5,
barometer = 333,
["hardwareName"] = "hw4",
["hardwareType"] = "ht4",
["hardwareTypeValue"] = 4;
["hardwareID"] = 4,
['unit'] = 1,
utility = 123,
weather = 'Nice',
rainLastHour = 12,
rain = 666,
setPoint = 10
};
["deviceID"] = "__4",
["rawData"] = {
[1] = "10",
[2] = '11',
[3] = '12'
},
["baseType"] = "device";
["changed"] = false;
["changedAttribute"] = nil --tbd
},
[5] = {
["id"] = 5,
["name"] = "device5",
["description"] = "Description 5";
["batteryLevel"] = 40,
["signalLevel"] = 0,
["subType"] = "kWh";
["deviceType"] = "General",
["timedOut"] = false,
["switchType"] = "Security",
["switchTypeValue"] = 0,
["lastUpdate"] = "2017-04-18 20:15:23";
["data"] = {
["_state"] = "On",
counterToday = '1.234 kWh',
counter = '567 kWh',
["hardwareName"] = "hw5",
["hardwareType"] = "ht5",
["hardwareTypeValue"] = 5;
["hardwareID"] = 0,
['unit'] = 1,
WhTotal = 14,
WActual = 13,
WhToday = 1.234,
level = 10,
counterTotal = '567 kWh'
};
["deviceID"] = "__5",
["rawData"] = {
[1] = "13",
[2] = '14',
[3] = '15'
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[6] = {
["id"] = 6,
["name"] = "device6",
["description"] = "Description 6";
["batteryLevel"] = 40,
["signalLevel"] = 0,
["subType"] = "Electric";
["deviceType"] = "Usage",
["timedOut"] = false,
["switchType"] = "",
["switchTypeValue"] = 0,
["lastUpdate"] = "2017-04-18 20:15:23";
["data"] = {
["hardwareName"] = "hw4",
["hardwareType"] = "ht4",
["hardwareTypeValue"] = 4;
["hardwareID"] = 4,
['unit'] = 1,
["value"] = 16.5, -- ?
};
["deviceID"] = "__6",
["rawData"] = {},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[7] = {
["id"] = 7,
["name"] = "device7",
["description"] = "";
["batteryLevel"] = 10,
["signalLevel"] = 10,
["subType"] = "";
["deviceType"] = "",
["timedOut"] = true,
["switchType"] = "",
["switchTypeValue"] = 0,
["lastUpdate"] = "2017-04-18 20:15:23";
["data"] = {
["hardwareName"] = "",
["hardwareType"] = "",
["hardwareTypeValue"] = 0;
["hardwareID"] = 0,
["_state"] = 16.5,
['unit'] = 1,
WActual = 16.5
};
["deviceID"] = "__7",
["rawData"] = {
[1] = "16.5"
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[8] = {
["id"] = 8,
["name"] = "device8",
["description"] = "";
["batteryLevel"] = 10,
["signalLevel"] = 10,
["subType"] = "Text";
["deviceType"] = "General",
["timedOut"] = true,
["switchType"] = "",
["switchTypeValue"] = 0,
["lastUpdate"] = "2017-04-18 20:15:23";
["data"] = {
["hardwareName"] = "",
["hardwareType"] = "",
["hardwareTypeValue"] = 0;
["hardwareID"] = 0,
["_state"] = 16.5,
['unit'] = 1,
text = 'Blah'
};
["deviceID"] = "__8",
["rawData"] = {
[1] = "16.5"
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[9] = {
["id"] = 9,
["name"] = "device9", -- double name
["description"] = "";
["batteryLevel"] = 10,
["signalLevel"] = 10,
["subType"] = "Text";
["deviceType"] = "General",
["timedOut"] = true,
["switchType"] = "",
["switchTypeValue"] = 0,
["lastUpdate"] = "2017-04-18 20:15:23";
["data"] = {
["hardwareName"] = "",
["hardwareType"] = "",
["hardwareTypeValue"] = 0;
["hardwareID"] = 0,
["_state"] = 16.5,
['unit'] = 1,
text = 'Blah'
};
["deviceID"] = "__9",
["rawData"] = {
[1] = "16.5"
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
[10] = {
["id"] = 10,
["name"] = "device9", -- double name
["description"] = "";
["batteryLevel"] = 10,
["signalLevel"] = 10,
["subType"] = "Text";
["deviceType"] = "General",
["timedOut"] = true,
["switchType"] = "",
["switchTypeValue"] = 0,
["lastUpdate"] = "2017-04-18 20:15:23";
["data"] = {
["hardwareName"] = "",
["hardwareType"] = "",
["hardwareTypeValue"] = 0;
["hardwareID"] = 0,
["_state"] = 16.5,
['unit'] = 1,
text = 'Blah'
};
["deviceID"] = "__10",
["rawData"] = {
[1] = "16.5"
},
["baseType"] = "device";
["changed"] = true;
["changedAttribute"] = nil --tbd
},
--- vars
[11] = {
["id"] = 1,
["name"] = "x",
["changed"] = true,
["variableType"] = 'integer',
["baseType"] = "uservariable";
["lastUpdate"] = "2017-04-18 20:15:23";
data = {
["value"] = 1
}
},
[12] = {
["id"] = 2,
["name"] = "y",
["changed"] = false,
["variableType"] = 'float',
["baseType"] = "uservariable";
["lastUpdate"] = "2017-04-18 20:16:23";
data = { ["value"] = 2.3 }
},
[13] = {
["id"] = 3,
["name"] = "z",
["changed"] = true,
["variableType"] = 'string',
["baseType"] = "uservariable";
["lastUpdate"] = "2017-04-18 20:16:23";
data = { ["value"] = 'some value'}
},
[14] = {
["id"] = 4,
["name"] = "a",
["changed"] = true,
["variableType"] = 'date',
["baseType"] = "uservariable";
["lastUpdate"] = "2017-04-18 20:16:23";
data = { ["value"] = '3/12/2017' }
},
[15] = {
["id"] = 5,
["name"] = "b",
["changed"] = true,
["variableType"] = 'time',
["baseType"] = "uservariable";
["lastUpdate"] = "2017-04-18 20:16:23";
data = { ["value"] = '19:34' }
},
[16] = {
["id"] = 6,
["name"] = "var with spaces",
["changed"] = true,
["variableType"] = 'string',
["baseType"] = "uservariable";
["lastUpdate"] = "2017-04-18 20:16:23";
data = { ["value"] = 'some value' }
},
--- scenes and groups
[17] = {
["id"] = 1;
["baseType"] = "scene";
["description"] = 'Descr scene 1',
["name"] = "Scene1";
["data"] = {
_state = "Off"
},
["lastUpdate"] = "2017-04-18 15:31:19";
},
[18] = {
["id"] = 3;
["baseType"] = "group";
["description"] = 'Descr group 1',
["name"] = "Group1";
["data"] = {
_state = "On"
},
["lastUpdate"] = "2017-04-18 15:31:26";
},
[19] = {
["id"] = 2;
["baseType"] = "scene";
["description"] = 'Descr scene 2',
["name"] = "Scene2";
["data"] = {
_state = "Off"
},
["lastUpdate"] = "2017-04-19 20:31:50";
},
[20] = {
["id"] = 4;
["baseType"] = "group";
["description"] = 'Descr group 2',
["name"] = "Group2";
["data"] = {
_state = "Mixed"
},
["lastUpdate"] = "2017-04-19 20:31:57";
},
-- groups
}
}
return testData | gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/space/special_loot/objects.lua | 3 | 19412 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_space_special_loot_shared_encoded_document = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_encoded_document.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:encoded_document",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:encoded_document",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1384769825,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_encoded_document, "object/tangible/space/special_loot/shared_encoded_document.iff")
object_tangible_space_special_loot_shared_firespray_schematic = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_tool_engineering_analysis_board.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@craft_item_ingredients_d:firespray_schematic",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@craft_item_ingredients_n:firespray_schematic",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3265273647,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic, "object/tangible/space/special_loot/shared_firespray_schematic.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part1 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part1",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3529502508,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part1, "object/tangible/space/special_loot/shared_firespray_schematic_part1.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part2 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part2",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 155731899,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part2, "object/tangible/space/special_loot/shared_firespray_schematic_part2.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part3 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part3.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part3",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1078272054,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part3, "object/tangible/space/special_loot/shared_firespray_schematic_part3.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part4 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part4.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part4",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3148221218,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part4, "object/tangible/space/special_loot/shared_firespray_schematic_part4.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part5 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part5.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part5",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4071320751,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part5, "object/tangible/space/special_loot/shared_firespray_schematic_part5.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part6 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part6.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part6",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 700236856,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part6, "object/tangible/space/special_loot/shared_firespray_schematic_part6.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part7 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part7.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part7",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1622254517,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part7, "object/tangible/space/special_loot/shared_firespray_schematic_part7.iff")
object_tangible_space_special_loot_shared_firespray_schematic_part8 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/space/special_loot/shared_firespray_schematic_part8.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_data_disk.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@space_item_d:firespray_schematic_part",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@space_item_n:firespray_schematic_part8",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3669725095,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_space_special_loot_shared_firespray_schematic_part8, "object/tangible/space/special_loot/shared_firespray_schematic_part8.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/furniture/modern/serverobjects.lua | 3 | 4360 | --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/furniture/modern/armoire_modern_style_01.lua")
includeFile("tangible/furniture/modern/bar_counter_s1.lua")
includeFile("tangible/furniture/modern/bar_piece_curve_s1.lua")
includeFile("tangible/furniture/modern/bar_piece_curve_s2.lua")
includeFile("tangible/furniture/modern/bar_piece_straight_s1.lua")
includeFile("tangible/furniture/modern/bar_piece_straight_s2.lua")
includeFile("tangible/furniture/modern/bestine_quest_rug.lua")
includeFile("tangible/furniture/modern/bookcase_modern_style_01.lua")
includeFile("tangible/furniture/modern/cabinet_modern_style_01.lua")
includeFile("tangible/furniture/modern/chair_modern_style_01.lua")
includeFile("tangible/furniture/modern/chest_modern_style_01.lua")
includeFile("tangible/furniture/modern/coffee_table_modern_style_01.lua")
includeFile("tangible/furniture/modern/coffee_table_modern_style_02.lua")
includeFile("tangible/furniture/modern/couch_modern_style_01.lua")
includeFile("tangible/furniture/modern/couch_modern_style_02.lua")
includeFile("tangible/furniture/modern/dining_table_modern_style_01.lua")
includeFile("tangible/furniture/modern/end_table_large_modern_style_01.lua")
includeFile("tangible/furniture/modern/end_table_small_modern_style_01.lua")
includeFile("tangible/furniture/modern/love_seat_modern_style_01.lua")
includeFile("tangible/furniture/modern/rug_oval_lg_s01.lua")
includeFile("tangible/furniture/modern/rug_oval_m_s02.lua")
includeFile("tangible/furniture/modern/rug_oval_sml_s01.lua")
includeFile("tangible/furniture/modern/rug_rect_lg_s01.lua")
includeFile("tangible/furniture/modern/rug_rect_lg_s02.lua")
includeFile("tangible/furniture/modern/rug_rect_m_s01.lua")
includeFile("tangible/furniture/modern/rug_rect_sml_s01.lua")
includeFile("tangible/furniture/modern/rug_rnd_lg_s01.lua")
includeFile("tangible/furniture/modern/rug_rnd_m_s01.lua")
includeFile("tangible/furniture/modern/rug_rnd_sml_s01.lua")
includeFile("tangible/furniture/modern/rug_sqr_m_s01.lua")
includeFile("tangible/furniture/modern/searchable_desk_01.lua")
includeFile("tangible/furniture/modern/searchable_desk_02.lua")
includeFile("tangible/furniture/modern/searchable_squill_lair_01.lua")
includeFile("tangible/furniture/modern/sofa_chair_modern_style_01.lua")
includeFile("tangible/furniture/modern/table_modern_style_01.lua")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/destructible/destructible_tato_drum_storage1.lua | 3 | 2344 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_destructible_destructible_tato_drum_storage1 = object_static_destructible_shared_destructible_tato_drum_storage1:new {
pvpStatusBitmask = ATTACKABLE,
optionsBitmask = 0
}
ObjectTemplates:addTemplate(object_static_destructible_destructible_tato_drum_storage1, "object/static/destructible/destructible_tato_drum_storage1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/armor/composite/serverobjects.lua | 3 | 2753 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/wearables/armor/composite/armor_composite_bicep_l.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_bicep_r.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_boots.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_bracer_l.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_bracer_r.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_chest_plate.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_gloves.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_helmet.lua")
includeFile("tangible/wearables/armor/composite/armor_composite_leggings.lua")
| agpl-3.0 |
raposalorx/Critology | Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua | 1 | 20487 |
--[[
AceConfigCmd-3.0
Handles commandline optionstable access
REQUIRES: AceConsole-3.0 for command registration (loaded on demand)
]]
-- TODO: handle disabled / hidden
-- TODO: implement handlers for all types
-- TODO: plugin args
local MAJOR, MINOR = "AceConfigCmd-3.0", 4
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
lib.commands = lib.commands or {}
local commands = lib.commands
local cfgreg = LibStub("AceConfigRegistry-3.0")
local AceConsole -- LoD
local AceConsoleName = "AceConsole-3.0"
local L = setmetatable({}, { -- TODO: replace with proper locale
__index = function(self,k) return k end
})
local function print(msg)
(SELECTED_CHAT_FRAME or DEFAULT_CHAT_FRAME):AddMessage(msg)
end
-- pickfirstset() - picks the first non-nil value and returns it
local function pickfirstset(...)
for i=1,select("#",...) do
if select(i,...)~=nil then
return select(i,...)
end
end
end
-- err() - produce real error() regarding malformed options tables etc
local function err(info,inputpos,msg )
local cmdstr=" "..strsub(info.input, 1, inputpos-1)
error(MAJOR..": /" ..info[0] ..cmdstr ..": "..(msg or "malformed options table"), 2)
end
-- usererr() - produce chatframe message regarding bad slash syntax etc
local function usererr(info,inputpos,msg )
local cmdstr=strsub(info.input, 1, inputpos-1);
print("/" ..info[0] .. " "..cmdstr ..": "..(msg or "malformed options table"))
end
-- callmethod() - call a given named method (e.g. "get", "set") with given arguments
local function callmethod(info, inputpos, tab, methodtype, ...)
local method = info[methodtype]
if not method then
err(info, inputpos, "'"..methodtype.."': not set")
end
info.arg = tab.arg
info.option = tab
info.type = tab.type
if type(method)=="function" then
return method(info, ...)
elseif type(method)=="string" then
if type(info.handler[method])~="function" then
err(info, inputpos, "'"..methodtype.."': '"..method.."' is not a member function of "..tostring(info.handler))
end
return info.handler[method](info.handler, info, ...)
else
assert(false) -- type should have already been checked on read
end
end
-- callfunction() - call a given named function (e.g. "name", "desc") with given arguments
local function callfunction(info, tab, methodtype, ...)
local method = tab[methodtype]
info.arg = tab.arg
info.option = tab
info.type = tab.type
if type(method)=="function" then
return method(info, ...)
else
assert(false) -- type should have already been checked on read
end
end
-- do_final() - do the final step (set/execute) along with validation and confirmation
local function do_final(info, inputpos, tab, methodtype, ...)
if info.validate then
local res = callmethod(info,inputpos,tab,"validate",...)
if type(res)=="string" then
usererr(info, inputpos, "'"..strsub(info.input, inputpos).."' - "..res)
return
end
end
-- console ignores .confirm
callmethod(info,inputpos,tab,methodtype, ...)
end
-- getparam() - used by handle() to retreive and store "handler", "get", "set", etc
local function getparam(info, inputpos, tab, depth, paramname, types, errormsg)
local old,oldat = info[paramname], info[paramname.."_at"]
local val=tab[paramname]
if val~=nil then
if val==false then
val=nil
elseif not types[type(val)] then
err(info, inputpos, "'" .. paramname.. "' - "..errormsg)
end
info[paramname] = val
info[paramname.."_at"] = depth
end
return old,oldat
end
-- iterateargs(tab) - custom iterator that iterates both t.args and t.plugins.*
local dummytable={}
local function iterateargs(tab)
if not tab.plugins then
return pairs(tab.args)
end
local argtabkey,argtab=next(tab.plugins)
local v
return function(_, k)
while argtab do
k,v = next(argtab, k)
if k then return k,v end
if argtab==tab.args then
argtab=nil
else
argtabkey,argtab = next(tab.plugins, argtabkey)
if not argtabkey then
argtab=tab.args
end
end
end
end
end
local function showhelp(info, inputpos, tab, noHead)
if not noHead then
print("|cff33ff99"..info.appName.."|r: Arguments to |cffffff78/"..info[0].."|r "..strsub(info.input,1,inputpos-1)..":")
end
local sortTbl = {} -- [1..n]=name
local refTbl = {} -- [name]=tableref
for k,v in iterateargs(tab) do
if not refTbl[k] then -- a plugin overriding something in .args
table.insert(sortTbl, k)
refTbl[k] = v
end
end
table.sort(sortTbl, function(one, two)
local o1 = refTbl[one].order or 100
local o2 = refTbl[two].order or 100
if type(o1) == "function" or type(o1) == "string" then
info.order = o1
info[#info+1] = one
o1 = callmethod(info, inputpos, refTbl[one], "order")
info[#info] = nil
info.order = nil
end
if type(o2) == "function" or type(o1) == "string" then
info.order = o2
info[#info+1] = two
o2 = callmethod(info, inputpos, refTbl[two], "order")
info[#info] = nil
info.order = nil
end
if o1<0 and o2<0 then return o1<o2 end
if o2<0 then return true end
if o1<0 then return false end
if o1==o2 then return tostring(one)<tostring(two) end -- compare names
return o1<o2
end)
for _,k in ipairs(sortTbl) do
local v = refTbl[k]
if not pickfirstset(v.cmdHidden, v.hidden, false) then
-- recursively show all inline groups
local name, desc = v.name, v.desc
if type(name) == "function" then
name = callfunction(info, v, 'name')
end
if type(desc) == "function" then
desc = callfunction(info, v, 'desc')
end
if v.type == "group" and pickfirstset(v.cmdInline, v.inline, false) then
print(" "..(desc or name)..":")
showhelp(info, inputpos, v, true)
else
print(" |cffffff78"..k.."|r - "..(desc or name or ""))
end
end
end
end
local function keybindingValidateFunc(text)
if text == nil or text == "NONE" then
return nil
end
text = text:upper()
local shift, ctrl, alt
local modifier
while true do
if text == "-" then
break
end
modifier, text = strsplit('-', text, 2)
if text then
if modifier ~= "SHIFT" and modifier ~= "CTRL" and modifier ~= "ALT" then
return false
end
if modifier == "SHIFT" then
if shift then
return false
end
shift = true
end
if modifier == "CTRL" then
if ctrl then
return false
end
ctrl = true
end
if modifier == "ALT" then
if alt then
return false
end
alt = true
end
else
text = modifier
break
end
end
if text == "" then
return false
end
if not text:find("^F%d+$") and text ~= "CAPSLOCK" and text:len() ~= 1 and (text:byte() < 128 or text:len() > 4) and not _G["KEY_" .. text] then
return false
end
local s = text
if shift then
s = "SHIFT-" .. s
end
if ctrl then
s = "CTRL-" .. s
end
if alt then
s = "ALT-" .. s
end
return s
end
-- constants used by getparam() calls below
local handlertypes = {["table"]=true}
local handlermsg = "expected a table"
local functypes = {["function"]=true, ["string"]=true}
local funcmsg = "expected function or member name"
-- handle() - selfrecursing function that processes input->optiontable
-- - depth - starts at 0
-- - retfalse - return false rather than produce error if a match is not found (used by inlined groups)
local function handle(info, inputpos, tab, depth, retfalse)
if not(type(tab)=="table" and type(tab.type)=="string") then err(info,inputpos) end
-------------------------------------------------------------------
-- Grab hold of handler,set,get,func,etc if set (and remember old ones)
-- Note that we do NOT validate if method names are correct at this stage,
-- the handler may change before they're actually used!
local oldhandler,oldhandler_at = getparam(info,inputpos,tab,depth,"handler",handlertypes,handlermsg)
local oldset,oldset_at = getparam(info,inputpos,tab,depth,"set",functypes,funcmsg)
local oldget,oldget_at = getparam(info,inputpos,tab,depth,"get",functypes,funcmsg)
local oldfunc,oldfunc_at = getparam(info,inputpos,tab,depth,"func",functypes,funcmsg)
local oldvalidate,oldvalidate_at = getparam(info,inputpos,tab,depth,"validate",functypes,funcmsg)
local oldconfirm,oldconfirm_at = getparam(info,inputpos,tab,depth,"confirm",functypes,funcmsg)
-------------------------------------------------------------------
-- Act according to .type of this table
if tab.type=="group" then
------------ group --------------------------------------------
if type(tab.args)~="table" then err(info, inputpos) end
if tab.plugins and type(tab.plugins)~="table" then err(info,inputpos) end
-- grab next arg from input
local _,nextpos,arg = string.find(info.input, " *([^ ]+) *", inputpos)
if not arg then
showhelp(info, inputpos, tab)
return
end
nextpos=nextpos+1
-- loop .args and try to find a key with a matching name
for k,v in iterateargs(tab) do
if not(type(k)=="string" and type(v)=="table" and type(v.type)=="string") then err(info,inputpos, "options table child '"..tostring(k).."' is malformed") end
-- is this child an inline group? if so, traverse into it
if v.type=="group" and pickfirstset(v.cmdInline, v.inline, false) then
info[depth+1] = k
if handle(info, inputpos, v, depth+1, true)==false then
info[depth+1] = nil
-- wasn't found in there, but that's ok, we just keep looking down here
else
return -- done, name was found in inline group
end
-- matching name and not a inline group
elseif strlower(arg)==strlower(k) then
info[depth+1] = k
return handle(info,nextpos,v,depth+1)
end
end
-- no match
if retfalse then
-- restore old infotable members and return false to indicate failure
info.handler,info.handler_at = oldhandler,oldhandler_at
info.set,info.set_at = oldset,oldset_at
info.get,info.get_at = oldget,oldget_at
info.func,info.func_at = oldfunc,oldfunc_at
info.validate,info.validate_at = oldvalidate,oldvalidate_at
info.confirm,info.confirm_at = oldconfirm,oldconfirm_at
return false
end
-- couldn't find the command, display error
usererr(info, inputpos, "'"..arg.."' - " .. L["unknown argument"])
return
end
local str = strsub(info.input,inputpos);
if tab.type=="execute" then
------------ execute --------------------------------------------
do_final(info, inputpos, tab, "func")
elseif tab.type=="input" then
------------ input --------------------------------------------
local res = true
if tab.pattern then
if not(type(tab.pattern)=="string") then err(info, inputpos, "'pattern' - expected a string") end
if not strmatch(str, tab.pattern) then
usererr(info, inputpos, "'"..str.."' - " .. L["invalid input"])
return
end
end
do_final(info, inputpos, tab, "set", str)
elseif tab.type=="toggle" then
------------ toggle --------------------------------------------
local b
local str = strtrim(strlower(str))
if str=="" then
b = callmethod(info, inputpos, tab, "get")
if tab.tristate then
--cycle in true, nil, false order
if b then
b = nil
elseif b == nil then
b = false
else
b = true
end
else
b = not b
end
elseif str==L["on"] then
b = true
elseif str==L["off"] then
b = false
elseif tab.tristate and str==L["default"] then
b = nil
else
if tab.tristate then
usererr(info, inputpos, format(L["'%s' - expected 'on', 'off' or 'default', or no argument to toggle."], str))
else
usererr(info, inputpos, format(L["'%s' - expected 'on' or 'off', or no argument to toggle."], str))
end
return
end
do_final(info, inputpos, tab, "set", b)
elseif tab.type=="range" then
------------ range --------------------------------------------
local val = tonumber(str)
if not val then
usererr(info, inputpos, "'"..str.."' - "..L["expected number"])
return
end
if type(info.step)=="number" then
val = val- (val % info.step)
end
if type(info.min)=="number" and val<info.min then
usererr(info, inputpos, val.." - "..format(L["must be equal to or higher than %s"], tostring(info.min)) )
return
end
if type(info.max)=="number" and val>info.max then
usererr(info, inputpos, val.." - "..format(L["must be equal to or lower than %s"], tostring(info.max)) )
return
end
do_final(info, inputpos, tab, "set", val)
elseif tab.type=="select" then
------------ select ------------------------------------
local str = strtrim(strlower(str))
if str == "" then
--TODO: Show current selection and possible values
return
end
local values = tab.values
if type(values) == "function" or type(values) == "string" then
info.values = values
values = callmethod(info, inputpos, tab, "values")
info.values = nil
end
local ok
for k,v in pairs(values) do
if strlower(k)==str then
str = k -- overwrite with key (in case of case mismatches)
ok = true
break
end
end
if not ok then
usererr(info, inputpos, "'"..str.."' - "..L["unknown selection"])
return
end
do_final(info, inputpos, tab, "set", str)
elseif tab.type=="multiselect" then
------------ multiselect -------------------------------------------
local str = strtrim(strlower(str))
if str == "" then
--TODO: Show current values
return
end
local values = tab.values
if type(values) == "function" or type(values) == "string" then
info.values = values
values = callmethod(info, inputpos, tab, "values")
info.values = nil
end
--build a table of the selections, checking that they exist
--parse for =on =off =default in the process
--table will be key = true for options that should toggle, key = [on|off|default] for options to be set
local sels = {}
for v in string.gmatch(str, "[^ ]+") do
--parse option=on etc
local opt, val = string.match(v,'(.+)=(.+)')
--get option if toggling
if not opt then
opt = v
end
--check that the opt is valid
local ok
for k,v in pairs(values) do
if strlower(k)==opt then
opt = k -- overwrite with key (in case of case mismatches)
ok = true
break
end
end
if not ok then
usererr(info, inputpos, "'"..opt.."' - "..L["unknown selection"])
return
end
--check that if val was supplied it is valid
if val then
if val == L["on"] or val == L["off"] or (tab.tristate and val == L["default"]) then
--val is valid insert it
sels[opt] = val
else
if tab.tristate then
usererr(info, inputpos, format(L["'%s' '%s' - expected 'on', 'off' or 'default', or no argument to toggle."], v, val))
else
usererr(info, inputpos, format(L["'%s' '%s' - expected 'on' or 'off', or no argument to toggle."], v, val))
end
return
end
else
-- no val supplied, toggle
sels[opt] = true
end
end
for opt, val in pairs(sels) do
local newval
if (val == true) then
--toggle the option
local b = callmethod(info, inputpos, tab, "get", opt)
if tab.tristate then
--cycle in true, nil, false order
if b then
b = nil
elseif b == nil then
b = false
else
b = true
end
else
b = not b
end
newval = b
else
--set the option as specified
if val==L["on"] then
newval = true
elseif val==L["off"] then
newval = false
elseif val==L["default"] then
newval = nil
end
end
do_final(info, inputpos, tab, "set", opt, newval)
end
elseif tab.type=="color" then
------------ color --------------------------------------------
local str = strtrim(strlower(str))
if str == "" then
--TODO: Show current value
return
end
local r, g, b, a
if tab.hasAlpha then
if str:len() == 8 and str:find("^%x*$") then
--parse a hex string
r,g,b,a = tonumber(str:sub(1, 2), 16) / 255, tonumber(str:sub(3, 4), 16) / 255, tonumber(str:sub(5, 6), 16) / 255, tonumber(str:sub(7, 8), 16) / 255
else
--parse seperate values
r,g,b,a = str:match("^([%d%.]+) ([%d%.]+) ([%d%.]+) ([%d%.]+)$")
r,g,b,a = tonumber(r), tonumber(g), tonumber(b), tonumber(a)
end
if not (r and g and b and a) then
usererr(info, inputpos, format(L["'%s' - expected 'RRGGBBAA' or 'r g b a'."], str))
return
end
if r >= 0.0 and r <= 1.0 and g >= 0.0 and g <= 1.0 and b >= 0.0 and b <= 1.0 and a >= 0.0 and a <= 1.0 then
--values are valid
elseif r >= 0 and r <= 255 and g >= 0 and g <= 255 and b >= 0 and b <= 255 and a >= 0 and a <= 255 then
--values are valid 0..255, convert to 0..1
r = r / 255
g = g / 255
b = b / 255
a = a / 255
else
--values are invalid
usererr(info, inputpos, format(L["'%s' - values must all be either in the range 0..1 or 0..255."], str))
end
else
a = 1.0
if str:len() == 6 and str:find("^%x*$") then
--parse a hex string
r,g,b = tonumber(str:sub(1, 2), 16) / 255, tonumber(str:sub(3, 4), 16) / 255, tonumber(str:sub(5, 6), 16) / 255
else
--parse seperate values
r,g,b = str:match("^([%d%.]+) ([%d%.]+) ([%d%.]+)$")
r,g,b = tonumber(r), tonumber(g), tonumber(b)
end
if not (r and g and b) then
usererr(info, inputpos, format(L["'%s' - expected 'RRGGBB' or 'r g b'."], str))
return
end
if r >= 0.0 and r <= 1.0 and g >= 0.0 and g <= 1.0 and b >= 0.0 and b <= 1.0 then
--values are valid
elseif r >= 0 and r <= 255 and g >= 0 and g <= 255 and b >= 0 and b <= 255 then
--values are valid 0..255, convert to 0..1
r = r / 255
g = g / 255
b = b / 255
else
--values are invalid
usererr(info, inputpos, format(L["'%s' - values must all be either in the range 0-1 or 0-255."], str))
end
end
do_final(info, inputpos, tab, "set", r,g,b,a)
elseif tab.type=="keybinding" then
------------ keybinding --------------------------------------------
local str = strtrim(strlower(str))
if str == "" then
--TODO: Show current value
return
end
local value = keybindingValidateFunc(str:upper())
if value == false then
usererr(info, inputpos, format(L["'%s' - Invalid Keybinding."], str))
return
end
do_final(info, inputpos, tab, "set", value)
else
err(info, inputpos, "unknown options table item type '"..tostring(tab.type).."'")
end
end
-----------------------------------------------------------------------
-- HandleCommand(slashcmd, appName, input)
--
-- Call this from a chat command handler to parse the command input as operations on an aceoptions table
--
-- slashcmd (string) - the slash command WITHOUT leading slash (only used for error output)
-- appName (string) - the application name as given to AceConfigRegistry:RegisterOptionsTable()
-- input (string) -- the commandline input (as given by the WoW handler, i.e. without the command itself)
function lib:HandleCommand(slashcmd, appName, input)
local optgetter = cfgreg:GetOptionsTable(appName)
if not optgetter then
error([[Usage: HandleCommand("slashcmd", "appName", "input"): 'appName' - no options table "]]..tostring(appName)..[[" has been registered]], 2)
end
local options = assert( optgetter("cmd", MAJOR) )
local info = { -- Don't try to recycle this, it gets handed off to callbacks and whatnot
[0] = slashcmd,
appName = appName,
options = options,
input = input,
self = self,
handler = self,
uiType = "cmd",
uiName = MAJOR,
}
handle(info, 1, options, 0) -- (info, inputpos, table, depth)
end
-----------------------------------------------------------------------
-- CreateChatCommand(slashcmd, appName)
--
-- Utility function to create a slash command handler.
-- Also registers tab completion with AceTab
--
-- slashcmd (string) - the slash command WITHOUT leading slash (only used for error output)
-- appName (string) - the application name as given to AceConfigRegistry:RegisterOptionsTable()
function lib:CreateChatCommand(slashcmd, appName)
if not AceConsole then
AceConsole = LibStub(AceConsoleName)
end
if AceConsole.RegisterChatCommand(self, slashcmd, function(input)
lib.HandleCommand(self, slashcmd, appName, input) -- upgradable
end,
true) then -- succesfully registered so lets get the command -> app table in
commands[slashcmd] = appName
end
end
-- GetChatCommandOptions(slashcmd)
--
-- Utility function that returns the options table that belongs to a slashcommand
-- mainly used by AceTab
function lib:GetChatCommandOptions(slashcmd)
return commands[slashcmd]
end
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/boots/boots_tusken_raider.lua | 3 | 4023 | --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_boots_boots_tusken_raider = object_tangible_wearables_boots_shared_boots_tusken_raider:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
}
ObjectTemplates:addTemplate(object_tangible_wearables_boots_boots_tusken_raider, "object/tangible/wearables/boots/boots_tusken_raider.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/chemistry/medpack_enhance_action_d.lua | 2 | 3633 | --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_chemistry_medpack_enhance_action_d = object_draft_schematic_chemistry_shared_medpack_enhance_action_d:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Enhance Action Medpack - D",
craftingToolTab = 64, -- (See DraftSchemticImplementation.h)
complexity = 37,
size = 1,
xpType = "crafting_medicine_general",
xp = 90,
assemblySkill = "medicine_assembly",
experimentingSkill = "medicine_experimentation",
customizationSkill = "medicine_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n"},
ingredientTitleNames = {"organic_element", "inorganic_element", "delivery_medium", "drug_duration_compound", "drug_strength_compound"},
ingredientSlotType = {0, 0, 1, 1, 1},
resourceTypes = {"organic", "inorganic", "object/tangible/component/chemistry/shared_solid_delivery_shell.iff", "object/tangible/component/chemistry/shared_release_mechanism_duration.iff", "object/tangible/component/chemistry/shared_biologic_effect_controller.iff"},
resourceQuantities = {22, 22, 1, 2, 2},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/medicine/crafted/medpack_enhance_action_d.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_chemistry_medpack_enhance_action_d, "object/draft_schematic/chemistry/medpack_enhance_action_d.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/bio_engineer/bio_component/bio_component_food_heavy_nutrition.lua | 2 | 3525 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_bio_engineer_bio_component_bio_component_food_heavy_nutrition = object_draft_schematic_bio_engineer_bio_component_shared_bio_component_food_heavy_nutrition:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Intelligent Nanonutrients",
craftingToolTab = 128, -- (See DraftSchemticImplementation.h)
complexity = 26,
size = 1,
xpType = "crafting_bio_engineer_creature",
xp = 220,
assemblySkill = "bio_engineer_assembly",
experimentingSkill = "bio_engineer_experimentation",
customizationSkill = "bio_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_tissue_ingredients_n", "craft_tissue_ingredients_n", "craft_tissue_ingredients_n", "craft_tissue_ingredients_n"},
ingredientTitleNames = {"nutrient_base", "vitamin_enhancers", "chemical_enhancers", "secrets"},
ingredientSlotType = {0, 0, 0, 3},
resourceTypes = {"organic", "flora_food", "creature_food", "object/tangible/component/food/secrets/shared_secret_base.iff"},
resourceQuantities = {55, 35, 20, 1},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/component/bio/bio_component_food_heavy_nutrition.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_bio_component_bio_component_food_heavy_nutrition, "object/draft_schematic/bio_engineer/bio_component/bio_component_food_heavy_nutrition.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/mission/bh_untrained_wielder_of_the_dark_side.lua | 1 | 2714 | bh_untrained_wielder_of_the_dark_side = Creature:new {
objectName = "@mob/creature_names:untrained_wielder_of_the_dark_side",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "kun",
faction = "",
level = 65,
chanceHit = 0.6,
damageMin = 545,
damageMax = 800,
baseXp = 6288,
baseHAM = 11000,
baseHAMmax = 14000,
armor = 1,
resists = {40,40,25,25,25,25,25,25,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_untrained_wielder_of_the_darkside.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 2500000},
{group = "tailor_components", chance = 500000},
{group = "loot_kit_parts", chance = 500000},
{group = "color_crystals", chance = 500000},
{group = "crystals_good", chance = 500000},
{group = "crystals_okay", chance = 500000},
{group = "wearables_all", chance = 1000000},
{group = "weapons_all", chance = 1000000},
{group = "armor_all", chance = 1000000},
{group = "clothing_attachments", chance = 1000000},
{group = "armor_attachments", chance = 1000000}
},
lootChance = 4300000
},
{
groups = {
{group = "junk", chance = 2500000},
{group = "tailor_components", chance = 500000},
{group = "loot_kit_parts", chance = 500000},
{group = "color_crystals", chance = 500000},
{group = "crystals_good", chance = 500000},
{group = "crystals_okay", chance = 500000},
{group = "wearables_all", chance = 1000000},
{group = "weapons_all", chance = 1000000},
{group = "armor_all", chance = 1000000},
{group = "clothing_attachments", chance = 1000000},
{group = "armor_attachments", chance = 1000000}
},
lootChance = 4300000
},
{
groups = {
{group = "junk", chance = 2500000},
{group = "tailor_components", chance = 500000},
{group = "loot_kit_parts", chance = 500000},
{group = "color_crystals", chance = 500000},
{group = "crystals_good", chance = 500000},
{group = "crystals_okay", chance = 500000},
{group = "wearables_all", chance = 1000000},
{group = "weapons_all", chance = 1000000},
{group = "armor_all", chance = 1000000},
{group = "clothing_attachments", chance = 1000000},
{group = "armor_attachments", chance = 1000000}
},
lootChance = 4300000
}
},
weapons = {"mixed_force_weapons"},
conversationTemplate = "",
attacks = merge(pikemanmaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(bh_untrained_wielder_of_the_dark_side, "bh_untrained_wielder_of_the_dark_side")
| agpl-3.0 |
DailyShana/ygopro-scripts | c46759931.lua | 3 | 1246 | --V・HERO トリニティー
function c46759931.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x8),3,true)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c46759931.regcon)
e1:SetOperation(c46759931.regop)
c:RegisterEffect(e1)
--extra attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_EXTRA_ATTACK)
e2:SetCondition(c46759931.atkcon)
e2:SetValue(2)
c:RegisterEffect(e2)
--cannot diratk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
c:RegisterEffect(e3)
end
function c46759931.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
end
function c46759931.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK)
e1:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+PHASE_END)
e1:SetValue(c:GetBaseAttack()*2)
c:RegisterEffect(e1)
end
function c46759931.atkcon(e)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
end
| gpl-2.0 |
HydraFramework/release-ios | Stable/builtin/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Declare module and import dependencies
-----------------------------------------------------------------------------
local base = _G
local string = require("string")
local math = require("math")
local socket = require("socket.core")
module("socket")
-----------------------------------------------------------------------------
-- Exported auxiliar functions
-----------------------------------------------------------------------------
function connect(address, port, laddress, lport)
local sock, err = socket.tcp()
if not sock then return nil, err end
if laddress then
local res, err = sock:bind(laddress, lport, -1)
if not res then return nil, err end
end
local res, err = sock:connect(address, port)
if not res then return nil, err end
return sock
end
function bind(host, port, backlog)
local sock, err = socket.tcp()
if not sock then return nil, err end
sock:setoption("reuseaddr", true)
local res, err = sock:bind(host, port)
if not res then return nil, err end
res, err = sock:listen(backlog)
if not res then return nil, err end
return sock
end
try = newtry()
function choose(table)
return function(name, opt1, opt2)
if base.type(name) ~= "string" then
name, opt1, opt2 = "default", name, opt1
end
local f = table[name or "nil"]
if not f then base.error("unknown key (".. base.tostring(name) ..")", 3)
else return f(opt1, opt2) end
end
end
-----------------------------------------------------------------------------
-- Socket sources and sinks, conforming to LTN12
-----------------------------------------------------------------------------
-- create namespaces inside LuaSocket namespace
sourcet = {}
sinkt = {}
BLOCKSIZE = 2048
sinkt["close-when-done"] = function(sock)
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function(self, chunk, err)
if not chunk then
sock:close()
return 1
else return sock:send(chunk) end
end
})
end
sinkt["keep-open"] = function(sock)
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function(self, chunk, err)
if chunk then return sock:send(chunk)
else return 1 end
end
})
end
sinkt["default"] = sinkt["keep-open"]
sink = choose(sinkt)
sourcet["by-length"] = function(sock, length)
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function()
if length <= 0 then return nil end
local size = math.min(socket.BLOCKSIZE, length)
local chunk, err = sock:receive(size)
if err then return nil, err end
length = length - string.len(chunk)
return chunk
end
})
end
sourcet["until-closed"] = function(sock)
local done
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function()
if done then return nil end
local chunk, err, partial = sock:receive(socket.BLOCKSIZE)
if not err then return chunk
elseif err == "closed" then
sock:close()
done = 1
return partial
else return nil, err end
end
})
end
sourcet["default"] = sourcet["until-closed"]
source = choose(sourcet)
| mit |
HydraFramework/release-ios | Release51/builtin/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Declare module and import dependencies
-----------------------------------------------------------------------------
local base = _G
local string = require("string")
local math = require("math")
local socket = require("socket.core")
module("socket")
-----------------------------------------------------------------------------
-- Exported auxiliar functions
-----------------------------------------------------------------------------
function connect(address, port, laddress, lport)
local sock, err = socket.tcp()
if not sock then return nil, err end
if laddress then
local res, err = sock:bind(laddress, lport, -1)
if not res then return nil, err end
end
local res, err = sock:connect(address, port)
if not res then return nil, err end
return sock
end
function bind(host, port, backlog)
local sock, err = socket.tcp()
if not sock then return nil, err end
sock:setoption("reuseaddr", true)
local res, err = sock:bind(host, port)
if not res then return nil, err end
res, err = sock:listen(backlog)
if not res then return nil, err end
return sock
end
try = newtry()
function choose(table)
return function(name, opt1, opt2)
if base.type(name) ~= "string" then
name, opt1, opt2 = "default", name, opt1
end
local f = table[name or "nil"]
if not f then base.error("unknown key (".. base.tostring(name) ..")", 3)
else return f(opt1, opt2) end
end
end
-----------------------------------------------------------------------------
-- Socket sources and sinks, conforming to LTN12
-----------------------------------------------------------------------------
-- create namespaces inside LuaSocket namespace
sourcet = {}
sinkt = {}
BLOCKSIZE = 2048
sinkt["close-when-done"] = function(sock)
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function(self, chunk, err)
if not chunk then
sock:close()
return 1
else return sock:send(chunk) end
end
})
end
sinkt["keep-open"] = function(sock)
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function(self, chunk, err)
if chunk then return sock:send(chunk)
else return 1 end
end
})
end
sinkt["default"] = sinkt["keep-open"]
sink = choose(sinkt)
sourcet["by-length"] = function(sock, length)
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function()
if length <= 0 then return nil end
local size = math.min(socket.BLOCKSIZE, length)
local chunk, err = sock:receive(size)
if err then return nil, err end
length = length - string.len(chunk)
return chunk
end
})
end
sourcet["until-closed"] = function(sock)
local done
return base.setmetatable({
getfd = function() return sock:getfd() end,
dirty = function() return sock:dirty() end
}, {
__call = function()
if done then return nil end
local chunk, err, partial = sock:receive(socket.BLOCKSIZE)
if not err then return chunk
elseif err == "closed" then
sock:close()
done = 1
return partial
else return nil, err end
end
})
end
sourcet["default"] = sourcet["until-closed"]
source = choose(sourcet)
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/faction/rebel/specops_trooper.lua | 2 | 1789 | specops_trooper = Creature:new {
objectName = "@mob/creature_names:specops_trooper",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "rebel",
faction = "rebel",
level = 17,
chanceHit = 0.32,
damageMin = 160,
damageMax = 170,
baseXp = 1102,
baseHAM = 3500,
baseHAMmax = 4300,
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 + STALKER,
diet = HERBIVORE,
templates = {"object/mobile/dressed_rebel_specforce_guerilla_human_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerilla_moncal_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_human_female_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_rodian_female_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_rodian_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_zabrak_female_01.iff",
},
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 100000},
{group = "junk", chance = 4250000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "clothing_attachments", chance = 100000},
{group = "armor_attachments", chance = 100000},
{group = "rebel_officer_common", chance = 450000},
{group = "wearables_common", chance = 1000000}
}
}
},
weapons = {"imperial_weapons_medium"},
reactionStf = "@npc_reaction/military",
personalityStf = "@hireling/hireling_military",
attacks = merge(brawlermaster,marksmanmaster)
}
CreatureTemplates:addCreatureTemplate(specops_trooper, "specops_trooper")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/corellia/selonian_sentinel.lua | 2 | 2186 | selonian_sentinel = Creature:new {
objectName = "@mob/creature_names:selonian_sentinel",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "selonian",
faction = "",
level = 9,
chanceHit = 0.27,
damageMin = 70,
damageMax = 75,
baseXp = 0,
baseHAM = 810,
baseHAMmax = 990,
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 = {
"object/mobile/dressed_selonian_f_01.iff",
"object/mobile/dressed_selonian_f_02.iff",
"object/mobile/dressed_selonian_f_03.iff",
"object/mobile/dressed_selonian_f_04.iff",
"object/mobile/dressed_selonian_f_05.iff",
"object/mobile/dressed_selonian_f_06.iff",
"object/mobile/dressed_selonian_f_07.iff",
"object/mobile/dressed_selonian_f_08.iff",
"object/mobile/dressed_selonian_f_09.iff",
"object/mobile/dressed_selonian_f_10.iff",
"object/mobile/dressed_selonian_f_11.iff",
"object/mobile/dressed_selonian_f_12.iff",
"object/mobile/dressed_selonian_m_01.iff",
"object/mobile/dressed_selonian_m_02.iff",
"object/mobile/dressed_selonian_m_03.iff",
"object/mobile/dressed_selonian_m_04.iff",
"object/mobile/dressed_selonian_m_05.iff",
"object/mobile/dressed_selonian_m_06.iff",
"object/mobile/dressed_selonian_m_07.iff",
"object/mobile/dressed_selonian_m_08.iff",
"object/mobile/dressed_selonian_m_09.iff",
"object/mobile/dressed_selonian_m_10.iff",
"object/mobile/dressed_selonian_m_11.iff",
"object/mobile/dressed_selonian_m_12.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 3000000},
{group = "wearables_common", chance = 2000000},
{group = "pistols", chance = 1000000},
{group = "loot_kit_parts", chance = 2500000},
{group = "tailor_components", chance = 1500000}
}
}
},
weapons = {"pirate_weapons_medium"},
conversationTemplate = "",
reactionStf = "@npc_reaction/fancy",
attacks = merge(brawlernovice,marksmannovice)
}
CreatureTemplates:addCreatureTemplate(selonian_sentinel, "selonian_sentinel")
| agpl-3.0 |
DailyShana/ygopro-scripts | c80368942.lua | 9 | 1726 | --コクーン・パーティ
function c80368942.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c80368942.target)
e1:SetOperation(c80368942.activate)
c:RegisterEffect(e1)
end
function c80368942.gfilter(c)
return c:IsSetCard(0x1f) and c:IsType(TYPE_MONSTER)
end
function c80368942.spfilter(c,e,tp)
return c:IsSetCard(0x1e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c80368942.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local g=Duel.GetMatchingGroup(c80368942.gfilter,tp,LOCATION_GRAVE,0,nil)
local ct=c80368942.count_unique_code(g)
e:SetLabel(ct)
return ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=ct
and Duel.IsExistingMatchingCard(c80368942.spfilter,tp,LOCATION_DECK,0,ct,nil,e,tp)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,e:GetLabel(),tp,LOCATION_DECK)
end
function c80368942.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c80368942.gfilter,tp,LOCATION_GRAVE,0,nil)
local ct=c80368942.count_unique_code(g)
if ct==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<ct then return end
local sg=Duel.GetMatchingGroup(c80368942.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if sg:GetCount()<ct then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local spg=sg:Select(tp,ct,ct,nil)
Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP)
end
function c80368942.count_unique_code(g)
local check={}
local count=0
local tc=g:GetFirst()
while tc do
for i,code in ipairs({tc:GetCode()}) do
if not check[code] then
check[code]=true
count=count+1
end
end
tc=g:GetNext()
end
return count
end
| gpl-2.0 |
TWEFF/Luci | applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.controller.luci_diag.devinfo_common", package.seeall)
require("luci.i18n")
require("luci.util")
require("luci.sys")
require("luci.cbi")
require("luci.model.uci")
local translate = luci.i18n.translate
local DummyValue = luci.cbi.DummyValue
local SimpleSection = luci.cbi.SimpleSection
function index()
return -- no-op
end
function run_processes(outnets, cmdfunc)
i = next(outnets, nil)
while (i) do
outnets[i]["output"] = luci.sys.exec(cmdfunc(outnets, i))
i = next(outnets, i)
end
end
function parse_output(devmap, outnets, haslink, type, mini, debug)
local curnet = next(outnets, nil)
while (curnet) do
local output = outnets[curnet]["output"]
local subnet = outnets[curnet]["subnet"]
local ports = outnets[curnet]["ports"]
local interface = outnets[curnet]["interface"]
local netdevs = {}
devlines = luci.util.split(output)
if not devlines then
devlines = {}
table.insert(devlines, output)
end
local j = nil
j = next(devlines, j)
local found_a_device = false
while (j) do
if devlines[j] and ( devlines[j] ~= "" ) then
found_a_device = true
local devtable
local row = {}
devtable = luci.util.split(devlines[j], ' | ')
row["ip"] = devtable[1]
if (not mini) then
row["mac"] = devtable[2]
end
if ( devtable[4] == 'unknown' ) then
row["vendor"] = devtable[3]
else
row["vendor"] = devtable[4]
end
row["type"] = devtable[5]
if (not mini) then
row["model"] = devtable[6]
end
if (haslink) then
row["config_page"] = devtable[7]
end
if (debug) then
row["raw"] = devlines[j]
end
table.insert(netdevs, row)
end
j = next(devlines, j)
end
if not found_a_device then
local row = {}
row["ip"] = curnet
if (not mini) then
row["mac"] = ""
end
if (type == "smap") then
row["vendor"] = luci.i18n.translate("No SIP devices")
else
row["vendor"] = luci.i18n.translate("No devices detected")
end
row["type"] = luci.i18n.translate("check other networks")
if (not mini) then
row["model"] = ""
end
if (haslink) then
row["config_page"] = ""
end
if (debug) then
row["raw"] = output
end
table.insert(netdevs, row)
end
local s
if (type == "smap") then
if (mini) then
s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("SIP devices discovered for") .. " " .. curnet)
else
local interfacestring = ""
if ( interface ~= "" ) then
interfacestring = ", " .. interface
end
s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("SIP devices discovered for") .. " " .. curnet .. " (" .. subnet .. ":" .. ports .. interfacestring .. ")")
end
s.template = "diag/smapsection"
else
if (mini) then
s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("Devices discovered for") .. " " .. curnet)
else
local interfacestring = ""
if ( interface ~= "" ) then
interfacestring = ", " .. interface
end
s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("Devices discovered for") .. " " .. curnet .. " (" .. subnet .. interfacestring .. ")")
end
end
s:option(DummyValue, "ip", translate("IP Address"))
if (not mini) then
s:option(DummyValue, "mac", translate("MAC Address"))
end
s:option(DummyValue, "vendor", translate("Vendor"))
s:option(DummyValue, "type", translate("Device Type"))
if (not mini) then
s:option(DummyValue, "model", translate("Model"))
end
if (haslink) then
s:option(DummyValue, "config_page", translate("Link to Device"))
end
if (debug) then
s:option(DummyValue, "raw", translate("Raw"))
end
curnet = next(outnets, curnet)
end
end
function get_network_device(interface)
local state = luci.model.uci.cursor_state()
state:load("network")
local dev
return state:get("network", interface, "ifname")
end
function cbi_add_networks(field)
uci.cursor():foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
field:value(section[".name"])
end
end
)
field.titleref = luci.dispatcher.build_url("admin", "network", "network")
end
function config_devinfo_scan(map, scannet)
local o
o = scannet:option(luci.cbi.Flag, "enable", translate("Enable"))
o.optional = false
o.rmempty = false
o = scannet:option(luci.cbi.Value, "interface", translate("Interface"))
o.optional = false
luci.controller.luci_diag.devinfo_common.cbi_add_networks(o)
local scansubnet
scansubnet = scannet:option(luci.cbi.Value, "subnet", translate("Subnet"))
scansubnet.optional = false
o = scannet:option(luci.cbi.Value, "timeout", translate("Timeout"), translate("Time to wait for responses in seconds (default 10)"))
o.optional = true
o = scannet:option(luci.cbi.Value, "repeat_count", translate("Repeat Count"), translate("Number of times to send requests (default 1)"))
o.optional = true
o = scannet:option(luci.cbi.Value, "sleepreq", translate("Sleep Between Requests"), translate("Milliseconds to sleep between requests (default 100)"))
o.optional = true
end
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/dungeon/corellian_corvette/imperial/rebel_sailor.lua | 2 | 1763 | rebel_sailor = Creature:new {
objectName = "@mob/creature_names:corvette_rebel_sailor",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "rebel",
faction = "rebel",
level = 96,
chanceHit = 0.95,
damageMin = 620,
damageMax = 950,
baseXp = 9150,
baseHAM = 20000,
baseHAMmax = 25000,
armor = 0,
resists = {45,45,0,0,30,30,80,65,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_rebel_crewman_human_female_01.iff",
"object/mobile/dressed_rebel_crewman_human_female_02.iff",
"object/mobile/dressed_rebel_crewman_human_male_01.iff",
"object/mobile/dressed_rebel_crewman_human_male_02.iff",
"object/mobile/dressed_rebel_crewman_human_male_03.iff",
"object/mobile/dressed_rebel_crewman_human_male_04.iff"
},
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 100000},
{group = "junk", chance = 4700000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "clothing_attachments", chance = 100000},
{group = "armor_attachments", chance = 100000},
{group = "wearables_common", chance = 500000},
{group = "wearables_uncommon", chance = 500000}
}
}
},
weapons = {"rebel_weapons_medium"},
conversationTemplate = "",
reactionStf = "@npc_reaction/military",
attacks = merge(riflemanmaster,carbineermaster,marksmanmaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(rebel_sailor, "rebel_sailor")
| agpl-3.0 |
DailyShana/ygopro-scripts | c50608164.lua | 5 | 2436 | --M・HERO 光牙
function c50608164.initial_effect(c)
c:EnableReviveLimit()
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--atkup
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(c50608164.val)
c:RegisterEffect(e2)
--atkdown
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(50608164,0))
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e3:SetRange(LOCATION_MZONE)
e3:SetHintTiming(TIMING_DAMAGE_STEP)
e3:SetCountLimit(1)
e3:SetCondition(c50608164.condition)
e3:SetCost(c50608164.cost)
e3:SetTarget(c50608164.target)
e3:SetOperation(c50608164.operation)
c:RegisterEffect(e3)
end
function c50608164.val(e,c)
return Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)*500
end
function c50608164.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c50608164.cfilter(c)
return c:IsSetCard(0x8) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function c50608164.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50608164.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c50608164.cfilter,tp,LOCATION_GRAVE,0,1,1,nil)
e:SetLabel(g:GetFirst():GetAttack())
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c50608164.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end
function c50608164.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-e:GetLabel())
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/weapon/melee/sword/sword_lightsaber_luke_2h_test.lua | 1 | 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_weapon_melee_sword_sword_lightsaber_luke_2h_test = object_weapon_melee_sword_shared_sword_lightsaber_luke_2h_test:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff" },
-- RANGEDATTACK, MELEEATTACK, FORCEATTACK, TRAPATTACK, GRENADEATTACK, HEAVYACIDBEAMATTACK,
-- HEAVYLIGHTNINGBEAMATTACK, HEAVYPARTICLEBEAMATTACK, HEAVYROCKETLAUNCHERATTACK, HEAVYLAUNCHERATTACK
attackType = MELEEATTACK,
-- ENERGY, KINETIC, ELECTRICITY, STUN, BLAST, HEAT, COLD, ACID, FORCE, LIGHTSABER
damageType = LIGHTSABER,
-- NONE, LIGHT, MEDIUM, HEAVY
armorPiercing = MEDIUM,
-- combat_rangedspecialize_bactarifle, combat_rangedspecialize_rifle, combat_rangedspecialize_pistol, combat_rangedspecialize_heavy, combat_rangedspecialize_carbine
-- combat_meleespecialize_unarmed, combat_meleespecialize_twohand, combat_meleespecialize_polearm, combat_meleespecialize_onehand, combat_general,
-- combat_meleespecialize_twohandlightsaber, combat_meleespecialize_polearmlightsaber, combat_meleespecialize_onehandlightsaber
xpType = "combat_meleespecialize_twohandlightsaber",
-- See http://www.ocdsoft.com/files/certifications.xls
certificationsRequired = { "cert_twohandlightsaber" },
-- See http://www.ocdsoft.com/files/accuracy.xls
creatureAccuracyModifiers = { "twohandlightsaber_accuracy" },
-- See http://www.ocdsoft.com/files/defense.xls
defenderDefenseModifiers = { "melee_defense" },
-- Leave as "dodge" for now, may have additions later
defenderSecondaryDefenseModifiers = { "saber_block" },
defenderToughnessModifiers = { "lightsaber_toughness" },
-- See http://www.ocdsoft.com/files/speed.xls
speedModifiers = { "twohandlightsaber_speed" },
-- Leave blank for now
damageModifiers = { },
-- The values below are the default values. To be used for blue frog objects primarily
healthAttackCost = 20,
actionAttackCost = 35,
mindAttackCost = 40,
forceCost = 15,
pointBlankRange = 0,
pointBlankAccuracy = 20,
idealRange = 3,
idealAccuracy = 15,
maxRange = 5,
maxRangeAccuracy = 5,
minDamage = 50,
maxDamage = 130,
attackSpeed = 4.8,
woundsRatio = 15,
}
ObjectTemplates:addTemplate(object_weapon_melee_sword_sword_lightsaber_luke_2h_test, "object/weapon/melee/sword/sword_lightsaber_luke_2h_test.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/particle_test_33.lua | 3 | 2216 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_particle_particle_test_33 = object_static_particle_shared_particle_test_33:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_test_33, "object/static/particle/particle_test_33.iff")
| agpl-3.0 |
Zefiros-Software/premake-core | modules/vstudio/vs2005_csproj.lua | 3 | 1987 | --
-- vs2005_csproj.lua
-- Generate a Visual Studio 2005+ C# project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.cs2005 = {}
local vstudio = p.vstudio
local cs2005 = p.vstudio.cs2005
local dotnetbase = p.vstudio.dotnetbase
local project = p.project
local config = p.config
local fileconfig = p.fileconfig
local dotnet = p.tools.dotnet
cs2005.elements = {}
cs2005.elements.project = function ()
return {
dotnetbase.xmlDeclaration,
dotnetbase.projectElement,
dotnetbase.commonProperties,
dotnetbase.projectProperties,
dotnetbase.configurations,
dotnetbase.applicationIcon,
dotnetbase.references
}
end
cs2005.elements.projectProperties = function ()
return {
dotnetbase.configurationCondition,
dotnetbase.platformCondition,
dotnetbase.productVersion,
dotnetbase.schemaVersion,
dotnetbase.projectGuid,
dotnetbase.outputType,
dotnetbase.appDesignerFolder,
dotnetbase.rootNamespace,
dotnetbase.assemblyName,
dotnetbase.targetFrameworkVersion,
dotnetbase.targetFrameworkProfile,
dotnetbase.fileAlignment,
dotnetbase.bindingRedirects,
dotnetbase.projectTypeGuids
}
end
cs2005.elements.configuration = function ()
return {
dotnetbase.propertyGroup,
dotnetbase.debugProps,
dotnetbase.outputProps,
dotnetbase.compilerProps,
dotnetbase.NoWarn
}
end
function cs2005.generate(prj)
dotnetbase.prepare(cs2005)
dotnetbase.generate(prj)
end
function cs2005.targets(prj)
local bin = iif(_ACTION <= "vs2010", "MSBuildBinPath", "MSBuildToolsPath")
_p(1,'<Import Project="$(%s)\\Microsoft.CSharp.targets" />', bin)
_p(1,'<!-- To modify your build process, add your task inside one of the targets below and uncomment it.')
_p(1,' Other similar extension points exist, see Microsoft.Common.targets.')
_p(1,'<Target Name="BeforeBuild">')
_p(1,'</Target>')
_p(1,'<Target Name="AfterBuild">')
_p(1,'</Target>')
_p(1,'-->')
end
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/screenplays/tasks/corellia/diktatQuest.lua | 1 | 5473 | brantleeMissions =
{
{
missionType = "retrieve",
primarySpawns =
{
{ npcTemplate = "midgoss_dlabaninaph", planetName = "corellia", npcName = "Midgoss D'labaninaph" }
},
secondarySpawns =
{
{ npcTemplate = "carrion_spat", planetName = "corellia", npcName = "a carrion spat" },
{ npcTemplate = "carrion_spat", planetName = "corellia", npcName = "a carrion spat" }
},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/brantlee_spondoon_q1_needed.iff",
itemName = "Devaronian Fur Glosser" }
},
rewards =
{
{ rewardType = "credits", amount = 50 }
}
},
{
missionType = "retrieve",
primarySpawns =
{
{ npcTemplate = "zoda_burb", planetName = "corellia", npcName = "Zoda Burb" }
},
secondarySpawns =
{
{ npcTemplate = "dalyrake", planetName = "corellia", npcName = "a dalyrake" },
{ npcTemplate = "dalyrake", planetName = "corellia", npcName = "a dalyrake" }
},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/brantlee_spondoon_q2_needed.iff",
itemName = "Neonian Red Cheese" }
},
rewards =
{
{ rewardType = "credits", amount = 100 }
}
},
{
missionType = "escort",
primarySpawns =
{
{ npcTemplate = "missy", planetName = "corellia", npcName = "Missy" }
},
secondarySpawns =
{
{ npcTemplate = "razor_cat", planetName = "corellia", npcName = "a razor cat" }
},
rewards =
{
{ rewardType = "credits", amount = 300 }
}
}
}
daclifMissions =
{
{
missionType = "retrieve",
primarySpawns =
{
{ npcTemplate = "windle_meeker", planetName = "corellia", npcName = "Windle Meeker" }
},
secondarySpawns =
{
{ npcTemplate = "carrion_spat", planetName = "corellia", npcName = "a carrion spat" },
{ npcTemplate = "carrion_spat", planetName = "corellia", npcName = "a carrion spat" }
},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/daclif_gallamby_q1_needed.iff",
itemName = "Bonadan Shipping Order" }
},
rewards =
{
{ rewardType = "credits", amount = 50 }
}
},
{
missionType = "deliver",
primarySpawns =
{
{ npcTemplate = "merlyx_dolv", planetName = "corellia", npcName = "Merlyx Dolv" }
},
secondarySpawns =
{
{ npcTemplate = "razor_cat", planetName = "corellia", npcName = "a razor cat" }
},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/daclif_gallamby_q2_needed.iff",
itemName = "Approved Bonadan Order" }
},
rewards =
{
{ rewardType = "credits", amount = 100 }
}
},
{
missionType = "retrieve",
primarySpawns =
{
{ npcTemplate = "dwynn_biuval", planetName = "corellia", npcName = "Dwynn Biuval" }
},
secondarySpawns = { },
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/daclif_gallamby_q3_needed.iff",
itemName = "Donation to Diktat's Charity" }
},
rewards =
{
{ rewardType = "credits", amount = 200 }
}
},
{
missionType = "deliver",
primarySpawns =
{
{ npcTemplate = "lieutenant_mien_halloor", planetName = "corellia", npcName = "Lt. Mien Halloor" }
},
secondarySpawns =
{
{ npcTemplate = "razor_cat", planetName = "corellia", npcName = "a razor cat" },
{ npcTemplate = "razor_cat", planetName = "corellia", npcName = "a razor cat" }
},
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/daclif_gallamby_q4_needed.iff",
itemName = "Customs Charity Donation" }
},
rewards =
{
{ rewardType = "credits", amount = 250 }
}
},
{
missionType = "escort",
primarySpawns =
{
{ npcTemplate = "merlyx_dolv", planetName = "corellia", npcName = "Merlyx Dolv" }
},
secondarySpawns =
{
{ npcTemplate = "mercenary_aggro", planetName = "corellia", npcName = "a mercenary" },
{ npcTemplate = "mercenary_aggro", planetName = "corellia", npcName = "a mercenary" }
},
rewards =
{
{ rewardType = "credits", amount = 400 }
}
},
{
missionType = "deliver",
primarySpawns =
{
{ npcTemplate = "morgo_one_shot", planetName = "corellia", npcName = "Morgo One-Shot" }
},
secondarySpawns = { },
itemSpawns =
{
{ itemTemplate = "object/tangible/mission/quest_item/daclif_gallamby_q6_needed.iff",
itemName = "Orders for a Gangster" }
},
rewards =
{
{ rewardType = "credits", amount = 750 }
}
}
}
npcMapDiktat =
{
{
spawnData = { planetName = "corellia", npcTemplate = "brantlee_spondoon", x = -24.7, z = 1.3, y = -0.5,
direction = 124, cellID = 1855463, position = STAND },
worldPosition = { x = -234.0, y = -4570.0 },
npcNumber = 1,
stfFile = "@static_npc/corellia/brantlee_spondoon",
missions = brantleeMissions
},
{
spawnData = { planetName = "corellia", npcTemplate = "daclif_gallamby", x = -35.6875, z = 1.29422,
y = -1.70805, direction = 88.4786, cellID = 1855467, position = STAND },
worldPosition = { x = -245.0, y = -4571.0 },
npcNumber = 2,
stfFile = "@static_npc/corellia/daclif_gallamby",
missions = daclifMissions
}
}
diktatQuest = ThemeParkLogic:new {
numberOfActs = 1,
npcMap = npcMapDiktat,
permissionMap = {},
className = "diktatQuest",
screenPlayState = "diktatQuestState",
distance = 1000,
}
registerScreenPlay("diktatQuest", true)
diktatGiverHandler = mission_giver_conv_handler:new {
themePark = diktatQuest
}
diktatTargetHandler = mission_target_conv_handler:new {
themePark = diktatQuest
}
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/Wooden_Ladder.lua | 5 | 2902 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: Wooden Ladder
-- !pos 101.9 -1.5 -101.9
-- !pos 101.948 -1.5 -18.016
-- !pos -61.888 -1.5 -18.079
-- !pos -218.109 -1.499 18.081
-- !pos -61.903 -1.5 138.099
-- !pos 21.901 -1.5 138.096
-- !pos 101.902 -1.5 181.902
-- !pos -159.32 -2.5 60
-- !pos -159.38 -22.559 60
-- !pos 199.317 -2.5 60
-- !pos 199.38 -22.559 60
-- !pos -200.679 -8.57 60
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueducts/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local X = player:getXPos();
local Y = player:getYPos();
local Z = player:getZPos();
if ((X <= 107.9 and X >= 95.9) and (Y >= -1 and Y <= 1) and (Z >= -108.9 and Z <= -98)) then
player:startEvent(21);
elseif ((X <= 107.9 and X >= 95.9) and (Y >= -1 and Y <= 1) and (Z >= -24 and Z <= -12)) then
player:startEvent(22);
elseif ((X <= -55.888 and X >= -67.888) and (Y >= -1 and Y <= 1) and (Z >= -24 and Z <= -12)) then
player:startEvent(23);
elseif ((X <= -212.1 and X >= -224.1) and (Y >= -1 and Y <= 1) and (Z >= 12 and Z <= 24)) then
player:startEvent(24);
elseif ((X <= -55.9 and X >= -67.9) and (Y >= -1 and Y <= 1) and (Z >= 132 and Z <= 144)) then
player:startEvent(25);
elseif ((X <= 27.9 and X >= 15.9) and (Y >= -1 and Y <= 1) and (Z >= 132 and Z <= 144)) then
player:startEvent(26);
elseif ((X <= 107.9 and X >= 95.9) and (Y >= -1 and Y <= 1) and (Z >= 175.9 and Z <= 187.9)) then
player:startEvent(27);
elseif ((X <= -153.3 and X >= -168.3) and (Y >= -2 and Y <= 0) and (Z >= 54 and Z <= 66)) then
if (player:getCurrentMission(COP) == DISTANT_BELIEFS and player:getVar("PromathiaStatus") == 1) then
player:setVar("PromathiaStatus",2);
player:startEvent(35);
else
player:startEvent(28);
end
elseif ((X <= -153.3 and X >= -168.3) and (Y >= -24 and Y <= -22) and (Z >= 54 and Z <= 66)) then
player:startEvent(29);
elseif ((X <= 205.3 and X >= 193.3) and (Y >= -2 and Y <= 0) and (Z >= 54 and Z <= 66)) then
player:startEvent(30);
elseif ((X <= 205.3 and X >= 193.3) and (Y >= -24 and Y <= -22) and (Z >= 54 and Z <= 66)) then
player:startEvent(31);
elseif ((X <= -194.6 and X >= -206.6) and (Y >= -8 and Y <= -6) and (Z >= 54 and Z <= 66)) then
player:messageSpecial(DOOR_SEALED_SHUT);
end
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/space/spacestation/neutral_spacestation_01.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_static_space_spacestation_neutral_spacestation_01 = object_static_space_spacestation_shared_neutral_spacestation_01:new {
}
ObjectTemplates:addTemplate(object_static_space_spacestation_neutral_spacestation_01, "object/static/space/spacestation/neutral_spacestation_01.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Upper_Jeuno/npcs/Collet.lua | 5 | 2021 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Collet
-- Involved in Quests: A Clock Most Delicate, Save the Clock Tower
-- @zone 244
-- !pos -44 0 107
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
if (trade:hasItemQty(555,1) == true and trade:getItemCount() == 1) then
a = player:getVar("saveTheClockTowerNPCz1"); -- NPC zone1
if (a == 0 or (a ~= 2 and a ~= 3 and a ~= 6 and a ~= 10 and a ~= 18 and a ~= 7 and a ~= 26 and a ~= 11 and
a ~= 22 and a ~= 14 and a ~= 19 and a ~= 15 and a ~= 23 and a ~= 27 and a ~= 30 and a ~= 31)) then
player:startEvent(115,10 - player:getVar("saveTheClockTowerVar")); -- "Save the Clock Tower" Quest
end
end
end;
function onTrigger(player,npc)
if (player:getFameLevel(JEUNO) >= 5 and aClockMostdelicate == QUEST_AVAILABLE and player:getVar("aClockMostdelicateVar") == 0) then
player:startEvent(112);
elseif (player:getVar("saveTheClockTowerVar") >= 1) then
player:startEvent(164);
elseif (player:getQuestStatus(JEUNO,THE_CLOCKMASTER) == QUEST_COMPLETED) then
player:startEvent(163);
else
player:startEvent(114);
end
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 112) then
player:setVar("aClockMostdelicateVar", 1);
elseif (csid == 115) then
player:setVar("saveTheClockTowerVar",player:getVar("saveTheClockTowerVar") + 1);
player:setVar("saveTheClockTowerNPCz1",player:getVar("saveTheClockTowerNPCz1") + 2);
end
end;
| gpl-3.0 |
DailyShana/ygopro-scripts | c34664411.lua | 5 | 2261 | --幸運の鉄斧
function c34664411.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c34664411.target)
e1:SetOperation(c34664411.operation)
c:RegisterEffect(e1)
--Atk,def
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(500)
c:RegisterEffect(e2)
--Equip limit
local e3=Effect.CreateEffect(c)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_EQUIP_LIMIT)
e3:SetValue(1)
c:RegisterEffect(e3)
--draw
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(34664411,0))
e4:SetCategory(CATEGORY_DRAW)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_TO_GRAVE)
e4:SetCondition(c34664411.drcon)
e4:SetTarget(c34664411.drtg)
e4:SetOperation(c34664411.drop)
c:RegisterEffect(e4)
end
function c34664411.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c34664411.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if e:GetHandler():IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,e:GetHandler(),tc)
end
end
function c34664411.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return bit.band(r,0x41)==0x41 and rp~=tp and c:GetPreviousControler()==tp
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP)
end
function c34664411.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c34664411.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/booster/bst_sorosuub_liberator_mk5.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_sorosuub_liberator_mk5 = object_tangible_ship_components_booster_shared_bst_sorosuub_liberator_mk5:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_sorosuub_liberator_mk5, "object/tangible/ship/components/booster/bst_sorosuub_liberator_mk5.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c99641328.lua | 3 | 2634 | --森羅の影胞子 ストール
function c99641328.initial_effect(c)
--deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(99641328,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FLIP)
e1:SetTarget(c99641328.target)
e1:SetOperation(c99641328.operation)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(99641328,2))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(c99641328.descon)
e2:SetTarget(c99641328.destg)
e2:SetOperation(c99641328.desop)
c:RegisterEffect(e2)
end
function c99641328.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
end
function c99641328.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanDiscardDeck(tp,1) then return end
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
if ct==0 then return end
if ct>5 then ct=5 end
local t={}
for i=1,ct do t[i]=i end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(99641328,1))
local ac=Duel.AnnounceNumber(tp,table.unpack(t))
Duel.ConfirmDecktop(tp,ac)
local g=Duel.GetDecktopGroup(tp,ac)
local sg=g:Filter(Card.IsRace,nil,RACE_PLANT)
if sg:GetCount()>0 then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)
end
ac=ac-sg:GetCount()
if ac>0 then
Duel.SortDecktop(tp,tp,ac)
for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1)
end
end
end
function c99641328.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c99641328.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
end
function c99641328.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c99641328.desfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c99641328.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c99641328.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c99641328.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/booster/bst_novaldex_quasar_advanced.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_tangible_ship_components_booster_bst_novaldex_quasar_advanced = object_tangible_ship_components_booster_shared_bst_novaldex_quasar_advanced:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_novaldex_quasar_advanced, "object/tangible/ship/components/booster/bst_novaldex_quasar_advanced.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_rebel_specforce_pathfinder_twk_female_01.lua | 3 | 2308 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_rebel_specforce_pathfinder_twk_female_01 = object_mobile_shared_dressed_rebel_specforce_pathfinder_twk_female_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_rebel_specforce_pathfinder_twk_female_01, "object/mobile/dressed_rebel_specforce_pathfinder_twk_female_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/vehicle/fuel_c.lua | 3 | 2220 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_vehicle_fuel_c = object_tangible_component_vehicle_shared_fuel_c:new {
}
ObjectTemplates:addTemplate(object_tangible_component_vehicle_fuel_c, "object/tangible/component/vehicle/fuel_c.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/bio_engineer/creature/creature_kwi.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_kwi = object_draft_schematic_bio_engineer_creature_shared_creature_kwi:new {
templateType = DRAFTSCHEMATIC,
disableFactoryRun = true,
customObjectName = "Kwi",
craftingToolTab = 256, -- (See DraftSchemticImplementation.h)
complexity = 20,
size = 1,
xpType = "crafting_bio_engineer_creature",
xp = 150,
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, 40, 40},
contribution = {100, 100, 100},
targetTemplate = "object/tangible/deed/pet_deed/kwi_deed.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_creature_creature_kwi, "object/draft_schematic/bio_engineer/creature/creature_kwi.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/furniture/all/frn_all_lamp_candlestick_tbl_s01.lua | 3 | 2308 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_furniture_all_frn_all_lamp_candlestick_tbl_s01 = object_tangible_furniture_all_shared_frn_all_lamp_candlestick_tbl_s01:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_lamp_candlestick_tbl_s01, "object/tangible/furniture/all/frn_all_lamp_candlestick_tbl_s01.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c40737112.lua | 3 | 2982 | --混沌の黒魔術師
function c40737112.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40737112,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,40737112)
e1:SetCost(c40737112.thcost)
e1:SetTarget(c40737112.thtg)
e1:SetOperation(c40737112.thop)
c:RegisterEffect(e1)
--remove
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(40737112,1))
e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_BATTLED)
e2:SetCondition(c40737112.rmcon)
e2:SetTarget(c40737112.rmtg)
e2:SetOperation(c40737112.rmop)
c:RegisterEffect(e2)
--redirect
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCondition(c40737112.recon)
e3:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e3)
if not c40737112.global_check then
c40737112.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_SUMMON_SUCCESS)
ge1:SetLabel(40737112)
ge1:SetOperation(aux.sumreg)
Duel.RegisterEffect(ge1,0)
local ge2=ge1:Clone()
ge2:SetCode(EVENT_SPSUMMON_SUCCESS)
ge2:SetLabel(40737112)
Duel.RegisterEffect(ge2,0)
end
end
function c40737112.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(40737112)~=0 end
e:GetHandler():ResetFlagEffect(40737112)
end
function c40737112.thfilter(c)
return c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end
function c40737112.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c40737112.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c40737112.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,c40737112.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c40737112.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
end
end
function c40737112.rmcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
e:SetLabelObject(bc)
return bc and bc:IsStatus(STATUS_BATTLE_DESTROYED) and c:IsStatus(STATUS_OPPO_BATTLE)
end
function c40737112.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,e:GetLabelObject(),1,0,0)
end
function c40737112.rmop(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetLabelObject()
if bc:IsRelateToBattle() and bc:IsAbleToRemove() then
Duel.Remove(bc,POS_FACEUP,REASON_EFFECT)
end
end
function c40737112.recon(e)
return e:GetHandler():IsFaceup()
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
sjznxd/lc-20130116 | applications/luci-vnstat/luasrc/model/cbi/vnstat.lua | 90 | 2019 | --[[
LuCI - Lua Configuration Interface
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local utl = require "luci.util"
local sys = require "luci.sys"
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local dbdir, line
for line in io.lines("/etc/vnstat.conf") do
dbdir = line:match("^%s*DatabaseDir%s+[\"'](%S-)[\"']")
if dbdir then break end
end
dbdir = dbdir or "/var/lib/vnstat"
m = Map("vnstat", translate("VnStat"),
translate("VnStat is a network traffic monitor for Linux that keeps a log of network traffic for the selected interface(s)."))
m.submit = translate("Restart VnStat")
m.reset = false
nw.init(luci.model.uci.cursor_state())
local ifaces = { }
local enabled = { }
local iface
if fs.access(dbdir) then
for iface in fs.dir(dbdir) do
if iface:sub(1,1) ~= '.' then
ifaces[iface] = iface
enabled[iface] = iface
end
end
end
for _, iface in ipairs(sys.net.devices()) do
ifaces[iface] = iface
end
local s = m:section(TypedSection, "vnstat")
s.anonymous = true
s.addremove = false
mon_ifaces = s:option(Value, "interface", translate("Monitor selected interfaces"))
mon_ifaces.template = "cbi/network_ifacelist"
mon_ifaces.widget = "checkbox"
mon_ifaces.cast = "table"
mon_ifaces.noinactive = true
mon_ifaces.nocreate = true
function mon_ifaces.write(self, section, val)
local i
local s = { }
if val then
for _, i in ipairs(type(val) == "table" and val or { val }) do
s[i] = true
end
end
for i, _ in pairs(ifaces) do
if not s[i] then
fs.unlink(dbdir .. "/" .. i)
fs.unlink(dbdir .. "/." .. i)
end
end
if next(s) then
m.uci:set_list("vnstat", section, "interface", utl.keys(s))
else
m.uci:delete("vnstat", section, "interface")
end
end
mon_ifaces.remove = mon_ifaces.write
return m
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/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")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/West_Ronfaure/npcs/Aaveleon.lua | 5 | 1178 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Aaveleon
-- Involved in Quest: A Sentry's Peril
-- !pos -431 -45 343 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/West_Ronfaure/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
if (player:getQuestStatus(SANDORIA,A_SENTRY_S_PERIL) == QUEST_ACCEPTED) then
if (trade:hasItemQty(600,1) and trade:getItemCount() == 1) then
player:startEvent(100);
else
player:startEvent(118);
end
end
end;
function onTrigger(player,npc)
player:startEvent(101);
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 100) then
player:tradeComplete();
player:addItem(601);
player:messageSpecial(ITEM_OBTAINED,601);
end
end;
| gpl-3.0 |
sjznxd/lc-20130116 | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua | 76 | 1096 | --[[
Luci statistics - cpu plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: cpu.lua 2274 2008-06-03 23:15:16Z jow $
]]--
module("luci.statistics.rrdtool.definitions.cpu",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: Processor usage on core #%pi",
y_min = "0",
vlabel = "Percent",
number_format = "%5.1lf%%",
data = {
instances = {
cpu = { "idle", "user", "system", "nice" }
},
options = {
cpu_idle = { color = "ffffff" },
cpu_nice = { color = "00e000" },
cpu_user = { color = "0000ff" },
cpu_wait = { color = "ffb000" },
cpu_system = { color = "ff0000" },
cpu_softirq = { color = "ff00ff" },
cpu_interrupt = { color = "a000a0" },
cpu_steal = { color = "000000" }
}
}
}
end
| apache-2.0 |
KingRaptor/Zero-K | LuaRules/Configs/MetalSpots/Altored_Arctic.lua | 17 | 3564 | return {
spots = {
{x = 7832, z = 3208, metal = 1.1840000152588},
{x = 6152, z = 3816, metal = 1.9776002168655},
{x = 1128, z = 6520, metal = 1.1296001672745},
{x = 1928, z = 6312, metal = 1.8752002716064},
{x = 7256, z = 2984, metal = 1.4048000574112},
{x = 6296, z = 6936, metal = 1.1055999994278},
{x = 3256, z = 488, metal = 1.2800002098083},
{x = 5352, z = 1160, metal = 1.2832000255585},
{x = 152, z = 3160, metal = 1.2016000747681},
{x = 232, z = 5688, metal = 1.1391999721527},
{x = 3480, z = 4744, metal = 1.8528002500534},
{x = 3016, z = 984, metal = 1.2912000417709},
{x = 2120, z = 4456, metal = 1.8432002067566},
{x = 2008, z = 5064, metal = 0.8},
{x = 1176, z = 7736, metal = 0.85},
{x = 3320, z = 3512, metal = 2.0240001678467},
{x = 2904, z = 616, metal = 1.2799999713898},
{x = 7320, z = 488, metal = 0.8},
{x = 1864, z = 1368, metal = 0.85},
{x = 4920, z = 6072, metal = 0.85},
{x = 2520, z = 7752, metal = 1.1696000099182},
{x = 6680, z = 6488, metal = 0.8},
{x = 2024, z = 1848, metal = 1.7472001314163},
{x = 6952, z = 3992, metal = 1.8863999843597},
{x = 584, z = 840, metal = 0.8},
{x = 6360, z = 2632, metal = 1.1504000425339},
{x = 6120, z = 5064, metal = 0.8},
{x = 1512, z = 1960, metal = 1.8016002178192},
{x = 5352, z = 712, metal = 1.1520000696182},
{x = 3208, z = 7832, metal = 1.3472000360489},
{x = 952, z = 488, metal = 0.8},
{x = 3800, z = 6152, metal = 1.7152000665665},
{x = 7304, z = 5432, metal = 1.2832001447678},
{x = 4648, z = 4712, metal = 1.8704000711441},
{x = 2552, z = 6456, metal = 1.2832002639771},
{x = 7736, z = 808, metal = 0.8},
{x = 3992, z = 2008, metal = 1.8384000062943},
{x = 5096, z = 7640, metal = 1.2160001993179},
{x = 3240, z = 6072, metal = 0.85},
{x = 6408, z = 1368, metal = 1.3008000850677},
{x = 5432, z = 6376, metal = 1.1920000314713},
{x = 2840, z = 7320, metal = 1.2400000095367},
{x = 4952, z = 792, metal = 1.1599999666214},
{x = 6808, z = 1864, metal = 0.85},
{x = 1736, z = 5768, metal = 1.1472001075745},
{x = 4056, z = 1288, metal = 1.902400135994},
{x = 5976, z = 4424, metal = 1.8352001905441},
{x = 904, z = 3080, metal = 1.2704000473022},
{x = 7480, z = 2744, metal = 1.0960000753403},
{x = 5688, z = 7752, metal = 1.1888000965118},
{x = 7096, z = 7752, metal = 0.85},
{x = 408, z = 7112, metal = 0.85},
{x = 5416, z = 7176, metal = 1.8271999359131},
{x = 7720, z = 7112, metal = 0.8},
{x = 2008, z = 3288, metal = 0.85},
{x = 4248, z = 4008, metal = 1.9248002767563},
{x = 4808, z = 3464, metal = 1.8000000715256},
{x = 4168, z = 7112, metal = 1.8704000711441},
{x = 6344, z = 1880, metal = 1.689600110054},
{x = 1960, z = 6808, metal = 0.8},
{x = 5688, z = 1704, metal = 1.1376001834869},
{x = 3128, z = 2120, metal = 0.85},
{x = 536, z = 2712, metal = 1.1296000480652},
{x = 1976, z = 3976, metal = 1.8224002122879},
{x = 808, z = 5464, metal = 1.1407999992371},
{x = 456, z = 5048, metal = 1.1647999286652},
{x = 6520, z = 5592, metal = 1.100800037384},
{x = 7816, z = 5496, metal = 1.2976001501083},
{x = 2728, z = 1752, metal = 1.1648000478745},
{x = 1688, z = 2760, metal = 1.4112000465393},
{x = 7464, z = 4920, metal = 1.1439999341965},
{x = 4520, z = 2104, metal = 1.8736000061035},
{x = 4360, z = 6328, metal = 1.977599978447},
{x = 6344, z = 6392, metal = 1.8496000766754},
{x = 5272, z = 1976, metal = 0.8},
{x = 6040, z = 3256, metal = 0.85},
{x = 1464, z = 4200, metal = 1.8784000873566},
{x = 4089, z = 4127, metal = 1.8912000656128},
{x = 3922, z = 4201, metal = 1.7120002508163},
}
} | gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/space/asteroid/asteroid_acid_large_02.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_asteroid_asteroid_acid_large_02 = object_static_space_asteroid_shared_asteroid_acid_large_02:new {
}
ObjectTemplates:addTemplate(object_static_space_asteroid_asteroid_acid_large_02, "object/static/space/asteroid/asteroid_acid_large_02.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/mobskills/chains_of_arrogance.lua | 2 | 1369 | ---------------------------------------------
-- Chains of Arrogance
--
---------------------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
---------------------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/monstertpmoves");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
local targets = mob:getEnmityList();
for i,v in pairs(targets) do
if (v.entity:isPC()) then
local race = v.entity:getRace()
if (race == 3 or race == 4) and not v.entity:hasKeyItem(LIGHT_OF_MEA) then
mob:showText(mob, PROMATHIA_TEXT + 1);
return 0;
end
end
end
return 1;
end;
function onMobWeaponSkill(target, mob, skill)
local typeEffect = dsp.effects.TERROR;
local power = 30;
local duration = 30;
if target:isPC() and ((target:getRace() == 3 or target:getRace() == 4) and not target:hasKeyItem(LIGHT_OF_MEA)) then
skill:setMsg(MobStatusEffectMove(mob, target, typeEffect, power, 0, duration));
else
skill:setMsg(msgBasic.SKILL_NO_EFFECT);
end
return typeEffect;
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/terminal/terminal_mission_rebel.lua | 3 | 2389 | --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_terminal_terminal_mission_rebel = object_tangible_terminal_shared_terminal_mission_rebel:new {
planetMapCategory = "terminal",
planetMapSubCategory = "terminal_mission",
templateType = MISSIONTERMINAL,
missionTerminalType = "rebel"
}
ObjectTemplates:addTemplate(object_tangible_terminal_terminal_mission_rebel, "object/tangible/terminal/terminal_mission_rebel.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/weaponskills/freezebite.lua | 23 | 1281 | -----------------------------------
-- Freezebite
-- Great Sword weapon skill
-- Skill Level: 100
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget & Breeze Gorget.
-- Aligned with the Snow Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: STR:30% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 1.50 3.00
-----------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");
-----------------------------------
function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar)
local params = {};
params.ftp100 = 1; params.ftp200 = 1.5; params.ftp300 = 3;
params.str_wsc = 0.3; params.dex_wsc = 0.0; params.vit_wsc = 0.0; params.agi_wsc = 0.0; params.int_wsc = 0.2; params.mnd_wsc = 0.0; params.chr_wsc = 0.0;
params.ele = ELE_ICE;
params.skill = SKILL_GSD;
params.includemab = true;
if (USE_ADOULIN_WEAPON_SKILL_CHANGES == true) then
params.str_wsc = 0.4; params.int_wsc = 0.4;
end
local damage, criticalHit, tpHits, extraHits = doMagicWeaponskill(player, target, wsID, tp, primary, action, params);
return tpHits, extraHits, criticalHit, damage;
end
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/space/debris/tie_fighter_debris_c.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_static_space_debris_tie_fighter_debris_c = object_static_space_debris_shared_tie_fighter_debris_c:new {
}
ObjectTemplates:addTemplate(object_static_space_debris_tie_fighter_debris_c, "object/static/space/debris/tie_fighter_debris_c.iff")
| agpl-3.0 |
AlexandreCampo/famous3Simulation | subCULTron/electricSenseDesynchronization/premake4.lua | 14 | 2220 |
solution "experiment"
configurations { "debug", "release" , "profile" }
--- ============================= LINUX ==================================
if os.is ("linux") then
includedirs { "/usr/include/libfamous" }
includedirs { "/usr/local/include/libfamous" }
includedirs { "/usr/include/bullet" }
includedirs { "/usr/include/eigen3" }
libdirs { os.findlib("glut"), os.findlib("GL"), os.findlib("GLU"),
os.findlib("gsl"), os.findlib("BulletDynamics"),
os.findlib("boost_program_options"), os.findlib("tinyxml"),
os.findlib("famous")}
links { "famous", "BulletDynamics", "BulletCollision", "LinearMath",
"gsl", "gslcblas", "glut", "GL", "GLU", "boost_program_options",
"tinyxml", "osg", "osgGA", "osgDB", "osgViewer", "osgText"}
--- ============================= MACOSX =================================
elseif os.is ("macosx") then
includedirs { "/opt/local/include/libfamous" }
includedirs { "/opt/local/include/bullet" }
includedirs { "/opt/local/include" }
libdirs { os.findlib("glut"), os.findlib("GL"), os.findlib("GLU"),
os.findlib("gsl"), os.findlib("BulletDynamics"),
os.findlib("boost_program_options"), os.findlib("tinyxml")}
libdirs { "/opt/local/lib" }
links { "famous", "BulletDynamics", "BulletCollision", "LinearMath",
"gsl", "gslcblas", "glut", "GL", "GLU", "boost_program_options-mt", "tinyxml"}
end
--- ============================= GENERIC =================================
project "experiment"
kind "ConsoleApp"
language "C++"
files { "**.h", "**.cpp" }
configuration "release"
buildoptions {"-std=c++11"}
defines { "NDEBUG" }
flags { "OptimizeSpeed", "EnableSSE", "EnableSSE2", "FloatFast", "NoFramePointer"}
configuration "debug"
buildoptions {"-std=c++11"}
defines { "DEBUG" }
flags { "Symbols" }
configuration "profile"
buildoptions {"-std=c++11"}
defines { "DEBUG" }
flags { "Symbols" }
buildoptions { "-pg" }
linkoptions { "-pg" }
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_velocity_quar_m_01.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_velocity_quar_m_01 = object_mobile_shared_dressed_velocity_quar_m_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_velocity_quar_m_01, "object/mobile/dressed_velocity_quar_m_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/loot/items/wearables/bandolier/bandolier_s08.lua | 4 | 1172 | bandolier_s08 = {
-- Dark Sash
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/bandolier/bandolier_s08.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
customizationValues = {
{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95},
{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119}
},
junkDealerTypeNeeded = JUNKCLOTHESANDJEWELLERY,
junkMinValue = 25,
junkMaxValue = 50
}
addLootItemTemplate("bandolier_s08", bandolier_s08) | agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/lair/npc_theater/lok_marooned_pirate_camp_neutral_medium_theater.lua | 2 | 1395 | lok_marooned_pirate_camp_neutral_medium_theater = Lair:new {
mobiles = {{"marooned_pirate",1},{"marooned_pirate_captain",1},{"marooned_pirate_engineer",1},{"marooned_pirate_first_mate",1}},
spawnLimit = 15,
buildingsVeryEasy = {"object/building/poi/tatooine_fugitive_camp_large1.iff","object/building/poi/tatooine_fugitive_camp_large2.iff","object/building/poi/tatooine_fugitive_camp_large3.iff"},
buildingsEasy = {"object/building/poi/tatooine_fugitive_camp_large1.iff","object/building/poi/tatooine_fugitive_camp_large2.iff","object/building/poi/tatooine_fugitive_camp_large3.iff"},
buildingsMedium = {"object/building/poi/tatooine_fugitive_camp_large1.iff","object/building/poi/tatooine_fugitive_camp_large2.iff","object/building/poi/tatooine_fugitive_camp_large3.iff"},
buildingsHard = {"object/building/poi/tatooine_fugitive_camp_large1.iff","object/building/poi/tatooine_fugitive_camp_large2.iff","object/building/poi/tatooine_fugitive_camp_large3.iff"},
buildingsVeryHard = {"object/building/poi/tatooine_fugitive_camp_large1.iff","object/building/poi/tatooine_fugitive_camp_large2.iff","object/building/poi/tatooine_fugitive_camp_large3.iff"},
missionBuilding = "object/tangible/lair/base/objective_power_node.iff",
mobType = "npc",
buildingType = "theater"
}
addLairTemplate("lok_marooned_pirate_camp_neutral_medium_theater", lok_marooned_pirate_camp_neutral_medium_theater)
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/faction/imperial/imperial_inquisitor.lua | 2 | 1461 | imperial_inquisitor = Creature:new {
objectName = "@mob/creature_names:imperial_inquisitor",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "imperial",
faction = "imperial",
level = 120,
chanceHit = 4.000000,
damageMin = 745,
damageMax = 1200,
baseXp = 11296,
baseHAM = 44000,
baseHAMmax = 54000,
armor = 0,
resists = {50,50,50,0,50,0,50,50,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0.000000,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_imperial_inquisitor_human_male_01.iff"},
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 100000},
{group = "junk", chance = 6650000},
{group = "rifles", chance = 550000},
{group = "pistols", chance = 550000},
{group = "melee_weapons", chance = 550000},
{group = "carbines", chance = 550000},
{group = "clothing_attachments", chance = 25000},
{group = "armor_attachments", chance = 25000},
{group = "wearables_all", chance = 1000000}
}
}
},
weapons = {"imperial_weapons_heavy"},
conversationTemplate = "",
reactionStf = "@npc_reaction/military",
personalityStf = "@hireling/hireling_military",
attacks = merge(riflemanmaster,carbineermaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(imperial_inquisitor, "imperial_inquisitor")
| agpl-3.0 |
sjznxd/lc-20130116 | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 21 | 8152 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
m = Map("network", translate("Switch"), translate("The network ports on this device can be combined to several <abbr title=\"Virtual Local Area Network\">VLAN</abbr>s in which computers can communicate directly with each other. <abbr title=\"Virtual Local Area Network\">VLAN</abbr>s are often used to separate different network segments. Often there is by default one Uplink port for a connection to the next greater network like the internet and other ports for a local network."))
local switches = { }
m.uci:foreach("network", "switch",
function(x)
local sid = x['.name']
local switch_name = x.name or sid
local has_vlan = nil
local has_learn = nil
local has_vlan4k = nil
local has_jumbo3 = nil
local min_vid = 0
local max_vid = 16
local num_vlans = 16
local num_ports = 6
local cpu_port = 5
local switch_title
local enable_vlan4k = false
-- Parse some common switch properties from swconfig help output.
local swc = io.popen("swconfig dev %q help 2>/dev/null" % switch_name)
if swc then
local is_port_attr = false
local is_vlan_attr = false
while true do
local line = swc:read("*l")
if not line then break end
if line:match("^%s+%-%-vlan") then
is_vlan_attr = true
elseif line:match("^%s+%-%-port") then
is_vlan_attr = false
is_port_attr = true
elseif line:match("cpu @") then
switch_title = line:match("^switch%d: %w+%((.-)%)")
num_ports, cpu_port, num_vlans =
line:match("ports: (%d+) %(cpu @ (%d+)%), vlans: (%d+)")
num_ports = tonumber(num_ports) or 6
num_vlans = tonumber(num_vlans) or 16
cpu_port = tonumber(cpu_port) or 5
min_vid = 1
elseif line:match(": pvid") or line:match(": tag") or line:match(": vid") then
if is_vlan_attr then has_vlan4k = line:match(": (%w+)") end
elseif line:match(": enable_vlan4k") then
enable_vlan4k = true
elseif line:match(": enable_vlan") then
has_vlan = "enable_vlan"
elseif line:match(": enable_learning") then
has_learn = "enable_learning"
elseif line:match(": max_length") then
has_jumbo3 = "max_length"
end
end
swc:close()
end
-- Switch properties
s = m:section(NamedSection, x['.name'], "switch",
switch_title and translatef("Switch %q (%s)", switch_name, switch_title)
or translatef("Switch %q", switch_name))
s.addremove = false
if has_vlan then
s:option(Flag, has_vlan, translate("Enable VLAN functionality"))
end
if has_learn then
x = s:option(Flag, has_learn, translate("Enable learning and aging"))
x.default = x.enabled
end
if has_jumbo3 then
x = s:option(Flag, has_jumbo3, translate("Enable Jumbo Frame passthrough"))
x.enabled = "3"
x.rmempty = true
end
-- VLAN table
s = m:section(TypedSection, "switch_vlan",
switch_title and translatef("VLANs on %q (%s)", switch_name, switch_title)
or translatef("VLANs on %q", switch_name))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
-- Filter by switch
s.filter = function(self, section)
local device = m:get(section, "device")
return (device and device == switch_name)
end
-- Override cfgsections callback to enforce row ordering by vlan id.
s.cfgsections = function(self)
local osections = TypedSection.cfgsections(self)
local sections = { }
local section
for _, section in luci.util.spairs(
osections,
function(a, b)
return (tonumber(m:get(osections[a], has_vlan4k or "vlan")) or 9999)
< (tonumber(m:get(osections[b], has_vlan4k or "vlan")) or 9999)
end
) do
sections[#sections+1] = section
end
return sections
end
-- When creating a new vlan, preset it with the highest found vid + 1.
s.create = function(self, section, origin)
-- Filter by switch
if m:get(origin, "device") ~= switch_name then
return
end
local sid = TypedSection.create(self, section)
local max_nr = 0
local max_id = 0
m.uci:foreach("network", "switch_vlan",
function(s)
if s.device == switch_name then
local nr = tonumber(s.vlan)
local id = has_vlan4k and tonumber(s[has_vlan4k])
if nr ~= nil and nr > max_nr then max_nr = nr end
if id ~= nil and id > max_id then max_id = id end
end
end)
m:set(sid, "device", switch_name)
m:set(sid, "vlan", max_nr + 1)
if has_vlan4k then
m:set(sid, has_vlan4k, max_id + 1)
end
return sid
end
local port_opts = { }
local untagged = { }
-- Parse current tagging state from the "ports" option.
local portvalue = function(self, section)
local pt
for pt in (m:get(section, "ports") or ""):gmatch("%w+") do
local pc, tu = pt:match("^(%d+)([tu]*)")
if pc == self.option then return (#tu > 0) and tu or "u" end
end
return ""
end
-- Validate port tagging. Ensure that a port is only untagged once,
-- bail out if not.
local portvalidate = function(self, value, section)
-- ensure that the ports appears untagged only once
if value == "u" then
if not untagged[self.option] then
untagged[self.option] = true
elseif min_vid > 0 or tonumber(self.option) ~= cpu_port then -- enable multiple untagged cpu ports due to weird broadcom default setup
return nil,
translatef("Port %d is untagged in multiple VLANs!", tonumber(self.option) + 1)
end
end
return value
end
local vid = s:option(Value, has_vlan4k or "vlan", "VLAN ID", "<div id='portstatus-%s'></div>" % switch_name)
local mx_vid = has_vlan4k and 4094 or (num_vlans - 1)
vid.rmempty = false
vid.forcewrite = true
vid.vlan_used = { }
vid.datatype = "and(uinteger,range("..min_vid..","..mx_vid.."))"
-- Validate user provided VLAN ID, make sure its within the bounds
-- allowed by the switch.
vid.validate = function(self, value, section)
local v = tonumber(value)
local m = has_vlan4k and 4094 or (num_vlans - 1)
if v ~= nil and v >= min_vid and v <= m then
if not self.vlan_used[v] then
self.vlan_used[v] = true
return value
else
return nil,
translatef("Invalid VLAN ID given! Only unique IDs are allowed")
end
else
return nil,
translatef("Invalid VLAN ID given! Only IDs between %d and %d are allowed.", min_vid, m)
end
end
-- When writing the "vid" or "vlan" option, serialize the port states
-- as well and write them as "ports" option to uci.
vid.write = function(self, section, value)
local o
local p = { }
for _, o in ipairs(port_opts) do
local v = o:formvalue(section)
if v == "t" then
p[#p+1] = o.option .. v
elseif v == "u" then
p[#p+1] = o.option
end
end
if enable_vlan4k then
m:set(sid, "enable_vlan4k", "1")
end
m:set(section, "ports", table.concat(p, " "))
return Value.write(self, section, value)
end
-- Fallback to "vlan" option if "vid" option is supported but unset.
vid.cfgvalue = function(self, section)
return m:get(section, has_vlan4k or "vlan")
or m:get(section, "vlan")
end
-- Build per-port off/untagged/tagged choice lists.
local pt
for pt = 0, num_ports - 1 do
local title
if pt == cpu_port then
title = translate("CPU")
else
title = translatef("Port %d", pt)
end
local po = s:option(ListValue, tostring(pt), title)
po:value("", translate("off"))
po:value("u", translate("untagged"))
po:value("t", translate("tagged"))
po.cfgvalue = portvalue
po.validate = portvalidate
po.write = function() end
port_opts[#port_opts+1] = po
end
switches[#switches+1] = switch_name
end
)
-- Switch status template
s = m:section(SimpleSection)
s.template = "admin_network/switch_status"
s.switches = switches
return m
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/crafted/shields/serverobjects.lua | 3 | 4589 | --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/shields/adv_deflector_shields.lua")
includeFile("tangible/ship/crafted/shields/advanced_projector_unit.lua")
includeFile("tangible/ship/crafted/shields/base_shields.lua")
includeFile("tangible/ship/crafted/shields/base_shields_subcomponent.lua")
includeFile("tangible/ship/crafted/shields/base_shields_subcomponent_mk1.lua")
includeFile("tangible/ship/crafted/shields/base_shields_subcomponent_mk2.lua")
includeFile("tangible/ship/crafted/shields/base_shields_subcomponent_mk3.lua")
includeFile("tangible/ship/crafted/shields/base_shields_subcomponent_mk4.lua")
includeFile("tangible/ship/crafted/shields/base_shields_subcomponent_mk5.lua")
includeFile("tangible/ship/crafted/shields/basic_shields.lua")
includeFile("tangible/ship/crafted/shields/deflector_shields.lua")
includeFile("tangible/ship/crafted/shields/exp_deflector_shields.lua")
includeFile("tangible/ship/crafted/shields/heavy_deflector_shields.lua")
includeFile("tangible/ship/crafted/shields/light_deflector_shields.lua")
includeFile("tangible/ship/crafted/shields/shield_energy_saver_kit_mk1.lua")
includeFile("tangible/ship/crafted/shields/shield_energy_saver_kit_mk2.lua")
includeFile("tangible/ship/crafted/shields/shield_energy_saver_kit_mk3.lua")
includeFile("tangible/ship/crafted/shields/shield_energy_saver_kit_mk4.lua")
includeFile("tangible/ship/crafted/shields/shield_energy_saver_kit_mk5.lua")
includeFile("tangible/ship/crafted/shields/shield_intensifier_mk1.lua")
includeFile("tangible/ship/crafted/shields/shield_intensifier_mk2.lua")
includeFile("tangible/ship/crafted/shields/shield_intensifier_mk3.lua")
includeFile("tangible/ship/crafted/shields/shield_intensifier_mk4.lua")
includeFile("tangible/ship/crafted/shields/shield_intensifier_mk5.lua")
includeFile("tangible/ship/crafted/shields/shield_limiter_mk1.lua")
includeFile("tangible/ship/crafted/shields/shield_limiter_mk2.lua")
includeFile("tangible/ship/crafted/shields/shield_limiter_mk3.lua")
includeFile("tangible/ship/crafted/shields/shield_limiter_mk4.lua")
includeFile("tangible/ship/crafted/shields/shield_limiter_mk5.lua")
includeFile("tangible/ship/crafted/shields/shield_overcharger_mk1.lua")
includeFile("tangible/ship/crafted/shields/shield_overcharger_mk2.lua")
includeFile("tangible/ship/crafted/shields/shield_overcharger_mk3.lua")
includeFile("tangible/ship/crafted/shields/shield_overcharger_mk4.lua")
includeFile("tangible/ship/crafted/shields/shield_overcharger_mk5.lua")
includeFile("tangible/ship/crafted/shields/standard_projector_unit.lua")
| agpl-3.0 |
DailyShana/ygopro-scripts | c13215230.lua | 3 | 1176 | --ドリーム・ピエロ
function c13215230.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(13215230,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_CHANGE_POS)
e1:SetCondition(c13215230.condition)
e1:SetTarget(c13215230.target)
e1:SetOperation(c13215230.operation)
c:RegisterEffect(e1)
end
function c13215230.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return bit.band(c:GetPreviousPosition(),POS_ATTACK)~=0 and c:IsFaceup() and c:IsDefencePos()
end
function c13215230.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsDestructable() end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c13215230.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/item/new_player/serverobjects.lua | 3 | 2257 | --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/item/new_player/new_player_cloning_coupon.lua")
includeFile("tangible/item/new_player/new_player_travel_coupon.lua")
includeFile("tangible/item/new_player/new_player_vehicle_coupon.lua")
| agpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.