repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/commands/stopBand.lua | 4 | 2117 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
--true = 1, false = 0
StopBandCommand = {
name = "stopband",
}
AddCommand(StopBandCommand)
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Cruor_Prospector.lua | 1 | 10478 | -----------------------------------
-- Area: Abyssea - Konschtat
-- NPC: Cruor Prospector
-- Type: Cruor NPC
-- !pos 132.000,-75.856,-822.000 15
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Abyssea-Konschtat/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/keyitems");
require("scripts/globals/abyssea");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local Cruor = player:getCurrency("cruor");
local Demilune = getDemiluneAbyssite(player);
player:startEvent(2002, Cruor, Demilune);
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);
local Price = 0;
local ItemID = 0;
local Quantity = 1;
-- Items Page 1
if (option == 65537) then -- Perle Salade
Price = 4000;
ItemID = 11503;
elseif (option == 131073) then -- Perle Hauberk
Price = 5000;
ItemID = 13759;
elseif (option == 196609) then -- Perle Moufles
Price = 3000;
ItemID = 12745;
elseif (option == 262145) then -- Perle Brayettes
Price = 3000;
ItemID = 14210;
elseif (option == 327681) then -- Perle Solerets
Price = 3000;
ItemID = 11413;
elseif (option == 393217) then -- Aurore Beret
Price = 4000;
ItemID = 11504;
elseif (option == 458753) then -- Aurore Doublet
Price = 5000;
ItemID = 13760;
elseif (option == 524289) then -- Aurore Gloves
Price = 3000;
ItemID = 12746;
elseif (option == 589825) then -- Aurore Brais
Price = 3000;
ItemID = 14257;
elseif (option == 655361) then -- Aurore Gaiters
Price = 3000;
ItemID = 11414;
-- Items Page 2
elseif (option == 720897) then -- Teal Chapeau
Price = 4000;
ItemID = 11505;
elseif (option == 786433) then -- Teal Saio
Price = 5000;
ItemID = 13778;
elseif (option == 851969) then -- Teal Cuffs
Price = 3000;
ItemID = 12747;
elseif (option == 917505) then -- Teal Slops
Price = 3000;
ItemID = 11415;
elseif (option == 983041) then -- Teal Pigaches
Price = 3000;
ItemID = 14258;
elseif (option == 17825793) then -- 1x Forbidden Key
Price = 500;
ItemID = 2490;
elseif (option == 84934657) then -- 5x Forbidden Key
Price = 2500;
ItemID = 2490;
Quantity = 5;
elseif (option == 168820737) then -- 10x Forbidden Key
Price = 5000;
ItemID = 2490;
Quantity = 10;
elseif (option == 504365057) then -- 30x Forbidden Key
Price = 15000;
ItemID = 2490;
Quantity = 30;
elseif (option == 839909377) then -- 50x Forbidden Key
Price = 25000;
ItemID = 2490;
Quantity = 50;
-- Temp items
elseif (option == 65538) then -- Lucid Potion I
if (player:addTempItem(5824,1)) then
player:messageSpecial(ITEM_OBTAINED,5824);
player:delCurrency("cruor", 80);
end
elseif (option == 131074) then -- Lucid Ether I
if (player:addTempItem(5827,1)) then
player:messageSpecial(ITEM_OBTAINED,5827);
player:delCurrency("cruor", 80);
end
elseif (option == 196610) then -- Catholicon
if (player:addTempItem(4206,1)) then
player:messageSpecial(ITEM_OBTAINED,4206);
player:delCurrency("cruor", 80);
end
elseif (option == 262146) then -- Dusty Elixer
if (player:addTempItem(5433,1)) then
player:messageSpecial(ITEM_OBTAINED,5433);
player:delCurrency("cruor", 120);
end
elseif (option == 327682) then -- Clear Salve I
if (player:addTempItem(5837,1)) then
player:messageSpecial(ITEM_OBTAINED,5837);
player:delCurrency("cruor", 120);
end
elseif (option == 393218) then -- Stalworts Tonic
if (player:addTempItem(5839,1)) then
player:messageSpecial(ITEM_OBTAINED,5839);
player:delCurrency("cruor", 150);
end
elseif (option == 458754) then -- Ascetics Tonic
if (player:addTempItem(5841,1)) then
player:messageSpecial(ITEM_OBTAINED,5841);
player:delCurrency("cruor", 150);
end
elseif (option == 524290) then -- Champion's Tonic
if (player:addTempItem(5843,1)) then
player:messageSpecial(ITEM_OBTAINED,5843);
player:delCurrency("cruor", 150);
end
elseif (option == 589826) then -- Lucid Potion II
if (player:addTempItem(5825,1)) then
player:messageSpecial(ITEM_OBTAINED,5825);
player:delCurrency("cruor", 200);
end
elseif (option == 655362) then -- Lucid Potion II
if (player:addTempItem(5828,1)) then
player:messageSpecial(ITEM_OBTAINED,5828);
player:delCurrency("cruor", 200);
end
-- Keyitems
elseif (option == 65539) then -- Map of Abyssea - Konschtat
if (player:hasKeyItem(MAP_OF_ABYSSEA_KONSCHTAT) == false) then
player:messageSpecial(KEYITEM_OBTAINED,MAP_OF_ABYSSEA_KONSCHTAT);
player:addKeyItem(MAP_OF_ABYSSEA_KONSCHTAT);
player:delCurrency("cruor", 3500);
end
elseif (option == 131075) then -- Ivory Abyssite of Sojourn
if (player:hasKeyItem(IVORY_ABYSSITE_OF_SOJOURN) == false) then
player:messageSpecial(KEYITEM_OBTAINED,IVORY_ABYSSITE_OF_SOJOURN);
player:addKeyItem(IVORY_ABYSSITE_OF_SOJOURN);
player:delCurrency("cruor", 6000);
end
elseif (option == 196611) then -- Ivory Abyssite of Confluence
if (player:hasKeyItem(IVORY_ABYSSITE_OF_CONFLUENCE) == false) then
player:messageSpecial(KEYITEM_OBTAINED,IVORY_ABYSSITE_OF_CONFLUENCE);
player:addKeyItem(IVORY_ABYSSITE_OF_CONFLUENCE);
player:delCurrency("cruor", 4800);
end
elseif (option == 262147) then -- Ivory Abyssite of Expertise
if (player:hasKeyItem(IVORY_ABYSSITE_OF_EXPERTISE) == false) then
player:messageSpecial(KEYITEM_OBTAINED,IVORY_ABYSSITE_OF_EXPERTISE);
player:addKeyItem(IVORY_ABYSSITE_OF_EXPERTISE);
player:delCurrency("cruor", 4800);
end
elseif (option == 458755) then -- Clear Demilune Abyssite
if (player:hasKeyItem(CLEAR_DEMILUNE_ABYSSITE) == false) then
player:messageSpecial(KEYITEM_OBTAINED,CLEAR_DEMILUNE_ABYSSITE);
player:addKeyItem(CLEAR_DEMILUNE_ABYSSITE);
player:delCurrency("cruor", 300);
end
-- Enhancement Effects (only removed by zoning, infinite duration)
elseif (option == 393220) then -- HP Boost
player:addStatusEffectEx(dsp.effects.ABYSSEA_HP,EFFECT_MAX_HP_BOOST,20+(getAbyssiteTotal(player,"MERIT") *10),0,0);
player:addHP(20+(getAbyssiteTotal(player,"MERIT") *10) *10);
player:delCurrency("cruor", 50);
elseif (option == 458756) then -- MP Boost
player:addStatusEffectEx(dsp.effects.ABYSSEA_MP,EFFECT_MAX_MP_BOOST,10+(getAbyssiteTotal(player,"MERIT") *5),0,0);
player:addMP(10+(getAbyssiteTotal(player,"MERIT") *5) *10);
player:delCurrency("cruor", 120);
elseif (option == 524292) then -- STR-DEX Boost
player:addStatusEffectEx(dsp.effects.ABYSSEA_STR,EFFECT_STR_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_DEX,EFFECT_DEX_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:delCurrency("cruor", 120);
elseif (option == 589828) then -- VIT-AGI Boost
player:addStatusEffectEx(dsp.effects.ABYSSEA_VIT,EFFECT_VIT_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_AGI,EFFECT_AGI_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:delCurrency("cruor", 100);
elseif (option == 655364) then -- INT-MND-CHR Boost
player:addStatusEffectEx(dsp.effects.ABYSSEA_INT,EFFECT_INT_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_MND,EFFECT_MND_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_CHR,EFFECT_CHR_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:delCurrency("cruor", 100);
elseif (option == 720900) then -- All Enhancements
player:addStatusEffectEx(dsp.effects.ABYSSEA_HP,EFFECT_MAX_HP_BOOST,20+(getAbyssiteTotal(player,"MERIT") *10),0,0);
player:addHP(20+(getAbyssiteTotal(player,"MERIT") *10) *10);
player:addStatusEffectEx(dsp.effects.ABYSSEA_MP,EFFECT_MAX_MP_BOOST,10+(getAbyssiteTotal(player,"MERIT") *5),0,0);
player:addMP(10+(getAbyssiteTotal(player,"MERIT") *5) *10);
player:addStatusEffectEx(dsp.effects.ABYSSEA_STR,EFFECT_STR_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_DEX,EFFECT_DEX_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_VIT,EFFECT_VIT_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_AGI,EFFECT_AGI_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_INT,EFFECT_INT_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_MND,EFFECT_MND_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:addStatusEffectEx(dsp.effects.ABYSSEA_CHR,EFFECT_CHR_BOOST,10+(getAbyssiteTotal(player,"FURTHERANCE") *10),0,0);
player:delCurrency("cruor", 470);
end
if (ItemID ~= 0) then
if (player:getFreeSlotsCount() >= 1) then
player:messageSpecial(ITEM_OBTAINED,ItemID);
player:addItem(ItemID,Quantity);
player:delCurrency("cruor", Price);
else
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,ItemID);
end
end
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/item/craftable_bug_habitat.lua | 2 | 3232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_item_craftable_bug_habitat = object_draft_schematic_item_shared_craftable_bug_habitat:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Creature Habitat",
craftingToolTab = 524288, -- (See DraftSchemticImplementation.h)
complexity = 14,
size = 1,
xpType = "crafting_general",
xp = 60,
assemblySkill = "general_assembly",
experimentingSkill = "general_experimentation",
customizationSkill = "general_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n"},
ingredientTitleNames = {"container", "life_support", "creature_sample"},
ingredientSlotType = {0, 0, 2},
resourceTypes = {"metal", "chemical", "object/tangible/bug_jar/shared_sample_bugs.iff"},
resourceQuantities = {20, 10, 1},
contribution = {100, 100, 100},
targetTemplate = "object/tangible/bug_jar/craftable_bug_habitat.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_item_craftable_bug_habitat, "object/draft_schematic/item/craftable_bug_habitat.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c5914184.lua | 3 | 1914 | --倍返し
function c5914184.initial_effect(c)
--counter
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_DAMAGE)
e1:SetCondition(c5914184.actcon)
e1:SetOperation(c5914184.actop)
c:RegisterEffect(e1)
end
function c5914184.actcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and tp~=rp and ev>=1000 and bit.band(r,REASON_EFFECT)~=0
end
function c5914184.actop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
local ct=math.floor(ev/1000)
c:AddCounter(0x1a,ct)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5914184,0))
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCondition(c5914184.damcon)
e1:SetTarget(c5914184.damtg)
e1:SetOperation(c5914184.damop)
if Duel.GetTurnPlayer()==tp then
e1:SetLabel(0)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
else
e1:SetLabel(Duel.GetTurnCount())
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2)
end
c:RegisterEffect(e1)
end
end
function c5914184.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and Duel.GetTurnCount()~=e:GetLabel()
end
function c5914184.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
local dam=e:GetHandler():GetCounter(0x1a)*2000;
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end
function c5914184.damop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.Destroy(e:GetHandler(),REASON_EFFECT)~=0 then
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/deed/pet_deed/snorbal_deed.lua | 2 | 2741 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_deed_pet_deed_snorbal_deed = object_tangible_deed_pet_deed_shared_snorbal_deed:new {
templateType = PETDEED,
numberExperimentalProperties = {1, 1},
experimentalProperties = {"XX", "XX"},
experimentalWeights = {1, 1},
experimentalGroupTitles = {"null", "null"},
experimentalSubGroupTitles = {"null", "null"},
experimentalMin = {0, 0},
experimentalMax = {0, 0},
experimentalPrecision = {0, 0},
experimentalCombineType = {0, 0},
generatedObjectTemplate = "mobile/pet/snorbal_be.iff",
controlDeviceObjectTemplate = "object/intangible/pet/snorbal_hue.iff",
mobileTemplate = "snorbal_be",
}
ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_snorbal_deed, "object/tangible/deed/pet_deed/snorbal_deed.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_jacket_field_16.lua | 2 | 3445 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_clothing_clothing_jacket_field_16 = object_draft_schematic_clothing_shared_clothing_jacket_field_16:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Cold Weather Jacket",
craftingToolTab = 8, -- (See DraftSchemticImplementation.h)
complexity = 21,
size = 3,
xpType = "crafting_clothing_general",
xp = 100,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {2, 1},
customizationStringNames = {"/private/index_color_1", "/private/index_color_2"},
customizationDefaults = {94, 11},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"heavy_shell", "binding_and_weatherproofing", "liner", "reinforcement"},
ingredientSlotType = {1, 0, 0, 0},
resourceTypes = {"object/tangible/component/clothing/shared_synthetic_cloth.iff", "petrochem_inert", "fiberplast", "metal"},
resourceQuantities = {1, 10, 15, 20},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/jacket/jacket_s16.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_jacket_field_16, "object/draft_schematic/clothing/clothing_jacket_field_16.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/perlek/lair_perlek_grassland.lua | 2 | 2308 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_perlek_lair_perlek_grassland = object_tangible_lair_perlek_shared_lair_perlek_grassland:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_perlek_lair_perlek_grassland, "object/tangible/lair/perlek/lair_perlek_grassland.iff")
| agpl-3.0 |
sjznxd/lc-20130116 | applications/luci-pbx/luasrc/model/cbi/pbx.lua | 146 | 4360 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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 3 of the License, or
(at your option) any later version.
luci-pbx 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 luci-pbx. If not, see <http://www.gnu.org/licenses/>.
]]--
modulename = "pbx"
if nixio.fs.access("/etc/init.d/asterisk") then
server = "asterisk"
elseif nixio.fs.access("/etc/init.d/freeswitch") then
server = "freeswitch"
else
server = ""
end
-- Returns formatted output of string containing only the words at the indices
-- specified in the table "indices".
function format_indices(string, indices)
if indices == nil then
return "Error: No indices to format specified.\n"
end
-- Split input into separate lines.
lines = luci.util.split(luci.util.trim(string), "\n")
-- Split lines into separate words.
splitlines = {}
for lpos,line in ipairs(lines) do
splitlines[lpos] = luci.util.split(luci.util.trim(line), "%s+", nil, true)
end
-- For each split line, if the word at all indices specified
-- to be formatted are not null, add the formatted line to the
-- gathered output.
output = ""
for lpos,splitline in ipairs(splitlines) do
loutput = ""
for ipos,index in ipairs(indices) do
if splitline[index] ~= nil then
loutput = loutput .. string.format("%-40s", splitline[index])
else
loutput = nil
break
end
end
if loutput ~= nil then
output = output .. loutput .. "\n"
end
end
return output
end
m = Map (modulename, translate("PBX Main Page"),
translate("This configuration page allows you to configure a phone system (PBX) service which \
permits making phone calls through multiple Google and SIP (like Sipgate, \
SipSorcery, and Betamax) accounts and sharing them among many SIP devices. \
Note that Google accounts, SIP accounts, and local user accounts are configured in the \
\"Google Accounts\", \"SIP Accounts\", and \"User Accounts\" sub-sections. \
You must add at least one User Account to this PBX, and then configure a SIP device or \
softphone to use the account, in order to make and receive calls with your Google/SIP \
accounts. Configuring multiple users will allow you to make free calls between all users, \
and share the configured Google and SIP accounts. If you have more than one Google and SIP \
accounts set up, you should probably configure how calls to and from them are routed in \
the \"Call Routing\" page. If you're interested in using your own PBX from anywhere in the \
world, then visit the \"Remote Usage\" section in the \"Advanced Settings\" page."))
-----------------------------------------------------------------------------------------
s = m:section(NamedSection, "connection_status", "main",
translate("PBX Service Status"))
s.anonymous = true
s:option (DummyValue, "status", translate("Service Status"))
sts = s:option(DummyValue, "_sts")
sts.template = "cbi/tvalue"
sts.rows = 20
function sts.cfgvalue(self, section)
if server == "asterisk" then
regs = luci.sys.exec("asterisk -rx 'sip show registry' | sed 's/peer-//'")
jabs = luci.sys.exec("asterisk -rx 'jabber show connections' | grep onnected")
usrs = luci.sys.exec("asterisk -rx 'sip show users'")
chan = luci.sys.exec("asterisk -rx 'core show channels'")
return format_indices(regs, {1, 5}) ..
format_indices(jabs, {2, 4}) .. "\n" ..
format_indices(usrs, {1} ) .. "\n" .. chan
elseif server == "freeswitch" then
return "Freeswitch is not supported yet.\n"
else
return "Neither Asterisk nor FreeSwitch discovered, please install Asterisk, as Freeswitch is not supported yet.\n"
end
end
return m
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/quest/endor/theme_park_marauder_ewok_holy.lua | 1 | 1031 | theme_park_marauder_ewok_holy = Creature:new {
objectName = "@npc_name:ewok_base_male",
customName = "Ewok Holy One",
socialGroup = "gondula_tribe",
faction = "gondula_tribe",
level = 34,
chanceHit = 0.35,
damageMin = 400,
damageMax = 550,
baseXp = 4000,
baseHAM = 9000,
baseHAMmax = 11000,
armor = 0,
resists = {30,30,30,30,30,30,30,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_ewok_m_07.iff"},
lootGroups =
{
{
groups = {
{group = "theme_park_loot_marauder_ewok_staff", chance = 10000000}
},
lootChance = 10000000
}
},
weapons = {"ewok_weapons"},
conversationTemplate = "",
attacks = merge(riflemanmaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(theme_park_marauder_ewok_holy, "theme_park_marauder_ewok_holy")
| agpl-3.0 |
KingRaptor/Zero-K | units/armzeus.lua | 1 | 4998 | unitDef = {
unitname = [[armzeus]],
name = [[Zeus]],
description = [[Lightning Assault Bot]],
acceleration = 0.2,
brakeRate = 0.6,
buildCostMetal = 350,
buildPic = [[ARMZEUS.png]],
canAttack = true,
canGuard = true,
canMove = true,
canPatrol = true,
canstop = [[1]],
category = [[LAND]],
collisionVolumeOffsets = [[0 0 7]],
collisionVolumeScales = [[35 50 35]],
collisionVolumeType = [[cylY]],
corpse = [[DEAD]],
customParams = {
description_de = [[Sturmroboter]],
description_fr = [[Marcheur d'Assaut]],
helptext = [[Slowly and steadily, groups of Zeuses can shrug off heavy fire as they make their way towards enemy fortifications, until they can field their short-range lightning cannon, which damages and stuns entrenched foes. Counter with anything that can reliably kite it, making sure that you don't get paralyzed (in which case you are as good as dead.)]],
helptext_de = [[Langsam und zuverlässig, Gruppen von Zeus' können sogar starken Beschuss ignorieren und so schnell an die feindliche Festung herankommen, bis sie dort ihre Blitzschlagkanonen mit kurzer Reichweite zum Einsatz bringen können, welche feindliche Einheiten schädigt und betäubt. Kontere den Zeus mit Einheiten, die umherflitzen, damit sie nicht paralysiert werden (denn dann sind sie so gut wie tot).]],
helptext_fr = [[Lentement mais surement, un groupe de Zeus peut encaisser les tirs enemis lourd jusqu'a ce qu'ils atteignent les fortifications et puissent utiliser leur canon éclair courte portée qui peut paralyser et endommager les enemis retranchés.]],
modelradius = [[12]],
},
explodeAs = [[BIG_UNITEX]],
footprintX = 3,
footprintZ = 3,
iconType = [[kbotassault]],
idleAutoHeal = 5,
idleTime = 1800,
leaveTracks = true,
losEmitHeight = 35,
maxDamage = 2400,
maxSlope = 36,
maxVelocity = 1.7,
maxWaterDepth = 22,
minCloakDistance = 75,
movementClass = [[KBOT3]],
noChaseCategory = [[TERRAFORM FIXEDWING SUB]],
objectName = [[spherezeus.s3o]],
script = [[armzeus.lua]],
selfDestructAs = [[BIG_UNITEX]],
sfxtypes = {
explosiongenerators = {
[[custom:zeusmuzzle]],
[[custom:zeusgroundflash]],
},
},
sightDistance = 325,
trackOffset = 0,
trackStrength = 8,
trackStretch = 1,
trackType = [[ComTrack]],
trackWidth = 26,
turnRate = 1400,
upright = true,
weapons = {
{
def = [[LIGHTNING]],
badTargetCategory = [[FIXEDWING]],
onlyTargetCategory = [[FIXEDWING LAND SINK TURRET SHIP SWIM FLOAT GUNSHIP HOVER]],
},
},
weaponDefs = {
LIGHTNING = {
name = [[Lightning Gun]],
areaOfEffect = 8,
craterBoost = 0,
craterMult = 0,
customParams = {
extra_damage = [[240]],
light_camera_height = 1600,
light_color = [[0.85 0.85 1.2]],
light_radius = 200,
},
cylinderTargeting = 0,
damage = {
default = 600,
empresistant75 = 150,
empresistant99 = 6,
},
duration = 10,
explosionGenerator = [[custom:LIGHTNINGPLOSION]],
fireStarter = 50,
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0,
intensity = 12,
interceptedByShieldType = 1,
paralyzer = true,
paralyzeTime = 1,
range = 280,
reloadtime = 2.2,
rgbColor = [[0.5 0.5 1]],
soundStart = [[weapon/more_lightning_fast]],
soundTrigger = true,
sprayAngle = 900,
texture1 = [[lightning]],
thickness = 10,
turret = true,
waterweapon = false,
weaponType = [[LightningCannon]],
weaponVelocity = 400,
},
},
featureDefs = {
DEAD = {
blocking = true,
featureDead = [[HEAP]],
footprintX = 2,
footprintZ = 2,
object = [[spherezeus_dead.s3o]],
},
HEAP = {
blocking = false,
footprintX = 2,
footprintZ = 2,
object = [[debris2x2c.s3o]],
},
},
}
return lowerkeys({ armzeus = unitDef })
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/installation/mining_ore/base/objects.lua | 3 | 3885 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_installation_mining_ore_base_shared_mining_ore_base = SharedInstallationObjectTemplate:new {
clientTemplateFileName = "object/installation/mining_ore/base/shared_mining_ore_base.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 15,
clientDataFile = "",
clientGameObjectType = 4099,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_n:default_craftable",
gameObjectType = 4099,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@installation_name:ore_harvester",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "abstract/slot/descriptor/tangible.iff",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "footprint/installation/base/shared_installation_base.sfp",
surfaceType = 1,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1937734566,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/base/shared_tangible_craftable.iff", "object/installation/base/shared_installation_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_installation_mining_ore_base_shared_mining_ore_base, "object/installation/mining_ore/base/shared_mining_ore_base.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/item/item_fishing_pole.lua | 2 | 3203 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_item_item_fishing_pole = object_draft_schematic_item_shared_item_fishing_pole:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Fishing Pole",
craftingToolTab = 524288, -- (See DraftSchemticImplementation.h)
complexity = 8,
size = 1,
xpType = "crafting_general",
xp = 36,
assemblySkill = "general_assembly",
experimentingSkill = "general_experimentation",
customizationSkill = "general_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n"},
ingredientTitleNames = {"rod", "cable_guides", "cable", "reel"},
ingredientSlotType = {0, 0, 0, 0},
resourceTypes = {"inorganic", "metal", "chemical", "metal"},
resourceQuantities = {7, 2, 4, 5},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/fishing/fishing_pole.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_item_item_fishing_pole, "object/draft_schematic/item/item_fishing_pole.iff")
| agpl-3.0 |
KingRaptor/Zero-K | ModelMaterials/0_customskins.lua | 16 | 2011 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local materials = {
altSkinS3o = {
shaderDefinitions = {
},
shader = include("ModelMaterials/Shaders/default.lua"),
deferred = include("ModelMaterials/Shaders/default.lua"),
force = true,
usecamera = false,
culling = GL.BACK,
texunits = {
[0] = '%ALTSKIN',
[1] = '%ALTSKIN2',
[2] = '$shadow',
[3] = '$specular',
[4] = '$reflection',
[5] = '%NORMALTEX',
},
},
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local unitMaterials = {}
for i=1,#UnitDefs do
local udef = UnitDefs[i]
if (udef.customParams.altskin and VFS.FileExists(udef.customParams.altskin)) then
local tex2 = "%%"..i..":1"
unitMaterials[i] = {"altSkinS3o", ALTSKIN = udef.customParams.altskin, ALTSKIN2 = udef.customParams.altskin2 or tex2}
end --if
end --for
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local skinDefs = include("LuaRules/Configs/dynamic_comm_skins.lua")
for name, data in pairs(skinDefs) do
local altskin2 = data.altskin2
if not altskin2 then
altskin2 = "%%" .. UnitDefNames["dyn" .. data.chassis .. "0"].id .. ":1"
end
unitMaterials[name] = {"altSkinS3o", ALTSKIN = data.altskin, ALTSKIN2 = altskin2}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
return materials, unitMaterials
--------------------------------------------------------------------------------
-------------------------------------------------------------------------------- | gpl-2.0 |
DailyShana/ygopro-scripts | c22201234.lua | 5 | 2139 | --ライトロード・バリア
function c22201234.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c22201234.atg)
e1:SetOperation(c22201234.aop)
c:RegisterEffect(e1)
--quick
local e2=Effect.CreateEffect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetDescription(aux.Stringid(22201234,1))
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_BE_BATTLE_TARGET)
e2:SetCondition(c22201234.qcon)
e2:SetCost(c22201234.qcost)
e2:SetTarget(c22201234.qtg)
e2:SetOperation(c22201234.qop)
c:RegisterEffect(e2)
end
function c22201234.atg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc==Duel.GetAttacker() end
if chk==0 then return true end
if Duel.CheckEvent(EVENT_BE_BATTLE_TARGET) then
local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget()
if d:IsFaceup() and d:IsSetCard(0x38) and d:IsControler(tp) and Duel.IsPlayerCanDiscardDeckAsCost(tp,2)
and a:IsOnField() and a:IsCanBeEffectTarget(e) and Duel.SelectYesNo(tp,aux.Stringid(22201234,0)) then
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetLabel(1)
Duel.DiscardDeck(tp,2,REASON_COST)
Duel.SetTargetCard(a)
end
else
e:SetProperty(0)
e:SetLabel(0)
end
end
function c22201234.aop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if e:GetLabel()==1 then
Duel.NegateAttack()
end
end
function c22201234.qcon(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget()
return d:IsFaceup() and d:IsSetCard(0x38) and d:IsControler(tp) and not e:GetHandler():IsStatus(STATUS_CHAINING)
end
function c22201234.qcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,2) end
Duel.DiscardDeck(tp,2,REASON_COST)
end
function c22201234.qtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tg=Duel.GetAttacker()
if chkc then return chkc==tg end
if chk==0 then return tg:IsOnField() and tg:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(tg)
end
function c22201234.qop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.NegateAttack()
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c84124261.lua | 5 | 1250 | --No.39 希望皇ホープ・ルーツ
function c84124261.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,1,2)
c:EnableReviveLimit()
--disable attack
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(84124261,0))
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCost(c84124261.atkcost)
e1:SetTarget(c84124261.atktg)
e1:SetOperation(c84124261.atkop)
c:RegisterEffect(e1)
end
c84124261.xyz_number=39
function c84124261.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c84124261.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetCard(Duel.GetAttacker())
end
function c84124261.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if Duel.NegateAttack() and tc:IsType(TYPE_XYZ) and tc:IsFaceup()
and c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(tc:GetRank()*500)
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c89310929.lua | 5 | 1734 | --霞の谷の雷神鬼
function c89310929.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsSetCard,0x37),1)
c:EnableReviveLimit()
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(89310929,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c89310929.condition)
e1:SetTarget(c89310929.target)
e1:SetOperation(c89310929.operation)
c:RegisterEffect(e1)
end
function c89310929.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c89310929.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and chkc:IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c89310929.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) then return end
Duel.SendtoHand(tc,nil,REASON_EFFECT)
local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) or not tc:IsLocation(LOCATION_HAND) then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500)
e1:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
end
| gpl-2.0 |
Whitechaser/darkstar | scripts/zones/Temenos/bcnms/central_temenos_3rd_floor.lua | 35 | 1139 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_3rd]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1305),TEMENOS);
HideTemenosDoor(GetInstanceRegion(1305));
player:setVar("Limbus_Trade_Item-T",0);
end;
-- Physically entering the BCNM via bcnmEnter(bcnmid)
function onBcnmEnter(player,instance)
player:setVar("limbusbitmap",0);
player:setVar("characterLimbusKey",GetServerVariable("[C_Temenos_3rd]UniqueID"));
player:setVar("LimbusID",1305);
player:delKeyItem(COSMOCLEANSE);
player:delKeyItem(WHITE_CARD);
end;
-- Leaving by every mean possible, given by the LeaveCode
-- 3=Disconnected or warped out (if dyna is empty: launch 4 after 3)
-- 4=Finish he dynamis
function onBcnmLeave(player,instance,leavecode)
--print("leave code "..leavecode);
if (leavecode == 4) then
player:setPos(580,-1.5,4.452,192);
ResetPlayerLimbusVariable(player)
end
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/crafted/shields/base_shields_subcomponent_mk3.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_crafted_shields_base_shields_subcomponent_mk3 = object_tangible_ship_crafted_shields_shared_base_shields_subcomponent_mk3:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_crafted_shields_base_shields_subcomponent_mk3, "object/tangible/ship/crafted/shields/base_shields_subcomponent_mk3.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/dantooine/novice_force_mystic.lua | 2 | 1267 | novice_force_mystic = Creature:new {
objectName = "@mob/creature_names:novice_force_mystic",
socialGroup = "force",
faction = "",
level = 60,
chanceHit = 0.6,
damageMin = 475,
damageMax = 660,
baseXp = 5830,
baseHAM = 11000,
baseHAMmax = 13000,
armor = 1,
resists = {30,30,15,15,5,15,15,15,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER + HEALER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_novice_force_mystic.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 5000000},
{group = "crystals_poor", chance = 500000},
{group = "color_crystals", chance = 500000},
{group = "melee_weapons", chance = 1000000},
{group = "armor_attachments", chance = 500000},
{group = "clothing_attachments", chance = 500000},
{group = "wearables_common", chance = 1000000},
{group = "wearables_uncommon", chance = 1000000}
}
}
},
weapons = {"mixed_force_weapons"},
conversationTemplate = "",
attacks = merge(pikemanmaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(novice_force_mystic, "novice_force_mystic")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/vehicle/component/structural_reinforcement_heavy.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_draft_schematic_vehicle_component_structural_reinforcement_heavy = object_draft_schematic_vehicle_component_shared_structural_reinforcement_heavy:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_vehicle_component_structural_reinforcement_heavy, "object/draft_schematic/vehicle/component/structural_reinforcement_heavy.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/munition/base_munition.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_draft_schematic_munition_base_munition = object_draft_schematic_munition_shared_base_munition:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_munition_base_munition, "object/draft_schematic/munition/base_munition.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s02_red.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_tangible_furniture_all_frn_all_light_lamp_candlestick_tbl_s02_red = object_tangible_furniture_all_shared_frn_all_light_lamp_candlestick_tbl_s02_red:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_light_lamp_candlestick_tbl_s02_red, "object/tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s02_red.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/droid/component/diagnostic_circuit.lua | 2 | 3183 | --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_component_diagnostic_circuit = object_draft_schematic_droid_component_shared_diagnostic_circuit:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Diagnostic Circuit",
craftingToolTab = 32, -- (See DraftSchemticImplementation.h)
complexity = 10,
size = 1,
xpType = "crafting_droid_general",
xp = 50,
assemblySkill = "droid_assembly",
experimentingSkill = "droid_experimentation",
customizationSkill = "droid_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_droid_ingredients_n", "craft_droid_ingredients_n"},
ingredientTitleNames = {"insulated_board_material", "integrated_circuit"},
ingredientSlotType = {0, 0},
resourceTypes = {"ore", "metal"},
resourceQuantities = {10, 5},
contribution = {100, 100},
targetTemplate = "object/tangible/component/droid/repair/diagnostic_circuit.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_component_diagnostic_circuit, "object/draft_schematic/droid/component/diagnostic_circuit.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/skeleton/rabbit.lua | 3 | 2176 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_skeleton_rabbit = object_mobile_skeleton_shared_rabbit:new {
}
ObjectTemplates:addTemplate(object_mobile_skeleton_rabbit, "object/mobile/skeleton/rabbit.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Windurst-Jeuno_Airship/TextIDs.lua | 8 | 1084 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6386; -- Obtained: <item>
GIL_OBTAINED = 6387; -- Obtained <number> gil
KEYITEM_OBTAINED = 6389; -- Obtained key item: <keyitem>
-- Other
WILL_REACH_JEUNO = 7047; -- The airship will reach Jeuno in Multiple Choice (Parameter 1)[less than an hour/about 1 hour/about 2 hours/about 3 hours/about 4 hours/about 5 hours/about 6 hours/about 7 hours] ( Singular/Plural Choice (Parameter 0)[minute/minutes] in Earth time).
WILL_REACH_WINDURST = 7048; -- The airship will reach Windurst in Multiple Choice (Parameter 1)[less than an hour/about 1 hour/about 2 hours/about 3 hours/about 4 hours/about 5 hours/about 6 hours/about 7 hours] ( Singular/Plural Choice (Parameter 0)[minute/minutes] in Earth time).
IN_JEUNO_MOMENTARILY = 7049; -- We will be arriving in Jeuno momentarily.
IN_WINDURST_MOMENTARILY = 7050; -- We will be arriving in Windurst momentarily.
| gpl-3.0 |
sjznxd/lc-20130116 | applications/luci-statistics/luasrc/statistics/datatree.lua | 77 | 4394 | --[[
Luci statistics - rrd data tree builder
(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$
]]--
module("luci.statistics.datatree", package.seeall)
local util = require("luci.util")
local sys = require("luci.sys")
local fs = require("nixio.fs")
local uci = require("luci.model.uci").cursor()
local sections = uci:get_all("luci_statistics")
Instance = util.class()
function Instance.__init__( self, host )
self._host = host or sections.collectd.Hostname or sys.hostname()
self._libdir = sections.collectd.PluginDir or "/usr/lib/collectd"
self._rrddir = sections.collectd_rrdtool.DataDir or "/tmp/rrd"
self._libdir = self._libdir:gsub("/$","")
self._rrddir = self._rrddir:gsub("/$","")
self._plugins = { }
self:_scan()
end
function Instance._mkpath( self, plugin, pinstance )
local dir = self._rrddir .. "/" .. self._host
if type(plugin) == "string" and plugin:len() > 0 then
dir = dir .. "/" .. plugin
if type(pinstance) == "string" and pinstance:len() > 0 then
dir = dir .. "-" .. pinstance
end
end
return dir
end
function Instance._ls( self, ... )
local ditr = fs.dir(self:_mkpath(...))
if ditr then
local dirs = { }
while true do
local d = ditr()
if not d then break end
dirs[#dirs+1] = d
end
return dirs
end
end
function Instance._notzero( self, table )
for k in pairs(table) do
return true
end
return false
end
function Instance._scan( self )
local dirs = self:_ls()
if not dirs then
return
end
-- for i, plugin in ipairs( dirs ) do
-- if plugin:match("%w+.so") then
-- self._plugins[ plugin:gsub("%.so$", "") ] = { }
-- end
-- end
for _, dir in ipairs(dirs) do
if dir ~= "." and dir ~= ".." and
fs.stat(self:_mkpath(dir)).type == "dir"
then
local plugin = dir:gsub("%-.+$", "")
if not self._plugins[plugin] then
self._plugins[plugin] = { }
end
end
end
for plugin, instances in pairs( self._plugins ) do
local dirs = self:_ls()
if type(dirs) == "table" then
for i, dir in ipairs(dirs) do
if dir:find( plugin .. "%-" ) or dir == plugin then
local instance = ""
if dir ~= plugin then
instance = dir:gsub( plugin .. "%-", "", 1 )
end
instances[instance] = { }
end
end
end
for instance, data_instances in pairs( instances ) do
dirs = self:_ls(plugin, instance)
if type(dirs) == "table" then
for i, file in ipairs(dirs) do
if file:find("%.rrd") then
file = file:gsub("%.rrd","")
local data_type
local data_instance
if file:find("%-") then
data_type = file:gsub( "%-.+","" )
data_instance = file:gsub( "[^%-]-%-", "", 1 )
else
data_type = file
data_instance = ""
end
if not data_instances[data_type] then
data_instances[data_type] = { data_instance }
else
table.insert( data_instances[data_type], data_instance )
end
end
end
end
end
end
end
function Instance.plugins( self )
local rv = { }
for plugin, val in pairs( self._plugins ) do
if self:_notzero( val ) then
table.insert( rv, plugin )
end
end
return rv
end
function Instance.plugin_instances( self, plugin )
local rv = { }
for instance, val in pairs( self._plugins[plugin] ) do
table.insert( rv, instance )
end
return rv
end
function Instance.data_types( self, plugin, instance )
local rv = { }
local p = self._plugins[plugin]
if type(p) == "table" and type(p[instance]) == "table" then
for type, val in pairs(p[instance]) do
table.insert( rv, type )
end
end
return rv
end
function Instance.data_instances( self, plugin, instance, dtype )
local rv = { }
local p = self._plugins[plugin]
if type(p) == "table" and type(p[instance]) == "table" and type(p[instance][dtype]) == "table" then
for i, instance in ipairs(p[instance][dtype]) do
table.insert( rv, instance )
end
end
return rv
end
function Instance.host_instances( self )
local hosts_path = fs.glob(self._rrddir..'/*')
local hosts = { }
if hosts_path then
local path
for path in hosts_path do
hosts[#hosts+1] = fs.basename(path)
end
end
return hosts
end
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_ith_jewelry_necklace_09.lua | 2 | 3337 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_clothing_clothing_ith_jewelry_necklace_09 = object_draft_schematic_clothing_shared_clothing_ith_jewelry_necklace_09:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Ithorian Silver Pendant",
craftingToolTab = 8, -- (See DraftSchemticImplementation.h)
complexity = 21,
size = 2,
xpType = "crafting_clothing_general",
xp = 75,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"clasp", "band", "jewelry_setting"},
ingredientSlotType = {0, 0, 1},
resourceTypes = {"steel", "gemstone_armophous", "object/tangible/component/clothing/shared_jewelry_setting.iff"},
resourceQuantities = {20, 10, 3},
contribution = {100, 100, 100},
targetTemplate = "object/tangible/wearables/ithorian/ith_necklace_s09.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_ith_jewelry_necklace_09, "object/draft_schematic/clothing/clothing_ith_jewelry_necklace_09.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/deed/city_deed/garden_corellia_med_05_deed.lua | 3 | 2488 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_deed_city_deed_garden_corellia_med_05_deed = object_tangible_deed_city_deed_shared_garden_corellia_med_05_deed:new {
templateType = STRUCTUREDEED,
placeStructureComponent = "PlaceDecorationComponent",
gameObjectType = 8388609,
generatedObjectTemplate = "object/building/player/city/garden_corellia_med_05.iff"
}
ObjectTemplates:addTemplate(object_tangible_deed_city_deed_garden_corellia_med_05_deed, "object/tangible/deed/city_deed/garden_corellia_med_05_deed.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/commands/remote.lua | 4 | 2111 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
--true = 1, false = 0
RemoteCommand = {
name = "remote",
}
AddCommand(RemoteCommand)
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/vehicle/landspeeder_x31.lua | 2 | 2208 | --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_vehicle_landspeeder_x31 = object_mobile_vehicle_shared_landspeeder_x31:new {
}
ObjectTemplates:addTemplate(object_mobile_vehicle_landspeeder_x31, "object/mobile/vehicle/landspeeder_x31.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/weapon/component/blaster_pistol_barrel_advanced.lua | 1 | 3508 | --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_weapon_component_blaster_pistol_barrel_advanced = object_draft_schematic_weapon_component_shared_blaster_pistol_barrel_advanced:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Advanced Blaster Pistol Barrel",
craftingToolTab = 1, -- (See DraftSchemticImplementation.h)
complexity = 20,
size = 2,
xpType = "crafting_weapons_general",
xp = 60,
assemblySkill = "weapon_assembly",
experimentingSkill = "weapon_experimentation",
customizationSkill = "weapon_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n"},
ingredientTitleNames = {"emitter_nozzle", "actuating_blaster_module", "barrel_to_receiver_coupling", "prismatic_crystal", "barrel_shroud"},
ingredientSlotType = {0, 0, 0, 0, 0},
resourceTypes = {"steel_rhodium", "steel_duralloy", "metal", "gemstone_armophous", "metal"},
resourceQuantities = {17, 14, 10, 3, 6},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/component/weapon/blaster_pistol_barrel_advanced.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_blaster_pistol_barrel_advanced, "object/draft_schematic/weapon/component/blaster_pistol_barrel_advanced.iff")
| agpl-3.0 |
DrCyber1167/CyberBot | system/libs/lua-redis.lua | 40 | 35598 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using `Redis` is now deprecated so you should explicitly assign
-- the module to a local variable when requiring it: `local redis = require('redis')`.
Redis = redis
local unpack = _G.unpack or table.unpack
local network, request, response = {}, {}, {}
local defaults = {
host = '127.0.0.1',
port = 6379,
tcp_nodelay = true,
path = nil
}
local function merge_defaults(parameters)
if parameters == nil then
parameters = {}
end
for k, v in pairs(defaults) do
if parameters[k] == nil then
parameters[k] = defaults[k]
end
end
return parameters
end
local function parse_boolean(v)
if v == '1' or v == 'true' or v == 'TRUE' then
return true
elseif v == '0' or v == 'false' or v == 'FALSE' then
return false
else
return nil
end
end
local function toboolean(value) return value == 1 end
local function sort_request(client, command, key, params)
--[[ params = {
by = 'weight_*',
get = 'object_*',
limit = { 0, 10 },
sort = 'desc',
alpha = true,
} ]]
local query = { key }
if params then
if params.by then
table.insert(query, 'BY')
table.insert(query, params.by)
end
if type(params.limit) == 'table' then
-- TODO: check for lower and upper limits
table.insert(query, 'LIMIT')
table.insert(query, params.limit[1])
table.insert(query, params.limit[2])
end
if params.get then
if (type(params.get) == 'table') then
for _, getarg in pairs(params.get) do
table.insert(query, 'GET')
table.insert(query, getarg)
end
else
table.insert(query, 'GET')
table.insert(query, params.get)
end
end
if params.sort then
table.insert(query, params.sort)
end
if params.alpha == true then
table.insert(query, 'ALPHA')
end
if params.store then
table.insert(query, 'STORE')
table.insert(query, params.store)
end
end
request.multibulk(client, command, query)
end
local function zset_range_request(client, command, ...)
local args, opts = {...}, { }
if #args >= 1 and type(args[#args]) == 'table' then
local options = table.remove(args, #args)
if options.withscores then
table.insert(opts, 'WITHSCORES')
end
end
for _, v in pairs(opts) do table.insert(args, v) end
request.multibulk(client, command, args)
end
local function zset_range_byscore_request(client, command, ...)
local args, opts = {...}, { }
if #args >= 1 and type(args[#args]) == 'table' then
local options = table.remove(args, #args)
if options.limit then
table.insert(opts, 'LIMIT')
table.insert(opts, options.limit.offset or options.limit[1])
table.insert(opts, options.limit.count or options.limit[2])
end
if options.withscores then
table.insert(opts, 'WITHSCORES')
end
end
for _, v in pairs(opts) do table.insert(args, v) end
request.multibulk(client, command, args)
end
local function zset_range_reply(reply, command, ...)
local args = {...}
local opts = args[4]
if opts and (opts.withscores or string.lower(tostring(opts)) == 'withscores') then
local new_reply = { }
for i = 1, #reply, 2 do
table.insert(new_reply, { reply[i], reply[i + 1] })
end
return new_reply
else
return reply
end
end
local function zset_store_request(client, command, ...)
local args, opts = {...}, { }
if #args >= 1 and type(args[#args]) == 'table' then
local options = table.remove(args, #args)
if options.weights and type(options.weights) == 'table' then
table.insert(opts, 'WEIGHTS')
for _, weight in ipairs(options.weights) do
table.insert(opts, weight)
end
end
if options.aggregate then
table.insert(opts, 'AGGREGATE')
table.insert(opts, options.aggregate)
end
end
for _, v in pairs(opts) do table.insert(args, v) end
request.multibulk(client, command, args)
end
local function mset_filter_args(client, command, ...)
local args, arguments = {...}, {}
if (#args == 1 and type(args[1]) == 'table') then
for k,v in pairs(args[1]) do
table.insert(arguments, k)
table.insert(arguments, v)
end
else
arguments = args
end
request.multibulk(client, command, arguments)
end
local function hash_multi_request_builder(builder_callback)
return function(client, command, ...)
local args, arguments = {...}, { }
if #args == 2 then
table.insert(arguments, args[1])
for k, v in pairs(args[2]) do
builder_callback(arguments, k, v)
end
else
arguments = args
end
request.multibulk(client, command, arguments)
end
end
local function parse_info(response)
local info = {}
local current = info
response:gsub('([^\r\n]*)\r\n', function(kv)
if kv == '' then return end
local section = kv:match('^# (%w+)$')
if section then
current = {}
info[section:lower()] = current
return
end
local k,v = kv:match(('([^:]*):([^:]*)'):rep(1))
if k:match('db%d+') then
current[k] = {}
v:gsub(',', function(dbkv)
local dbk,dbv = kv:match('([^:]*)=([^:]*)')
current[k][dbk] = dbv
end)
else
current[k] = v
end
end)
return info
end
local function load_methods(proto, commands)
local client = setmetatable ({}, getmetatable(proto))
for cmd, fn in pairs(commands) do
if type(fn) ~= 'function' then
redis.error('invalid type for command ' .. cmd .. '(must be a function)')
end
client[cmd] = fn
end
for i, v in pairs(proto) do
client[i] = v
end
return client
end
local function create_client(proto, client_socket, commands)
local client = load_methods(proto, commands)
client.error = redis.error
client.network = {
socket = client_socket,
read = network.read,
write = network.write,
}
client.requests = {
multibulk = request.multibulk,
}
return client
end
-- ############################################################################
function network.write(client, buffer)
local _, err = client.network.socket:send(buffer)
if err then client.error(err) end
end
function network.read(client, len)
if len == nil then len = '*l' end
local line, err = client.network.socket:receive(len)
if not err then return line else client.error('connection error: ' .. err) end
end
-- ############################################################################
function response.read(client)
local payload = client.network.read(client)
local prefix, data = payload:sub(1, -#payload), payload:sub(2)
-- status reply
if prefix == '+' then
if data == 'OK' then
return true
elseif data == 'QUEUED' then
return { queued = true }
else
return data
end
-- error reply
elseif prefix == '-' then
return client.error('redis error: ' .. data)
-- integer reply
elseif prefix == ':' then
local number = tonumber(data)
if not number then
if res == 'nil' then
return nil
end
client.error('cannot parse '..res..' as a numeric response.')
end
return number
-- bulk reply
elseif prefix == '$' then
local length = tonumber(data)
if not length then
client.error('cannot parse ' .. length .. ' as data length')
end
if length == -1 then
return nil
end
local nextchunk = client.network.read(client, length + 2)
return nextchunk:sub(1, -3)
-- multibulk reply
elseif prefix == '*' then
local count = tonumber(data)
if count == -1 then
return nil
end
local list = {}
if count > 0 then
local reader = response.read
for i = 1, count do
list[i] = reader(client)
end
end
return list
-- unknown type of reply
else
return client.error('unknown response prefix: ' .. prefix)
end
end
-- ############################################################################
function request.raw(client, buffer)
local bufferType = type(buffer)
if bufferType == 'table' then
client.network.write(client, table.concat(buffer))
elseif bufferType == 'string' then
client.network.write(client, buffer)
else
client.error('argument error: ' .. bufferType)
end
end
function request.multibulk(client, command, ...)
local args = {...}
local argsn = #args
local buffer = { true, true }
if argsn == 1 and type(args[1]) == 'table' then
argsn, args = #args[1], args[1]
end
buffer[1] = '*' .. tostring(argsn + 1) .. "\r\n"
buffer[2] = '$' .. #command .. "\r\n" .. command .. "\r\n"
local table_insert = table.insert
for _, argument in pairs(args) do
local s_argument = tostring(argument)
table_insert(buffer, '$' .. #s_argument .. "\r\n" .. s_argument .. "\r\n")
end
client.network.write(client, table.concat(buffer))
end
-- ############################################################################
local function custom(command, send, parse)
command = string.upper(command)
return function(client, ...)
send(client, command, ...)
local reply = response.read(client)
if type(reply) == 'table' and reply.queued then
reply.parser = parse
return reply
else
if parse then
return parse(reply, command, ...)
end
return reply
end
end
end
local function command(command, opts)
if opts == nil or type(opts) == 'function' then
return custom(command, request.multibulk, opts)
else
return custom(command, opts.request or request.multibulk, opts.response)
end
end
local define_command_impl = function(target, name, opts)
local opts = opts or {}
target[string.lower(name)] = custom(
opts.command or string.upper(name),
opts.request or request.multibulk,
opts.response or nil
)
end
local undefine_command_impl = function(target, name)
target[string.lower(name)] = nil
end
-- ############################################################################
local client_prototype = {}
client_prototype.raw_cmd = function(client, buffer)
request.raw(client, buffer .. "\r\n")
return response.read(client)
end
-- obsolete
client_prototype.define_command = function(client, name, opts)
define_command_impl(client, name, opts)
end
-- obsolete
client_prototype.undefine_command = function(client, name)
undefine_command_impl(client, name)
end
client_prototype.quit = function(client)
request.multibulk(client, 'QUIT')
client.network.socket:shutdown()
return true
end
client_prototype.shutdown = function(client)
request.multibulk(client, 'SHUTDOWN')
client.network.socket:shutdown()
end
-- Command pipelining
client_prototype.pipeline = function(client, block)
local requests, replies, parsers = {}, {}, {}
local table_insert = table.insert
local socket_write, socket_read = client.network.write, client.network.read
client.network.write = function(_, buffer)
table_insert(requests, buffer)
end
-- TODO: this hack is necessary to temporarily reuse the current
-- request -> response handling implementation of redis-lua
-- without further changes in the code, but it will surely
-- disappear when the new command-definition infrastructure
-- will finally be in place.
client.network.read = function() return '+QUEUED' end
local pipeline = setmetatable({}, {
__index = function(env, name)
local cmd = client[name]
if not cmd then
client.error('unknown redis command: ' .. name, 2)
end
return function(self, ...)
local reply = cmd(client, ...)
table_insert(parsers, #requests, reply.parser)
return reply
end
end
})
local success, retval = pcall(block, pipeline)
client.network.write, client.network.read = socket_write, socket_read
if not success then client.error(retval, 0) end
client.network.write(client, table.concat(requests, ''))
for i = 1, #requests do
local reply, parser = response.read(client), parsers[i]
if parser then
reply = parser(reply)
end
table_insert(replies, i, reply)
end
return replies, #requests
end
-- Publish/Subscribe
do
local channels = function(channels)
if type(channels) == 'string' then
channels = { channels }
end
return channels
end
local subscribe = function(client, ...)
request.multibulk(client, 'subscribe', ...)
end
local psubscribe = function(client, ...)
request.multibulk(client, 'psubscribe', ...)
end
local unsubscribe = function(client, ...)
request.multibulk(client, 'unsubscribe')
end
local punsubscribe = function(client, ...)
request.multibulk(client, 'punsubscribe')
end
local consumer_loop = function(client)
local aborting, subscriptions = false, 0
local abort = function()
if not aborting then
unsubscribe(client)
punsubscribe(client)
aborting = true
end
end
return coroutine.wrap(function()
while true do
local message
local response = response.read(client)
if response[1] == 'pmessage' then
message = {
kind = response[1],
pattern = response[2],
channel = response[3],
payload = response[4],
}
else
message = {
kind = response[1],
channel = response[2],
payload = response[3],
}
end
if string.match(message.kind, '^p?subscribe$') then
subscriptions = subscriptions + 1
end
if string.match(message.kind, '^p?unsubscribe$') then
subscriptions = subscriptions - 1
end
if aborting and subscriptions == 0 then
break
end
coroutine.yield(message, abort)
end
end)
end
client_prototype.pubsub = function(client, subscriptions)
if type(subscriptions) == 'table' then
if subscriptions.subscribe then
subscribe(client, channels(subscriptions.subscribe))
end
if subscriptions.psubscribe then
psubscribe(client, channels(subscriptions.psubscribe))
end
end
return consumer_loop(client)
end
end
-- Redis transactions (MULTI/EXEC)
do
local function identity(...) return ... end
local emptytable = {}
local function initialize_transaction(client, options, block, queued_parsers)
local table_insert = table.insert
local coro = coroutine.create(block)
if options.watch then
local watch_keys = {}
for _, key in pairs(options.watch) do
table_insert(watch_keys, key)
end
if #watch_keys > 0 then
client:watch(unpack(watch_keys))
end
end
local transaction_client = setmetatable({}, {__index=client})
transaction_client.exec = function(...)
client.error('cannot use EXEC inside a transaction block')
end
transaction_client.multi = function(...)
coroutine.yield()
end
transaction_client.commands_queued = function()
return #queued_parsers
end
assert(coroutine.resume(coro, transaction_client))
transaction_client.multi = nil
transaction_client.discard = function(...)
local reply = client:discard()
for i, v in pairs(queued_parsers) do
queued_parsers[i]=nil
end
coro = initialize_transaction(client, options, block, queued_parsers)
return reply
end
transaction_client.watch = function(...)
client.error('WATCH inside MULTI is not allowed')
end
setmetatable(transaction_client, { __index = function(t, k)
local cmd = client[k]
if type(cmd) == "function" then
local function queuey(self, ...)
local reply = cmd(client, ...)
assert((reply or emptytable).queued == true, 'a QUEUED reply was expected')
table_insert(queued_parsers, reply.parser or identity)
return reply
end
t[k]=queuey
return queuey
else
return cmd
end
end
})
client:multi()
return coro
end
local function transaction(client, options, coroutine_block, attempts)
local queued_parsers, replies = {}, {}
local retry = tonumber(attempts) or tonumber(options.retry) or 2
local coro = initialize_transaction(client, options, coroutine_block, queued_parsers)
local success, retval
if coroutine.status(coro) == 'suspended' then
success, retval = coroutine.resume(coro)
else
-- do not fail if the coroutine has not been resumed (missing t:multi() with CAS)
success, retval = true, 'empty transaction'
end
if #queued_parsers == 0 or not success then
client:discard()
assert(success, retval)
return replies, 0
end
local raw_replies = client:exec()
if not raw_replies then
if (retry or 0) <= 0 then
client.error("MULTI/EXEC transaction aborted by the server")
else
--we're not quite done yet
return transaction(client, options, coroutine_block, retry - 1)
end
end
local table_insert = table.insert
for i, parser in pairs(queued_parsers) do
table_insert(replies, i, parser(raw_replies[i]))
end
return replies, #queued_parsers
end
client_prototype.transaction = function(client, arg1, arg2)
local options, block
if not arg2 then
options, block = {}, arg1
elseif arg1 then --and arg2, implicitly
options, block = type(arg1)=="table" and arg1 or { arg1 }, arg2
else
client.error("Invalid parameters for redis transaction.")
end
if not options.watch then
watch_keys = { }
for i, v in pairs(options) do
if tonumber(i) then
table.insert(watch_keys, v)
options[i] = nil
end
end
options.watch = watch_keys
elseif not (type(options.watch) == 'table') then
options.watch = { options.watch }
end
if not options.cas then
local tx_block = block
block = function(client, ...)
client:multi()
return tx_block(client, ...) --can't wrap this in pcall because we're in a coroutine.
end
end
return transaction(client, options, block)
end
end
-- MONITOR context
do
local monitor_loop = function(client)
local monitoring = true
-- Tricky since the payload format changed starting from Redis 2.6.
local pattern = '^(%d+%.%d+)( ?.- ?) ?"(%a+)" ?(.-)$'
local abort = function()
monitoring = false
end
return coroutine.wrap(function()
client:monitor()
while monitoring do
local message, matched
local response = response.read(client)
local ok = response:gsub(pattern, function(time, info, cmd, args)
message = {
timestamp = tonumber(time),
client = info:match('%d+.%d+.%d+.%d+:%d+'),
database = tonumber(info:match('%d+')) or 0,
command = cmd,
arguments = args:match('.+'),
}
matched = true
end)
if not matched then
client.error('Unable to match MONITOR payload: '..response)
end
coroutine.yield(message, abort)
end
end)
end
client_prototype.monitor_messages = function(client)
return monitor_loop(client)
end
end
-- ############################################################################
local function connect_tcp(socket, parameters)
local host, port = parameters.host, tonumber(parameters.port)
local ok, err = socket:connect(host, port)
if not ok then
redis.error('could not connect to '..host..':'..port..' ['..err..']')
end
socket:setoption('tcp-nodelay', parameters.tcp_nodelay)
return socket
end
local function connect_unix(socket, parameters)
local ok, err = socket:connect(parameters.path)
if not ok then
redis.error('could not connect to '..parameters.path..' ['..err..']')
end
return socket
end
local function create_connection(parameters)
if parameters.socket then
return parameters.socket
end
local perform_connection, socket
if parameters.scheme == 'unix' then
perform_connection, socket = connect_unix, require('socket.unix')
assert(socket, 'your build of LuaSocket does not support UNIX domain sockets')
else
if parameters.scheme then
local scheme = parameters.scheme
assert(scheme == 'redis' or scheme == 'tcp', 'invalid scheme: '..scheme)
end
perform_connection, socket = connect_tcp, require('socket').tcp
end
return perform_connection(socket(), parameters)
end
-- ############################################################################
function redis.error(message, level)
error(message, (level or 1) + 1)
end
function redis.connect(...)
local args, parameters = {...}, nil
if #args == 1 then
if type(args[1]) == 'table' then
parameters = args[1]
else
local uri = require('socket.url')
parameters = uri.parse(select(1, ...))
if parameters.scheme then
if parameters.query then
for k, v in parameters.query:gmatch('([-_%w]+)=([-_%w]+)') do
if k == 'tcp_nodelay' or k == 'tcp-nodelay' then
parameters.tcp_nodelay = parse_boolean(v)
end
end
end
else
parameters.host = parameters.path
end
end
elseif #args > 1 then
local host, port = unpack(args)
parameters = { host = host, port = port }
end
local commands = redis.commands or {}
if type(commands) ~= 'table' then
redis.error('invalid type for the commands table')
end
local socket = create_connection(merge_defaults(parameters))
local client = create_client(client_prototype, socket, commands)
return client
end
function redis.command(cmd, opts)
return command(cmd, opts)
end
-- obsolete
function redis.define_command(name, opts)
define_command_impl(redis.commands, name, opts)
end
-- obsolete
function redis.undefine_command(name)
undefine_command_impl(redis.commands, name)
end
-- ############################################################################
-- Commands defined in this table do not take the precedence over
-- methods defined in the client prototype table.
redis.commands = {
-- commands operating on the key space
exists = command('EXISTS', {
response = toboolean
}),
del = command('DEL'),
type = command('TYPE'),
rename = command('RENAME'),
renamenx = command('RENAMENX', {
response = toboolean
}),
expire = command('EXPIRE', {
response = toboolean
}),
pexpire = command('PEXPIRE', { -- >= 2.6
response = toboolean
}),
expireat = command('EXPIREAT', {
response = toboolean
}),
pexpireat = command('PEXPIREAT', { -- >= 2.6
response = toboolean
}),
ttl = command('TTL'),
pttl = command('PTTL'), -- >= 2.6
move = command('MOVE', {
response = toboolean
}),
dbsize = command('DBSIZE'),
persist = command('PERSIST', { -- >= 2.2
response = toboolean
}),
keys = command('KEYS', {
response = function(response)
if type(response) == 'string' then
-- backwards compatibility path for Redis < 2.0
local keys = {}
response:gsub('[^%s]+', function(key)
table.insert(keys, key)
end)
response = keys
end
return response
end
}),
randomkey = command('RANDOMKEY', {
response = function(response)
if response == '' then
return nil
else
return response
end
end
}),
sort = command('SORT', {
request = sort_request,
}),
-- commands operating on string values
set = command('SET'),
setnx = command('SETNX', {
response = toboolean
}),
setex = command('SETEX'), -- >= 2.0
psetex = command('PSETEX'), -- >= 2.6
mset = command('MSET', {
request = mset_filter_args
}),
msetnx = command('MSETNX', {
request = mset_filter_args,
response = toboolean
}),
get = command('GET'),
mget = command('MGET'),
getset = command('GETSET'),
incr = command('INCR'),
incrby = command('INCRBY'),
incrbyfloat = command('INCRBYFLOAT', { -- >= 2.6
response = function(reply, command, ...)
return tonumber(reply)
end,
}),
decr = command('DECR'),
decrby = command('DECRBY'),
append = command('APPEND'), -- >= 2.0
substr = command('SUBSTR'), -- >= 2.0
strlen = command('STRLEN'), -- >= 2.2
setrange = command('SETRANGE'), -- >= 2.2
getrange = command('GETRANGE'), -- >= 2.2
setbit = command('SETBIT'), -- >= 2.2
getbit = command('GETBIT'), -- >= 2.2
-- commands operating on lists
rpush = command('RPUSH'),
lpush = command('LPUSH'),
llen = command('LLEN'),
lrange = command('LRANGE'),
ltrim = command('LTRIM'),
lindex = command('LINDEX'),
lset = command('LSET'),
lrem = command('LREM'),
lpop = command('LPOP'),
rpop = command('RPOP'),
rpoplpush = command('RPOPLPUSH'),
blpop = command('BLPOP'), -- >= 2.0
brpop = command('BRPOP'), -- >= 2.0
rpushx = command('RPUSHX'), -- >= 2.2
lpushx = command('LPUSHX'), -- >= 2.2
linsert = command('LINSERT'), -- >= 2.2
brpoplpush = command('BRPOPLPUSH'), -- >= 2.2
-- commands operating on sets
sadd = command('SADD'),
srem = command('SREM'),
spop = command('SPOP'),
smove = command('SMOVE', {
response = toboolean
}),
scard = command('SCARD'),
sismember = command('SISMEMBER', {
response = toboolean
}),
sinter = command('SINTER'),
sinterstore = command('SINTERSTORE'),
sunion = command('SUNION'),
sunionstore = command('SUNIONSTORE'),
sdiff = command('SDIFF'),
sdiffstore = command('SDIFFSTORE'),
smembers = command('SMEMBERS'),
srandmember = command('SRANDMEMBER'),
-- commands operating on sorted sets
zadd = command('ZADD'),
zincrby = command('ZINCRBY'),
zrem = command('ZREM'),
zrange = command('ZRANGE', {
request = zset_range_request,
response = zset_range_reply,
}),
zrevrange = command('ZREVRANGE', {
request = zset_range_request,
response = zset_range_reply,
}),
zrangebyscore = command('ZRANGEBYSCORE', {
request = zset_range_byscore_request,
response = zset_range_reply,
}),
zrevrangebyscore = command('ZREVRANGEBYSCORE', { -- >= 2.2
request = zset_range_byscore_request,
response = zset_range_reply,
}),
zunionstore = command('ZUNIONSTORE', { -- >= 2.0
request = zset_store_request
}),
zinterstore = command('ZINTERSTORE', { -- >= 2.0
request = zset_store_request
}),
zcount = command('ZCOUNT'),
zcard = command('ZCARD'),
zscore = command('ZSCORE'),
zremrangebyscore = command('ZREMRANGEBYSCORE'),
zrank = command('ZRANK'), -- >= 2.0
zrevrank = command('ZREVRANK'), -- >= 2.0
zremrangebyrank = command('ZREMRANGEBYRANK'), -- >= 2.0
-- commands operating on hashes
hset = command('HSET', { -- >= 2.0
response = toboolean
}),
hsetnx = command('HSETNX', { -- >= 2.0
response = toboolean
}),
hmset = command('HMSET', { -- >= 2.0
request = hash_multi_request_builder(function(args, k, v)
table.insert(args, k)
table.insert(args, v)
end),
}),
hincrby = command('HINCRBY'), -- >= 2.0
hincrbyfloat = command('HINCRBYFLOAT', {-- >= 2.6
response = function(reply, command, ...)
return tonumber(reply)
end,
}),
hget = command('HGET'), -- >= 2.0
hmget = command('HMGET', { -- >= 2.0
request = hash_multi_request_builder(function(args, k, v)
table.insert(args, v)
end),
}),
hdel = command('HDEL'), -- >= 2.0
hexists = command('HEXISTS', { -- >= 2.0
response = toboolean
}),
hlen = command('HLEN'), -- >= 2.0
hkeys = command('HKEYS'), -- >= 2.0
hvals = command('HVALS'), -- >= 2.0
hgetall = command('HGETALL', { -- >= 2.0
response = function(reply, command, ...)
local new_reply = { }
for i = 1, #reply, 2 do new_reply[reply[i]] = reply[i + 1] end
return new_reply
end
}),
-- connection related commands
ping = command('PING', {
response = function(response) return response == 'PONG' end
}),
echo = command('ECHO'),
auth = command('AUTH'),
select = command('SELECT'),
-- transactions
multi = command('MULTI'), -- >= 2.0
exec = command('EXEC'), -- >= 2.0
discard = command('DISCARD'), -- >= 2.0
watch = command('WATCH'), -- >= 2.2
unwatch = command('UNWATCH'), -- >= 2.2
-- publish - subscribe
subscribe = command('SUBSCRIBE'), -- >= 2.0
unsubscribe = command('UNSUBSCRIBE'), -- >= 2.0
psubscribe = command('PSUBSCRIBE'), -- >= 2.0
punsubscribe = command('PUNSUBSCRIBE'), -- >= 2.0
publish = command('PUBLISH'), -- >= 2.0
-- redis scripting
eval = command('EVAL'), -- >= 2.6
evalsha = command('EVALSHA'), -- >= 2.6
script = command('SCRIPT'), -- >= 2.6
-- remote server control commands
bgrewriteaof = command('BGREWRITEAOF'),
config = command('CONFIG', { -- >= 2.0
response = function(reply, command, ...)
if (type(reply) == 'table') then
local new_reply = { }
for i = 1, #reply, 2 do new_reply[reply[i]] = reply[i + 1] end
return new_reply
end
return reply
end
}),
client = command('CLIENT'), -- >= 2.4
slaveof = command('SLAVEOF'),
save = command('SAVE'),
bgsave = command('BGSAVE'),
lastsave = command('LASTSAVE'),
flushdb = command('FLUSHDB'),
flushall = command('FLUSHALL'),
monitor = command('MONITOR'),
time = command('TIME'), -- >= 2.6
slowlog = command('SLOWLOG', { -- >= 2.2.13
response = function(reply, command, ...)
if (type(reply) == 'table') then
local structured = { }
for index, entry in ipairs(reply) do
structured[index] = {
id = tonumber(entry[1]),
timestamp = tonumber(entry[2]),
duration = tonumber(entry[3]),
command = entry[4],
}
end
return structured
end
return reply
end
}),
info = command('INFO', {
response = parse_info,
}),
}
-- ############################################################################
return redis | gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/quest/hero_of_tatooine/squill_skull.lua | 2 | 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_loot_quest_hero_of_tatooine_squill_skull = object_tangible_loot_quest_hero_of_tatooine_shared_squill_skull:new {
noTrade = 1
}
ObjectTemplates:addTemplate(object_tangible_loot_quest_hero_of_tatooine_squill_skull, "object/tangible/loot/quest/hero_of_tatooine/squill_skull.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/items/pukatrice_egg_+1.lua | 2 | 1579 | -----------------------------------------
-- ID: 6275
-- Item: pukatrice_egg_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP +20
-- MP +20
-- STR +3
-- Fire resistance +21
-- Attack +21% (cap 90)
-- Ranged Attack +21% (cap 90)
-- Subtle Blow +9
-----------------------------------------
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,3600,6275);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_HP, 20);
target:addMod(MOD_MP, 20);
target:addMod(MOD_STR, 3);
target:addMod(MOD_FIRERES, 21);
target:addMod(MOD_FOOD_ATTP, 21);
target:addMod(MOD_FOOD_ATT_CAP, 90);
target:addMod(MOD_FOOD_RATTP, 21);
target:addMod(MOD_FOOD_RATT_CAP, 90);
target:addMod(MOD_SUBTLE_BLOW, 9);
end;
function onEffectLose(target, effect)
target:delMod(MOD_HP, 20);
target:delMod(MOD_MP, 20);
target:delMod(MOD_STR, 3);
target:delMod(MOD_FIRERES, 21);
target:delMod(MOD_FOOD_ATTP, 21);
target:delMod(MOD_FOOD_ATT_CAP, 90);
target:delMod(MOD_FOOD_RATTP, 21);
target:delMod(MOD_FOOD_RATT_CAP, 90);
target:delMod(MOD_SUBTLE_BLOW, 9);
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/food/crafted/dessert_almond_kwevvu_crisp_munchies.lua | 3 | 3332 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_food_crafted_dessert_almond_kwevvu_crisp_munchies = object_tangible_food_crafted_shared_dessert_almond_kwevvu_crisp_munchies:new {
templateType = CONSUMABLE,
duration = 10,
filling = 10,
nutrition = 10,
effectType = 4,
fillingMin = 23,
fillingMax = 20,
flavorMin = 720,
flavorMax = 1440,
nutritionMin = 7.5,
nutritionMax = 12,
quantityMin = 3,
quantityMax = 4,
modifiers = { "tame_bonus", 0 },
buffName = "food.dessert_almond_kwevvu_crisp_munchies",
buffCRC = 0,
speciesRestriction = "",
numberExperimentalProperties = {1, 1, 1, 2, 2, 2, 2},
experimentalProperties = {"XX", "XX", "XX", "OQ", "PE", "FL", "OQ", "DR", "PE", "DR", "OQ"},
experimentalWeights = {1, 1, 1, 1, 2, 2, 1, 1, 3, 3, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_nutrition", "exp_flavor", "exp_quantity", "exp_filling"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "nutrition", "flavor", "quantity", "filling"},
experimentalMin = {0, 0, 1000, 75, 60, 60, 80},
experimentalMax = {0, 0, 1000, 120, 120, 100, 120},
experimentalPrecision = {0, 0, 0, 10, 10, 10, 10},
experimentalCombineType = {0, 0, 4, 1, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_tangible_food_crafted_dessert_almond_kwevvu_crisp_munchies, "object/tangible/food/crafted/dessert_almond_kwevvu_crisp_munchies.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/item/item_survey_tool_gas.lua | 2 | 3262 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_item_item_survey_tool_gas = object_draft_schematic_item_shared_item_survey_tool_gas:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Gas Pocket Survey Device",
craftingToolTab = 524288, -- (See DraftSchemticImplementation.h)
complexity = 7,
size = 1,
xpType = "crafting_general",
xp = 55,
assemblySkill = "general_assembly",
experimentingSkill = "general_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n"},
ingredientTitleNames = {"assembly_enclosure", "controller", "scanner_assembly", "storage_unit"},
ingredientSlotType = {0, 0, 0, 0},
resourceTypes = {"metal", "metal", "metal", "mineral"},
resourceQuantities = {8, 8, 3, 8},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/survey_tool/survey_tool_gas.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_item_item_survey_tool_gas, "object/draft_schematic/item/item_survey_tool_gas.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/trandoshan/base/hair_trandoshan_male_base.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_hair_trandoshan_base_hair_trandoshan_male_base = object_tangible_hair_trandoshan_base_shared_hair_trandoshan_male_base:new {
}
ObjectTemplates:addTemplate(object_tangible_hair_trandoshan_base_hair_trandoshan_male_base, "object/tangible/hair/trandoshan/base/hair_trandoshan_male_base.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/items/dish_of_homemade_carbonara.lua | 2 | 1526 | -----------------------------------------
-- ID: 5706
-- Item: dish_of_homemade_carbonara
-- Food Effect: 30Min, All Races
-----------------------------------------
-- CHR +1
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
-----------------------------------------
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,5706);
end;
function onEffectGain(target, effect)
target:addMod(MOD_CHR, 1);
target:addMod(MOD_FOOD_ACCP, 12);
target:addMod(MOD_FOOD_ACC_CAP, 80);
target:addMod(MOD_FOOD_ATTP, 10);
target:addMod(MOD_FOOD_ATT_CAP, 40);
target:addMod(MOD_FOOD_RACCP, 12);
target:addMod(MOD_FOOD_RACC_CAP, 80);
target:addMod(MOD_FOOD_RATTP, 10);
target:addMod(MOD_FOOD_RATT_CAP, 40);
end;
function onEffectLose(target, effect)
target:delMod(MOD_CHR, 1);
target:delMod(MOD_FOOD_ACCP, 12);
target:delMod(MOD_FOOD_ACC_CAP, 80);
target:delMod(MOD_FOOD_ATTP, 10);
target:delMod(MOD_FOOD_ATT_CAP, 40);
target:delMod(MOD_FOOD_RACCP, 12);
target:delMod(MOD_FOOD_RACC_CAP, 80);
target:delMod(MOD_FOOD_RATTP, 10);
target:delMod(MOD_FOOD_RATT_CAP, 40);
end;
| gpl-3.0 |
Whitechaser/darkstar | scripts/globals/items/totsukanotsurugi.lua | 2 | 2075 | -----------------------------------------
-- ID: 18317
-- Item: Totsukanotsurugi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPONSKILL = "AFTERMATH_TOTSU";
local NAME_EFFECT_LOSE = "AFTERMATH_LOST_TOTSU";
-- https://www.bg-wiki.com/bg/Relic_Aftermath
local aftermathTable = {};
-- Totsukanotsurugi 75
aftermathTable[18317] =
{
power=1,
duration = function(tp) return math.floor(0.02 * tp); end,
mods =
{
{ id=MOD_STORETP, power=7 }
}
};
function onWeaponskill(user, target, wsid, tp, action)
if (wsid == WEAPONSKILL_TACHI_KAITEN) then -- Tachi: Kaiten onry
local itemId = user:getEquipID(SLOT_MAIN);
if (aftermathTable[itemId]) then
-- Apply the effect and add mods
addAftermathEffect(user, tp, aftermathTable[itemId]);
-- Add a listener for when aftermath wears (to remove mods)
user:addListener("dsp.effects.LOSE", NAME_EFFECT_LOSE, aftermathLost);
end
end
end
function aftermathLost(target, effect)
if (effect:getType() == dsp.effects.AFTERMATH) then
local itemId = target:getEquipID(SLOT_MAIN);
if (aftermathTable[itemId]) then
-- Remove mods
removeAftermathEffect(target, aftermathTable[itemId]);
-- Remove the effect listener
target:removeListener(NAME_EFFECT_LOSE);
end
end
end
function onItemCheck(player, param, caster)
if (param == ITEMCHECK_EQUIP) then
player:addListener("WEAPONSKILL_USE", NAME_WEAPONSKILL, onWeaponskill);
elseif (param == ITEMCHECK_UNEQUIP) then
-- Make sure we clean up the effect and mods
if (player:hasStatusEffect(dsp.effects.AFTERMATH)) then
aftermathLost(player, player:getStatusEffect(dsp.effects.AFTERMATH));
end
player:removeListener(NAME_WEAPONSKILL);
end
return 0;
end | gpl-3.0 |
Whitechaser/darkstar | scripts/zones/Empyreal_Paradox/mobs/Promathia.lua | 2 | 2177 | -----------------------------------
-- Area: Empyreal Paradox
-- MOB: Promathia
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
function onMobInitialize(mob)
mob:addMod(MOD_REGAIN, 50);
mob:addMod(MOD_UFASTCAST,50);
end;
function onMobEngaged(mob,target)
local bcnmAllies = mob:getBattlefield():getAllies();
for i,v in pairs(bcnmAllies) do
if (v:getName() == "Prishe") then
if not v:getTarget() then
v:entityAnimationPacket("prov");
v:showText(v, PRISHE_TEXT);
v:setLocalVar("ready", mob:getID());
end
else
v:addEnmity(mob,0,1);
end
end
end;
function onMobFight(mob,target)
if (mob:AnimationSub() == 3 and not mob:hasStatusEffect(dsp.effects.STUN)) then
mob:AnimationSub(0);
mob:stun(1500);
end
local bcnmAllies = mob:getBattlefield():getAllies();
for i,v in pairs(bcnmAllies) do
if not v:getTarget() then
v:addEnmity(mob,0,1);
end
end
end;
function onSpellPrecast(mob, spell)
if (spell:getID() == 219) then
spell:setMPCost(1);
end
end;
function onMobDeath(mob, player, isKiller)
local battlefield = player:getBattlefield();
player:startEvent(32004, battlefield:getBattlefieldNumber());
end;
function onEventUpdate(player,csid,option)
-- printf("updateCSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option,target)
-- printf("finishCSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 32004) then
DespawnMob(target:getID());
mob = SpawnMob(target:getID()+1);
local bcnmAllies = mob:getBattlefield():getAllies();
for i,v in pairs(bcnmAllies) do
v:resetLocalVars();
local spawn = v:getSpawnPos();
v:setPos(spawn.x, spawn.y, spawn.z, spawn.rot);
end
end
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/pugoriss/serverobjects.lua | 3 | 2170 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/lair/pugoriss/lair_pugoriss.lua")
includeFile("tangible/lair/pugoriss/lair_pugoriss_grassland.lua")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/dungeon/corellian_corvette/corvette_search_imperial_assassination_02.lua | 3 | 2396 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_dungeon_corellian_corvette_corvette_search_imperial_assassination_02 = object_tangible_dungeon_corellian_corvette_shared_corvette_search_imperial_assassination_02:new {
}
ObjectTemplates:addTemplate(object_tangible_dungeon_corellian_corvette_corvette_search_imperial_assassination_02, "object/tangible/dungeon/corellian_corvette/corvette_search_imperial_assassination_02.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/tatooine/debris_tatt_crate_metal_1.lua | 3 | 2292 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_tatooine_debris_tatt_crate_metal_1 = object_static_structure_tatooine_shared_debris_tatt_crate_metal_1:new {
}
ObjectTemplates:addTemplate(object_static_structure_tatooine_debris_tatt_crate_metal_1, "object/static/structure/tatooine/debris_tatt_crate_metal_1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/beta/serverobjects.lua | 3 | 2469 | --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/beta/beta_terminal_food.lua")
includeFile("tangible/beta/beta_terminal_medicine.lua")
includeFile("tangible/beta/beta_terminal_money.lua")
includeFile("tangible/beta/beta_terminal_resource.lua")
includeFile("tangible/beta/beta_terminal_warp.lua")
includeFile("tangible/beta/beta_terminal_wound.lua")
includeFile("tangible/beta/beta_terminal_xp.lua")
includeFile("tangible/beta/donham_terminal.lua")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/base/base_ear_both.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_base_base_ear_both = object_tangible_wearables_base_shared_base_ear_both:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_base_base_ear_both, "object/tangible/wearables/base/base_ear_both.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/vendor/twilek_male.lua | 2 | 56098 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_mobile_vendor_twilek_male = object_mobile_vendor_shared_twilek_male:new {
templateType = VENDORCREATURE,
optionsBitmask = 386,
pvpStatusBitmask = 0,
objectMenuComponent = {"cpp", "VendorMenuComponent"},
dataObjectComponent = "VendorDataComponent",
containerComponent = {"cpp", "VendorContainerComponent"},
zoneComponent = "VendorZoneComponent",
noTrade = 1,
hair = {"object/tangible/hair/twilek/hair_twilek_male_s01.iff","object/tangible/hair/twilek/hair_twilek_male_s02.iff","object/tangible/hair/twilek/hair_twilek_male_s03.iff",
"object/tangible/hair/twilek/hair_twilek_male_s04.iff","object/tangible/hair/twilek/hair_twilek_male_s05.iff","object/tangible/hair/twilek/hair_twilek_male_s06.iff",
"object/tangible/hair/twilek/hair_twilek_male_s07.iff","object/tangible/hair/twilek/hair_twilek_male_s08.iff"},
clothing = {"Humanoid1","Humanoid2","Humanoid3","Humanoid4","Humanoid5","Humanoid6","Humanoid7","Humanoid8","Humanoid9","Humanoid10",
"Humanoid11","Humanoid12","Humanoid13","Humanoid14","Humanoid15","Humanoid16","Humanoid17","Humanoid18","Humanoid19","Humanoid20",
"Humanoid21","Humanoid22","Humanoid23","Humanoid24","Humanoid25","Humanoid26","Humanoid27","Humanoid28","Humanoid29","Humanoid30",
"Humanoid31","Humanoid32","Humanoid33","Humanoid34","Humanoid35","Humanoid36","Humanoid37","Humanoid38","Humanoid39","Humanoid40",
"Humanoid41","Humanoid42","Humanoid43","Humanoid44","Humanoid45","Humanoid46","Humanoid47","Humanoid48","Humanoid49","Humanoid50",
"Humanoid51","Humanoid52","Humanoid53","Humanoid54","Humanoid55","Humanoid56","Humanoid57","Humanoid58","Humanoid59","Humanoid60",
"Humanoid61","Humanoid62","Humanoid63","Humanoid64","Humanoid65","Humanoid66","Humanoid67","Humanoid68","Humanoid69","Humanoid70",
"Humanoid71","Humanoid72","Humanoid73","Humanoid74","Humanoid75","Humanoid76","Humanoid77","Humanoid78","Humanoid79","Humanoid80",
"Humanoid81","Humanoid82","Humanoid83","Humanoid84","Humanoid85","Humanoid86","Humanoid87","Humanoid88","Humanoid89","Humanoid90",
"Humanoid91","Humanoid92","Humanoid93","Humanoid94","Humanoid95","Humanoid96","Humanoid97","Humanoid98","Humanoid99","Humanoid100",
"Humanoid101","Humanoid102","Humanoid103","Humanoid104","Humanoid105","Humanoid106","Humanoid107","Humanoid108","Humanoid109","Humanoid110",
"Humanoid111","Humanoid112","Humanoid113","Humanoid114","Humanoid115","Humanoid116","Humanoid117","Humanoid118","Humanoid119","Humanoid120",
"Humanoid121","Humanoid122","Humanoid123","Humanoid124","Humanoid125","Humanoid126","Humanoid127","Humanoid128","Humanoid129","Humanoid130",
"Humanoid131","Humanoid132","Humanoid133","Humanoid134","Humanoid135","Humanoid136","Humanoid137","Humanoid138","Humanoid139","Humanoid140",
"Humanoid141","Humanoid142","Humanoid143","Humanoid144","Humanoid145","Humanoid146","Humanoid147","Humanoid148","Humanoid149","Humanoid150",
"Humanoid151","Humanoid152","Humanoid153","Humanoid154","Humanoid155","Humanoid156","Humanoid157","Humanoid158","Humanoid159","Humanoid160",
"Humanoid161","Humanoid162","Humanoid163","Humanoid164","Humanoid165","Humanoid166","Humanoid167","Humanoid168","Humanoid169","Humanoid170",
"Humanoid171","Humanoid172","Humanoid173","Humanoid174","Humanoid175","Humanoid176","Humanoid177","Humanoid178","Humanoid179","Humanoid180",
"Humanoid181","Humanoid182","Humanoid183","Humanoid184","Humanoid185","Humanoid186","Humanoid187","Humanoid188","Humanoid189","Humanoid190",
"Humanoid191","Humanoid192","Humanoid193","Humanoid194","Humanoid195","Humanoid196","Humanoid197","Humanoid198","Humanoid199","Humanoid200",
"Humanoid201","Humanoid202","Humanoid203","Humanoid204","Humanoid205","Humanoid206","Humanoid207","Humanoid208","Humanoid209","Humanoid210",
"Humanoid211","Humanoid212","Humanoid213","Humanoid214","Humanoid215","Humanoid216","Humanoid217","Humanoid218","Humanoid219","Humanoid220",
"Humanoid221","Humanoid222","Humanoid223","Humanoid224","Humanoid225","Humanoid226","Humanoid227","Humanoid228","Humanoid229","Humanoid230",
"Humanoid231","Humanoid232","Humanoid233","Humanoid234","Humanoid235","Humanoid236","Humanoid237","Humanoid238","Humanoid239","Humanoid240",
"Humanoid241","Humanoid242","Humanoid243","Humanoid244","Humanoid245","Humanoid246","Humanoid247","Humanoid248","Humanoid249","Humanoid250",
"Humanoid251","Humanoid252","Humanoid253","Humanoid254","Humanoid255","Humanoid256","Humanoid257","Humanoid258","Humanoid259","Humanoid260",
"Humanoid261","Humanoid262","Humanoid263","Humanoid264","Humanoid265","Humanoid266","Humanoid267","Humanoid268","Humanoid269","Humanoid270",
"Humanoid271","Humanoid272","Humanoid273","Humanoid274","Humanoid275","Humanoid276","Humanoid277","Humanoid278","Humanoid279","Humanoid280",
"Humanoid281","Humanoid282","Humanoid283","Humanoid284","Humanoid285","Humanoid286","Humanoid287","Humanoid288","Humanoid289","Humanoid290",
"Humanoid291","Humanoid292","Humanoid293","Humanoid294","Humanoid295","Humanoid296","Humanoid297","Humanoid298","Humanoid299","Humanoid300",
"Humanoid301","Humanoid302","Humanoid303","Humanoid304","Humanoid305","Humanoid306","Humanoid307","Humanoid308","Humanoid309","Humanoid310",
"Humanoid311","Humanoid312","Humanoid313","Humanoid314","Humanoid315","Humanoid316","Humanoid317","Humanoid318","Humanoid319","Humanoid320",
"Humanoid321","Humanoid322","Humanoid323","Humanoid324","Humanoid325","Humanoid326","Humanoid327","Humanoid328","Humanoid329","Humanoid330",
"Humanoid331","Humanoid332","Humanoid333","Humanoid334","Humanoid335","Humanoid336","Humanoid337","Humanoid338","Humanoid339","Humanoid340",
"Humanoid341","Humanoid342","Humanoid343","Humanoid344","Humanoid345","Humanoid346","Humanoid347","Humanoid348","Humanoid349","Humanoid350",
"Humanoid351","Humanoid352","Humanoid353","Humanoid354","Humanoid355","Humanoid356","Humanoid357","Humanoid358","Humanoid359","Humanoid360",
"Humanoid361","Humanoid362","Humanoid363","Humanoid364","Humanoid365","Humanoid366","Humanoid367","Humanoid368","Humanoid369","Humanoid370",
"Humanoid371","Humanoid372","Humanoid373","Humanoid374","Humanoid375","Humanoid376","Humanoid377","Humanoid378","Humanoid379","Humanoid380",
"Humanoid381","Humanoid382","Humanoid383","Humanoid384","Humanoid385","Humanoid386","Humanoid387","Humanoid388","Humanoid389","Humanoid390",
"Humanoid391","Humanoid392","Humanoid393","Humanoid394","Humanoid395","Humanoid396","Humanoid397","Humanoid398","Humanoid399","Humanoid400",
"Humanoid401","Humanoid402","Humanoid403","Humanoid404","Humanoid405","Humanoid406","Humanoid407","Humanoid408","Humanoid409","Humanoid410",
"Humanoid411","Humanoid412","Humanoid413","Humanoid414","Humanoid415","Humanoid416","Humanoid417","Humanoid418","Humanoid419","Humanoid420",
"Humanoid421","Humanoid422","Humanoid423","Humanoid424","Humanoid425","Humanoid426","Humanoid427","Humanoid428","Humanoid429","Humanoid430",
"Humanoid431","Humanoid432","Humanoid433","Humanoid434","Humanoid435","Humanoid436","Humanoid437","Humanoid438","Humanoid439","Humanoid440",
"Humanoid441","Humanoid442","Humanoid443","Humanoid444","Humanoid445","Humanoid446","Humanoid447","Humanoid448","Humanoid449","Humanoid450",
"Humanoid451","Humanoid452","Humanoid453","Humanoid454","Humanoid455","Humanoid456","Humanoid457","Humanoid458","Humanoid459","Humanoid460",
"Humanoid461","Humanoid462","Humanoid463","Humanoid464","Humanoid465","Humanoid466","Humanoid467","Humanoid468","Humanoid469","Humanoid470",
"Humanoid471","Humanoid472","Humanoid473","Humanoid474","Humanoid475","Humanoid476","Humanoid477","Humanoid478","Humanoid479","Humanoid480",
"Humanoid481","Humanoid482","Humanoid483","Humanoid484","Humanoid485","Humanoid486","Humanoid487","Humanoid488","Humanoid489","Humanoid490",
"Humanoid491","Humanoid492","Humanoid493","Humanoid494","Humanoid495","Humanoid496","Humanoid497","Humanoid498","Humanoid499","Humanoid500",
"Humanoid501","Humanoid502","Humanoid503","Humanoid504","Humanoid505","Humanoid506","Humanoid507","Humanoid508","Humanoid509","Humanoid510",
"Humanoid511","Humanoid512","Humanoid513","Humanoid514","Humanoid515","Humanoid516","Humanoid517","Humanoid518","Humanoid519","Humanoid520",
"Humanoid521","Humanoid522","Humanoid523","Humanoid524","Humanoid525","Humanoid526","Humanoid527","Humanoid528","Humanoid529","Humanoid530",
"Humanoid531","Humanoid532","Humanoid533","Humanoid534","Humanoid535","Humanoid536","Humanoid537","Humanoid538","Humanoid539","Humanoid540",
"Humanoid541","Humanoid542","Humanoid543","Humanoid544","Humanoid545","Humanoid546","Humanoid547","Humanoid548","Humanoid549","Humanoid550",
"Humanoid551","Humanoid552","Humanoid553","Humanoid554","Humanoid555","Humanoid556","Humanoid557","Humanoid558","Humanoid559","Humanoid560",
"Humanoid561","Humanoid562","Humanoid563","Humanoid564","Humanoid565","Humanoid566","Humanoid567","Humanoid568","Humanoid569","Humanoid570",
"Humanoid571","Humanoid572","Humanoid573","Humanoid574","Humanoid575","Humanoid576","Humanoid577","Humanoid578","Humanoid579","Humanoid580",
"Humanoid581","Humanoid582","Humanoid583","Humanoid584","Humanoid585","Humanoid586","Humanoid587","Humanoid588","Humanoid589","Humanoid590",
"Humanoid591","Humanoid592","Humanoid593","Humanoid594","Humanoid595","Humanoid596","Humanoid597","Humanoid598","Humanoid599","Humanoid600",
"Humanoid601","Humanoid602","Humanoid603","Humanoid604","Humanoid605","Humanoid606","Humanoid607","Humanoid608","Humanoid609","Humanoid610",
"Humanoid611","Humanoid612","Humanoid613","Humanoid614","Humanoid615","Humanoid616","Humanoid617","Humanoid618","Humanoid619","Humanoid620",
"Humanoid621","Humanoid622","Humanoid623","Humanoid624","Humanoid625","Humanoid626","Humanoid627","Humanoid628","Humanoid629","Humanoid630",
"Humanoid631","Humanoid632","Humanoid633","Humanoid634","Humanoid635","Humanoid636","Humanoid637","Humanoid638","Humanoid639","Humanoid640",
"Humanoid641","Humanoid642","Humanoid643","Humanoid644","Humanoid645","Humanoid646","Humanoid647","Humanoid648","Humanoid649","Humanoid650",
"Humanoid651","Humanoid652","Humanoid653","Humanoid654","Humanoid655","Humanoid656","Humanoid657","Humanoid658","Humanoid659","Humanoid660",
"Humanoid661","Humanoid662","Humanoid663","Humanoid664","Humanoid665","Humanoid666","Humanoid667","Humanoid668","Humanoid669","Humanoid670",
"Humanoid671","Humanoid672","Humanoid673","Humanoid674","Humanoid675","Humanoid676","Humanoid677","Humanoid678","Humanoid679","Humanoid680",
"Humanoid681","Humanoid682","Humanoid683","Humanoid684","Humanoid685","Humanoid686","Humanoid687","Humanoid688","Humanoid689","Humanoid690",
"Humanoid691","Humanoid692","Humanoid693","Humanoid694","Humanoid695","Humanoid696","Humanoid697","Humanoid698","Humanoid699","Humanoid700",
"Humanoid701","Humanoid702","Humanoid703","Humanoid704","Humanoid705","Humanoid706","Humanoid707","Humanoid708","Humanoid709","Humanoid710",
"Humanoid711","Humanoid712","Humanoid713","Humanoid714","Humanoid715","Humanoid716","Humanoid717","Humanoid718","Humanoid719","Humanoid720",
"Humanoid721","Humanoid722","Humanoid723","Humanoid724","Humanoid725","Humanoid726","Humanoid727","Humanoid728","Humanoid729","Humanoid730",
"Humanoid731","Humanoid732","Humanoid733","Humanoid734","Humanoid735","Humanoid736","Humanoid737","Humanoid738","Humanoid739","Humanoid740",
"Humanoid741","Humanoid742","Humanoid743","Humanoid744","Humanoid745","Humanoid746","Humanoid747","Humanoid748","Humanoid749","Humanoid750",
"Humanoid751","Humanoid752","Humanoid753","Humanoid754","Humanoid755","Humanoid756","Humanoid757","Humanoid758","Humanoid759","Humanoid760",
"Humanoid761","Humanoid762","Humanoid763","Humanoid764","Humanoid765","Humanoid766","Humanoid767","Humanoid768","Humanoid769","Humanoid770",
"Humanoid771","Humanoid772","Humanoid773","Humanoid774","Humanoid775","Humanoid776","Humanoid777","Humanoid778","Humanoid779","Humanoid780",
"Humanoid781","Humanoid782","Humanoid783","Humanoid784","Humanoid785","Humanoid786","Humanoid787","Humanoid788","Humanoid789","Humanoid790",
"Humanoid791","Humanoid792","Humanoid793","Humanoid794","Humanoid795","Humanoid796","Humanoid797","Humanoid798","Humanoid799","Humanoid800",
"Humanoid801","Humanoid802","Humanoid803","Humanoid804","Humanoid805","Humanoid806","Humanoid807","Humanoid808","Humanoid809","Humanoid810",
"Humanoid811","Humanoid812","Humanoid813","Humanoid814","Humanoid815","Humanoid816","Humanoid817","Humanoid818","Humanoid819","Humanoid820",
"Humanoid821","Humanoid822","Humanoid823","Humanoid824","Humanoid825","Humanoid826","Humanoid827","Humanoid828","Humanoid829","Humanoid830",
"Humanoid831","Humanoid832","Humanoid833","Humanoid834","Humanoid835","Humanoid836","Humanoid837","Humanoid838","Humanoid839","Humanoid840",
"Humanoid841","Humanoid842","Humanoid843","Humanoid844","Humanoid845","Humanoid846","Humanoid847","Humanoid848","Humanoid849","Humanoid850",
"Humanoid851","Humanoid852","Humanoid853","Humanoid854","Humanoid855","Humanoid856","Humanoid857","Humanoid858","Humanoid859","Humanoid860",
"Humanoid861","Humanoid862","Humanoid863","Humanoid864","Humanoid865","Humanoid866","Humanoid867","Humanoid868","Humanoid869","Humanoid870",
"Humanoid871","Humanoid872","Humanoid873","Humanoid874","Humanoid875","Humanoid876","Humanoid877","Humanoid878","Humanoid879","Humanoid880",
"Humanoid881","Humanoid882","Humanoid883","Humanoid884","Humanoid885","Humanoid886","Humanoid887","Humanoid888","Humanoid889","Humanoid890",
"Humanoid891","Humanoid892","Humanoid893","Humanoid894","Humanoid895","Humanoid896","Humanoid897","Humanoid898","Humanoid899","Humanoid900",
"Humanoid901","Humanoid902","Humanoid903","Humanoid904","Humanoid905","Humanoid906","Humanoid907","Humanoid908","Humanoid909","Humanoid910",
"Humanoid911","Humanoid912","Humanoid913","Humanoid914","Humanoid915","Humanoid916","Humanoid917","Humanoid918","Humanoid919","Humanoid920",
"Humanoid921","Humanoid922","Humanoid923","Humanoid924","Humanoid925","Humanoid926","Humanoid927","Humanoid928","Humanoid929","Humanoid930",
"Humanoid931","Humanoid932","Humanoid933","Humanoid934","Humanoid935","Humanoid936","Humanoid937","Humanoid938","Humanoid939","Humanoid940",
"Humanoid941","Humanoid942","Humanoid943","Humanoid944","Humanoid945","Humanoid946","Humanoid947","Humanoid948","Humanoid949","Humanoid950",
"Humanoid951","Humanoid952","Humanoid953","Humanoid954","Humanoid955","Humanoid956","Humanoid957","Humanoid958","Humanoid959","Humanoid960",
"Humanoid961","Humanoid962","Humanoid963","Humanoid964","Humanoid965","Humanoid966","Humanoid967","Humanoid968","Humanoid969","Humanoid970",
"Humanoid971","Humanoid972","Humanoid973","Humanoid974","Humanoid975","Humanoid976","Humanoid977","Humanoid978","Humanoid979","Humanoid980",
"Humanoid981","Humanoid982","Humanoid983","Humanoid984","Humanoid985","Humanoid986","Humanoid987","Humanoid988","Humanoid989","Humanoid990",
"Humanoid991","Humanoid992","Humanoid993","Humanoid994","Humanoid995","Humanoid996","Humanoid997","Humanoid998","Humanoid999","Humanoid1000",
"Humanoid1001","Humanoid1002","Humanoid1003","Humanoid1004","Humanoid1005","Humanoid1006","Humanoid1007","Humanoid1008","Humanoid1009","Humanoid1010",
"Humanoid1011","Humanoid1012","Humanoid1013","Humanoid1014","Humanoid1015","Humanoid1016","Humanoid1017","Humanoid1018","Humanoid1019","Humanoid1020",
"Humanoid1021","Humanoid1022","Humanoid1023","Humanoid1024","Humanoid1025","Humanoid1026","Humanoid1027","Humanoid1028","Humanoid1029","Humanoid1030",
"Humanoid1031","Humanoid1032","Humanoid1033","Humanoid1034","Humanoid1035","Humanoid1036","Humanoid1037","Humanoid1038","Humanoid1039","Humanoid1040",
"Humanoid1041","Humanoid1042","Humanoid1043","Humanoid1044","Humanoid1045","Humanoid1046","Humanoid1047","Humanoid1048","Humanoid1049","Humanoid1050",
"Humanoid1051","Humanoid1052","Humanoid1053","Humanoid1054","Humanoid1055","Humanoid1056","Humanoid1057","Humanoid1058","Humanoid1059","Humanoid1060",
"Humanoid1061","Humanoid1062","Humanoid1063","Humanoid1064","Humanoid1065","Humanoid1066","Humanoid1067","Humanoid1068","Humanoid1069","Humanoid1070",
"Humanoid1071","Humanoid1072","Humanoid1073","Humanoid1074","Humanoid1075","Humanoid1076","Humanoid1077","Humanoid1078","Humanoid1079","Humanoid1080",
"Humanoid1081","Humanoid1082","Humanoid1083","Humanoid1084","Humanoid1085","Humanoid1086","Humanoid1087","Humanoid1088","Humanoid1089","Humanoid1090",
"Humanoid1091","Humanoid1092","Humanoid1093","Humanoid1094","Humanoid1095","Humanoid1096","Humanoid1097","Humanoid1098","Humanoid1099","Humanoid1100",
"Humanoid1101","Humanoid1102","Humanoid1103","Humanoid1104","Humanoid1105","Humanoid1106","Humanoid1107","Humanoid1108","Humanoid1109","Humanoid1110",
"Humanoid1111","Humanoid1112","Humanoid1113","Humanoid1114","Humanoid1115","Humanoid1116","Humanoid1117","Humanoid1118","Humanoid1119","Humanoid1120",
"Humanoid1121","Humanoid1122","Humanoid1123","Humanoid1124","Humanoid1125","Humanoid1126","Humanoid1127","Humanoid1128","Humanoid1129","Humanoid1130",
"Humanoid1131","Humanoid1132","Humanoid1133","Humanoid1134","Humanoid1135","Humanoid1136","Humanoid1137","Humanoid1138","Humanoid1139","Humanoid1140",
"Humanoid1141","Humanoid1142","Humanoid1143","Humanoid1144","Humanoid1145","Humanoid1146","Humanoid1147","Humanoid1148","Humanoid1149","Humanoid1150",
"Humanoid1151","Humanoid1152","Humanoid1153","Humanoid1154","Humanoid1155","Humanoid1156","Humanoid1157","Humanoid1158","Humanoid1159","Humanoid1160",
"Humanoid1161","Humanoid1162","Humanoid1163","Humanoid1164","Humanoid1165","Humanoid1166","Humanoid1167","Humanoid1168","Humanoid1169","Humanoid1170",
"Humanoid1171","Humanoid1172","Humanoid1173","Humanoid1174","Humanoid1175","Humanoid1176","Humanoid1177","Humanoid1178","Humanoid1179","Humanoid1180",
"Humanoid1181","Humanoid1182","Humanoid1183","Humanoid1184","Humanoid1185","Humanoid1186","Humanoid1187","Humanoid1188","Humanoid1189","Humanoid1190",
"Humanoid1191","Humanoid1192","Humanoid1193","Humanoid1194","Humanoid1195","Humanoid1196","Humanoid1197","Humanoid1198","Humanoid1199","Humanoid1200",
"Humanoid1201","Humanoid1202","Humanoid1203","Humanoid1204","Humanoid1205","Humanoid1206","Humanoid1207","Humanoid1208","Humanoid1209","Humanoid1210",
"Humanoid1211","Humanoid1212","Humanoid1213","Humanoid1214","Humanoid1215","Humanoid1216","Humanoid1217","Humanoid1218","Humanoid1219","Humanoid1220",
"Humanoid1221","Humanoid1222","Humanoid1223","Humanoid1224","Humanoid1225","Humanoid1226","Humanoid1227","Humanoid1228","Humanoid1229","Humanoid1230",
"Humanoid1231","Humanoid1232","Humanoid1233","Humanoid1234","Humanoid1235","Humanoid1236","Humanoid1237","Humanoid1238","Humanoid1239","Humanoid1240",
"Humanoid1241","Humanoid1242","Humanoid1243","Humanoid1244","Humanoid1245","Humanoid1246","Humanoid1247","Humanoid1248","Humanoid1249","Humanoid1250",
"Humanoid1251","Humanoid1252","Humanoid1253","Humanoid1254","Humanoid1255","Humanoid1256","Humanoid1257","Humanoid1258","Humanoid1259","Humanoid1260",
"Humanoid1261","Humanoid1262","Humanoid1263","Humanoid1264","Humanoid1265","Humanoid1266","Humanoid1267","Humanoid1268","Humanoid1269","Humanoid1270",
"Humanoid1271","Humanoid1272","Humanoid1273","Humanoid1274","Humanoid1275","Humanoid1276","Humanoid1277","Humanoid1278","Humanoid1279","Humanoid1280",
"Humanoid1281","Humanoid1282","Humanoid1283","Humanoid1284","Humanoid1285","Humanoid1286","Humanoid1287","Humanoid1288","Humanoid1289","Humanoid1290",
"Humanoid1291","Humanoid1292","Humanoid1293","Humanoid1294","Humanoid1295","Humanoid1296","Humanoid1297","Humanoid1298","Humanoid1299","Humanoid1300",
"Humanoid1301","Humanoid1302","Humanoid1303","Humanoid1304","Humanoid1305","Humanoid1306","Humanoid1307","Humanoid1308","Humanoid1309","Humanoid1310",
"Humanoid1311","Humanoid1312","Humanoid1313","Humanoid1314","Humanoid1315","Humanoid1316","Humanoid1317","Humanoid1318","Humanoid1319","Humanoid1320",
"Humanoid1321","Humanoid1322","Humanoid1323","Humanoid1324","Humanoid1325","Humanoid1326","Humanoid1327","Humanoid1328","Humanoid1329","Humanoid1330",
"Humanoid1331","Humanoid1332","Humanoid1333","Humanoid1334","Humanoid1335","Humanoid1336","Humanoid1337","Humanoid1338","Humanoid1339","Humanoid1340",
"Humanoid1341","Humanoid1342","Humanoid1343","Humanoid1344","Humanoid1345","Humanoid1346","Humanoid1347","Humanoid1348","Humanoid1349","Humanoid1350",
"Humanoid1351","Humanoid1352","Humanoid1353","Humanoid1354","Humanoid1355","Humanoid1356","Humanoid1357","Humanoid1358","Humanoid1359","Humanoid1360",
"Humanoid1361","Humanoid1362","Humanoid1363","Humanoid1364","Humanoid1365","Humanoid1366","Humanoid1367","Humanoid1368","Humanoid1369","Humanoid1370",
"Humanoid1371","Humanoid1372","Humanoid1373","Humanoid1374","Humanoid1375","Humanoid1376","Humanoid1377","Humanoid1378","Humanoid1379","Humanoid1380",
"Humanoid1381","Humanoid1382","Humanoid1383","Humanoid1384","Humanoid1385","Humanoid1386","Humanoid1387","Humanoid1388","Humanoid1389","Humanoid1390",
"Humanoid1391","Humanoid1392","Humanoid1393","Humanoid1394","Humanoid1395","Humanoid1396","Humanoid1397","Humanoid1398","Humanoid1399","Humanoid1400",
"Humanoid1401","Humanoid1402","Humanoid1403","Humanoid1404","Humanoid1405","Humanoid1406","Humanoid1407","Humanoid1408","Humanoid1409","Humanoid1410",
"Humanoid1411","Humanoid1412","Humanoid1413","Humanoid1414","Humanoid1415","Humanoid1416","Humanoid1417","Humanoid1418","Humanoid1419","Humanoid1420",
"Humanoid1421","Humanoid1422","Humanoid1423","Humanoid1424","Humanoid1425","Humanoid1426","Humanoid1427","Humanoid1428","Humanoid1429","Humanoid1430",
"Humanoid1431","Humanoid1432","Humanoid1433","Humanoid1434","Humanoid1435","Humanoid1436","Humanoid1437","Humanoid1438","Humanoid1439","Humanoid1440",
"Humanoid1441","Humanoid1442","Humanoid1443","Humanoid1444","Humanoid1445","Humanoid1446","Humanoid1447","Humanoid1448","Humanoid1449","Humanoid1450",
"Humanoid1451","Humanoid1452","Humanoid1453","Humanoid1454","Humanoid1455","Humanoid1456","Humanoid1457","Humanoid1458","Humanoid1459","Humanoid1460",
"Humanoid1461","Humanoid1462","Humanoid1463","Humanoid1464","Humanoid1465","Humanoid1466","Humanoid1467","Humanoid1468","Humanoid1469","Humanoid1470",
"Humanoid1471","Humanoid1472","Humanoid1473","Humanoid1474","Humanoid1475","Humanoid1476","Humanoid1477","Humanoid1478","Humanoid1479","Humanoid1480",
"Humanoid1481","Humanoid1482","Humanoid1483","Humanoid1484","Humanoid1485","Humanoid1486","Humanoid1487","Humanoid1488","Humanoid1489","Humanoid1490",
"Humanoid1491","Humanoid1492","Humanoid1493","Humanoid1494","Humanoid1495","Humanoid1496","Humanoid1497","Humanoid1498","Humanoid1499","Humanoid1500",
"Humanoid1501","Humanoid1502","Humanoid1503","Humanoid1504","Humanoid1505","Humanoid1506","Humanoid1507","Humanoid1508","Humanoid1509","Humanoid1510",
"Humanoid1511","Humanoid1512","Humanoid1513","Humanoid1514","Humanoid1515","Humanoid1516","Humanoid1517","Humanoid1518","Humanoid1519","Humanoid1520",
"Humanoid1521","Humanoid1522","Humanoid1523","Humanoid1524","Humanoid1525","Humanoid1526","Humanoid1527","Humanoid1528","Humanoid1529","Humanoid1530",
"Humanoid1531","Humanoid1532","Humanoid1533","Humanoid1534","Humanoid1535","Humanoid1536","Humanoid1537","Humanoid1538","Humanoid1539","Humanoid1540",
"Humanoid1541","Humanoid1542","Humanoid1543","Humanoid1544","Humanoid1545","Humanoid1546","Humanoid1547","Humanoid1548","Humanoid1549","Humanoid1550",
"Humanoid1551","Humanoid1552","Humanoid1553","Humanoid1554","Humanoid1555","Humanoid1556","Humanoid1557","Humanoid1558","Humanoid1559","Humanoid1560",
"Humanoid1561","Humanoid1562","Humanoid1563","Humanoid1564","Humanoid1565","Humanoid1566","Humanoid1567","Humanoid1568","Humanoid1569","Humanoid1570",
"Humanoid1571","Humanoid1572","Humanoid1573","Humanoid1574","Humanoid1575","Humanoid1576","Humanoid1577","Humanoid1578","Humanoid1579","Humanoid1580",
"Humanoid1581","Humanoid1582","Humanoid1583","Humanoid1584","Humanoid1585","Humanoid1586","Humanoid1587","Humanoid1588","Humanoid1589","Humanoid1590",
"Humanoid1591","Humanoid1592","Humanoid1593","Humanoid1594","Humanoid1595","Humanoid1596","Humanoid1597","Humanoid1598","Humanoid1599","Humanoid1600",
"Humanoid1601","Humanoid1602","Humanoid1603","Humanoid1604","Humanoid1605","Humanoid1606","Humanoid1607","Humanoid1608","Humanoid1609","Humanoid1610",
"Humanoid1611","Humanoid1612","Humanoid1613","Humanoid1614","Humanoid1615","Humanoid1616","Humanoid1617","Humanoid1618","Humanoid1619","Humanoid1620",
"Humanoid1621","Humanoid1622","Humanoid1623","Humanoid1624","Humanoid1625","Humanoid1626","Humanoid1627","Humanoid1628","Humanoid1629","Humanoid1630",
"Humanoid1631","Humanoid1632","Humanoid1633","Humanoid1634","Humanoid1635","Humanoid1636","Humanoid1637","Humanoid1638","Humanoid1639","Humanoid1640",
"Humanoid1641","Humanoid1642","Humanoid1643","Humanoid1644","Humanoid1645","Humanoid1646","Humanoid1647","Humanoid1648","Humanoid1649","Humanoid1650",
"Humanoid1651","Humanoid1652","Humanoid1653","Humanoid1654","Humanoid1655","Humanoid1656","Humanoid1657","Humanoid1658","Humanoid1659","Humanoid1660",
"Humanoid1661","Humanoid1662","Humanoid1663","Humanoid1664","Humanoid1665","Humanoid1666","Humanoid1667","Humanoid1668","Humanoid1669","Humanoid1670",
"Humanoid1671","Humanoid1672","Humanoid1673","Humanoid1674","Humanoid1675","Humanoid1676","Humanoid1677","Humanoid1678","Humanoid1679","Humanoid1680",
"Humanoid1681","Humanoid1682","Humanoid1683","Humanoid1684","Humanoid1685","Humanoid1686","Humanoid1687","Humanoid1688","Humanoid1689","Humanoid1690",
"Humanoid1691","Humanoid1692","Humanoid1693","Humanoid1694","Humanoid1695","Humanoid1696","Humanoid1697","Humanoid1698","Humanoid1699","Humanoid1700",
"Humanoid1701","Humanoid1702","Humanoid1703","Humanoid1704","Humanoid1705","Humanoid1706","Humanoid1707","Humanoid1708","Humanoid1709","Humanoid1710",
"Humanoid1711","Humanoid1712","Humanoid1713","Humanoid1714","Humanoid1715","Humanoid1716","Humanoid1717","Humanoid1718","Humanoid1719","Humanoid1720",
"Humanoid1721","Humanoid1722","Humanoid1723","Humanoid1724","Humanoid1725","Humanoid1726","Humanoid1727","Humanoid1728","Humanoid1729","Humanoid1730",
"Humanoid1731","Humanoid1732","Humanoid1733","Humanoid1734","Humanoid1735","Humanoid1736","Humanoid1737","Humanoid1738","Humanoid1739","Humanoid1740",
"Humanoid1741","Humanoid1742","Humanoid1743","Humanoid1744","Humanoid1745","Humanoid1746","Humanoid1747","Humanoid1748","Humanoid1749","Humanoid1750",
"Humanoid1751","Humanoid1752","Humanoid1753","Humanoid1754","Humanoid1755","Humanoid1756","Humanoid1757","Humanoid1758","Humanoid1759","Humanoid1760",
"Humanoid1761","Humanoid1762","Humanoid1763","Humanoid1764","Humanoid1765","Humanoid1766","Humanoid1767","Humanoid1768","Humanoid1769","Humanoid1770",
"Humanoid1771","Humanoid1772","Humanoid1773","Humanoid1774","Humanoid1775","Humanoid1776","Humanoid1777","Humanoid1778","Humanoid1779","Humanoid1780",
"Humanoid1781","Humanoid1782","Humanoid1783","Humanoid1784","Humanoid1785","Humanoid1786","Humanoid1787","Humanoid1788","Humanoid1789","Humanoid1790",
"Humanoid1791","Humanoid1792","Humanoid1793","Humanoid1794","Humanoid1795","Humanoid1796","Humanoid1797","Humanoid1798","Humanoid1799","Humanoid1800",
"Humanoid1801","Humanoid1802","Humanoid1803","Humanoid1804","Humanoid1805","Humanoid1806","Humanoid1807","Humanoid1808","Humanoid1809","Humanoid1810",
"Humanoid1811","Humanoid1812","Humanoid1813","Humanoid1814","Humanoid1815","Humanoid1816","Humanoid1817","Humanoid1818","Humanoid1819","Humanoid1820",
"Humanoid1821","Humanoid1822","Humanoid1823","Humanoid1824","Humanoid1825","Humanoid1826","Humanoid1827","Humanoid1828","Humanoid1829","Humanoid1830",
"Humanoid1831","Humanoid1832","Humanoid1833","Humanoid1834","Humanoid1835","Humanoid1836","Humanoid1837","Humanoid1838","Humanoid1839","Humanoid1840",
"Humanoid1841","Humanoid1842","Humanoid1843","Humanoid1844","Humanoid1845","Humanoid1846","Humanoid1847","Humanoid1848","Humanoid1849","Humanoid1850",
"Humanoid1851","Humanoid1852","Humanoid1853","Humanoid1854","Humanoid1855","Humanoid1856","Humanoid1857","Humanoid1858","Humanoid1859","Humanoid1860",
"Humanoid1861","Humanoid1862","Humanoid1863","Humanoid1864","Humanoid1865","Humanoid1866","Humanoid1867","Humanoid1868","Humanoid1869","Humanoid1870",
"Humanoid1871","Humanoid1872","Humanoid1873","Humanoid1874","Humanoid1875","Humanoid1876","Humanoid1877","Humanoid1878","Humanoid1879","Humanoid1880",
"Humanoid1881","Humanoid1882","Humanoid1883","Humanoid1884","Humanoid1885","Humanoid1886","Humanoid1887","Humanoid1888","Humanoid1889","Humanoid1890",
"Humanoid1891","Humanoid1892","Humanoid1893","Humanoid1894","Humanoid1895","Humanoid1896","Humanoid1897","Humanoid1898","Humanoid1899","Humanoid1900",
"Humanoid1901","Humanoid1902","Humanoid1903","Humanoid1904","Humanoid1905","Humanoid1906","Humanoid1907","Humanoid1908","Humanoid1909","Humanoid1910",
"Humanoid1911","Humanoid1912","Humanoid1913","Humanoid1914","Humanoid1915","Humanoid1916","Humanoid1917","Humanoid1918","Humanoid1919","Humanoid1920",
"Humanoid1921","Humanoid1922","Humanoid1923","Humanoid1924","Humanoid1925","Humanoid1926","Humanoid1927","Humanoid1928","Humanoid1929","Humanoid1930",
"Humanoid1931","Humanoid1932","Humanoid1933","Humanoid1934","Humanoid1935","Humanoid1936","Humanoid1937","Humanoid1938","Humanoid1939","Humanoid1940",
"Humanoid1941","Humanoid1942","Humanoid1943","Humanoid1944","Humanoid1945","Humanoid1946","Humanoid1947","Humanoid1948","Humanoid1949","Humanoid1950",
"Humanoid1951","Humanoid1952","Humanoid1953","Humanoid1954","Humanoid1955","Humanoid1956","Humanoid1957","Humanoid1958","Humanoid1959","Humanoid1960",
"Humanoid1961","Humanoid1962","Humanoid1963","Humanoid1964","Humanoid1965","Humanoid1966","Humanoid1967","Humanoid1968","Humanoid1969","Humanoid1970",
"Humanoid1971","Humanoid1972","Humanoid1973","Humanoid1974","Humanoid1975","Humanoid1976","Humanoid1977","Humanoid1978","Humanoid1979","Humanoid1980",
"Humanoid1981","Humanoid1982","Humanoid1983","Humanoid1984","Humanoid1985","Humanoid1986","Humanoid1987","Humanoid1988","Humanoid1989","Humanoid1990",
"Humanoid1991","Humanoid1992","Humanoid1993","Humanoid1994","Humanoid1995","Humanoid1996","Humanoid1997","Humanoid1998","Humanoid1999","Humanoid2000",
"Humanoid2001","Humanoid2002","Humanoid2003","Humanoid2004","Humanoid2005","Humanoid2006","Humanoid2007","Humanoid2008","Humanoid2009","Humanoid2010",
"Humanoid2011","Humanoid2012","Humanoid2013","Humanoid2014","Humanoid2015","Humanoid2016","Humanoid2017","Humanoid2018","Humanoid2019","Humanoid2020",
"Humanoid2021","Humanoid2022","Humanoid2023","Humanoid2024","Humanoid2025","Humanoid2026","Humanoid2027","Humanoid2028","Humanoid2029","Humanoid2030",
"Humanoid2031","Humanoid2032","Humanoid2033","Humanoid2034","Humanoid2035","Humanoid2036","Humanoid2037","Humanoid2038","Humanoid2039","Humanoid2040",
"Humanoid2041","Humanoid2042","Humanoid2043","Humanoid2044","Humanoid2045","Humanoid2046","Humanoid2047","Humanoid2048","Humanoid2049","Humanoid2050",
"Humanoid2051","Humanoid2052"},
customizationStringNames = {
-- Strings containing comma-separated names are mutually exclusive names: Only one will be set to a non-zero value
"/private/index_age",
"/private/index_color_0",
"/private/index_color_2",
"/private/index_style_freckles",
"/shared_owner/blend_cheeks_0,/shared_owner/blend_cheeks_1",
"/shared_owner/blend_chinsize_0,/shared_owner/blend_chinsize_1",
"/shared_owner/blend_ears_0,/shared_owner/blend_ears_1",
"/shared_owner/blend_eyedirection_0,/shared_owner/blend_eyedirection_1",
"/shared_owner/blend_eyeshape_0,/shared_owner/blend_eyeshape_1",
"/shared_owner/blend_eyesize_0,/shared_owner/blend_eyesize_1",
"/shared_owner/blend_fat,/shared_owner/blend_skinny",
"/shared_owner/blend_jaw_0,/shared_owner/blend_jaw_1",
"/shared_owner/blend_lipfullness_0,/shared_owner/blend_lipfullness_1",
"/shared_owner/blend_lipwidth_0,/shared_owner/blend_lipwidth_1",
"/shared_owner/blend_muscle",
"/shared_owner/blend_nosedepth_0,/shared_owner/blend_nosedepth_1",
"/shared_owner/blend_noselength_0,/shared_owner/blend_noselength_1",
"/shared_owner/blend_nosewidth_0,/shared_owner/blend_nosewidth_1",
"/shared_owner/index_color_pattern",
"/shared_owner/index_color_skin",
"/shared_owner/index_texture_1"
},
customizationValues = {
--/private/index_age,4,
{0, 1, 2, 3},
--/private/index_color_0,2,
{0, 1},
--/private/index_color_2,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/private/index_style_freckles,5,
{0, 1, 2, 3, 4},
--/shared_owner/blend_cheeks_0,256,/shared_owner/blend_cheeks_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_chinsize_0,256,/shared_owner/blend_chinsize_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_ears_0,256,/shared_owner/blend_ears_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_eyedirection_0,256,/shared_owner/blend_eyedirection_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_eyeshape_0,256,/shared_owner/blend_eyeshape_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_eyesize_0,256,/shared_owner/blend_eyesize_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_fat,256,/shared_owner/blend_skinny,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_jaw_0,256,/shared_owner/blend_jaw_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_lipfullness_0,256,/shared_owner/blend_lipfullness_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_lipwidth_0,256,/shared_owner/blend_lipwidth_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_muscle,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_nosedepth_0,256,/shared_owner/blend_nosedepth_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_noselength_0,256,/shared_owner/blend_noselength_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/blend_nosewidth_0,256,/shared_owner/blend_nosewidth_1,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/index_color_pattern,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/index_color_skin,256,
{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, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255},
--/shared_owner/index_texture_1,21,
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20},
}
}
ObjectTemplates:addTemplate(object_mobile_vendor_twilek_male, "object/mobile/vendor/twilek_male.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/structure/city/cloning_corellia.lua | 2 | 3688 | --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_structure_city_cloning_corellia = object_draft_schematic_structure_city_shared_cloning_corellia:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Deed for: Corellia Cloning Facility",
craftingToolTab = 1024, -- (See DraftSchemticImplementation.h)
complexity = 23,
size = 14,
xpType = "crafting_structure_general",
xp = 6800,
assemblySkill = "structure_assembly",
experimentingSkill = "structure_experimentation",
customizationSkill = "structure_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n"},
ingredientTitleNames = {"load_bearing_structure_and_shell", "insulation_and_covering", "foundation", "wall_sections", "power_supply_unit", "storage_space"},
ingredientSlotType = {0, 0, 0, 2, 1, 1},
resourceTypes = {"metal", "ore", "ore", "object/tangible/component/structure/shared_wall_module.iff", "object/tangible/component/structure/shared_power_core_unit.iff", "object/tangible/component/structure/shared_structure_storage_section.iff"},
resourceQuantities = {1250, 2000, 350, 8, 4, 2},
contribution = {100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/deed/city_deed/cloning_corellia_deed.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_structure_city_cloning_corellia, "object/draft_schematic/structure/city/cloning_corellia.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c27196937.lua | 9 | 1143 | --星屑の残光
function c27196937.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c27196937.target)
e1:SetOperation(c27196937.activate)
c:RegisterEffect(e1)
end
function c27196937.filter(c,e,tp)
return c:IsSetCard(0xa3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c27196937.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c27196937.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c27196937.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c27196937.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c27196937.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
| gpl-2.0 |
KingRaptor/Zero-K | effects/xta_crawlexplode.lua | 50 | 8555 | -- small_nuke_explosion_fx
return {
["small_nuke_explosion_fx"] = {
usedefaultexplosions = false,
g_blast = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.87,
colormap = [[1 0.25 0 0.01 0.4 0.3 0.2 0.01 0 0 0 0.01 0 0 0 0.01]],
directional = true,
emitrot = 80,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 150,
particlelife = 60,
particlelifespread = 30,
particlesize = 32,
particlesizespread = 10,
particlespeed = 17,
particlespeedspread = 18,
pos = [[3 r-3, 1 r-2, 3 r-3]],
sizegrowth = 0.14,
sizemod = 1.0,
texture = [[splash]],
},
},
g_blast11 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.88,
colormap = [[0 0 0 0.01 0.2 0.2 0.2 0.9 0 0 0 0.01]],
directional = true,
emitrot = 80,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 50,
particlelife = 180,
particlelifespread = 30,
particlesize = 48,
particlesizespread = 24,
particlespeed = 1,
particlespeedspread = 32,
pos = [[3 r-3, 1 r-2, 3 r-3]],
sizegrowth = 0.14,
sizemod = 1.0,
texture = [[smoke]],
},
},
g_blast2 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.87,
colormap = [[1 0.25 0 0.01 0.3 0.2 0.1 0.01 0 0 0 0.01 0 0 0 0.01]],
directional = true,
emitrot = 0,
emitrotspread = 80,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 200,
particlelife = 60,
particlelifespread = 30,
particlesize = 32,
particlesizespread = 13,
particlespeed = 17,
particlespeedspread = 15,
pos = [[3 r-3, 1 r-2, 3 r-3]],
sizegrowth = 0.14,
sizemod = 1.0,
texture = [[splash]],
},
},
g_blast22 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.88,
colormap = [[0 0 0 0.01 0.1 0.1 0.1 0.5 0 0 0 0.01]],
directional = true,
emitrot = 0,
emitrotspread = 80,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 50,
particlelife = 180,
particlelifespread = 30,
particlesize = 48,
particlesizespread = 24,
particlespeed = 1,
particlespeedspread = 32,
pos = [[3 r-3, 1 r-2, 3 r-3]],
sizegrowth = 0.14,
sizemod = 1.0,
texture = [[smoke]],
},
},
g_smokewave1 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.92,
colormap = [[1 0.3 0.2 0.01 1 0.5 0.2 0.01 0.1 0.1 0.1 0.01 0.1 0.1 0.1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 80,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 35,
particlelife = 38,
particlelifespread = 15,
particlesize = 13,
particlesizespread = 1,
particlespeed = 20,
particlespeedspread = 1,
pos = [[0, 1, 0]],
sizegrowth = 0.16,
sizemod = 1.0,
texture = [[YELLOWBLAST]],
},
},
g_smokewave2 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.92,
colormap = [[1 0.3 0.2 0.01 1 0.5 0.2 0.01 0.1 0.1 0.1 0.01 0.1 0.1 0.1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 80,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 35,
particlelife = 38,
particlelifespread = 15,
particlesize = 13,
particlesizespread = 1,
particlespeed = 20,
particlespeedspread = 1,
pos = [[0, 1, 0]],
sizegrowth = 0.16,
sizemod = 1.0,
texture = [[YELLOWBLAST1]],
},
},
g_smokewave3 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.92,
colormap = [[1 0.3 0.2 0.01 1 0.5 0.2 0.01 0.1 0.1 0.1 0.01 0.1 0.1 0.1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 80,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 35,
particlelife = 38,
particlelifespread = 15,
particlesize = 13,
particlesizespread = 1,
particlespeed = 20,
particlespeedspread = 1,
pos = [[0, 1, 0]],
sizegrowth = 0.16,
sizemod = 1.0,
texture = [[YELLOWBLAST2]],
},
},
g_smokewave4 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.92,
colormap = [[1 0.3 0.2 0.01 1 0.5 0.2 0.01 0.1 0.1 0.1 0.01 0.1 0.1 0.1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 80,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 35,
particlelife = 38,
particlelifespread = 15,
particlesize = 13,
particlesizespread = 1,
particlespeed = 20,
particlespeedspread = 1,
pos = [[0, 1, 0]],
sizegrowth = 0.16,
sizemod = 1.0,
texture = [[YELLOWBLAST3]],
},
},
spikesofhell = {
air = true,
class = [[explspike]],
count = 30,
ground = true,
water = true,
properties = {
alpha = 1,
alphadecay = 0.05,
color = [[1.0, 0.7, 0.2]],
dir = [[-25 r50,-25 r50,-25 r50]],
length = 1,
width = 40,
},
},
windsphere = {
air = true,
class = [[CSpherePartSpawner]],
count = 3,
ground = true,
water = true,
properties = {
alpha = 0.22,
color = [[1.0, 0.8, 0.1]],
expansionspeed = [[10 r4]],
ttl = 27,
},
},
},
}
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/weapon/blacksun_heavy_weapon1_s06.lua | 3 | 2320 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_attachment_weapon_blacksun_heavy_weapon1_s06 = object_tangible_ship_attachment_weapon_shared_blacksun_heavy_weapon1_s06:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_attachment_weapon_blacksun_heavy_weapon1_s06, "object/tangible/ship/attachment/weapon/blacksun_heavy_weapon1_s06.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c74854609.lua | 5 | 1695 | --ゼクト・コンバージョン
function c74854609.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c74854609.condition)
e1:SetTarget(c74854609.target)
e1:SetOperation(c74854609.operation)
c:RegisterEffect(e1)
end
function c74854609.condition(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget()
return d:IsFaceup() and d:IsSetCard(0x56) and a:IsControler(1-tp)
end
function c74854609.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local a=Duel.GetAttacker()
if chkc then return a==chkc end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and a:IsOnField() and a:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(a)
end
function c74854609.eqlimit(e,c)
return c==e:GetLabelObject()
end
function c74854609.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=Duel.GetAttackTarget()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsAttackable() and not tc:IsStatus(STATUS_ATTACK_CANCELED)
and ec:IsLocation(LOCATION_MZONE) and ec:IsFaceup() then
Duel.Equip(tp,ec,tc)
--Add Equip limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(c74854609.eqlimit)
e1:SetLabelObject(tc)
ec:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_SET_CONTROL)
e2:SetValue(tp)
e2:SetReset(RESET_EVENT+0x1fc0000)
ec:RegisterEffect(e2)
end
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c35149085.lua | 5 | 1680 | --キャトルミューティレーション
function c35149085.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c35149085.target)
e1:SetOperation(c35149085.activate)
c:RegisterEffect(e1)
end
function c35149085.filter(c)
return c:IsFaceup() and c:GetLevel()>0 and c:IsRace(RACE_BEAST) and c:IsAbleToHand()
end
function c35149085.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c35149085.filter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingTarget(c35149085.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c35149085.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c35149085.spfilter(c,e,tp,lv)
return c:IsRace(RACE_BEAST) and c:GetLevel()==lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c35149085.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
local lv=tc:GetLevel()
if Duel.SendtoHand(tc,nil,REASON_EFFECT)>0 and tc:IsLocation(LOCATION_HAND)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c35149085.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp,lv)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/vehicle/component/fuel_b.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_draft_schematic_vehicle_component_fuel_b = object_draft_schematic_vehicle_component_shared_fuel_b:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_vehicle_component_fuel_b, "object/draft_schematic/vehicle/component/fuel_b.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Northern_San_dOria/npcs/Secodiand.lua | 5 | 1737 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Secodiand
-- Starts and Finishes Quest: Fear of the dark
-- @zone 231
-- !pos -160 -0 137
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
require("scripts/zones/Northern_San_dOria/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
--
if (player:getQuestStatus(SANDORIA,FEAR_OF_THE_DARK) ~= QUEST_AVAILABLE) then
if (trade:hasItemQty(922,2) and trade:getItemCount() == 2) then
player:startEvent(18);
end
end
--]]
end;
function onTrigger(player,npc)
FearOfTheDark = player:getQuestStatus(SANDORIA,FEAR_OF_THE_DARK);
if (FearOfTheDark == QUEST_AVAILABLE) then
player:startEvent(19);
else
player:startEvent(17);
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 == 19 and option == 1) then
player:addQuest(SANDORIA,FEAR_OF_THE_DARK);
elseif (csid == 18) then
player:tradeComplete();
player:addGil(GIL_RATE*200);
player:messageSpecial(GIL_OBTAINED,GIL_RATE*200);
if (player:getQuestStatus(SANDORIA,FEAR_OF_THE_DARK) == QUEST_ACCEPTED) then
player:addFame(SANDORIA,30);
player:completeQuest(SANDORIA,FEAR_OF_THE_DARK);
else
player:addFame(SANDORIA,5);
end
end
--]]
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/bridge/star_destroyer_bridge.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_ship_attachment_bridge_star_destroyer_bridge = object_tangible_ship_attachment_bridge_shared_star_destroyer_bridge:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_attachment_bridge_star_destroyer_bridge, "object/tangible/ship/attachment/bridge/star_destroyer_bridge.iff")
| agpl-3.0 |
sjznxd/lc-20130116 | applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua | 74 | 2324 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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
$Id$
]]--
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - RDNSS"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and sends router advertisements " ..
"as described in RFC 4861."))
m.redirect = luci.dispatcher.build_url("admin/network/radvd")
if m.uci:get("radvd", sid) ~= "rdnss" then
luci.http.redirect(m.redirect)
return
end
s = m:section(NamedSection, sid, "interface", translate("RDNSS Configuration"))
s.addremove = false
--
-- General
--
o = s:option(Flag, "ignore", translate("Enable"))
o.rmempty = false
function o.cfgvalue(...)
local v = Flag.cfgvalue(...)
return v == "1" and "0" or "1"
end
function o.write(self, section, value)
Flag.write(self, section, value == "1" and "0" or "1")
end
o = s:option(Value, "interface", translate("Interface"),
translate("Specifies the logical interface name this section belongs to"))
o.template = "cbi/network_netlist"
o.nocreate = true
o.optional = false
function o.formvalue(...)
return Value.formvalue(...) or "-"
end
function o.validate(self, value)
if value == "-" then
return nil, translate("Interface required")
end
return value
end
function o.write(self, section, value)
m.uci:set("radvd", section, "ignore", 0)
m.uci:set("radvd", section, "interface", value)
end
o = s:option(DynamicList, "addr", translate("Addresses"),
translate("Advertised IPv6 RDNSS. If empty, the current IPv6 address of the interface is used"))
o.optional = false
o.rmempty = true
o.datatype = "ip6addr"
o.placeholder = translate("default")
function o.cfgvalue(self, section)
local l = { }
local v = m.uci:get_list("radvd", section, "addr")
for v in utl.imatch(v) do
l[#l+1] = v
end
return l
end
o = s:option(Value, "AdvRDNSSLifetime", translate("Lifetime"),
translate("Specifies the maximum duration how long the RDNSS entries are used for name resolution."))
o.datatype = 'or(uinteger,"infinity")'
o.placeholder = 1200
return m
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/weapon/kse_firespray_weapon1_s02.lua | 3 | 2316 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_attachment_weapon_kse_firespray_weapon1_s02 = object_tangible_ship_attachment_weapon_shared_kse_firespray_weapon1_s02:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_attachment_weapon_kse_firespray_weapon1_s02, "object/tangible/ship/attachment/weapon/kse_firespray_weapon1_s02.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c62107981.lua | 3 | 1530 | --E・HERO クノスペ
function c62107981.initial_effect(c)
--direct attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetCondition(c62107981.atcon)
c:RegisterEffect(e1)
--atk/def
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(62107981,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_BATTLE_DAMAGE)
e2:SetCondition(c62107981.adcon)
e2:SetOperation(c62107981.adop)
c:RegisterEffect(e2)
--
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c62107981.atcon)
e3:SetValue(aux.imval1)
c:RegisterEffect(e3)
end
function c62107981.adcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
end
function c62107981.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() and c:GetDefence()>=100 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
e1:SetValue(100)
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENCE)
e2:SetValue(-100)
c:RegisterEffect(e2)
end
end
function c62107981.filter(c)
return c:IsFaceup() and c:IsSetCard(0x3008)
end
function c62107981.atcon(e)
return Duel.IsExistingMatchingCard(c62107981.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler())
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c43250041.lua | 9 | 1029 | --ドレインシールド
function c43250041.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_RECOVER)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c43250041.condition)
e1:SetTarget(c43250041.target)
e1:SetOperation(c43250041.activate)
c:RegisterEffect(e1)
end
function c43250041.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer()
end
function c43250041.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tg=Duel.GetAttacker()
if chkc then return chkc==tg end
if chk==0 then return tg:IsOnField() and tg:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(tg)
local rec=tg:GetAttack()
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,rec)
end
function c43250041.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsAttackable() then
if Duel.NegateAttack(tc) then
Duel.Recover(tp,tc:GetAttack(),REASON_EFFECT)
end
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_dathomir_nightsister_stalker.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_mobile_dressed_dathomir_nightsister_stalker = object_mobile_shared_dressed_dathomir_nightsister_stalker:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_dathomir_nightsister_stalker, "object/mobile/dressed_dathomir_nightsister_stalker.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c76848240.lua | 9 | 1323 | --絶対不可侵領域
function c76848240.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_STANDBY_PHASE)
e1:SetCondition(c76848240.condition)
e1:SetCost(c76848240.cost)
e1:SetOperation(c76848240.operation)
c:RegisterEffect(e1)
end
function c76848240.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_STANDBY and Duel.GetTurnPlayer()==tp
end
function c76848240.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c76848240.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetReset(RESET_PHASE+PHASE_END,2)
e1:SetCondition(c76848240.efcon)
e1:SetLabel(Duel.GetTurnCount())
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_MSET)
Duel.RegisterEffect(e2,tp)
local e3=e1:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
Duel.RegisterEffect(e3,tp)
end
function c76848240.efcon(e)
return Duel.GetTurnCount()~=e:GetLabel()
end
| gpl-2.0 |
Whitechaser/darkstar | scripts/zones/Port_Jeuno/npcs/_6u4.lua | 5 | 1055 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Door: Departures Exit (for San D'Oria)
-- @zone 246
-- !pos -76 8 54
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
if (player:hasKeyItem(AIRSHIP_PASS) == true and player:getGil() >= 200) then
player:startEvent(38);
else
player:startEvent(46);
end
return 1;
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 == 38) then
Z = player:getZPos();
if (Z >= 58 and Z <= 61) then
player:delGil(200);
end
end
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/hat/singing_mountain_clan_hat_s01.lua | 3 | 2684 | --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_hat_singing_mountain_clan_hat_s01 = object_tangible_wearables_hat_shared_singing_mountain_clan_hat_s01:new {
playerRaces = { "object/creature/player/bothan_female.iff",
"object/creature/player/human_female.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/zabrak_female.iff" },
}
ObjectTemplates:addTemplate(object_tangible_wearables_hat_singing_mountain_clan_hat_s01, "object/tangible/wearables/hat/singing_mountain_clan_hat_s01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/droid/bounty_probot_transmitter.lua | 2 | 3800 | --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_bounty_probot_transmitter = object_draft_schematic_droid_shared_bounty_probot_transmitter:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Arakyd Probe Droid",
craftingToolTab = 32, -- (See DraftSchemticImplementation.h)
complexity = 25,
size = 1,
xpType = "crafting_droid_general",
xp = 340,
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 = {"primary_frame", "body_shell", "shielding_and_insulation", "advanced_search_planning_circuit", "search_parameter_storage_circuit", "command_interpreter", "autonomous_searcher_logic_unit"},
ingredientSlotType = {0, 0, 0, 1, 1, 1, 1},
resourceTypes = {"steel", "chemical", "ore_extrusive", "object/tangible/component/item/shared_electronics_gp_module.iff", "object/tangible/component/item/shared_electronics_memory_module.iff", "object/tangible/component/item/shared_electronics_gp_module.iff", "object/tangible/component/item/shared_electronics_gp_module.iff"},
resourceQuantities = {30, 20, 25, 1, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/mission/mission_bounty_droid_probot.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_bounty_probot_transmitter, "object/draft_schematic/droid/bounty_probot_transmitter.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | cmake.in/ldoc.in/ThreadBuilder.lua | 4 | 2156 |
----
-- @file ThreadBuilder
---- Brief description.
-- Calculate the buffer size of this object.
-- @return The buffer size.
function ThreadBuilder:calculateSerializeBufferSize()
end
---- Brief description.
-- Serialize this object.
-- @param btSerializer the serializer which does the serialize.
-- @return The buffer size.
function ThreadBuilder:serialize(btSerializer)
end
---- Brief description.
-- Get the type of
-- @return The
function ThreadBuilder:getObjectType()
end
---- Brief description.
-- The name of this class.
-- @return The name of this class.
function ThreadBuilder:getClassName()
end
---- Brief description.
-- Get the type of
-- @return The
function ThreadBuilder:getType()
end
---- Brief description.
-- Create an Array of instances of this class.
-- @param size The amount of elements in the array.
-- @return Pointer to the newly created array.
function NJLI.ThreadBuilder.createArray(size)
end
---- Brief description.
-- Destroy an Array of this class type.
-- @param array The Pointer to the array to delete.
-- @return Pointer to the newly created array.
function NJLI.ThreadBuilder.destroyArray(array)
end
---- Brief description.
-- Create an instance of this class.
-- @return Pointer to the newly created instance.
function NJLI.ThreadBuilder.create()
end
---- Brief description.
-- Create a clone of an instance of this class.
-- @param object The object to clone.
-- @return Pointer to the newly created instance.
function NJLI.ThreadBuilder.clone(object)
end
---- Brief description.
-- Destroy an instance of this class.
-- @param object The object to destroy.
-- @return Pointer to the newly created instance.
function NJLI.ThreadBuilder.destroy(object)
end
---- Brief description.
-- Load a lua table representation of this class. This is used for JLIM.create(object).
-- @param object The object to load.
-- @param L The current lua state.
-- @param stack_index The stack index of the lua stack.
-- @return Pointer to the newly created instance.
function NJLI.ThreadBuilder.load(object, L, stack_index)
end
---- Brief description.
-- Get the type of
-- @return The
function NJLI.ThreadBuilder.type()
end
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/instrument/bandfill.lua | 3 | 2678 | --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_instrument_bandfill = object_tangible_instrument_shared_bandfill:new {
templateType = INSTRUMENT,
instrumentType = 7,
numberExperimentalProperties = {1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "UT", "CD"},
experimentalWeights = {1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_quality"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "quality"},
experimentalMin = {0, 0, 1000, 1},
experimentalMax = {0, 0, 1000, 100},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_instrument_bandfill, "object/tangible/instrument/bandfill.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/dathomir/grovo.lua | 2 | 1116 | grovo = Creature:new {
objectName = "@monster_name:grovo",
socialGroup = "nightsister",
faction = "nightsister",
level = 75,
chanceHit = 0.7,
damageMin = 520,
damageMax = 750,
baseXp = 7207,
baseHAM = 12000,
baseHAMmax = 15000,
armor = 1,
resists = {25,160,25,200,200,200,25,25,-1},
meatType = "meat_carnivore",
meatAmount = 1000,
hideType = "hide_leathery",
hideAmount = 1000,
boneType = "bone_mammal",
boneAmount = 950,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = CARNIVORE,
templates = {"object/mobile/nsister_rancor_grovo.iff"},
scale = 1.25,
lootGroups = {
{
groups = {
{group = "rancor_common", chance = 4000000},
{group = "armor_all", chance = 2000000},
{group = "weapons_all", chance = 2500000},
{group = "wearables_all", chance = 1500000}
},
lootChance = 2500000
}
},
weapons = {},
conversationTemplate = "",
attacks = {
{"creatureareableeding",""},
{"creatureareacombo",""}
}
}
CreatureTemplates:addCreatureTemplate(grovo, "grovo")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/creature/naboo_bolle_bol.lua | 3 | 2212 | --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_creature_naboo_bolle_bol = object_static_creature_shared_naboo_bolle_bol:new {
}
ObjectTemplates:addTemplate(object_static_creature_naboo_bolle_bol, "object/static/creature/naboo_bolle_bol.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c42752141.lua | 3 | 1491 | --エヴォルカイザー・ドルカ
function c42752141.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_DINOSAUR),4,2)
c:EnableReviveLimit()
--negate activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(42752141,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c42752141.condition)
e1:SetCost(c42752141.cost)
e1:SetTarget(c42752141.target)
e1:SetOperation(c42752141.operation)
c:RegisterEffect(e1)
end
function c42752141.condition(e,tp,eg,ep,ev,re,r,rp,chk)
return re~=e and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev)
end
function c42752141.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c42752141.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 c42752141.operation(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 |
Whitechaser/darkstar | scripts/zones/Waughroon_Shrine/TextIDs.lua | 5 | 1045 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6389; -- Obtained key item: <keyitem>.
-- Maat dialog
YOU_DECIDED_TO_SHOW_UP = 7674; -- So, you decided to show up.
LOOKS_LIKE_YOU_WERENT_READY = 7675; -- Looks like you weren't ready for me, were you?
YOUVE_COME_A_LONG_WAY = 7676; -- Hm. That was a mighty fine display of skill there, Player Name. You've come a long way...
TEACH_YOU_TO_RESPECT_ELDERS = 7677; -- I'll teach you to respect your elders!
TAKE_THAT_YOU_WHIPPERSNAPPER = 7678; -- Take that, you whippersnapper!
NOW_THAT_IM_WARMED_UP = 7679; -- Now that I'm warmed up...
THAT_LL_HURT_IN_THE_MORNING = 7680; -- Ungh... That'll hurt in the morning...
-- conquest Base
CONQUEST_BASE = 7047; -- Tallying conquest results...
| gpl-3.0 |
TWEFF/Luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 54 | 7297 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2009 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
$Id$
]]--
local ip = require "luci.ip"
local fs = require "nixio.fs"
if arg[1] then
mp = Map("olsrd", translate("OLSR - Plugins"))
p = mp:section(TypedSection, "LoadPlugin", translate("Plugin configuration"))
p:depends("library", arg[1])
p.anonymous = true
ign = p:option(Flag, "ignore", translate("Enable"))
ign.enabled = "0"
ign.disabled = "1"
ign.rmempty = false
function ign.cfgvalue(self, section)
return Flag.cfgvalue(self, section) or "0"
end
lib = p:option(DummyValue, "library", translate("Library"))
lib.default = arg[1]
local function Range(x,y)
local t = {}
for i = x, y do t[#t+1] = i end
return t
end
local function Cidr2IpMask(val)
if val then
for i = 1, #val do
local cidr = ip.IPv4(val[i]) or ip.IPv6(val[i])
if cidr then
val[i] = cidr:network():string() .. " " .. cidr:mask():string()
end
end
return val
end
end
local function IpMask2Cidr(val)
if val then
for i = 1, #val do
local ip, mask = val[i]:gmatch("([^%s]+)%s+([^%s]+)")()
local cidr
if ip and mask and ip:match(":") then
cidr = ip.IPv6(ip, mask)
elseif ip and mask then
cidr = ip.IPv4(ip, mask)
end
if cidr then
val[i] = cidr:string()
end
end
return val
end
end
local knownPlParams = {
["olsrd_bmf.so.1.5.3"] = {
{ Value, "BmfInterface", "bmf0" },
{ Value, "BmfInterfaceIp", "10.10.10.234/24" },
{ Flag, "DoLocalBroadcast", "no" },
{ Flag, "CapturePacketsOnOlsrInterfaces", "yes" },
{ ListValue, "BmfMechanism", { "UnicastPromiscuous", "Broadcast" } },
{ Value, "BroadcastRetransmitCount", "2" },
{ Value, "FanOutLimit", "4" },
{ DynamicList, "NonOlsrIf", "br-lan" }
},
["olsrd_dyn_gw.so.0.4"] = {
{ Value, "Interval", "40" },
{ DynamicList, "Ping", "141.1.1.1" },
{ DynamicList, "HNA", "192.168.80.0/24", IpMask2Cidr, Cidr2IpMask }
},
["olsrd_httpinfo.so.0.1"] = {
{ Value, "port", "80" },
{ DynamicList, "Host", "163.24.87.3" },
{ DynamicList, "Net", "0.0.0.0/0", Cidr2IpMask }
},
["olsrd_nameservice.so.0.3"] = {
{ DynamicList, "name", "my-name.mesh" },
{ DynamicList, "hosts", "1.2.3.4 name-for-other-interface.mesh" },
{ Value, "suffix", ".olsr" },
{ Value, "hosts_file", "/path/to/hosts_file" },
{ Value, "add_hosts", "/path/to/file" },
{ Value, "dns_server", "141.1.1.1" },
{ Value, "resolv_file", "/path/to/resolv.conf" },
{ Value, "interval", "120" },
{ Value, "timeout", "240" },
{ Value, "lat", "12.123" },
{ Value, "lon", "12.123" },
{ Value, "latlon_file", "/var/run/latlon.js" },
{ Value, "latlon_infile", "/var/run/gps.txt" },
{ Value, "sighup_pid_file", "/var/run/dnsmasq.pid" },
{ Value, "name_change_script", "/usr/local/bin/announce_new_hosts.sh" },
{ DynamicList, "service", "http://me.olsr:80|tcp|my little homepage" },
{ Value, "services_file", "/var/run/services_olsr" },
{ Value, "services_change_script", "/usr/local/bin/announce_new_services.sh" },
{ DynamicList, "mac", "xx:xx:xx:xx:xx:xx[,0-255]" },
{ Value, "macs_file", "/path/to/macs_file" },
{ Value, "macs_change_script", "/path/to/script" }
},
["olsrd_quagga.so.0.2.2"] = {
{ StaticList, "redistribute", {
"system", "kernel", "connect", "static", "rip", "ripng", "ospf",
"ospf6", "isis", "bgp", "hsls"
} },
{ ListValue, "ExportRoutes", { "only", "both" } },
{ Flag, "LocalPref", "true" },
{ Value, "Distance", Range(0,255) }
},
["olsrd_secure.so.0.5"] = {
{ Value, "Keyfile", "/etc/private-olsr.key" }
},
["olsrd_txtinfo.so.0.1"] = {
{ Value, "accept", "127.0.0.1" }
},
["olsrd_jsoninfo.so.0.0"] = {
{ Value, "accept", "127.0.0.1" },
{ Value, "port", "9090" },
{ Value, "UUIDFile", "/etc/olsrd/olsrd.uuid" },
},
["olsrd_watchdog.so.0.1"] = {
{ Value, "file", "/var/run/olsrd.watchdog" },
{ Value, "interval", "30" }
},
["olsrd_mdns.so.1.0.0"] = {
{ DynamicList, "NonOlsrIf", "lan" }
},
["olsrd_p2pd.so.0.1.0"] = {
{ DynamicList, "NonOlsrIf", "lan" },
{ Value, "P2pdTtl", "10" }
},
["olsrd_arprefresh.so.0.1"] = {},
["olsrd_dot_draw.so.0.3"] = {},
["olsrd_dyn_gw_plain.so.0.4"] = {},
["olsrd_pgraph.so.1.1"] = {},
["olsrd_tas.so.0.1"] = {}
}
-- build plugin options with dependencies
if knownPlParams[arg[1]] then
for _, option in ipairs(knownPlParams[arg[1]]) do
local otype, name, default, uci2cbi, cbi2uci = unpack(option)
local values
if type(default) == "table" then
values = default
default = default[1]
end
if otype == Flag then
local bool = p:option( Flag, name, name )
if default == "yes" or default == "no" then
bool.enabled = "yes"
bool.disabled = "no"
elseif default == "on" or default == "off" then
bool.enabled = "on"
bool.disabled = "off"
elseif default == "1" or default == "0" then
bool.enabled = "1"
bool.disabled = "0"
else
bool.enabled = "true"
bool.disabled = "false"
end
bool.optional = true
bool.default = default
bool:depends({ library = plugin })
else
local field = p:option( otype, name, name )
if values then
for _, value in ipairs(values) do
field:value( value )
end
end
if type(uci2cbi) == "function" then
function field.cfgvalue(self, section)
return uci2cbi(otype.cfgvalue(self, section))
end
end
if type(cbi2uci) == "function" then
function field.formvalue(self, section)
return cbi2uci(otype.formvalue(self, section))
end
end
field.optional = true
field.default = default
--field:depends({ library = arg[1] })
end
end
end
return mp
else
mpi = Map("olsrd", translate("OLSR - Plugins"))
local plugins = {}
mpi.uci:foreach("olsrd", "LoadPlugin",
function(section)
if section.library and not plugins[section.library] then
plugins[section.library] = true
end
end
)
-- create a loadplugin section for each found plugin
for v in fs.dir("/usr/lib") do
if v:sub(1, 6) == "olsrd_" then
if not plugins[v] then
mpi.uci:section(
"olsrd", "LoadPlugin", nil,
{ library = v, ignore = 1 }
)
end
end
end
t = mpi:section( TypedSection, "LoadPlugin", translate("Plugins") )
t.anonymous = true
t.template = "cbi/tblsection"
t.override_scheme = true
function t.extedit(self, section)
local lib = self.map:get(section, "library") or ""
return luci.dispatcher.build_url("admin", "services", "olsrd", "plugins") .. "/" .. lib
end
ign = t:option( Flag, "ignore", translate("Enabled") )
ign.enabled = "0"
ign.disabled = "1"
ign.rmempty = false
function ign.cfgvalue(self, section)
return Flag.cfgvalue(self, section) or "0"
end
t:option( DummyValue, "library", translate("Library") )
return mpi
end
| apache-2.0 |
DailyShana/ygopro-scripts | c56223084.lua | 5 | 1056 | --ハリマンボウ
function c56223084.initial_effect(c)
--atkdown
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(56223084,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetTarget(c56223084.target)
e1:SetOperation(c56223084.operation)
c:RegisterEffect(e1)
end
function c56223084.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
end
function c56223084.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and 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(-500)
e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/space/spacestation/pirate_outpost_01.lua | 3 | 2260 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_space_spacestation_pirate_outpost_01 = object_static_space_spacestation_shared_pirate_outpost_01:new {
}
ObjectTemplates:addTemplate(object_static_space_spacestation_pirate_outpost_01, "object/static/space/spacestation/pirate_outpost_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/pt_geonosian_aquarium_fish.lua | 3 | 2256 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_particle_pt_geonosian_aquarium_fish = object_static_particle_shared_pt_geonosian_aquarium_fish:new {
}
ObjectTemplates:addTemplate(object_static_particle_pt_geonosian_aquarium_fish, "object/static/particle/pt_geonosian_aquarium_fish.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/furniture/all/frn_all_bed_lg_s1.lua | 3 | 2687 | --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_bed_lg_s1 = object_tangible_furniture_all_shared_frn_all_bed_lg_s1:new {
numberExperimentalProperties = {1, 1, 1, 2},
experimentalProperties = {"XX", "XX", "XX", "DR", "OQ"},
experimentalWeights = {1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_quality"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "quality"},
experimentalMin = {0, 0, 1000, 1},
experimentalMax = {0, 0, 1000, 100},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_bed_lg_s1, "object/tangible/furniture/all/frn_all_bed_lg_s1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_stormtrooper_black_red.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_stormtrooper_black_red = object_mobile_shared_dressed_stormtrooper_black_red:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_stormtrooper_black_red, "object/mobile/dressed_stormtrooper_black_red.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/armor/arm_mission_reward_rebel_incom_ultralight.lua | 3 | 2376 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_armor_arm_mission_reward_rebel_incom_ultralight = object_tangible_ship_components_armor_shared_arm_mission_reward_rebel_incom_ultralight:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_armor_arm_mission_reward_rebel_incom_ultralight, "object/tangible/ship/components/armor/arm_mission_reward_rebel_incom_ultralight.iff")
| agpl-3.0 |
johnnybarroso/yurots | data/spells/scripts/party/heal.lua | 13 | 1841 | local combat = createCombatObject()
local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF_SPELL, 1)
setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 20)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 2000)
local baseMana = 120
function onCastSpell(cid, var)
local pos = getCreaturePosition(cid)
local membersList = getPartyMembers(cid)
if(membersList == nil or type(membersList) ~= 'table' or #membersList <= 1) then
doPlayerSendCancel(cid, "No party members in range.")
doSendMagicEffect(pos, CONST_ME_POFF)
return false
end
local affectedList = {}
for _, pid in ipairs(membersList) do
if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then
table.insert(affectedList, pid)
end
end
local tmp = #affectedList
if(tmp <= 1) then
doPlayerSendCancel(cid, "No party members in range.")
doSendMagicEffect(pos, CONST_ME_POFF)
return false
end
local mana = math.ceil((0.9 ^ (tmp - 1) * baseMana) * tmp)
if(getPlayerMana(cid) < mana) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA)
doSendMagicEffect(pos, CONST_ME_POFF)
return false
end
if(doCombat(cid, combat, var) ~= true) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
doSendMagicEffect(pos, CONST_ME_POFF)
return false
end
doPlayerAddMana(cid, -(mana - baseMana), FALSE)
doPlayerAddManaSpent(cid, (mana - baseMana))
for _, pid in ipairs(affectedList) do
doAddCondition(pid, condition)
end
return true
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/zabrak/hair_zabrak_female_s10.lua | 3 | 2260 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_hair_zabrak_hair_zabrak_female_s10 = object_tangible_hair_zabrak_shared_hair_zabrak_female_s10:new {
}
ObjectTemplates:addTemplate(object_tangible_hair_zabrak_hair_zabrak_female_s10, "object/tangible/hair/zabrak/hair_zabrak_female_s10.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/creature/dantooine_bol.lua | 3 | 2204 | --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_creature_dantooine_bol = object_static_creature_shared_dantooine_bol:new {
}
ObjectTemplates:addTemplate(object_static_creature_dantooine_bol, "object/static/creature/dantooine_bol.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/commands/mobsub.lua | 8 | 1555 | ---------------------------------------------------------------------------------------------------
-- func: mobsub
-- desc: Changes the sub-animation of the given mob. (For testing purposes.)
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
cmdprops =
{
permission = 1,
parameters = "ss"
};
function error(player, msg)
player:PrintToPlayer(msg);
player:PrintToPlayer("!mobsub {mob ID} <animation ID>");
end;
function onTrigger(player, arg1, arg2)
local target;
local animationId;
if (arg2 ~= nil) then
target = arg1;
animationId = arg2;
elseif (arg1 ~= nil) then
animationId = arg1;
else
error(player, "You must provide an animation ID.");
return;
end
-- validate target
local targ;
if (target == nil) then
targ = player:getCursorTarget();
if (targ == nil or not targ:isMob()) then
error(player, "You must either provide a mob ID or target a mob.");
return;
end
else
targ = GetMobByID(target);
if (targ == nil) then
error(player, "Invalid mob ID.");
return;
end
end;
-- validate animationId
animationId = tonumber(animationId) or _G[string.upper(animationId)];
if (animationId == nil or animationId < 0) then
error(player, "Invalid animation ID.");
return;
end
-- set animation sub
targ:AnimationSub( animationId );
end
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/recycler/ore_recycler.lua | 2 | 3793 | --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_recycler_ore_recycler = object_tangible_recycler_shared_ore_recycler:new {
templateType = RECYCLETOOL,
gameObjectType = 32780,
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" },
customizationOptions = {},
customizationDefaults = {},
toolType = 21,
resourceTypes = "igneous,sedimentary,gemstone",
containerComponent = "RecycleToolContainerComponent",
numberExperimentalProperties = {1, 1, 1},
experimentalProperties = {"XX", "XX", "XX"},
experimentalWeights = {1, 1, 1},
experimentalGroupTitles = {"null", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "hitpoints"},
experimentalMin = {0, 0, 1000},
experimentalMax = {0, 0, 1000},
experimentalPrecision = {0, 0, 0},
experimentalCombineType = {0, 0, 4},
}
ObjectTemplates:addTemplate(object_tangible_recycler_ore_recycler, "object/tangible/recycler/ore_recycler.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/armor/arm_mandal_double_insulated_i5.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_armor_arm_mandal_double_insulated_i5 = object_tangible_ship_components_armor_shared_arm_mandal_double_insulated_i5:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_armor_arm_mandal_double_insulated_i5, "object/tangible/ship/components/armor/arm_mandal_double_insulated_i5.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/general/rori_bark_mite_cave.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_general_rori_bark_mite_cave = object_building_general_shared_rori_bark_mite_cave:new {
}
ObjectTemplates:addTemplate(object_building_general_rori_bark_mite_cave, "object/building/general/rori_bark_mite_cave.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/spells/flash.lua | 2 | 1124 | -----------------------------------------
-- Spell: Flash
-- Temporarily blinds an enemy, greatly lowering its accuracy.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,spell)
-- Pull base stats.
local dINT = (caster:getStat(MOD_MND) - target:getStat(MOD_MND));
local params = {};
params.diff = nil;
params.attribute = MOD_INT;
params.skillType = DIVINE_MAGIC_SKILL;
params.bonus = 150;
params.effect = nil;
local resist = applyResistance(caster, target, spell, params);
local duration = 12 * resist;
if (resist > 0.0625) then
if (target:addStatusEffect(dsp.effects.FLASH,200,0,duration)) then
spell:setMsg(msgBasic.MAGIC_ENFEEB_IS);
else
spell:setMsg(msgBasic.MAGIC_NO_EFFECT);
end
else
spell:setMsg(msgBasic.MAGIC_RESIST);
end
return dsp.effects.FLASH;
end;
| gpl-3.0 |
screeninvader/ScreenInvader | src/etc/xdg/awesome/rc.lua | 1 | 10314 | -- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.add_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = err })
in_error = false
end)
end
-- }}}
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
beautiful.init("/usr/share/awesome/themes/default/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "urxvtc -bg black -fg lightgrey +sb -fade 30"
screenlock = "xscreensaver-command --lock"
editor = os.getenv("EDITOR") or "vi"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
awful.layout.suit.magnifier
}
-- }}}
-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
end
-- }}}
-- {{{ Menu
-- Create a laucher widget and a main menu
-- }}}
-- {{{ Wibox
-- Create a textclock widget
-- Create a systray
-- Create a wibox for each screen and add it
-- }}}
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "w", function () mymainmenu:show({keygrabber=true}) end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "Escape", function () awful.util.spawn(screenlock) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
-- Prompt
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end)
)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end)
)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber));
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
-- }}}
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
}
-- }}}
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
-- Add a titlebar
-- awful.titlebar.add(c, { modkey = modkey })
-- Enable sloppy focus
c:add_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Put windows in a smart way, only if they does not set an initial position.
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
end
end)
client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/armor/arm_koensayr_limited_heavy_durasteel.lua | 3 | 2356 | --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_armor_arm_koensayr_limited_heavy_durasteel = object_tangible_ship_components_armor_shared_arm_koensayr_limited_heavy_durasteel:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_armor_arm_koensayr_limited_heavy_durasteel, "object/tangible/ship/components/armor/arm_koensayr_limited_heavy_durasteel.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/powerup/weapon/thrown_wiring.lua | 3 | 3017 | --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_powerup_weapon_thrown_wiring = object_tangible_powerup_weapon_shared_thrown_wiring:new {
templateType = POWERUP,
pupType = "Thrown",
baseName = "Wiring Powerup",
primary = {
{"attackSpeed", "Short-Fuse", "cat_pup.pup_wpn_attack_speed"},
{"maxDamage", "Core-Alignment", "cat_pup.pup_wpn_damage_max"},
},
secondary = {
{"woundsRatio", "Shrapnel", "cat_pup.pup_wpn_wound_chance"}
},
factoryCrateSize = 10,
numberExperimentalProperties = {1, 1, 1, 2},
experimentalProperties = {"XX", "XX", "XX", "CD", "OQ"},
experimentalWeights = {1, 1, 1, 2, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_effectiveness"},
experimentalSubGroupTitles = {"null", "null", "hitpoints", "effect"},
experimentalMin = {0, 0, 1000, 1},
experimentalMax = {0, 0, 1000, 100},
experimentalPrecision = {0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_powerup_weapon_thrown_wiring, "object/tangible/powerup/weapon/thrown_wiring.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/deed/player_house_deed/serverobjects.lua | 3 | 4329 | --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/deed/player_house_deed/corellia_house_large_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_large_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_medium_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_medium_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_small_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_small_floor_02_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_small_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/corellia_house_small_style_02_floor_02_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_large_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_large_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_medium_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_medium_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_small_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_small_floor_02_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_small_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/generic_house_small_style_02_floor_02_deed.lua")
includeFile("tangible/deed/player_house_deed/merchant_tent_style_01_deed.lua")
includeFile("tangible/deed/player_house_deed/merchant_tent_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/merchant_tent_style_03_deed.lua")
includeFile("tangible/deed/player_house_deed/naboo_house_large_deed.lua")
includeFile("tangible/deed/player_house_deed/naboo_house_medium_deed.lua")
includeFile("tangible/deed/player_house_deed/naboo_house_medium_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/naboo_house_small_deed.lua")
includeFile("tangible/deed/player_house_deed/naboo_house_small_style_02_deed.lua")
includeFile("tangible/deed/player_house_deed/tatooine_house_large_deed.lua")
includeFile("tangible/deed/player_house_deed/tatooine_house_medium_deed.lua")
includeFile("tangible/deed/player_house_deed/tatooine_house_small_deed.lua")
includeFile("tangible/deed/player_house_deed/tatooine_house_small_style_02_deed.lua")
| agpl-3.0 |
DailyShana/ygopro-scripts | c19814508.lua | 5 | 2334 | --U.A.スタジアム
function c19814508.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(19814508,0))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_FZONE)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetTarget(c19814508.target)
e2:SetOperation(c19814508.operation)
c:RegisterEffect(e2)
--atkup
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(19814508,1))
e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_FZONE)
e3:SetCountLimit(1)
e3:SetCondition(c19814508.atkcon)
e3:SetOperation(c19814508.atkop)
c:RegisterEffect(e3)
end
function c19814508.filter(c)
return c:IsSetCard(0xb2) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c19814508.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=eg:GetFirst()
if chk==0 then return tc:IsSetCard(0xb2) and tc:IsControler(tp)
and Duel.IsExistingMatchingCard(c19814508.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c19814508.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c19814508.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c19814508.cfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xb2) and c:IsControler(tp)
end
function c19814508.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c19814508.cfilter,1,nil,tp)
end
function c19814508.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
local tc=g:GetFirst()
while tc do
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetReset(RESET_EVENT+0x1fe0000)
e3:SetValue(500)
tc:RegisterEffect(e3)
tc=g:GetNext()
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/space_comm_rebel_xwing_02.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_mobile_space_comm_rebel_xwing_02 = object_mobile_shared_space_comm_rebel_xwing_02:new {
}
ObjectTemplates:addTemplate(object_mobile_space_comm_rebel_xwing_02, "object/mobile/space_comm_rebel_xwing_02.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/space/asteroid/asteroid_small_02.lua | 3 | 2244 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_space_asteroid_asteroid_small_02 = object_static_space_asteroid_shared_asteroid_small_02:new {
}
ObjectTemplates:addTemplate(object_static_space_asteroid_asteroid_small_02, "object/static/space/asteroid/asteroid_small_02.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/food/foraged/foraged_fruit_s2.lua | 3 | 2655 | --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
-- Wild Snaff
object_tangible_food_foraged_foraged_fruit_s2 = object_tangible_food_foraged_shared_foraged_fruit_s2:new {
templateType = CONSUMABLE,
duration = 50,
filling = 0,
nutrition = 0,
effectType = 1,
fillingMin = 0,
fillingMax = 0,
flavorMin = 0,
flavorMax = 0,
nutritionMin = 0,
nutritionMax = 0,
quantityMin = 0,
quantityMax = 0,
modifiers = { "health", 50, "action", 50, "mind", 50 },
buffName = "wild_snaff",
buffCRC = 0,
speciesRestriction = "",
consumableType = 1,
foragedFood = 1
}
ObjectTemplates:addTemplate(object_tangible_food_foraged_foraged_fruit_s2, "object/tangible/food/foraged/foraged_fruit_s2.iff")
| agpl-3.0 |
KingRaptor/Zero-K | LuaRules/Utilities/startbox_utilities.lua | 2 | 9105 | function cross_product (px, pz, ax, az, bx, bz)
return ((px - bx)*(az - bz) - (ax - bx)*(pz - bz))
end
local function SanitizeBoxes (boxes)
-- chop polies into triangles
for id, box in pairs(boxes) do
local polies = box.boxes
local triangles = {}
for z = 1, #polies do
local polygon = polies[z]
-- find out clockwisdom
polygon[#polygon+1] = polygon[1]
local clockwise = 0
for i = 2, #polygon do
clockwise = clockwise + (polygon[i-1][1] * polygon[i][2]) - (polygon[i-1][2] * polygon[i][1])
end
polygon[#polygon] = nil
local clockwise = (clockwise < 0)
-- the van gogh concave polygon triangulation algorithm: cuts off ears
-- is pretty shitty at O(V^3) but was easy to code and it's only done once anyway
while (#polygon > 2) do
-- get a candidate ear
local triangle
local c0, c1, c2 = 0, 0, 0
local candidate_ok = false
while not candidate_ok do
c0 = c0 + 1
c1, c2 = c0+1, c0+2
if c1 > #polygon then c1 = c1 - #polygon end
if c2 > #polygon then c2 = c2 - #polygon end
triangle = {
polygon[c0][1], polygon[c0][2],
polygon[c1][1], polygon[c1][2],
polygon[c2][1], polygon[c2][2],
}
-- make sure the ear is of proper rotation but then make it counter-clockwise
local dir = cross_product(triangle[5], triangle[6], triangle[1], triangle[2], triangle[3], triangle[4])
if ((dir < 0) == clockwise) then
if dir > 0 then
local temp = triangle[5]
triangle[5] = triangle[3]
triangle[3] = temp
temp = triangle[6]
triangle[6] = triangle[4]
triangle[4] = temp
end
-- check if no point lies inside the triangle
candidate_ok = true
for i = 1, #polygon do
if (i ~= c0 and i ~= c1 and i ~= c2) then
local current_pt = polygon[i]
if (cross_product(current_pt[1], current_pt[2], triangle[1], triangle[2], triangle[3], triangle[4]) < 0)
and (cross_product(current_pt[1], current_pt[2], triangle[3], triangle[4], triangle[5], triangle[6]) < 0)
and (cross_product(current_pt[1], current_pt[2], triangle[5], triangle[6], triangle[1], triangle[2]) < 0)
then
candidate_ok = false
end
end
end
end
end
-- cut off ear
triangles[#triangles+1] = triangle
table.remove(polygon, c1)
end
polies[z] = nil
end
for z = 1, #triangles do
polies[z] = triangles[z]
end
end
end
function ParseBoxes (backupSeed)
local mapsideBoxes = "mapconfig/map_startboxes.lua"
local modsideBoxes = "LuaRules/Configs/StartBoxes/" .. (Game.mapName or "") .. ".lua"
backupSeed = backupSeed or 0
local startBoxConfig
math.randomseed(Spring.GetGameRulesParam("public_random_seed") or backupSeed)
Spring.Echo("read public_random_seed", Spring.GetGameRulesParam("public_random_seed"), backupSeed)
if VFS.FileExists (modsideBoxes) then
startBoxConfig = VFS.Include (modsideBoxes)
SanitizeBoxes (startBoxConfig)
elseif VFS.FileExists (mapsideBoxes) then
startBoxConfig = VFS.Include (mapsideBoxes)
SanitizeBoxes (startBoxConfig)
else
startBoxConfig = { }
local startboxString = Spring.GetModOptions().startboxes
local startboxStringLoadedBoxes = false
if startboxString then
local springieBoxes = loadstring(startboxString)()
for id, box in pairs(springieBoxes) do
startboxStringLoadedBoxes = true -- Autohost always sends a table. Often it is empty.
local midX = (box[1]+box[3]) / 2
local midZ = (box[2]+box[4]) / 2
box[1] = box[1]*Game.mapSizeX
box[2] = box[2]*Game.mapSizeZ
box[3] = box[3]*Game.mapSizeX
box[4] = box[4]*Game.mapSizeZ
local longName = "Center"
local shortName = "Center"
if (midX < 0.33) then
if (midZ < 0.33) then
longName = "North-West"
shortName = "NW"
elseif (midZ > 0.66) then
longName = "South-West"
shortName = "SW"
else
longName = "West"
shortName = "W"
end
elseif (midX > 0.66) then
if (midZ < 0.33) then
longName = "North-East"
shortName = "NE"
elseif (midZ > 0.66) then
longName = "South-East"
shortName = "SE"
else
longName = "East"
shortName = "E"
end
else
if (midZ < 0.33) then
longName = "North"
shortName = "N"
elseif (midZ > 0.66) then
longName = "South"
shortName = "S"
else
longName = "Center"
shortName = "Center"
end
end
startBoxConfig[id] = {
boxes = {
{box[1], box[2], box[1], box[4], box[3], box[4]}, -- must be counterclockwise
{box[1], box[2], box[3], box[4], box[3], box[2]}
},
startpoints = {
{(box[1]+box[3]) / 2, (box[2]+box[4]) / 2}
},
nameLong = longName,
nameShort = shortName
}
end
end
if not startboxStringLoadedBoxes then
if Game.mapSizeZ > Game.mapSizeX then
startBoxConfig[0] = {
boxes = {
{0, 0, 0, Game.mapSizeZ * 0.3, Game.mapSizeX, Game.mapSizeZ * 0.3},
{0, 0, Game.mapSizeX, Game.mapSizeZ * 0.3, Game.mapSizeX, 0}
},
startpoints = {
{Game.mapSizeX / 2, Game.mapSizeZ * 0.15}
},
nameLong = "North",
nameShort = "N"
}
startBoxConfig[1] = {
boxes = {
{0, Game.mapSizeZ * 0.7, 0, Game.mapSizeZ, Game.mapSizeX, Game.mapSizeZ},
{0, Game.mapSizeZ * 0.7, Game.mapSizeX, Game.mapSizeZ, Game.mapSizeX, Game.mapSizeZ * 0.7}
},
startpoints = {
{Game.mapSizeX / 2, Game.mapSizeZ * 0.85}
},
nameLong = "South",
nameShort = "S"
}
else
startBoxConfig[0] = {
boxes = {
{0, 0, Game.mapSizeX * 0.3, Game.mapSizeZ - 1, Game.mapSizeX * 0.3, 0},
{0, 0, 0, Game.mapSizeZ - 1, Game.mapSizeX * 0.3, Game.mapSizeZ - 1}
},
startpoints = {
{Game.mapSizeX * 0.15, Game.mapSizeZ / 2}
},
nameLong = "West",
nameShort = "W"
}
startBoxConfig[1] = {
boxes = {
{Game.mapSizeX * 0.7, 0, Game.mapSizeX, Game.mapSizeZ - 1, Game.mapSizeX, 0},
{Game.mapSizeX * 0.7, 0, Game.mapSizeX * 0.7, Game.mapSizeZ - 1, Game.mapSizeX, Game.mapSizeZ - 1}
},
startpoints = {
{Game.mapSizeX * 0.85, Game.mapSizeZ / 2}
},
nameLong = "East",
nameShort = "E"
}
end
end
end
return startBoxConfig
end
function GetRawBoxes(backupSeed)
local mapsideBoxes = "mapconfig/map_startboxes.lua"
local modsideBoxes = "LuaRules/Configs/StartBoxes/" .. (Game.mapName or "") .. ".lua"
backupSeed = backupSeed or 0
local startBoxConfig
math.randomseed(Spring.GetGameRulesParam("public_random_seed") or backupSeed)
if VFS.FileExists (modsideBoxes) then
startBoxConfig = VFS.Include (modsideBoxes)
elseif VFS.FileExists (mapsideBoxes) then
startBoxConfig = VFS.Include (mapsideBoxes)
else
startBoxConfig = { }
local startboxString = Spring.GetModOptions().startboxes
local startboxStringLoadedBoxes = false
if startboxString then
local springieBoxes = loadstring(startboxString)()
for id, box in pairs(springieBoxes) do
startboxStringLoadedBoxes = true -- Autohost always sends a table. Often it is empty.
box[1] = box[1]*Game.mapSizeX
box[2] = box[2]*Game.mapSizeZ
box[3] = box[3]*Game.mapSizeX
box[4] = box[4]*Game.mapSizeZ
startBoxConfig[id] = {
boxes = {
{
{box[1], box[2]},
{box[1], box[4]},
{box[3], box[4]},
{box[3], box[2]},
},
}
}
end
end
if not startboxStringLoadedBoxes then
if Game.mapSizeZ > Game.mapSizeX then
startBoxConfig[0] = {
boxes = {
{
{0, 0},
{0, Game.mapSizeZ * 0.3},
{Game.mapSizeX, Game.mapSizeZ * 0.3},
{Game.mapSizeX, 0}
},
},
}
startBoxConfig[1] = {
boxes = {
{
{0, Game.mapSizeZ * 0.7},
{0, Game.mapSizeZ},
{Game.mapSizeX, Game.mapSizeZ},
{Game.mapSizeX, Game.mapSizeZ * 0.7}
},
},
}
else
startBoxConfig[0] = {
boxes = {
{
{0, 0},
{0, Game.mapSizeZ - 1},
{Game.mapSizeX * 0.3, Game.mapSizeZ - 1},
{Game.mapSizeX * 0.3, 0},
},
},
}
startBoxConfig[1] = {
boxes = {
{
{Game.mapSizeX * 0.7, 0},
{Game.mapSizeX * 0.7, Game.mapSizeZ - 1},
{Game.mapSizeX, Game.mapSizeZ - 1},
{Game.mapSizeX, 0},
},
},
}
end
end
end
return startBoxConfig
end
function GetTeamCount()
local gaiaAllyTeamID = select(6, Spring.GetTeamInfo(Spring.GetGaiaTeamID()))
local allyTeamList = Spring.GetAllyTeamList()
local actualAllyTeamList = {}
for i = 1, #allyTeamList do
local teamList = Spring.GetTeamList(allyTeamList[i]) or {}
if ((#teamList > 0) and (allyTeamList[i] ~= gaiaAllyTeamID)) then
local isTeamValid = true
for j = 1, #teamList do
local luaAI = Spring.GetTeamLuaAI(teamList[j])
if luaAI and luaAI:find("Chicken") then
isTeamValid = false
end
end
if isTeamValid then
actualAllyTeamList[#actualAllyTeamList+1] = allyTeamList[i]
end
end
end
return #actualAllyTeamList
end
| gpl-2.0 |
Distrotech/libpeas | loaders/lua5.1/resources/peas-lua-strict.lua | 4 | 1512 | --
-- Copyright (C) 2015 - Garrett Regier
--
-- libpeas is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
--
-- libpeas 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 library; if not, write to the Free Software
-- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
--
-- Modified version of: http://metalua.luaforge.net/src/lib/strict.lua.html
__STRICT = true
local mt = getmetatable(_G)
if mt == nil then
mt = {}
setmetatable(_G, mt)
end
function mt:__newindex(name, value)
if __STRICT then
local what = debug.getinfo(2, 'S').what
if what ~= 'C' then
error("Attempted to create global variable '" ..
tostring(name) .. "'", 2)
end
end
rawset(self, name, value)
end
function mt:__index(name)
if not __STRICT or debug.getinfo(2, 'S').what == 'C' then
return rawget(self, name)
end
error("Attempted to access nonexistent " ..
"global variable '" .. tostring(name) .. "'", 2)
end
-- ex:ts=4:et:
| lgpl-2.1 |
DailyShana/ygopro-scripts | c68396121.lua | 3 | 3367 | --CNo.107 超銀河眼の時空龍
function c68396121.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,9,3)
c:EnableReviveLimit()
--negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(68396121,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c68396121.negcost)
e1:SetOperation(c68396121.negop)
c:RegisterEffect(e1)
--atk
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(68396121,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c68396121.atkcon)
e2:SetCost(c68396121.atkcost)
e2:SetTarget(c68396121.atktg)
e2:SetOperation(c68396121.atkop)
c:RegisterEffect(e2)
end
c68396121.xyz_number=107
function c68396121.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c68396121.filter(c)
return c:IsFaceup() and (c:IsLocation(LOCATION_SZONE) or c:IsType(TYPE_EFFECT)) and not c:IsDisabled()
end
function c68396121.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c68396121.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c)
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2)
tc=g:GetNext()
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetValue(c68396121.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c68396121.aclimit(e,re,tp)
return re:GetHandler():IsOnField() and not re:GetHandler():IsImmuneToEffect(e)
end
function c68396121.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP()
and e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,88177324)
end
function c68396121.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,2,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(tp,nil,2,2,e:GetHandler())
Duel.Release(g,REASON_COST)
end
function c68396121.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end
end
function c68396121.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetValue(2)
e1:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
e2:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+RESET_END)
e2:SetCondition(c68396121.dircon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_ATTACK)
e3:SetCondition(c68396121.dircon2)
c:RegisterEffect(e3)
end
end
function c68396121.dircon(e)
return e:GetHandler():GetAttackAnnouncedCount()>0
end
function c68396121.dircon2(e)
return e:GetHandler():IsDirectAttacked()
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/skeleton/kaadu.lua | 3 | 2172 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_skeleton_kaadu = object_mobile_skeleton_shared_kaadu:new {
}
ObjectTemplates:addTemplate(object_mobile_skeleton_kaadu, "object/mobile/skeleton/kaadu.iff")
| agpl-3.0 |
sjznxd/lc-20130116 | applications/luci-minidlna/luasrc/controller/minidlna.lua | 73 | 1448 | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
module("luci.controller.minidlna", package.seeall)
function index()
if not nixio.fs.access("/etc/config/minidlna") then
return
end
local page
page = entry({"admin", "services", "minidlna"}, cbi("minidlna"), _("miniDLNA"))
page.dependent = true
entry({"admin", "services", "minidlna_status"}, call("minidlna_status"))
end
function minidlna_status()
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
local port = tonumber(uci:get_first("minidlna", "minidlna", "port"))
local status = {
running = (sys.call("pidof minidlna >/dev/null") == 0),
audio = 0,
video = 0,
image = 0
}
if status.running then
local fd = sys.httpget("http://127.0.0.1:%d/" % (port or 8200), true)
if fd then
local html = fd:read("*a")
if html then
status.audio = (tonumber(html:match("Audio files: (%d+)")) or 0)
status.video = (tonumber(html:match("Video files: (%d+)")) or 0)
status.image = (tonumber(html:match("Image files: (%d+)")) or 0)
end
fd:close()
end
end
luci.http.prepare_content("application/json")
luci.http.write_json(status)
end
| apache-2.0 |
DailyShana/ygopro-scripts | c77700347.lua | 3 | 1478 | --ネクロ・ディフェンダー
function c77700347.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77700347,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_GRAVE)
e1:SetCost(c77700347.cost)
e1:SetTarget(c77700347.target)
e1:SetOperation(c77700347.operation)
c:RegisterEffect(e1)
end
function c77700347.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end
function c77700347.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) end
if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,nil,tp,LOCATION_MZONE,0,1,1,nil)
end
function c77700347.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE)
e1:SetValue(1)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END+RESET_OPPO_TURN)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e2:SetValue(1)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END+RESET_OPPO_TURN)
tc:RegisterEffect(e2)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/bothan/hair_bothan_male_s04.lua | 3 | 2252 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_hair_bothan_hair_bothan_male_s04 = object_tangible_hair_bothan_shared_hair_bothan_male_s04:new {
}
ObjectTemplates:addTemplate(object_tangible_hair_bothan_hair_bothan_male_s04, "object/tangible/hair/bothan/hair_bothan_male_s04.iff")
| agpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.