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 |
|---|---|---|---|---|---|
Whitechaser/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Blue_Rafflesia.lua | 7 | 5920 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Blue Rafflesia
-- Used in quest Even More Gullible Travels
-- !pos -468.876 -1 220.247 123 <many>
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Yuhtunga_Jungle/TextIDs");
require("scripts/zones/Yuhtunga_Jungle/MobIDs");
require("scripts/globals/quests");
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local evenmoreTravelsStatus = player:getQuestStatus(OUTLANDS, EVEN_MORE_GULLIBLES_TRAVELS)
local questprogress = player:getVar("EVEN_MORE_GULLIBLES_PROGRESS");
local scentDay = player:getVar("RafflesiaScentDay");
local currentDay = VanadielDayOfTheYear();
local scentReady = ((scentDay < currentDay) or (scentDay > currentDay and player:getVar("RafflesiaScentYear") < VanadielYear()));
local offset = npc:getID() - BLUE_RAFFLESIA_OFFSET;
if (offset == 0) then
if (evenmoreTravelsStatus == QUEST_ACCEPTED and questprogress == 1 and player:getVar("FirstBlueRafflesiaCS") == 0) then -- Player is on quest, first time.
player:startEvent(21);
elseif (evenmoreTravelsStatus == QUEST_COMPLETED and scentReady == true and player:getVar("BathedInScent") == 0 and player:getVar("FirstBlueRafflesiaCS") == 0) then -- Repeating
player:startEvent(21);
else
player:messageSpecial(FLOWER_BLOOMING);
end
elseif (offset == 1) then
if (evenmoreTravelsStatus == QUEST_ACCEPTED and questprogress == 1 and player:getVar("SecondBlueRafflesiaCS") == 0) then
player:startEvent(22);
elseif (evenmoreTravelsStatus == QUEST_COMPLETED and scentReady == true and player:getVar("BathedInScent") == 0 and player:getVar("SecondBlueRafflesiaCS") == 0) then
player:startEvent(22);
else
player:messageSpecial(FLOWER_BLOOMING);
end
elseif (offset == 2) then
if (evenmoreTravelsStatus == QUEST_ACCEPTED and questprogress == 1 and player:getVar("ThirdBlueRafflesiaCS") == 0) then
player:startEvent(23);
elseif (evenmoreTravelsStatus == QUEST_COMPLETED and scentReady == true and player:getVar("BathedInScent") == 0 and player:getVar("ThirdBlueRafflesiaCS") == 0) then
player:startEvent(23);
else
player:messageSpecial(FLOWER_BLOOMING);
end
end
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
local evenmoreTravelsStatus = player:getQuestStatus(OUTLANDS, EVEN_MORE_GULLIBLES_TRAVELS)
-- Set BathedInScent to 1 if they touched all 3 Rafflesia for EVEN_MORE_GULLIBLES_TRAVELS which opens the quest The Opo-Opo and I
if (csid == 21 and option == 1) then
if (player:getVar("SecondBlueRafflesiaCS") == 1 and player:getVar("ThirdBlueRafflesiaCS") == 1) then -- This is 3rd Rafflessia clicked, progressing.
player:setVar("SecondBlueRafflesiaCS", 0);
player:setVar("ThirdBlueRafflesiaCS", 0);
player:setVar("BathedInScent", 1);
player:setVar("RafflesiaScentDay",VanadielDayOfTheYear());
player:setVar("RafflesiaScentYear",VanadielYear());
player:addItem(1144); -- Rafflesia Nectar
player:messageSpecial(ITEM_OBTAINED,1144);
player:messageSpecial(FEEL_DIZZY); -- You feel slightly dizzy. You must have breathed in too much of the pollen.
if (evenmoreTravelsStatus == QUEST_ACCEPTED) then
player:setVar("EVEN_MORE_GULLIBLES_PROGRESS", 2);
end
else
player:setVar("FirstBlueRafflesiaCS", 1);
player:addItem(1144); -- Rafflesia Nectar
player:messageSpecial(ITEM_OBTAINED,1144);
end
elseif (csid == 22 and option == 1) then
if (player:getVar("FirstBlueRafflesiaCS") == 1 and player:getVar("ThirdBlueRafflesiaCS") == 1) then
player:setVar("FirstBlueRafflesiaCS", 0);
player:setVar("ThirdBlueRafflesiaCS", 0);
player:setVar("BathedInScent", 1);
player:setVar("RafflesiaScentDay",VanadielDayOfTheYear());
player:setVar("RafflesiaScentYear",VanadielYear());
player:addItem(1144); -- Rafflesia Nectar
player:messageSpecial(ITEM_OBTAINED,1144);
player:messageSpecial(FEEL_DIZZY); -- You feel slightly dizzy. You must have breathed in too much of the pollen.
if (evenmoreTravelsStatus == QUEST_ACCEPTED) then
player:setVar("EVEN_MORE_GULLIBLES_PROGRESS", 2);
end
else
player:setVar("SecondBlueRafflesiaCS", 1);
player:addItem(1144); -- Rafflesia Nectar
player:messageSpecial(ITEM_OBTAINED,1144);
end
elseif (csid == 23 and option == 1) then
if (player:getVar("FirstBlueRafflesiaCS") == 1 and player:getVar("SecondBlueRafflesiaCS") == 1) then
player:setVar("FirstBlueRafflesiaCS", 0);
player:setVar("SecondBlueRafflesiaCS", 0);
player:setVar("BathedInScent", 1);
player:setVar("RafflesiaScentDay",VanadielDayOfTheYear());
player:setVar("RafflesiaScentYear",VanadielYear());
player:addItem(1144); -- Rafflesia Nectar
player:messageSpecial(ITEM_OBTAINED,1144);
player:messageSpecial(FEEL_DIZZY); -- You feel slightly dizzy. You must have breathed in too much of the pollen.
if (evenmoreTravelsStatus == QUEST_ACCEPTED) then
player:setVar("EVEN_MORE_GULLIBLES_PROGRESS", 2);
end
else
player:setVar("ThirdBlueRafflesiaCS", 1);
player:addItem(1144); -- Rafflesia Nectar
player:messageSpecial(ITEM_OBTAINED,1144);
end
end
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_chadra_fan_f_03.lua | 3 | 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_dressed_chadra_fan_f_03 = object_mobile_shared_dressed_chadra_fan_f_03:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_chadra_fan_f_03, "object/mobile/dressed_chadra_fan_f_03.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/food/drink_antakarian_fire_dancer.lua | 3 | 2284 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_food_drink_antakarian_fire_dancer = object_draft_schematic_food_shared_drink_antakarian_fire_dancer:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_food_drink_antakarian_fire_dancer, "object/draft_schematic/food/drink_antakarian_fire_dancer.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/mission/quest_item/jyr_koble_q4_needed.lua | 3 | 2276 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_mission_quest_item_jyr_koble_q4_needed = object_tangible_mission_quest_item_shared_jyr_koble_q4_needed:new {
}
ObjectTemplates:addTemplate(object_tangible_mission_quest_item_jyr_koble_q4_needed, "object/tangible/mission/quest_item/jyr_koble_q4_needed.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/crafted/shields/light_deflector_shields.lua | 2 | 3388 | --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_light_deflector_shields = object_tangible_ship_crafted_shields_shared_light_deflector_shields:new {
numberExperimentalProperties = {1, 1, 2, 1, 2, 2, 1, 2, 3, 3, 3},
experimentalProperties = {"XX", "XX", "OQ", "UT", "XX", "OQ", "UT", "OQ", "UT", "XX", "CD", "OQ", "CD", "OQ", "SR", "CD", "OQ", "SR", "CD", "OQ", "SR"},
experimentalWeights = {1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_hp", "null", "exp_mass", "exp_armorhpmax", "null", "exp_energy_maintenance", "exp_shield_max_front_hp", "exp_shield_max_back_hp", "exp_shield_recharge"},
experimentalSubGroupTitles = {"null", "null", "ship_component_hitpoints", "efficiency", "ship_component_mass", "ship_component_armor", "energy_efficiency", "ship_component_energy_required", "ship_component_shield_hitpoints_front", "ship_component_shield_hitpoints_back", "ship_component_shield_recharge_rate"},
experimentalMin = {0, 0, 128, 1, 1150, 64, 1, 2875, 213, 213, 1.700},
experimentalMax = {0, 0, 173, 1, 850, 86, 1, 2125, 288, 288, 2.300},
experimentalPrecision = {0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 2},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_tangible_ship_crafted_shields_light_deflector_shields, "object/tangible/ship/crafted/shields/light_deflector_shields.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/corellia/selonian_scout.lua | 2 | 2169 | selonian_scout = Creature:new {
objectName = "@mob/creature_names:selonian_scout",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "selonian",
faction = "",
level = 5,
chanceHit = 0.25,
damageMin = 45,
damageMax = 50,
baseXp = 113,
baseHAM = 135,
baseHAMmax = 165,
armor = 0,
resists = {5,5,5,-1,-1,-1,-1,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {
"object/mobile/dressed_selonian_f_01.iff",
"object/mobile/dressed_selonian_f_02.iff",
"object/mobile/dressed_selonian_f_03.iff",
"object/mobile/dressed_selonian_f_04.iff",
"object/mobile/dressed_selonian_f_05.iff",
"object/mobile/dressed_selonian_f_06.iff",
"object/mobile/dressed_selonian_f_07.iff",
"object/mobile/dressed_selonian_f_08.iff",
"object/mobile/dressed_selonian_f_09.iff",
"object/mobile/dressed_selonian_f_10.iff",
"object/mobile/dressed_selonian_f_11.iff",
"object/mobile/dressed_selonian_f_12.iff",
"object/mobile/dressed_selonian_m_01.iff",
"object/mobile/dressed_selonian_m_02.iff",
"object/mobile/dressed_selonian_m_03.iff",
"object/mobile/dressed_selonian_m_04.iff",
"object/mobile/dressed_selonian_m_05.iff",
"object/mobile/dressed_selonian_m_06.iff",
"object/mobile/dressed_selonian_m_07.iff",
"object/mobile/dressed_selonian_m_08.iff",
"object/mobile/dressed_selonian_m_09.iff",
"object/mobile/dressed_selonian_m_10.iff",
"object/mobile/dressed_selonian_m_11.iff",
"object/mobile/dressed_selonian_m_12.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 3000000},
{group = "wearables_common", chance = 2000000},
{group = "rifles", chance = 1000000},
{group = "loot_kit_parts", chance = 2500000},
{group = "tailor_components", chance = 1500000}
}
}
},
weapons = {"rebel_weapons_medium"},
conversationTemplate = "",
reactionStf = "@npc_reaction/fancy",
attacks = merge(marksmannovice,brawlernovice)
}
CreatureTemplates:addCreatureTemplate(selonian_scout, "selonian_scout")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/voritor_lizard.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_voritor_lizard = object_mobile_shared_voritor_lizard:new {
}
ObjectTemplates:addTemplate(object_mobile_voritor_lizard, "object/mobile/voritor_lizard.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/item/item_tool_sandstat.lua | 3 | 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_static_item_item_tool_sandstat = object_static_item_shared_item_tool_sandstat:new {
}
ObjectTemplates:addTemplate(object_static_item_item_tool_sandstat, "object/static/item/item_tool_sandstat.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/intangible/pet/dz70_fugitive_tracker_droid.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_intangible_pet_dz70_fugitive_tracker_droid = object_intangible_pet_shared_dz70_fugitive_tracker_droid:new {
}
ObjectTemplates:addTemplate(object_intangible_pet_dz70_fugitive_tracker_droid, "object/intangible/pet/dz70_fugitive_tracker_droid.iff")
| agpl-3.0 |
grondo/flux-core | t/scripts/event-trace-bypass.lua | 7 | 1214 | #!/usr/bin/env lua
-------------------------------------------------------------
-- Copyright 2014 Lawrence Livermore National Security, LLC
-- (c.f. AUTHORS, NOTICE.LLNS, COPYING)
--
-- This file is part of the Flux resource manager framework.
-- For details, see https://github.com/flux-framework.
--
-- SPDX-License-Identifier: LGPL-3.0
-------------------------------------------------------------
local flux = require 'flux'
local s = arg[1]
local exitevent = arg[2]
function eprintf (...) io.stderr:write (string.format (...)) end
if not s or not exitevent then
eprintf ([[
Usage: %s TOPIC EXIT-EVENT COMMAND
Subscribe to events matching TOPIC and run COMMAND once subscribe
is guaranteed to be active on the flux broker. If EXIT-EVENT is
not an empty string, then exit the process once an event exactly
matching EXIT-EVENT is received.
This variant calls f:recv_event() thus bypasses the dispatcher
default security policy.
]], arg[0])
os.exit (1)
end
local cmd = " "
for i = 3, #arg do
cmd = cmd .. " " .. arg[i]
end
local f,err = flux.new()
f:subscribe (s)
os.execute (cmd .. " &")
repeat
local msg, tag = f:recv_event()
print (tag)
until exitevent ~= "" and tag == exitevent
| lgpl-3.0 |
KingRaptor/Zero-K | gamedata/featuredefs_post.lua | 1 | 6011 | -- $Id: featuredefs_post.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: featuredefs_post.lua
-- brief: featureDef post processing
-- author: Dave Rodgers
-- author: lurker & jK
--
-- Copyright (C) 2008,2009.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Spring.Echo("Loading FeatureDefs_posts")
local function isbool(x) return (type(x) == 'boolean') end
local function istable(x) return (type(x) == 'table') end
local function isnumber(x) return (type(x) == 'number') end
local function isstring(x) return (type(x) == 'string') end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local baseModuleWreck = {
description = [[Module Wreck]],
blocking = false,
damage = 100,
energy = 0,
footprintX = 2,
footprintZ = 2,
metal = 40,
object = [[wreck1x1.s3o]],
reclaimable = true,
reclaimTime = 40,
customparams = {
fromunit = 1,
},
}
local baseModuleHeap = {
description = [[Module Debris]],
blocking = false,
damage = 50,
energy = 0,
footprintX = 1,
footprintZ = 1,
metal = 20,
object = [[debris1x1b.s3o]],
reclaimable = true,
reclaimTime = 20,
customparams = {
fromunit = 1,
},
}
local function GenerateModuleWrecks()
local moduleDefs = VFS.Include("LuaRules/Configs/dynamic_comm_defs.lua")
for i = 1, #moduleDefs do
local moduleDef = moduleDefs[i]
local wreck = CopyTable(baseModuleWreck, true)
local heap = CopyTable(baseModuleHeap, true)
wreck.description = moduleDef.humanName .. " Shards"
wreck.metal = moduleDef.cost * 0.4
wreck.reclaimtime = moduleDef.cost * 0.4
wreck.damage = moduleDef.cost * 2
wreck.name = "module_wreck_" .. i
wreck.featuredead = "module_heap_" .. i
FeatureDefs["module_wreck_" .. i] = wreck
heap.description = moduleDef.humanName .. " Fragments"
heap.metal = moduleDef.cost * 0.2
heap.reclaimtime = moduleDef.cost * 0.2
heap.damage = moduleDef.cost * 2
heap.name = "module_heap_" .. i
FeatureDefs["module_heap_" .. i] = heap
end
end
GenerateModuleWrecks()
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local mapEnergyMult = .1 --Used to normalize map features to a mod-specific scale
local mapMetalMult = 1
local mapReclaimMult = 1
-- scale energy/reclaimtime of map's features
for name, fd in pairs(FeatureDefs) do
if (type(fd.customparams)~="table") or not(fd.customparams.mod) then
if tonumber(fd.energy) then
fd.energy = fd.energy * mapEnergyMult
end
if tonumber(fd.metal) then
fd.metal = fd.metal * mapMetalMult
end
fd.reclaimtime = math.max(fd.energy or 0, fd.metal or 0)
end
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- Per-unitDef featureDefs
--
local DEAD_MULT = 0.4
local HEAP_MULT = 0.2
local function ProcessUnitDef(udName, ud)
local fds = ud.featuredefs
if (not istable(fds)) then
return
end
-- add this unitDef's featureDefs
for fdName, fd in pairs(fds) do
if (isstring(fdName) and istable(fd)) then
local fullName = udName .. '_' .. fdName
FeatureDefs[fullName] = fd
if fd.featuredead then -- it's a DEAD feature
if not fd.metal then fd.metal = ud.buildcostmetal * DEAD_MULT end
if not fd.description then fd.description = "Wreckage - "..ud.name end
else --it's a HEAP feature
if not fd.metal then fd.metal = ud.buildcostmetal * HEAP_MULT end
if not fd.description then fd.description = "Debris - "..ud.name end
end
fd.customparams = fd.customparams or {}
fd.customparams.fromunit = "1"
fd.damage = fd.customparams.health_override or ud.maxdamage
fd.energy = 0
fd.reclaimable = true
fd.reclaimtime = fd.metal
fd.filename = ud.filename
end
end
-- FeatureDead name changes
for fdName, fd in pairs(fds) do
if (isstring(fdName) and istable(fd)) then
if (isstring(fd.featuredead)) then
local fullName = udName .. '_' .. fd.featuredead:lower()
if (FeatureDefs[fullName]) then
fd.featuredead = fullName
end
end
end
end
-- convert the unit corpse name
if (isstring(ud.corpse)) then
local fullName = udName .. '_' .. ud.corpse:lower()
local fd = FeatureDefs[fullName]
if (fd) then
fd.resurrectable = 1
ud.corpse = fullName
--if fd.metal ~= ud.buildcostmetal*0.4 or fd.damage ~= ud.maxdamage then
-- Spring.Echo(ud.name)
--end
end
end
end
--------------------------------------------------------------------------------
-- Process the unitDefs
local UnitDefs = DEFS.unitDefs
for udName, ud in pairs(UnitDefs) do
if (isstring(udName) and istable(ud)) then
ProcessUnitDef(udName, ud)
end
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- resurrectable = -1 seems to be broken, set it to 0 for all values which are not 1
for name, def in pairs(FeatureDefs) do
if def.resurrectable ~= 1 then
def.resurrectable = 0
end
if not def.metal or def.metal == 0 then
def.metal = 0.001 -- engine deprioritises things with 0m in force-reclaim mode
def.autoreclaimable = false
end
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
| gpl-2.0 |
KingRaptor/Zero-K | LuaRules/Configs/StartBoxes/Vittra_v1.lua | 11 | 3473 | return {
[0] = {
boxes = {
{
{Game.mapSizeX / 2, Game.mapSizeZ-1},
{1406, Game.mapSizeZ-1},
{1406.3614501953, 4701.3212890625},
{1412.8128662109, 4645.6245117188},
{1405.4351806641, 4609.2646484375},
{1391.9449462891, 4525.4614257813},
{1411.8203125, 4452.5625},
{1419.9001464844, 4405.5102539063},
{1448.7467041016, 4376.701171875},
{1510.7788085938, 4389.802734375},
{1595.4565429688, 4428.8471679688},
{1682.2006835938, 4453.197265625},
{1771.0562744141, 4441.78515625},
{1873.6209716797, 4418.4340820313},
{1979.9389648438, 4373.3452148438},
{2091.6821289063, 4338.6518554688},
{2202.3303222656, 4294.3618164063},
{2299.1252441406, 4285.2670898438},
{2386.9104003906, 4304.9482421875},
{2498.4643554688, 4345.0263671875},
{2632.9865722656, 4402.8569335938},
{2681.6931152344, 4416.0961914063},
{2745.1569824219, 4396.0649414063},
{2870.6025390625, 4387.0151367188},
{2987.7729492188, 4399.36328125},
{3105.7624511719, 4435.2905273438},
{3226.1096191406, 4453.357421875},
{3326.3681640625, 4470.71875},
{3416.0341796875, 4470.4711914063},
{3500.4799804688, 4419.8774414063},
{3539.8818359375, 4394.9326171875},
{3615.6489257813, 4386.2016601563},
{3698.0888671875, 4380.8364257813},
{3746.4587402344, 4392.4018554688},
{3781.2138671875, 4434.232421875},
{3795.3173828125, 4482.6435546875},
{3768.8361816406, 4547.4985351563},
{3707.9912109375, 4615.6577148438},
{3650.8479003906, 4662.046875},
{3651.9343261719, Game.mapSizeZ-1},
}
},
startpoints = {
{1850, 4724},
{3273, 4824},
},
nameLong = "South",
nameShort = "S",
},
[1] = {
boxes = {
{
{Game.mapSizeX / 2, 0},
{1361, 0},
{1361, 521.40417480469},
{1338.890625, 589.63787841797},
{1328.2271728516, 653.90814208984},
{1321.4841308594, 731.25305175781},
{1330.0441894531, 788.57543945313},
{1351.0968017578, 841.65582275391},
{1387.2557373047, 868.15148925781},
{1465.4329833984, 865.11596679688},
{1570.3828125, 852.09143066406},
{1665.9780273438, 849.22259521484},
{1734.7105712891, 849.48852539063},
{1796.7536621094, 870.77819824219},
{1851.2183837891, 878.11358642578},
{1921.8283691406, 846.72967529297},
{2020.2043457031, 785.21954345703},
{2097.7626953125, 760.4091796875},
{2196.236328125, 761.4736328125},
{2301.759765625, 795.54455566406},
{2396.720703125, 817.22314453125},
{2460.5319824219, 816.76953125},
{2502.1809082031, 766.47827148438},
{2537.8386230469, 708.24163818359},
{2634.1752929688, 724.91369628906},
{2752.1420898438, 746.10083007813},
{2836.9321289063, 788.84411621094},
{2885.2172851563, 791.81512451172},
{2929.4340820313, 766.83032226563},
{3032.9387207031, 766.97283935547},
{3142.7583007813, 798.76794433594},
{3276.8288574219, 837.63830566406},
{3390.2084960938, 863.68701171875},
{3512.6423339844, 840.79663085938},
{3646.4216308594, 834.85437011719},
{3748.2900390625, 839.43682861328},
{3792.9812011719, 819.16827392578},
{3821.7685546875, 784.58715820313},
{3795.8581542969, 705.40814208984},
{3755.0895996094, 603.46240234375},
{3754.7717285156, 510.38705444336},
{3768, 426.1318359375},
{3768, 0},
}
},
startpoints = {
{3197, 460},
{1752, 561},
},
nameLong = "North",
nameShort = "N",
},
},
{2} | gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/droid/repair/diagnostic_circuit.lua | 3 | 2872 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_droid_repair_diagnostic_circuit = object_tangible_component_droid_repair_shared_diagnostic_circuit:new {
numberExperimentalProperties = {1, 1, 2, 3, 3, 1},
experimentalProperties = {"XX", "XX", "OQ", "UT", "CD", "MA", "OQ", "CD", "MA", "OQ", "XX"},
experimentalWeights = {1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_charges", "exp_effectiveness", "exp_effectiveness", "null"},
experimentalSubGroupTitles = {"null", "null", "charges", "power", "energy", "hitpoints"},
experimentalMin = {0, 0, 1, 1, 10, 1000},
experimentalMax = {0, 0, 5, 5, 50, 1000},
experimentalPrecision = {0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 4},
}
ObjectTemplates:addTemplate(object_tangible_component_droid_repair_diagnostic_circuit, "object/tangible/component/droid/repair/diagnostic_circuit.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/chemistry/medpack_enhance_quickness_b.lua | 2 | 3648 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_chemistry_medpack_enhance_quickness_b = object_draft_schematic_chemistry_shared_medpack_enhance_quickness_b:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Enhance Quickness Medpack - B",
craftingToolTab = 64, -- (See DraftSchemticImplementation.h)
complexity = 27,
size = 1,
xpType = "crafting_medicine_general",
xp = 72,
assemblySkill = "medicine_assembly",
experimentingSkill = "medicine_experimentation",
customizationSkill = "medicine_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n"},
ingredientTitleNames = {"organic_element", "inorganic_element", "delivery_medium", "drug_duration_compound", "drug_strength_compound"},
ingredientSlotType = {0, 0, 1, 1, 1},
resourceTypes = {"meat_avian", "gas", "object/tangible/component/chemistry/shared_solid_delivery_shell.iff", "object/tangible/component/chemistry/shared_release_mechanism_duration.iff", "object/tangible/component/chemistry/shared_biologic_effect_controller.iff"},
resourceQuantities = {18, 18, 1, 1, 1},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/medicine/crafted/medpack_enhance_quickness_b.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_chemistry_medpack_enhance_quickness_b, "object/draft_schematic/chemistry/medpack_enhance_quickness_b.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/kaja_orzee.lua | 3 | 2156 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_kaja_orzee = object_mobile_shared_kaja_orzee:new {
}
ObjectTemplates:addTemplate(object_mobile_kaja_orzee, "object/mobile/kaja_orzee.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Southern_San_dOria/npcs/Melledanne.lua | 5 | 1204 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Melledanne
-- Type: Melody Minstrel NPC
-- @zone 230
-- !pos -33.194 0.000 34.662
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
require("scripts/zones/Southern_San_dOria/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
-- "Flyers for Regine" conditional script
local FlyerForRegine = player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE);
if (FlyerForRegine == 1) then
local count = trade:getItemCount();
local MagicFlyer = trade:hasItemQty(532,1);
if (MagicFlyer == true and count == 1) then
player:messageSpecial(FLYER_REFUSED);
end
end
end;
function onTrigger(player,npc)
player:startEvent(943);
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
DailyShana/ygopro-scripts | c98229575.lua | 5 | 1966 | --U.A.フィールドゼネラル
function c98229575.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,98229575)
e1:SetCondition(c98229575.spcon)
e1:SetOperation(c98229575.spop)
c:RegisterEffect(e1)
--atk
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c98229575.atkcon)
e2:SetOperation(c98229575.atkop)
c:RegisterEffect(e2)
end
function c98229575.spfilter(c)
return c:IsFaceup() and c:IsSetCard(0xb2) and not c:IsCode(98229575) and c:IsAbleToHandAsCost()
end
function c98229575.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c98229575.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function c98229575.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,c98229575.spfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_COST)
end
function c98229575.atkcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttacker()
return at:IsSetCard(0xb2) and at:IsControler(tp) and at~=e:GetHandler() and e:GetHandler():IsAttackAbove(800)
end
function c98229575.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local at=Duel.GetAttacker()
if c:IsFaceup() and c:IsRelateToEffect(e) and c:IsAttackAbove(800) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(-800)
e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1)
if at:IsFaceup() and at:IsRelateToBattle() then
local e2=e1:Clone()
e2:SetValue(800)
at:RegisterEffect(e2)
end
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/bolma/lair_bolma.lua | 2 | 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_lair_bolma_lair_bolma = object_tangible_lair_bolma_shared_lair_bolma:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_bolma_lair_bolma, "object/tangible/lair/bolma/lair_bolma.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/particle_test_9.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_particle_particle_test_9 = object_static_particle_shared_particle_test_9:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_test_9, "object/static/particle/particle_test_9.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/base/poi_all_lair_bones_fog_gray.lua | 2 | 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_lair_base_poi_all_lair_bones_fog_gray = object_tangible_lair_base_shared_poi_all_lair_bones_fog_gray:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_base_poi_all_lair_bones_fog_gray, "object/tangible/lair/base/poi_all_lair_bones_fog_gray.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | cmake.in/ldoc.in/Plane.lua | 4 | 5442 |
----
-- @file Plane
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:calculateSerializeBufferSize()
end
---- Brief description.
-- <#Description#>
-- @param btSerializer <#btSerializer description#>
-- @return <#return value description#>
function Plane:serialize(btSerializer)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:getClassName()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:getType()
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param vertices <#vertices description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getVertices(geometry, vertices, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfVertices(geometry, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param colorVertices <#colorVertices description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getVertexColors(geometry, colorVertices, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfVertexColors(geometry, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param textureCoordinates <#textureCoordinates description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getTextureCoordinates(geometry, textureCoordinates, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfTextureCoordinates(geometry, node)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:setOpacity(node, opacity)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:setHidden(node, opacity)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:isHidden(node, opacity)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transfrom <#transfrom description#>
-- @return <#return value description#>
function Plane:transformVertices(node, transfrom)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transform <#transform description#>
-- @return <#return value description#>
function Plane:transformVertexColors(node, transform)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transform <#transform description#>
-- @return <#return value description#>
function Plane:transformTextureCoordinates(node, transform)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:loadGPU()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:unLoadGPU()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:isLoadedGPU()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:numberOfVertices()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:numberOfIndices()
end
---- Brief description.
-- <#Description#>
-- @param size <#size description#>
-- @return <#return value description#>
function NJLI.Plane.createArray(size)
end
---- Brief description.
-- <#Description#>
-- @param array <#array description#>
-- @return <#return value description#>
function NJLI.Plane.destroyArray(array)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function NJLI.Plane.create()
end
---- Brief description.
-- <#Description#>
-- @param builder <#builder description#>
-- @return <#return value description#>
function NJLI.Plane.create(builder)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.clone(object)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.copy(object)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.destroy(object)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @param L <#L description#>
-- @param stack_index <#stack_index description#>
-- @return <#return value description#>
function NJLI.Plane.load(object, L, stack_index)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function NJLI.Plane.type()
end
| mit |
njligames/NJLIGameEngine | src/njli/platform/cmake.in/ldoc.in/Plane.lua | 4 | 5442 |
----
-- @file Plane
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:calculateSerializeBufferSize()
end
---- Brief description.
-- <#Description#>
-- @param btSerializer <#btSerializer description#>
-- @return <#return value description#>
function Plane:serialize(btSerializer)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:getClassName()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:getType()
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param vertices <#vertices description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getVertices(geometry, vertices, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfVertices(geometry, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param colorVertices <#colorVertices description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getVertexColors(geometry, colorVertices, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfVertexColors(geometry, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param textureCoordinates <#textureCoordinates description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getTextureCoordinates(geometry, textureCoordinates, node)
end
---- Brief description.
-- <#Description#>
-- @param geometry <#geometry description#>
-- @param node <#node description#>
-- @return <#return value description#>
function Plane:getNumberOfTextureCoordinates(geometry, node)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:setOpacity(node, opacity)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:setHidden(node, opacity)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param opacity <#opacity description#>
-- @return <#return value description#>
function Plane:isHidden(node, opacity)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transfrom <#transfrom description#>
-- @return <#return value description#>
function Plane:transformVertices(node, transfrom)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transform <#transform description#>
-- @return <#return value description#>
function Plane:transformVertexColors(node, transform)
end
---- Brief description.
-- <#Description#>
-- @param node <#node description#>
-- @param transform <#transform description#>
-- @return <#return value description#>
function Plane:transformTextureCoordinates(node, transform)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:loadGPU()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:unLoadGPU()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:isLoadedGPU()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:numberOfVertices()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function Plane:numberOfIndices()
end
---- Brief description.
-- <#Description#>
-- @param size <#size description#>
-- @return <#return value description#>
function NJLI.Plane.createArray(size)
end
---- Brief description.
-- <#Description#>
-- @param array <#array description#>
-- @return <#return value description#>
function NJLI.Plane.destroyArray(array)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function NJLI.Plane.create()
end
---- Brief description.
-- <#Description#>
-- @param builder <#builder description#>
-- @return <#return value description#>
function NJLI.Plane.create(builder)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.clone(object)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.copy(object)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @return <#return value description#>
function NJLI.Plane.destroy(object)
end
---- Brief description.
-- <#Description#>
-- @param object <#object description#>
-- @param L <#L description#>
-- @param stack_index <#stack_index description#>
-- @return <#return value description#>
function NJLI.Plane.load(object, L, stack_index)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function NJLI.Plane.type()
end
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/lok/nym_pirate_strong.lua | 1 | 1454 | nym_pirate_strong = Creature:new {
objectName = "@mob/creature_names:nym_pirate_strong",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "nym",
faction = "nym",
level = 26,
chanceHit = 0.36,
damageMin = 250,
damageMax = 260,
baseXp = 2730,
baseHAM = 7700,
baseHAMmax = 9400,
armor = 0,
resists = {25,10,25,25,25,-1,-1,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_nym_pirate_strong_hum_f.iff",
"object/mobile/dressed_nym_pirate_strong_rod_m.iff",
"object/mobile/dressed_nym_pirate_strong_nikto_m.iff",
"object/mobile/dressed_nym_pirate_strong_hum_m.iff",
"object/mobile/dressed_nym_pirate_strong_rod_f.iff",
"object/mobile/dressed_nym_pirate_strong_wee_m.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 6500000},
{group = "nyms_common", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "tailor_components", chance = 500000}
}
}
},
weapons = {"pirate_weapons_heavy"},
conversationTemplate = "",
reactionStf = "@npc_reaction/slang",
attacks = merge(bountyhuntermaster,marksmanmaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(nym_pirate_strong, "nym_pirate_strong")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/commands/spatialChatInternal.lua | 4 | 2150 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
--true = 1, false = 0
SpatialChatInternalCommand = {
name = "spatialchatinternal",
}
AddCommand(SpatialChatInternalCommand)
| agpl-3.0 |
KingRaptor/Zero-K | effects/gundam_prettypop.lua | 26 | 1976 | -- prettypop
return {
["prettypop"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.0,
circlegrowth = 8,
flashalpha = 0.9,
flashsize = 20,
ground = true,
ttl = 17,
water = true,
color = {
[1] = 1,
[2] = 0,
[3] = 0.5,
},
},
poof01 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.2,
alwaysvisible = true,
colormap = [[1.0 1.0 1.0 0.04 1.0 0.0 0.5 0.01 0.1 0.1 0.1 0.01]],
directional = false,
emitrot = 45,
emitrotspread = 32,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.005, 0]],
numparticles = 16,
particlelife = 5,
particlelifespread = 16,
particlesize = 20,
particlesizespread = 0,
particlespeed = 16,
particlespeedspread = 1,
pos = [[0, 2, 0]],
sizegrowth = 0.8,
sizemod = 1.0,
texture = [[randdots]],
useairlos = false,
},
},
pop1 = {
air = true,
class = [[heatcloud]],
count = 1,
ground = true,
water = true,
properties = {
alwaysvisible = true,
heat = 10,
heatfalloff = 0.8,
maxheat = 10,
pos = [[r-2 r2, 5, r-2 r2]],
size = 1,
sizegrowth = 16,
speed = [[0, 0, 0]],
texture = [[bluenovaexplo]],
},
},
},
}
| gpl-2.0 |
njligames/NJLIGameEngine | src/njli/platform/cmake.in/ldoc.in/WorldResourceLoader.lua | 4 | 5350 |
----
-- @file WorldResourceLoader
---- Brief description.
-- @author James Folk, 16-02-11 18:02:19
-- <#Description#>
-- @return
function WorldResourceLoader:WorldResourceLoader()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function WorldResourceLoader:getClassName()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function WorldResourceLoader:getType()
end
---- Brief description.
-- <#Description#>
-- @param filePath <#filePath description#>
-- @param img <#img description#>
-- @return <#return value description#>
function WorldResourceLoader:load(filePath, img)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param emitter <#emitter description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, emitter)
end
---- Brief description.
-- <#Description#>
-- @param vertexFile <#vertexFile description#>
-- @param fragmentFile <#fragmentFile description#>
-- @param shader <#shader description#>
-- @return <#return value description#>
function WorldResourceLoader:load(vertexFile, fragmentFile, shader)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param sound <#sound description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, sound)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param light <#light description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, light)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param geo <#geo description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, geo)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param font <#font description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, font)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param lua <#lua description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, lua)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param xml <#xml description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, xml)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param json <#json description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, json)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param material <#material description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, material)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param skinner <#skinner description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, skinner)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @param camera <#camera description#>
-- @return <#return value description#>
function WorldResourceLoader:load(file, camera)
end
---- Brief description.
-- <#Description#>
-- @param filePath <#filePath description#>
-- @param content <#content description#>
-- @param file_size <#file_size description#>
-- @return <#return value description#>
function WorldResourceLoader:load(filePath, content, file_size)
end
---- Brief description.
-- <#Description#>
-- @param filePath <#filePath description#>
-- @param password <#"" description#>
-- @return <#return value description#>
function WorldResourceLoader:loadZip(filePath, password)
end
---- Brief description.
-- <#Description#>
-- @param file <#file description#>
-- @return <#return value description#>
function WorldResourceLoader:unLoad(file)
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function WorldResourceLoader:unLoadAll()
end
---- Brief description.
-- <#Description#>
-- @param filePath <#filePath description#>
-- @param buff <#buff description#>
-- @param length <#length description#>
-- @return <#return value description#>
function WorldResourceLoader:loadDataFromFile(filePath, buff, length)
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:isLoaded()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:getType()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:remove()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:addFileData()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:createFileData()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:removeFileData()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:getFileData()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:WorldResourceLoader()
end
---- Brief description.
-- @return <#return value description#>
function WorldResourceLoader:operator=()
end
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/item/item_comp_turret_base.lua | 3 | 2220 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_item_item_comp_turret_base = object_static_item_shared_item_comp_turret_base:new {
}
ObjectTemplates:addTemplate(object_static_item_item_comp_turret_base, "object/static/item/item_comp_turret_base.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c27174286.lua | 3 | 2264 | --異次元からの帰還
function c27174286.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c27174286.cost)
e1:SetTarget(c27174286.tg)
e1:SetOperation(c27174286.op)
c:RegisterEffect(e1)
end
function c27174286.filter(c,e,tp)
return c:IsFaceup() and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c27174286.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end
function c27174286.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c27174286.filter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_REMOVED)
end
function c27174286.op(e,tp,eg,ep,ev,re,r,rp)
local ft1=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft1<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c27174286.filter,tp,LOCATION_REMOVED,0,ft1,ft1,nil,e,tp)
if g:GetCount()>0 then
local fid=e:GetHandler():GetFieldID()
local tc=g:GetFirst()
while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
tc:RegisterFlagEffect(27174286,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1,fid)
tc=g:GetNext()
end
Duel.SpecialSummonComplete()
g:KeepAlive()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCountLimit(1)
e1:SetLabel(fid)
e1:SetLabelObject(g)
e1:SetCondition(c27174286.rmcon)
e1:SetOperation(c27174286.rmop)
Duel.RegisterEffect(e1,tp)
end
end
function c27174286.rmfilter(c,fid)
return c:GetFlagEffectLabel(27174286)==fid
end
function c27174286.rmcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
if not g:IsExists(c27174286.rmfilter,1,nil,e:GetLabel()) then
g:DeleteGroup()
e:Reset()
return false
else return true end
end
function c27174286.rmop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
local tg=g:Filter(c27174286.rmfilter,nil,e:GetLabel())
Duel.Remove(tg,POS_FACEUP,REASON_EFFECT)
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c60930169.lua | 3 | 2165 | --ブロークン・ブロッカー
function c60930169.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c60930169.condition)
e1:SetTarget(c60930169.target)
e1:SetOperation(c60930169.activate)
c:RegisterEffect(e1)
if not c60930169.global_check then
c60930169.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLED)
ge1:SetOperation(c60930169.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c60930169.checkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local t=Duel.GetAttackTarget()
if a and a:IsDefencePos() and a:GetDefence()>a:GetAttack() and a:IsStatus(STATUS_BATTLE_DESTROYED) then
a:RegisterFlagEffect(60930169,RESET_PHASE+PHASE_DAMAGE,0,1)
end
if t and t:IsDefencePos() and t:GetDefence()>t:GetAttack() and t:IsStatus(STATUS_BATTLE_DESTROYED) then
t:RegisterFlagEffect(60930169,RESET_PHASE+PHASE_DAMAGE,0,1)
end
end
function c60930169.filter(c,e,tp)
if c:GetFlagEffect(60930169)~=0 and c:GetPreviousControler()==tp then
e:SetLabel(c:GetCode())
return true
else return false end
end
function c60930169.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c60930169.filter,1,nil,e,tp)
end
function c60930169.spfilter(c,e,tp,code)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c60930169.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c60930169.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,e:GetLabel()) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c60930169.activate(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
if ft>2 then ft=2 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c60930169.spfilter,tp,LOCATION_DECK,0,1,ft,nil,e,tp,e:GetLabel())
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/commands/polearmSweep1.lua | 2 | 2578 | --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
PolearmSweep1Command = {
name = "polearmsweep1",
damageMultiplier = 2.0,
speedMultiplier = 1.5,
accuracyBonus = 10,
healthCostMultiplier = 1.5,
actionCostMultiplier = 1.0,
mindCostMultiplier = 1.0,
stateEffects = {
StateEffect(
KNOCKDOWN_EFFECT,
{ "knockdownRecovery", "lastKnockdown" },
{ "knockdown_defense" },
{},
100,
0,
0
)
},
animationCRC = hashCode("attack_low_right_medium_0"),
combatSpam = "backcracker",
weaponType = POLEARMWEAPON,
range = -1
}
AddCommand(PolearmSweep1Command)
| agpl-3.0 |
ld-test/luatwit | src/luatwit/resources.lua | 2 | 33400 | --- Table with the Twitter API resources.
-- This is the data used to construct the `luatwit.api` function calls.
--
-- @module luatwit.resources
-- @author darkstalker <https://github.com/darkstalker>
-- @license MIT/X11
local common = require "luatwit.common"
local util = require "luatwit.util"
local _M = {}
local GET = function(path) return common.resource_builder("GET", path) end
local POST = function(path) return common.resource_builder("POST", path) end
local required = function(t) return { required = true, type = t } end
-- Base URL of the Twitter REST API.
_M._base_url = "https://api.twitter.com/1.1/%s.json"
-- URL of the OAuth authorization page
_M._authorize_url = "https://api.twitter.com/oauth/authorize"
-- Default members for all resources.
local resource_base = {
_type = "resource",
default_args = {
stringify_ids = not common.has_64bit_int or nil,
oauth_callback = "oob",
stringify_friend_ids = true,
},
__call = common.resource_call,
}
resource_base.__index = resource_base
_M._resource_base = resource_base
--( OAuth )--
--- Allows a Consumer application to obtain an OAuth Request Token to request user authorization.
_M.oauth_request_token = POST "request_token"
:args{
oauth_callback = "string",
x_auth_access_type = "string",
}
:base_url "https://api.twitter.com/oauth/%s"
:type "access_token"
--- Allows a Consumer application to exchange the OAuth Request Token for an OAuth Access Token.
_M.oauth_access_token = POST "access_token"
:args{
oauth_verifier = required "string",
}
:base_url "https://api.twitter.com/oauth/%s"
:type "access_token"
--( Timeline )--
--- Returns the 20 most recent mentions (tweets containing a users’s @screen_name) for the authenticating user.
_M.get_mentions = GET "statuses/mentions_timeline"
:args{
count = "integer",
since_id = "integer",
max_id = "integer",
trim_user = "boolean",
contributor_details = "boolean",
include_entities = "boolean",
}
:type "tweet_list"
--- Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
_M.get_user_timeline = GET "statuses/user_timeline"
:args{
user_id = "integer",
screen_name = "string",
since_id = "integer",
count = "integer",
max_id = "integer",
trim_user = "boolean",
exclude_replies = "boolean",
contributor_details = "boolean",
include_rts = "boolean",
}
:type "tweet_list"
--- Returns a collection of the most recent Tweets and retweets posted by the authenticating user and the users they follow.
_M.get_home_timeline = GET "statuses/home_timeline"
:args{
count = "integer",
since_id = "integer",
max_id = "integer",
trim_user = "boolean",
exclude_replies = "boolean",
contributor_details = "boolean",
include_entities = "boolean",
}
:type "tweet_list"
--- Returns the most recent tweets authored by the authenticating user that have been retweeted by others.
_M.get_retweets_of_me = GET "statuses/retweets_of_me"
:args{
count = "integer",
since_id = "integer",
max_id = "integer",
trim_user = "boolean",
include_entities = "boolean",
include_user_entities = "boolean",
}
:type "tweet_list"
--( Tweets )--
--- Returns a collection of the 100 most recent retweets of the tweet specified by the id parameter.
_M.get_retweets = GET "statuses/retweets/:id"
:args{
id = required "integer",
count = "integer",
trim_user = "boolean",
}
:type "tweet_list"
--- Returns a single Tweet, specified by the id parameter.
_M.get_tweet = GET "statuses/show/:id"
:args{
id = required "integer",
trim_user = "boolean",
include_my_retweet = "boolean",
include_entities = "boolean",
}
:type "tweet"
--- Destroys the status specified by the required ID parameter.
_M.delete_tweet = POST "statuses/destroy/:id"
:args{
id = required "integer",
trim_user = "boolean",
}
:type "tweet"
--- Updates the authenticating user’s current status, also known as tweeting.
_M.tweet = POST "statuses/update"
:args{
status = required "string",
in_reply_to_status_id = "integer",
possibly_sensitive = "boolean",
lat = "real",
long = "real",
place_id = "string",
display_coordinates = "boolean",
trim_user = "boolean",
media_ids = "integer_list",
}
:type "tweet"
--- Retweets a tweet.
_M.retweet = POST "statuses/retweet/:id"
:args{
id = required "integer",
trim_user = "boolean",
}
:type "tweet"
--- Returns information allowing the creation of an embedded representation of a Tweet on third party sites.
_M.oembed = GET "statuses/oembed"
:args{
id = required "integer",
--url = "string", -- full tweet url, only useful for web apps
maxwidth = "integer",
hide_media = "boolean",
hide_thread = "boolean",
omit_script = "boolean",
align = "string",
related = "string_list",
lang = "string",
widget_type = "string",
hide_tweet = "boolean",
}
:type "oembed"
--- Returns a collection of up to 100 user IDs belonging to users who have retweeted the tweet specified by the id parameter.
_M.get_retweeter_ids = GET "statuses/retweeters/ids"
:args{
id = required "integer",
cursor = "integer",
stringify_ids = "boolean",
}
:type "userid_cursor"
--- Updates the authenticating user’s current status and attaches media for upload.
_M.tweet_with_media = POST "statuses/update_with_media"
:args{
status = required "string",
["media[]"] = required "file",
possibly_sensitive = "boolean",
in_reply_to_status_id = "integer",
lat = "real",
long = "real",
place_id = "string",
display_coordinates = "boolean",
}
:type "tweet"
:multipart()
--- Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.
_M.lookup_tweets = GET "statuses/lookup"
:args{
id = required "integer_list",
include_entities = "boolean",
trim_user = "boolean",
map = "boolean",
}
:type "tweet_list"
--- Upload media (images) to Twitter, to use in a Tweet or Twitter-hosted Card.
_M.upload_media = POST "media/upload"
:args{
media = "file",
media_data = "base64",
additional_owners = "integer_list",
}
:type "media"
:base_url "https://upload.twitter.com/1.1/%s.json"
:multipart()
--- Upload videos or chunked images to Twitter for use in a Tweet or Twitter-hosted Card.
_M.upload_media_chunked = POST "media/upload"
:args{
command = required "string",
total_bytes = "integer",
media_type = "string",
additional_owners = "integer_list",
media_id = "integer",
media_data = "base64",
media = "file",
segment_index = "integer",
}
:type "media"
:base_url "https://upload.twitter.com/1.1/%s.json"
:multipart()
--( Search )--
--- Returns a collection of relevant Tweets matching a specified query.
_M.search_tweets = GET "search/tweets"
:args{
q = required "string",
geocode = "string",
lang = "string",
locale = "string",
result_type = "string",
count = "integer",
["until"] = "date",
since_id = "integer",
max_id = "integer",
include_entities = "boolean",
--callback = "string", -- generates JSONP, only for web apps
}
:type "tweet_search"
--( Direct Messages )--
--- Returns the most recent direct messages sent to the authenticating user.
_M.get_received_dms = GET "direct_messages"
:args{
since_id = "integer",
max_id = "integer",
count = "integer",
include_entities = "boolean",
skip_status = "boolean",
full_text = "boolean",
}
:type "dm_list"
--- Returns the 20 most recent direct messages sent by the authenticating user.
_M.get_sent_dms = GET "direct_messages/sent"
:args{
since_id = "integer",
max_id = "integer",
count = "integer",
page = "integer",
include_entities = "boolean",
full_text = "boolean",
}
:type "dm_list"
--- Returns a single direct message, specified by an id parameter.
_M.get_dm = GET "direct_messages/show"
:args{
id = required "integer",
full_text = "boolean",
}
:type "dm"
--- Destroys the direct message specified in the required ID parameter.
_M.delete_dm = POST "direct_messages/destroy"
:args{
id = required "integer",
include_entities = "boolean",
}
:type "dm"
--- Sends a new direct message to the specified user from the authenticating user.
_M.send_dm = POST "direct_messages/new"
:args{
user_id = "integer",
screen_name = "string",
text = required "string",
}
:type "dm"
--( Friends & Followers )--
--- Returns a collection of user_ids that the currently authenticated user does not want to receive retweets from.
_M.get_disabled_rt_ids = GET "friendships/no_retweets/ids"
:args{
stringify_ids = "boolean",
}
:type "userid_array"
--- Returns a cursored collection of user IDs for every user the specified user is following (otherwise known as their “friends”).
_M.get_following_ids = GET "friends/ids"
:args{
user_id = "integer",
screen_name = "string",
cursor = "integer",
stringify_ids = "boolean",
count = "integer",
}
:type "userid_cursor"
--- Returns a cursored collection of user IDs for every user following the specified user.
_M.get_followers_ids = GET "followers/ids"
:args{
user_id = "integer",
screen_name = "string",
cursor = "integer",
stringify_ids = "boolean",
count = "integer",
}
:type "userid_cursor"
--- Returns the relationships of the authenticating user to the comma-separated list of up to 100 screen_names or user_ids provided.
_M.lookup_friendships = GET "friendships/lookup"
:args{
screen_name = "string_list",
user_id = "integer_list",
}
:type "friendship_list"
--- Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
_M.get_incoming_follow_requests = GET "friendships/incoming"
:args{
cursor = "integer",
stringify_ids = "boolean",
}
:type "userid_cursor"
--- Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
_M.get_outgoing_follow_requests = GET "friendships/outgoing"
:args{
cursor = "integer",
stringify_ids = "boolean",
}
:type "userid_cursor"
--- Allows the authenticating users to follow the user specified in the ID parameter.
_M.follow = POST "friendships/create"
:args{
screen_name = "string",
user_id = "integer",
follow = "boolean",
}
:type "user"
--- Allows the authenticating user to unfollow the user specified in the ID parameter.
_M.unfollow = POST "friendships/destroy"
:args{
screen_name = "string",
user_id = "integer",
}
:type "user"
--- Allows one to enable or disable retweets and device notifications from the specified user.
_M.set_follow_settings = POST "friendships/update"
:args{
screen_name = "string",
user_id = "integer",
device = "boolean",
retweets = "boolean",
}
:type "relationship_container"
--- Returns detailed information about the relationship between two arbitrary users.
_M.get_friendship = GET "friendships/show"
:args{
source_id = "integer",
source_screen_name = "string",
target_id = "integer",
target_screen_name = "string",
}
:type "relationship_container"
--- Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their “friends”).
_M.get_following = GET "friends/list"
:args{
user_id = "integer",
screen_name = "string",
cursor = "integer",
count = "integer",
skip_status = "boolean",
include_user_entities = "boolean",
}
:type "user_cursor"
--- Returns a cursored collection of user objects for users following the specified user.
_M.get_followers = GET "followers/list"
:args{
user_id = "integer",
screen_name = "string",
cursor = "integer",
count = "integer",
skip_status = "boolean",
include_user_entities = "boolean",
}
:type "user_cursor"
--( Users )--
--- Returns settings (including current trend, geo and sleep time information) for the authenticating user.
_M.get_account_settings = GET "account/settings"
:args{
-- empty
}
:type "account_settings"
--- Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
_M.verify_credentials = GET "account/verify_credentials"
:args{
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Updates the authenticating user’s settings.
_M.set_account_settings = POST "account/settings"
:args{
trend_location_woeid = "integer",
sleep_time_enabled = "boolean",
start_sleep_time = "integer",
end_sleep_time = "integer",
time_zone = "string",
lang = "string",
}
:type "account_settings"
--- Sets which device Twitter delivers updates to for the authenticating user.
_M.update_delivery_device = POST "account/update_delivery_device"
:args{
device = required "string",
include_entities = "boolean",
}
--- Sets some values that users are able to set under the “Account” tab of their settings page.
_M.update_profile = POST "account/update_profile"
:args{
name = "string",
url = "string",
location = "string",
description = "string",
profile_link_color = "string",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Updates the authenticating user’s profile background image.
_M.set_profile_background_image = POST "account/update_profile_background_image"
:args{
image = "base64",
tile = "boolean",
include_entities = "boolean",
skip_status = "boolean",
media_id = "integer",
}
:type "user"
--- Updates the authenticating user’s profile image.
_M.set_profile_image = POST "account/update_profile_image"
:args{
image = required "base64",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Returns a collection of user objects that the authenticating user is blocking.
_M.get_blocked_users = GET "blocks/list"
:args{
include_entities = "boolean",
skip_status = "boolean",
cursor = "integer",
}
:type "user_cursor"
--- Returns an array of numeric user ids the authenticating user is blocking.
_M.get_blocked_ids= GET "blocks/ids"
:args{
stringify_ids = "boolean",
cursor = "integer",
}
:type "userid_cursor"
--- Blocks the specified user from following the authenticating user.
_M.block_user = POST "blocks/create"
:args{
screen_name = "string",
user_id = "integer",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Un-blocks the user specified in the ID parameter for the authenticating user.
_M.unblock_user = POST "blocks/destroy"
:args{
screen_name = "string",
user_id = "integer",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Returns fully-hydrated user objects for up to 100 users per request, as specified by comma-separated values passed to the user_id and/or screen_name parameters.
_M.lookup_users = GET "users/lookup"
:args{
screen_name = "string_list",
user_id = "integer_list",
include_entities = "boolean",
}
:type "user_list"
--- Returns a variety of information about the user specified by the required user_id or screen_name parameter.
_M.get_user = GET "users/show"
:args{
user_id = "integer",
screen_name = "string",
include_entities = "boolean",
}
:type "user"
--- Provides a simple, relevance-based search interface to public user accounts on Twitter.
_M.search_users = GET "users/search"
:args{
q = required "string",
page = "integer",
count = "integer",
include_entities = "boolean",
}
:type "user_list"
--- Returns a collection of users that the specified user can "contribute" to.
_M.get_contributees = GET "users/contributees"
:args{
user_id = "integer",
screen_name = "string",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user_list"
--- Returns a collection of users who can contribute to the specified account.
_M.get_contributors = GET "users/contributors"
:args{
user_id = "integer",
screen_name = "string",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user_list"
--- Removes the uploaded profile banner for the authenticating user.
_M.remove_profile_banner = POST "account/remove_profile_banner"
:args{
-- empty
}
--- Uploads a profile banner on behalf of the authenticating user.
_M.set_profile_banner = POST "account/update_profile_banner"
:args{
banner = required "base64",
width = "integer",
height = "integer",
offset_left = "integer",
offset_top = "integer",
}
--- Returns a map of the available size variations of the specified user’s profile banner.
_M.get_profile_banner = GET "users/profile_banner"
:args{
user_id = "integer",
screen_name = "string",
}
:type "profile_banner"
--- Mutes the user specified in the ID parameter for the authenticating user.
_M.mute_user = POST "mutes/users/create"
:args{
screen_name = "string",
user_id = "integer",
}
:type "user"
--- Un-mutes the user specified in the ID parameter for the authenticating user.
_M.unmute_user = POST "mutes/users/destroy"
:args{
screen_name = "string",
user_id = "integer",
}
:type "user"
--- Returns an array of numeric user ids the authenticating user has muted.
_M.get_muted_ids = GET "mutes/users/ids"
:args{
cursor = "integer",
}
:type "userid_cursor"
--- Returns an array of user objects the authenticating user has muted.
_M.get_muted_users = GET "mutes/users/list"
:args{
cursor = "integer",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user_cursor"
--( Suggested Users )--
--- Access the users in a given category of the Twitter suggested user list.
_M.get_suggestion_category = GET "users/suggestions/:slug"
:args{
slug = required "string",
lang = "string",
}
:type "suggestion_category"
--- Access to Twitter’s suggested user list.
_M.get_suggestion_categories = GET "users/suggestions"
:args{
lang = "string",
}
:type "suggestion_category_list"
--- Access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.
_M.get_suggestion_users = GET "users/suggestions/:slug/members"
:args{
slug = required "string",
}
:type "user_list"
--( Favorites )--
--- Returns the 20 most recent Tweets favorited by the authenticating or specified user.
_M.get_favorites = GET "favorites/list"
:args{
user_id = "integer",
screen_name = "string",
count = "integer",
since_id = "integer",
max_id = "integer",
include_entities = "boolean",
}
:type "tweet_list"
--- Un-favorites the status specified in the ID parameter as the authenticating user.
_M.unset_favorite = POST "favorites/destroy"
:args{
id = required "integer",
include_entities = "boolean",
}
:type "tweet"
--- Favorites the status specified in the ID parameter as the authenticating user.
_M.set_favorite = POST "favorites/create"
:args{
id = required "integer",
include_entities = "boolean",
}
:type "tweet"
--( Lists )--
--- Returns all lists the authenticating or specified user subscribes to, including their own.
_M.get_all_lists = GET "lists/list"
:args{
user_id = "integer",
screen_name = "string",
reverse = "boolean",
}
:type "userlist_list"
--- Returns a timeline of tweets authored by members of the specified list.
_M.get_list_timeline = GET "lists/statuses"
:args{
list_id = "integer",
slug = "string",
owner_screen_name = "string",
owner_id = "integer",
since_id = "integer",
max_id = "integer",
count = "integer",
include_entities = "boolean",
include_rts = "boolean",
}
:type "tweet_list"
--- Removes the specified member from the list.
_M.remove_list_member = POST "lists/members/destroy"
:args{
list_id = "integer",
slug = "string",
user_id = "integer",
screen_name = "string",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Returns the lists the specified user has been added to.
_M.get_lists_following_user = GET "lists/memberships"
:args{
user_id = "integer",
screen_name = "string",
count = "integer",
cursor = "integer",
filter_to_owned_lists = "boolean",
}
:type "userlist_cursor"
--- Returns the subscribers of the specified list.
_M.get_list_followers = GET "lists/subscribers"
:args{
list_id = "integer",
slug = "string",
owner_screen_name = "string",
owner_id = "integer",
count = "integer",
cursor = "integer",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user_cursor"
--- Subscribes the authenticated user to the specified list.
_M.follow_list = POST "lists/subscribers/create"
:args{
owner_screen_name = "string",
owner_id = "integer",
list_id = "integer",
slug = "string",
}
:type "userlist"
--- Check if the specified user is a subscriber of the specified list.
_M.is_following_list = GET "lists/subscribers/show"
:args{
owner_screen_name = "string",
owner_id = "integer",
list_id = "integer",
slug = "string",
user_id = "integer",
screen_name = "string",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Unsubscribes the authenticated user from the specified list.
_M.unfollow_list = POST "lists/subscribers/destroy"
:args{
list_id = "integer",
slug = "string",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Adds multiple members to a list, by specifying a comma-separated list of member ids or screen names.
_M.add_multiple_list_members = POST "lists/members/create_all"
:args{
list_id = "integer",
slug = "string",
user_id = "integer_list",
screen_name = "string_list",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Check if the specified user is a member of the specified list.
_M.is_member_of_list = GET "lists/members/show"
:args{
list_id = "integer",
slug = "string",
user_id = "integer",
screen_name = "string",
owner_screen_name = "string",
owner_id = "integer",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user"
--- Returns the members of the specified list.
_M.get_list_members = GET "lists/members"
:args{
list_id = "integer",
slug = "string",
owner_screen_name = "string",
owner_id = "integer",
count = "integer",
cursor = "integer",
include_entities = "boolean",
skip_status = "boolean",
}
:type "user_cursor"
--- Add a member to a list.
_M.add_list_member = POST "lists/members/create"
:args{
list_id = "integer",
slug = "string",
user_id = "integer",
screen_name = "string",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Deletes the specified list.
_M.delete_list = POST "lists/destroy"
:args{
owner_screen_name = "string",
owner_id = "integer",
list_id = "integer",
slug = "string",
}
:type "userlist"
--- Updates the specified list.
_M.update_list = POST "lists/update"
:args{
list_id = "integer",
slug = "string",
name = "string",
mode = "string",
description = "string",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Creates a new list for the authenticated user.
_M.create_list = POST "lists/create"
:args{
name = required "string",
mode = "string",
description = "string",
}
:type "userlist"
--- Returns the specified list.
_M.get_list = GET "lists/show"
:args{
list_id = "integer",
slug = "string",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Obtain a collection of the lists the specified user is subscribed to, 20 lists per page by default.
_M.get_followed_lists = GET "lists/subscriptions"
:args{
user_id = "integer",
screen_name = "string",
count = "integer",
cursor = "integer",
}
:type "userlist_cursor"
--- Removes multiple members from a list, by specifying a comma-separated list of member ids or screen names.
_M.remove_multiple_list_members = POST "lists/members/destroy_all"
:args{
list_id = "integer",
slug = "string",
user_id = "integer_list",
screen_name = "string_list",
owner_screen_name = "string",
owner_id = "integer",
}
:type "userlist"
--- Returns the lists owned by the specified Twitter user.
_M.get_own_lists = GET "lists/ownerships"
:args{
user_id = "integer",
screen_name = "string",
count = "integer",
cursor = "integer",
}
:type "userlist_cursor"
--( Saved Searches )--
--- Returns the authenticated user’s saved search queries.
_M.get_saved_searches = GET "saved_searches/list"
:args{
-- empty
}
:type "saved_search_list"
--- Retrieve the information for the saved search represented by the given id.
_M.get_saved_search = GET "saved_searches/show/:id"
:args{
id = required "integer",
}
:type "saved_search"
--- Create a new saved search for the authenticated user.
_M.create_saved_search = POST "saved_searches/create"
:args{
query = required "string",
}
:type "saved_search"
--- Destroys a saved search for the authenticating user.
_M.delete_saved_search = POST "saved_searches/destroy/:id"
:args{
id = required "integer",
}
:type "saved_search"
--( Places & Geo )--
--- Returns all the information about a known place.
_M.get_place = GET "geo/id/:place_id"
:args{
place_id = required "string",
}
:type "place"
--- Given a latitude and a longitude, searches for up to 20 places that can be used as a place_id when updating a status.
_M.reverse_geocode = GET "geo/reverse_geocode"
:args{
lat = required "real",
long = required "real",
accuracy = "string",
granularity = "string",
max_results = "integer",
--callback = "string", -- generates JSONP, only for web apps
}
:type "place_search"
--- Search for places that can be attached to a statuses/update.
_M.search_places = GET "geo/search"
:args{
lat = "real",
long = "real",
query = "string",
ip = "string",
granularity = "string",
accuracy = "string",
max_results = "integer",
contained_within = "string",
--attribute = "string", -- misc attribute:<key> values
--callback = "string", -- generates JSONP, only for web apps
}
:type "place_search"
--- Locates places near the given coordinates which are similar in name. UNDOCUMENTED
_M.get_similar_places = GET "geo/similar_places"
:args{
lat = required "real",
long = required "real",
name = required "string",
contained_within = "string",
--attribute = "string", -- misc attribute:<key> values
--callback = "string", -- generates JSONP, only for web apps
}
:type "place_search"
--( Trends )--
--- Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.
_M.get_trends = GET "trends/place"
:args{
id = required "integer",
exclude = "string",
}
:type "trends_container_list"
--- Returns the locations that Twitter has trending topic information for.
_M.get_all_trends_locations = GET "trends/available"
:args{
-- empty
}
:type "trend_location_list"
--- Returns the locations that Twitter has trending topic information for, closest to a specified location.
_M.find_trends_location = GET "trends/closest"
:args{
lat = required "real",
long = required "real",
}
:type "trend_location_list"
--( Spam Reporting )--
--- Report the specified user as a spam account to Twitter.
_M.report_spam = POST "users/report_spam"
:args{
screen_name = "string",
user_id = "integer",
}
:type "user"
--( Help )--
--- Returns the current configuration used by Twitter including twitter.com slugs which are not usernames, maximum photo resolutions, and t.co URL lengths.
_M.get_service_config = GET "help/configuration"
:args{
-- empty
}
:type "service_config"
--- Returns the list of languages supported by Twitter along with the language code supported by Twitter.
_M.get_languages = GET "help/languages"
:args{
-- empty
}
:type "language_list"
--- Returns Twitter’s Privacy Policy.
_M.get_privacy_policy = GET "help/privacy"
:args{
-- empty
}
:type "privacy"
--- Returns the Twitter Terms of Service.
_M.get_tos = GET "help/tos"
:args{
-- empty
}
:type "tos"
--- Returns the current rate limits for methods belonging to the specified resource families.
_M.get_rate_limit = GET "application/rate_limit_status"
:args{
resources = "string_list",
}
:type "rate_limit"
--( Streaming )--
--- Returns a small random sample of all public statuses.
_M.stream_sample = GET "statuses/sample"
:args{
delimited = "string",
stall_warnings = "boolean",
}
:type "_guess"
:base_url "https://stream.twitter.com/1.1/%s.json"
:stream()
--- Returns public statuses that match one or more filter predicates.
_M.stream_filter = POST "statuses/filter"
:args{
follow = "integer_list",
track = "string_list",
locations = "string_list",
delimited = "string",
stall_warnings = "boolean",
}
:type "_guess"
:base_url "https://stream.twitter.com/1.1/%s.json"
:stream()
--- Streams messages for a single user, as described in User streams.
_M.stream_user = GET "user"
:args{
delimited = "string",
stall_warnings = "boolean",
with = "string",
replies = "string",
track = "string_list",
locations = "string_list",
stringify_friend_ids = "boolean",
}
:type "_guess"
:base_url "https://userstream.twitter.com/1.1/%s.json"
:stream()
--- Streams messages for a set of users, as described in Site streams.
_M.stream_site = GET "site"
:args{
follow = "integer_list",
delimited = "string",
stall_warnings = "boolean",
with = "string",
replies = "string",
stringify_friend_ids = "boolean",
}
:type "_guess"
:base_url "https://sitestream.twitter.com/1.1/%s.json"
:stream()
--- Returns all public statuses.
_M.stream_firehose = GET "statuses/firehose"
:args{
count = "integer",
delimited = "string",
stall_warnings = "boolean",
}
:type "_guess"
:base_url "https://stream.twitter.com/1.1/%s.json"
:stream()
-- fill in the name field and set the mt
for name, obj in pairs(_M) do
if util.type(obj) == "resource_builder" then
obj:finish(name, resource_base)
end
end
return _M
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/faction/rebel/specforce_master_sergeant.lua | 2 | 1773 | specforce_master_sergeant = Creature:new {
objectName = "@mob/creature_names:specforce_master_sergeant",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "rebel",
faction = "rebel",
level = 22,
chanceHit = 0.35,
damageMin = 210,
damageMax = 220,
baseXp = 2219,
baseHAM = 5900,
baseHAMmax = 7200,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER,
diet = HERBIVORE,
templates = {"object/mobile/dressed_rebel_specforce_guerilla_human_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerilla_moncal_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_human_female_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_rodian_female_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_rodian_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_zabrak_female_01.iff",
},
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 100000},
{group = "junk", chance = 4700000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "clothing_attachments", chance = 100000},
{group = "armor_attachments", chance = 100000},
{group = "wearables_common", chance = 1000000}
}
}
},
weapons = {"imperial_weapons_heavy"},
reactionStf = "@npc_reaction/military",
personalityStf = "@hireling/hireling_military",
attacks = merge(brawlermaster,marksmanmaster)
}
CreatureTemplates:addCreatureTemplate(specforce_master_sergeant, "specforce_master_sergeant")
| agpl-3.0 |
njligames/NJLIGameEngine | projects/ELIA/gameplay_scripts/yappybirds_game/scripts/NJLI/STATEMACHINE/UI/LABEL/STATES/Default.lua | 4 | 6189 | local BaseClass = require "NJLI.STATEMACHINE.NodeEntityState"
local Default = {}
Default.__index = Default
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--#############################################################################
--Begin Custom Code
--Required local functions:
-- __ctor()
-- __dtor()
-- __load()
-- __unLoad()
--#############################################################################
local __ctor = function(self, init)
--TODO: construct this Entity
end
local __dtor = function(self)
--TODO: destruct this Entity
end
local __load = function(self)
--TODO: load this Entity
end
local __unLoad = function(self)
--TODO: unload this Entity
end
--#############################################################################
--Default Specific
--#############################################################################
--#############################################################################
--NodeEntityState overwrite
--#############################################################################
function Default:enter()
BaseClass.enter(self)
end
function Default:update(timeStep)
BaseClass.update(self, timeStep)
end
function Default:exit()
BaseClass.exit(self)
end
function Default:onMessage()
BaseClass.onMessage(self)
end
function Default:rayTouchesDown(rayContact)
BaseClass.rayTouchesDown(self, rayContact)
end
function Default:rayTouchesUp(rayContact)
BaseClass.rayTouchesUp(self, rayContact)
end
function Default:rayTouchesMove(rayContact)
BaseClass.rayTouchesMove(self, rayContact)
end
function Default:rayTouchesCancelled(rayContact)
BaseClass.rayTouchesCancelled(self, rayContact)
end
function Default:rayTouchesMissed(node)
BaseClass.rayTouchesMissed(self, node)
end
function Default:rayTouchDown(rayContact)
BaseClass.rayTouchDown(self, rayContact)
end
function Default:rayTouchUp(rayContact)
BaseClass.rayTouchUp(self, rayContact)
end
function Default:rayTouchMove(rayContact)
BaseClass.rayTouchMove(self, rayContact)
end
function Default:rayTouchCancelled(rayContact)
BaseClass.rayTouchCancelled(self, rayContact)
end
function Default:rayTouchMissed(node)
BaseClass.rayTouchMissed(self, node)
end
function Default:rayMouseDown(rayContact)
BaseClass.rayMouseDown(self, rayContact)
end
function Default:rayMouseUp(rayContact)
BaseClass.rayMouseUp(self, rayContact)
end
function Default:rayMouseMove(rayContact)
BaseClass.rayMouseMove(self, rayContact)
end
function Default:rayMouseMissed(node)
BaseClass.rayMouseMissed(self, node)
end
function Default:collide(otherNode, collisionPoint)
BaseClass.collide(self, collisionPoint)
end
function Default:near(otherNode)
BaseClass.near(self, otherNode)
end
function Default:actionUpdate(action, timeStep)
BaseClass.actionUpdate(self, timeStep)
end
function Default:actionComplete(action)
BaseClass.actionComplete(self, action)
end
function Default:keyboardShow()
BaseClass.keyboardShow(self)
end
function Default:keyboardCancel()
BaseClass.keyboardCancel(self)
end
function Default:keyboardReturn()
BaseClass.keyboardReturn(self)
end
function Default:renderHUD()
BaseClass.renderHUD(self)
end
function Default:gamePause()
BaseClass.gamePause(self)
end
function Default:gameUnPause()
BaseClass.gameUnPause(self)
end
function Default:touchesDown(touches)
BaseClass.touchesDown(self, touches)
end
function Default:touchesUp(touches)
BaseClass.touchesUp(self, touches)
end
function Default:touchesMove(touches)
BaseClass.touchesMove(self, touches)
end
function Default:touchesCancelled(touches)
BaseClass.touchesCancelled(self, touches)
end
function Default:touchDown(touch)
BaseClass.touchDown(self, touch)
end
function Default:touchUp(touch)
BaseClass.touchUp(self, touch)
end
function Default:touchMove(touch)
BaseClass.touchMove(self, touch)
end
function Default:touchCancelled(touch)
BaseClass.touchCancelled(self, touch)
end
function Default:mouseDown(mouse)
BaseClass.mouseDown(self, mouse)
end
function Default:mouseUp(mouse)
BaseClass.mouseUp(self, mouse)
end
function Default:mouseMove(mouse)
BaseClass.mouseMove(self, mouse)
end
--#############################################################################
--End Custom Code
--#############################################################################
--#############################################################################
--DO NOT EDIT BELOW
--#############################################################################
setmetatable(Default, {
__index = BaseClass,
__call = function (cls, ...)
local self = setmetatable({}, cls)
--Create the base first
BaseClass._create(self, ...)
self:_create(...)
return self
end,
})
function Default:className()
return "Default"
end
function Default:class()
return self
end
function Default:superClass()
return BaseClass
end
function Default:__gc()
--Destroy derived class first
Default._destroy(self)
--Destroy base class after derived class
BaseClass._destroy(self)
end
function Default:__tostring()
local ret = self:className() .. " =\n{\n"
for pos,val in pairs(self) do
ret = ret .. "\t" .. "["..pos.."]" .. " => " .. type(val) .. " = " .. tostring(val) .. "\n"
end
ret = ret .. "\n\t" .. tostring_r(BaseClass) .. "\n}"
return ret .. "\n\t" .. tostring_r(getmetatable(self)) .. "\n}"
end
function Default:_destroy()
assert(not self.__DefaultCalledLoad, "Must unload before you destroy")
__dtor(self)
end
function Default:_create(init)
self.__DefaultCalledLoad = false
__ctor(self, init)
end
function Default:load()
--load base first
BaseClass.load(self)
--load derived last...
__load(self)
self.__DefaultCalledLoad = true
end
function Default:unLoad()
assert(self.__DefaultCalledLoad, "Must load before unloading")
--unload derived first...
__unLoad(self)
self.__DefaultCalledLoad = false
--unload base last...
BaseClass.unLoad(self)
end
return Default
| mit |
Whitechaser/darkstar | scripts/zones/Riverne-Site_A01/Zone.lua | 2 | 1205 | -----------------------------------
--
-- Zone: Riverne-Site_A01
--
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Riverne-Site_A01/TextIDs");
require("scripts/globals/conquest");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
function onInitialize(zone)
end;
function onConquestUpdate(zone, updatetype)
local players = zone:getPlayers();
for name, player in pairs(players) do
conquestUpdate(zone, player, updatetype, CONQUEST_BASE);
end
end;
function onZoneIn(player,prevZone)
local cs = -1;
if (player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0) then
player:setPos(732.55,-32.5,-506.544,90); -- {R}
end
return cs;
end;
function afterZoneIn(player)
if (ENABLE_COP_ZONE_CAP == 1) then -- ZONE WIDE LEVEL RESTRICTION
player:addStatusEffect(dsp.effects.LEVEL_RESTRICTION,40,0,0); -- LV40 cap
end
end;
function onRegionEnter(player,region)
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
end;
| gpl-3.0 |
DailyShana/ygopro-scripts | c27967615.lua | 3 | 1706 | --フュージョン・ウェポン
function c27967615.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c27967615.target)
e1:SetOperation(c27967615.operation)
c:RegisterEffect(e1)
--atk up
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(1500)
c:RegisterEffect(e2)
--def up
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_UPDATE_DEFENCE)
e3:SetValue(1500)
c:RegisterEffect(e3)
--Equip limit
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_EQUIP_LIMIT)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetValue(c27967615.eqlimit)
c:RegisterEffect(e4)
end
function c27967615.eqlimit(e,c)
return c:IsType(TYPE_FUSION) and c:IsLevelBelow(6)
end
function c27967615.filter(c)
return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsLevelBelow(6)
end
function c27967615.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c27967615.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c27967615.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c27967615.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c27967615.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if e:GetHandler():IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,e:GetHandler(),tc)
end
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c42502956.lua | 5 | 1694 | --エアーズロック・サンライズ
function c42502956.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:SetCountLimit(1,42502956+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c42502956.target)
e1:SetOperation(c42502956.activate)
c:RegisterEffect(e1)
end
function c42502956.filter(c,e,tp)
return c:IsRace(RACE_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c42502956.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c42502956.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c42502956.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c42502956.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c42502956.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local ct=Duel.GetMatchingGroupCount(Card.IsRace,tp,LOCATION_GRAVE,0,nil,RACE_BEAST+RACE_WINDBEAST+RACE_PLANT)
tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(ct*-200)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc=g:GetNext()
end
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_rebel_sergeant_major_moncal_male_01.lua | 3 | 2288 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_rebel_sergeant_major_moncal_male_01 = object_mobile_shared_dressed_rebel_sergeant_major_moncal_male_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_rebel_sergeant_major_moncal_male_01, "object/mobile/dressed_rebel_sergeant_major_moncal_male_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/reactor/rct_cygnus_mk1.lua | 3 | 2276 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_reactor_rct_cygnus_mk1 = object_tangible_ship_components_reactor_shared_rct_cygnus_mk1:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_reactor_rct_cygnus_mk1, "object/tangible/ship/components/reactor/rct_cygnus_mk1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/armor/padded/armor_padded_s01_bicep_l.lua | 1 | 5775 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_armor_padded_armor_padded_s01_bicep_l = object_tangible_wearables_armor_padded_shared_armor_padded_s01_bicep_l:new {
templateType = ARMOROBJECT,
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bith_female.iff",
"object/mobile/vendor/bith_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/gran_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/ishi_tib_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/nikto_male.iff",
"object/mobile/vendor/quarren_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/weequay_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
-- Damage types in WeaponObject
vulnerability = HEAT + ACID + STUN + LIGHTSABER,
-- These are default Blue Frog stats
maxCondition = 30000,
healthEncumbrance = 1,
actionEncumbrance = 1,
mindEncumbrance = 1,
-- LIGHT, MEDIUM, HEAVY
rating = LIGHT,
kinetic = 15,
energy = 15,
electricity = 15,
stun = 15,
blast = 15,
heat = 15,
cold = 15,
acid = 15,
lightSaber = 0,
numberExperimentalProperties = {1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1},
experimentalProperties = {"XX", "XX", "XX", "OQ", "SR", "OQ", "SR", "OQ", "UT", "MA", "OQ", "MA", "OQ", "MA", "OQ", "XX", "XX", "OQ", "SR", "XX"},
experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_durability", "exp_quality", "exp_durability", "exp_durability", "exp_durability", "exp_durability", "null", "null", "exp_resistance", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hit_points", "armor_effectiveness", "armor_integrity", "armor_health_encumbrance", "armor_action_encumbrance", "armor_mind_encumbrance", "armor_rating", "armor_special_type", "armor_special_effectiveness", "armor_special_integrity"},
experimentalMin = {0, 0, 0, 1000, 1, 18750, 17, 22, 23, 1, 4, 1, 18750},
experimentalMax = {0, 0, 0, 1000, 30, 31250, 10, 13, 14, 1, 4, 40, 31250},
experimentalPrecision = {0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1, 1, 1, 1, 1, 1, 4, 4, 4, 1},
}
ObjectTemplates:addTemplate(object_tangible_wearables_armor_padded_armor_padded_s01_bicep_l, "object/tangible/wearables/armor/padded/armor_padded_s01_bicep_l.iff")
| agpl-3.0 |
MHPG/MegaBreakerTG | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
local posts = json:decode(b)
return posts[math.random(#posts)]
end
local function run(msg, matches)
local url = URL
if matches[1] == "!danbooru" then
url = url .. URL_NEW
else
url = url .. URL_POP
if matches[1] == "d" then
url = url .. scale_day
elseif matches[1] == "w" then
url = url .. scale_week
elseif matches[1] == "m" then
url = url .. scale_month
end
end
local post = get_post(url)
if post then
vardump(post)
local img = URL .. post.large_file_url
send_photo_from_url(get_receiver(msg), img)
local txt = ''
if post.tag_string_artist ~= '' then
txt = 'Artist: ' .. post.tag_string_artist .. '\n'
end
if post.tag_string_character ~= '' then
txt = txt .. 'Character: ' .. post.tag_string_character .. '\n'
end
if post.file_size ~= '' then
txt = txt .. '[' .. math.ceil(post.file_size/1000) .. 'kb] ' .. URL .. post.file_url
end
return txt
end
end
return {
description = "Gets a random fresh or popular image from Danbooru",
usage = {
"!danbooru - gets a random fresh image from Danbooru 🔞",
"!danboorud - random daily popular image 🔞",
"!danbooruw - random weekly popular image 🔞",
"!danboorum - random monthly popular image 🔞"
},
patterns = {
"^!danbooru$",
"^!danbooru ?(d)$",
"^!danbooru ?(w)$",
"^!danbooru ?(m)$"
},
run = run
}
end | gpl-2.0 |
ollie27/openwrt_luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua | 46 | 3168 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("RRDTool Plugin Configuration"),
translate(
"The rrdtool plugin stores the collected data in rrd database " ..
"files, the foundation of the diagrams.<br /><br />" ..
"<strong>Warning: Setting the wrong values will result in a very " ..
"high memory consumption in the temporary directory. " ..
"This can render the device unusable!</strong>"
))
-- collectd_rrdtool config section
s = m:section( NamedSection, "collectd_rrdtool", "luci_statistics" )
-- collectd_rrdtool.enable
enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 1
-- collectd_rrdtool.datadir (DataDir)
datadir = s:option( Value, "DataDir", translate("Storage directory") )
datadir.default = "/tmp"
datadir.rmempty = true
datadir.optional = true
datadir:depends( "enable", 1 )
-- collectd_rrdtool.stepsize (StepSize)
stepsize = s:option( Value, "StepSize",
translate("RRD step interval"), translate("Seconds") )
stepsize.default = 30
stepsize.isinteger = true
stepsize.rmempty = true
stepsize.optional = true
stepsize:depends( "enable", 1 )
-- collectd_rrdtool.heartbeat (HeartBeat)
heartbeat = s:option( Value, "HeartBeat",
translate("RRD heart beat interval"), translate("Seconds") )
heartbeat.default = 60
heartbeat.isinteger = true
heartbeat.rmempty = true
heartbeat.optional = true
heartbeat:depends( "enable", 1 )
-- collectd_rrdtool.rrasingle (RRASingle)
rrasingle = s:option( Flag, "RRASingle",
translate("Only create average RRAs"), translate("reduces rrd size") )
rrasingle.default = true
rrasingle.rmempty = true
rrasingle.optional = true
rrasingle:depends( "enable", 1 )
-- collectd_rrdtool.rratimespans (RRATimespan)
rratimespans = s:option( Value, "RRATimespans",
translate("Stored timespans"), translate("seconds; multiple separated by space") )
rratimespans.default = "600 86400 604800 2678400 31622400"
rratimespans.rmempty = true
rratimespans.optional = true
rratimespans:depends( "enable", 1 )
-- collectd_rrdtool.rrarows (RRARows)
rrarows = s:option( Value, "RRARows", translate("Rows per RRA") )
rrarows.isinteger = true
rrarows.default = 100
rrarows.rmempty = true
rrarows.optional = true
rrarows:depends( "enable", 1 )
-- collectd_rrdtool.xff (XFF)
xff = s:option( Value, "XFF", translate("RRD XFiles Factor") )
xff.default = 0.1
xff.isnumber = true
xff.rmempty = true
xff.optional = true
xff:depends( "enable", 1 )
-- collectd_rrdtool.cachetimeout (CacheTimeout)
cachetimeout = s:option( Value, "CacheTimeout",
translate("Cache collected data for"), translate("Seconds") )
cachetimeout.isinteger = true
cachetimeout.default = 100
cachetimeout.rmempty = true
cachetimeout.optional = true
cachetimeout:depends( "enable", 1 )
-- collectd_rrdtool.cacheflush (CacheFlush)
cacheflush = s:option( Value, "CacheFlush",
translate("Flush cache after"), translate("Seconds") )
cacheflush.isinteger = true
cacheflush.default = 100
cacheflush.rmempty = true
cacheflush.optional = true
cacheflush:depends( "enable", 1 )
return m
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/recycler/metal_recycler.lua | 2 | 3791 | --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_metal_recycler = object_tangible_recycler_shared_metal_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 = 18,
resourceTypes = "ferrous,nonferrous",
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_metal_recycler, "object/tangible/recycler/metal_recycler.iff")
| agpl-3.0 |
alexzatsepin/omim | 3party/osrm/osrm-backend/profiles/bicycle.lua | 59 | 12992 | require("lib/access")
require("lib/maxspeed")
-- Begin of globals
barrier_whitelist = { [""] = true, ["cycle_barrier"] = true, ["bollard"] = true, ["entrance"] = true, ["cattle_grid"] = true, ["border_control"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["no"] = true }
access_tag_whitelist = { ["yes"] = true, ["permissive"] = true, ["designated"] = true }
access_tag_blacklist = { ["no"] = true, ["private"] = true, ["agricultural"] = true, ["forestery"] = true }
access_tag_restricted = { ["destination"] = true, ["delivery"] = true }
access_tags_hierachy = { "bicycle", "vehicle", "access" }
cycleway_tags = {["track"]=true,["lane"]=true,["opposite"]=true,["opposite_lane"]=true,["opposite_track"]=true,["share_busway"]=true,["sharrow"]=true,["shared"]=true }
service_tag_restricted = { ["parking_aisle"] = true }
restriction_exception_tags = { "bicycle", "vehicle", "access" }
default_speed = 15
walking_speed = 6
bicycle_speeds = {
["cycleway"] = default_speed,
["primary"] = default_speed,
["primary_link"] = default_speed,
["secondary"] = default_speed,
["secondary_link"] = default_speed,
["tertiary"] = default_speed,
["tertiary_link"] = default_speed,
["residential"] = default_speed,
["unclassified"] = default_speed,
["living_street"] = default_speed,
["road"] = default_speed,
["service"] = default_speed,
["track"] = 12,
["path"] = 12
--["footway"] = 12,
--["pedestrian"] = 12,
}
pedestrian_speeds = {
["footway"] = walking_speed,
["pedestrian"] = walking_speed,
["steps"] = 2
}
railway_speeds = {
["train"] = 10,
["railway"] = 10,
["subway"] = 10,
["light_rail"] = 10,
["monorail"] = 10,
["tram"] = 10
}
platform_speeds = {
["platform"] = walking_speed
}
amenity_speeds = {
["parking"] = 10,
["parking_entrance"] = 10
}
man_made_speeds = {
["pier"] = walking_speed
}
route_speeds = {
["ferry"] = 5
}
bridge_speeds = {
["movable"] = 5
}
surface_speeds = {
["asphalt"] = default_speed,
["cobblestone:flattened"] = 10,
["paving_stones"] = 10,
["compacted"] = 10,
["cobblestone"] = 6,
["unpaved"] = 6,
["fine_gravel"] = 6,
["gravel"] = 6,
["fine_gravel"] = 6,
["pebbelstone"] = 6,
["ground"] = 6,
["dirt"] = 6,
["earth"] = 6,
["grass"] = 6,
["mud"] = 3,
["sand"] = 3
}
take_minimum_of_speeds = true
obey_oneway = true
obey_bollards = false
use_restrictions = true
ignore_areas = true -- future feature
traffic_signal_penalty = 5
u_turn_penalty = 20
use_turn_restrictions = false
turn_penalty = 60
turn_bias = 1.4
--modes
mode_normal = 1
mode_pushing = 2
mode_ferry = 3
mode_train = 4
mode_movable_bridge = 5
local function parse_maxspeed(source)
if not source then
return 0
end
local n = tonumber(source:match("%d*"))
if not n then
n = 0
end
if string.match(source, "mph") or string.match(source, "mp/h") then
n = (n*1609)/1000;
end
return n
end
function get_exceptions(vector)
for i,v in ipairs(restriction_exception_tags) do
vector:Add(v)
end
end
function node_function (node, result)
local barrier = node:get_value_by_key("barrier")
local access = Access.find_access_tag(node, access_tags_hierachy)
local traffic_signal = node:get_value_by_key("highway")
-- flag node if it carries a traffic light
if traffic_signal and traffic_signal == "traffic_signals" then
result.traffic_lights = true
end
-- parse access and barrier tags
if access and access ~= "" then
if access_tag_blacklist[access] then
result.barrier = true
else
result.barrier = false
end
elseif barrier and barrier ~= "" then
if barrier_whitelist[barrier] then
result.barrier = false
else
result.barrier = true
end
end
end
function way_function (way, result)
-- initial routability check, filters out buildings, boundaries, etc
local highway = way:get_value_by_key("highway")
local route = way:get_value_by_key("route")
local man_made = way:get_value_by_key("man_made")
local railway = way:get_value_by_key("railway")
local amenity = way:get_value_by_key("amenity")
local public_transport = way:get_value_by_key("public_transport")
local bridge = way:get_value_by_key("bridge")
if (not highway or highway == '') and
(not route or route == '') and
(not railway or railway=='') and
(not amenity or amenity=='') and
(not man_made or man_made=='') and
(not public_transport or public_transport=='') and
(not bridge or bridge=='')
then
return
end
-- don't route on ways or railways that are still under construction
if highway=='construction' or railway=='construction' then
return
end
-- access
local access = Access.find_access_tag(way, access_tags_hierachy)
if access and access_tag_blacklist[access] then
return
end
-- other tags
local name = way:get_value_by_key("name")
local ref = way:get_value_by_key("ref")
local junction = way:get_value_by_key("junction")
local maxspeed = parse_maxspeed(way:get_value_by_key ( "maxspeed") )
local maxspeed_forward = parse_maxspeed(way:get_value_by_key( "maxspeed:forward"))
local maxspeed_backward = parse_maxspeed(way:get_value_by_key( "maxspeed:backward"))
local barrier = way:get_value_by_key("barrier")
local oneway = way:get_value_by_key("oneway")
local onewayClass = way:get_value_by_key("oneway:bicycle")
local cycleway = way:get_value_by_key("cycleway")
local cycleway_left = way:get_value_by_key("cycleway:left")
local cycleway_right = way:get_value_by_key("cycleway:right")
local duration = way:get_value_by_key("duration")
local service = way:get_value_by_key("service")
local area = way:get_value_by_key("area")
local foot = way:get_value_by_key("foot")
local surface = way:get_value_by_key("surface")
local bicycle = way:get_value_by_key("bicycle")
-- name
if ref and "" ~= ref and name and "" ~= name then
result.name = name .. ' / ' .. ref
elseif ref and "" ~= ref then
result.name = ref
elseif name and "" ~= name then
result.name = name
elseif highway then
-- if no name exists, use way type
-- this encoding scheme is excepted to be a temporary solution
result.name = "{highway:"..highway.."}"
end
-- roundabout handling
if junction and "roundabout" == junction then
result.roundabout = true;
end
-- speed
local bridge_speed = bridge_speeds[bridge]
if (bridge_speed and bridge_speed > 0) then
highway = bridge;
if duration and durationIsValid(duration) then
result.duration = math.max( parseDuration(duration), 1 );
end
result.forward_mode = mode_movable_bridge
result.backward_mode = mode_movable_bridge
result.forward_speed = bridge_speed
result.backward_speed = bridge_speed
elseif route_speeds[route] then
-- ferries (doesn't cover routes tagged using relations)
result.forward_mode = mode_ferry
result.backward_mode = mode_ferry
result.ignore_in_grid = true
if duration and durationIsValid(duration) then
result.duration = math.max( 1, parseDuration(duration) )
else
result.forward_speed = route_speeds[route]
result.backward_speed = route_speeds[route]
end
elseif railway and platform_speeds[railway] then
-- railway platforms (old tagging scheme)
result.forward_speed = platform_speeds[railway]
result.backward_speed = platform_speeds[railway]
elseif platform_speeds[public_transport] then
-- public_transport platforms (new tagging platform)
result.forward_speed = platform_speeds[public_transport]
result.backward_speed = platform_speeds[public_transport]
elseif railway and railway_speeds[railway] then
result.forward_mode = mode_train
result.backward_mode = mode_train
-- railways
if access and access_tag_whitelist[access] then
result.forward_speed = railway_speeds[railway]
result.backward_speed = railway_speeds[railway]
end
elseif amenity and amenity_speeds[amenity] then
-- parking areas
result.forward_speed = amenity_speeds[amenity]
result.backward_speed = amenity_speeds[amenity]
elseif bicycle_speeds[highway] then
-- regular ways
result.forward_speed = bicycle_speeds[highway]
result.backward_speed = bicycle_speeds[highway]
elseif access and access_tag_whitelist[access] then
-- unknown way, but valid access tag
result.forward_speed = default_speed
result.backward_speed = default_speed
else
-- biking not allowed, maybe we can push our bike?
-- essentially requires pedestrian profiling, for example foot=no mean we can't push a bike
if foot ~= 'no' and junction ~= "roundabout" then
if pedestrian_speeds[highway] then
-- pedestrian-only ways and areas
result.forward_speed = pedestrian_speeds[highway]
result.backward_speed = pedestrian_speeds[highway]
result.forward_mode = mode_pushing
result.backward_mode = mode_pushing
elseif man_made and man_made_speeds[man_made] then
-- man made structures
result.forward_speed = man_made_speeds[man_made]
result.backward_speed = man_made_speeds[man_made]
result.forward_mode = mode_pushing
result.backward_mode = mode_pushing
elseif foot == 'yes' then
result.forward_speed = walking_speed
result.backward_speed = walking_speed
result.forward_mode = mode_pushing
result.backward_mode = mode_pushing
elseif foot_forward == 'yes' then
result.forward_speed = walking_speed
result.forward_mode = mode_pushing
result.backward_mode = 0
elseif foot_backward == 'yes' then
result.forward_speed = walking_speed
result.forward_mode = 0
result.backward_mode = mode_pushing
end
end
end
-- direction
local impliedOneway = false
if junction == "roundabout" or highway == "motorway_link" or highway == "motorway" then
impliedOneway = true
end
if onewayClass == "yes" or onewayClass == "1" or onewayClass == "true" then
result.backward_mode = 0
elseif onewayClass == "no" or onewayClass == "0" or onewayClass == "false" then
-- prevent implied oneway
elseif onewayClass == "-1" then
result.forward_mode = 0
elseif oneway == "no" or oneway == "0" or oneway == "false" then
-- prevent implied oneway
elseif cycleway and string.find(cycleway, "opposite") == 1 then
if impliedOneway then
result.forward_mode = 0
result.backward_mode = mode_normal
result.backward_speed = bicycle_speeds["cycleway"]
end
elseif cycleway_left and cycleway_tags[cycleway_left] and cycleway_right and cycleway_tags[cycleway_right] then
-- prevent implied
elseif cycleway_left and cycleway_tags[cycleway_left] then
if impliedOneway then
result.forward_mode = 0
result.backward_mode = mode_normal
result.backward_speed = bicycle_speeds["cycleway"]
end
elseif cycleway_right and cycleway_tags[cycleway_right] then
if impliedOneway then
result.forward_mode = mode_normal
result.backward_speed = bicycle_speeds["cycleway"]
result.backward_mode = 0
end
elseif oneway == "-1" then
result.forward_mode = 0
elseif oneway == "yes" or oneway == "1" or oneway == "true" or impliedOneway then
result.backward_mode = 0
end
-- pushing bikes
if bicycle_speeds[highway] or pedestrian_speeds[highway] then
if foot ~= "no" and junction ~= "roundabout" then
if result.backward_mode == 0 then
result.backward_speed = walking_speed
result.backward_mode = mode_pushing
elseif result.forward_mode == 0 then
result.forward_speed = walking_speed
result.forward_mode = mode_pushing
end
end
end
-- cycleways
if cycleway and cycleway_tags[cycleway] then
result.forward_speed = bicycle_speeds["cycleway"]
elseif cycleway_left and cycleway_tags[cycleway_left] then
result.forward_speed = bicycle_speeds["cycleway"]
elseif cycleway_right and cycleway_tags[cycleway_right] then
result.forward_speed = bicycle_speeds["cycleway"]
end
-- dismount
if bicycle == "dismount" then
result.forward_mode = mode_pushing
result.backward_mode = mode_pushing
result.forward_speed = walking_speed
result.backward_speed = walking_speed
end
-- surfaces
if surface then
surface_speed = surface_speeds[surface]
if surface_speed then
if result.forward_speed > 0 then
result.forward_speed = surface_speed
end
if result.backward_speed > 0 then
result.backward_speed = surface_speed
end
end
end
-- maxspeed
MaxSpeed.limit( result, maxspeed, maxspeed_forward, maxspeed_backward )
end
function turn_function (angle)
-- compute turn penalty as angle^2, with a left/right bias
k = turn_penalty/(90.0*90.0)
if angle>=0 then
return angle*angle*k/turn_bias
else
return angle*angle*k*turn_bias
end
end
| apache-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/mamien/objects.lua | 3 | 5469 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_lair_mamien_shared_lair_mamien = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/lair/mamien/shared_lair_mamien.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/poi_all_lair_trash_dark.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 25,
clientDataFile = "clientdata/client_shared_lair_small.cdf",
clientGameObjectType = 4,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@lair_d:mamien",
gameObjectType = 4,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 64,
objectName = "@lair_n:mamien",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1262287323,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/lair/base/shared_lair_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_lair_mamien_shared_lair_mamien, "object/tangible/lair/mamien/shared_lair_mamien.iff")
object_tangible_lair_mamien_shared_lair_mamien_jungle = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/lair/mamien/shared_lair_mamien_jungle.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/poi_all_lair_trash_dark.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 25,
clientDataFile = "clientdata/client_shared_lair_small.cdf",
clientGameObjectType = 4,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@lair_d:mamien_jungle",
gameObjectType = 4,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 64,
objectName = "@lair_n:mamien_jungle",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 222781865,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/lair/base/shared_lair_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_lair_mamien_shared_lair_mamien_jungle, "object/tangible/lair/mamien/shared_lair_mamien_jungle.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/quest/tatooine/mat_rags_greater_desert_womp_rat.lua | 1 | 1064 | mat_rags_greater_desert_womp_rat = Creature:new {
objectName = "@mob/creature_names:greater_desert_womprat",
socialGroup = "rat",
faction = "",
level = 22,
chanceHit = 0.35,
damageMin = 210,
damageMax = 220,
baseXp = 2006,
baseHAM = 5900,
baseHAMmax = 7200,
armor = 0,
resists = {10,10,35,30,10,-1,-1,-1,-1},
meatType = "meat_wild",
meatAmount = 6,
hideType = "hide_leathery",
hideAmount = 5,
boneType = "bone_mammal",
boneAmount = 4,
milk = 0,
tamingChance = 0.25,
ferocity = 6,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + STALKER,
optionsBitmask = 128,
diet = CARNIVORE,
templates = {"object/mobile/greater_desert_womp_rat.iff"},
lootGroups = {
{
groups = {
{group = "task_loot_womp_rat_hide", chance = 10000000}
},
lootChance = 10000000
}
},
weapons = {"creature_spit_small_yellow"},
conversationTemplate = "",
attacks = {
{"blindattack",""},
{"stunattack",""}
}
}
CreatureTemplates:addCreatureTemplate(mat_rags_greater_desert_womp_rat, "mat_rags_greater_desert_womp_rat")
| agpl-3.0 |
KingRaptor/Zero-K | LuaRules/Configs/StartBoxes/Lonely Oasis v1.lua | 19 | 5097 | local boxes = {
[0] = {
boxes = {
{
{5486, 2151},
{5537, 2426},
{5583, 2551},
{5648, 2630},
{5748, 2676},
{5924, 2680},
{6078, 2669},
{6165, 2687},
{6272, 2746},
{6420, 2777},
{6541, 2769},
{6668, 2694},
{6734, 2594},
{6765, 2447},
{6757, 2289},
{6719, 2132},
{6731, 2092},
{6821, 1998},
{6854, 1915},
{6853, 1594},
{6820, 1505},
{6765, 1433},
{6647, 1373},
{6593, 1312},
{6572, 1201},
{6584, 946},
{6561, 852},
{6460, 704},
{6354, 622},
{6295, 583},
{6273, 533},
{6161, 465},
{5986, 459},
{5902, 448},
{5758, 396},
{5621, 361},
{5480, 352},
{5379, 348},
{5288, 376},
{5199, 429},
{5128, 509},
{5086, 611},
{5009, 703},
{4958, 766},
{4940, 843},
{4944, 951},
{4986, 1041},
{5066, 1155},
{5175, 1256},
{5275, 1378},
{5400, 1738},
},
{
{4916, 1171},
{4757, 1138},
{4599, 1118},
{4446, 1131},
{4320, 1173},
{4227, 1244},
{4162, 1327},
{4073, 1370},
{3973, 1363},
{3899, 1313},
{3861, 1239},
{3857, 1121},
{3898, 1044},
{3969, 954},
{4096, 835},
{4124, 758},
{4121, 670},
{4089, 590},
{4013, 523},
{3924, 501},
{3837, 519},
{3675, 582},
{3531, 609},
{3393, 599},
{3268, 536},
{3061, 444},
{2812, 371},
{2654, 377},
{2262, 451},
{2117, 507},
{1998, 612},
{1888, 775},
{1862, 890},
{1870, 1021},
{1909, 1143},
{1981, 1221},
{2063, 1291},
{2166, 1432},
{2240, 1548},
{2319, 1664},
{2399, 1738},
{2498, 1761},
{2620, 1732},
{2693, 1650},
{2747, 1498},
{2799, 1408},
{2907, 1358},
{3064, 1367},
{3270, 1441},
{3613, 1617},
{3757, 1715},
{3814, 1784},
{3902, 1986},
{3980, 2125},
{4001, 2227},
{4036, 2359},
{4100, 2468},
{4289, 2619},
{4571, 2842},
{4634, 2924},
{4711, 2980},
{4814, 2999},
{4982, 2923},
{5121, 2857},
{5319, 2804},
{5441, 2754},
{5509, 2714},
{5543, 2700},
{5458, 2561},
{5422, 2427},
{5396, 2290},
{5345, 2201},
{5237, 2037},
{5116, 1784},
{5076, 1585},
{5082, 1436},
{5006, 1267},
},
},
startpoints = {
{5919, 1528},
{4583, 1335},
{2535, 606},
},
nameLong = "North-East",
nameShort = "NE",
},
[1] = {
boxes = {
{
{1664, 4973},
{1614, 4812},
{1563, 4717},
{1485, 4648},
{1413, 4617},
{1352, 4614},
{1268, 4640},
{1197, 4635},
{1141, 4579},
{1048, 4530},
{936, 4498},
{833, 4501},
{747, 4514},
{643, 4552},
{570, 4604},
{510, 4672},
{481, 4728},
{477, 4793},
{478, 4940},
{462, 5052},
{415, 5144},
{367, 5219},
{335, 5347},
{329, 5463},
{364, 5591},
{462, 5723},
{631, 5904},
{664, 5976},
{665, 6074},
{690, 6167},
{775, 6250},
{858, 6309},
{911, 6400},
{975, 6511},
{1066, 6574},
{1174, 6606},
{1259, 6643},
{1388, 6759},
{1461, 6793},
{1623, 6812},
{1758, 6813},
{1935, 6769},
{2051, 6709},
{2132, 6607},
{2153, 6467},
{2149, 6209},
{2118, 6071},
{2044, 5915},
{1945, 5756},
{1768, 5407},
},
{
{1771, 4943},
{1669, 4692},
{1675, 4620},
{1772, 4456},
{1875, 4314},
{1973, 4241},
{2101, 4208},
{2224, 4205},
{2337, 4191},
{2387, 4164},
{2476, 4152},
{2547, 4172},
{2623, 4226},
{2694, 4343},
{2783, 4454},
{2903, 4551},
{3031, 4697},
{3137, 4882},
{3236, 5076},
{3310, 5293},
{3396, 5419},
{3532, 5530},
{3766, 5639},
{3953, 5715},
{4193, 5763},
{4303, 5749},
{4412, 5672},
{4452, 5583},
{4469, 5505},
{4499, 5448},
{4570, 5389},
{4665, 5364},
{4800, 5401},
{4908, 5466},
{4995, 5571},
{5075, 5694},
{5189, 5856},
{5261, 6119},
{5253, 6242},
{5190, 6410},
{5070, 6538},
{4896, 6636},
{4663, 6697},
{4542, 6771},
{4370, 6803},
{4180, 6779},
{3941, 6692},
{3767, 6595},
{3660, 6496},
{3585, 6477},
{3518, 6499},
{3435, 6539},
{3326, 6538},
{3229, 6498},
{3161, 6410},
{3152, 6279},
{3178, 6189},
{3254, 6107},
{3267, 5996},
{3253, 5885},
{3182, 5830},
{3096, 5841},
{3031, 5919},
{2885, 6057},
{2702, 6119},
{2441, 6068},
{2238, 5966},
{2174, 5912},
{2104, 5800},
{2115, 5683},
{2032, 5239},
{1891, 5058},
},
},
startpoints = {
{1212, 5656},
{2606, 5888},
{4527, 6500},
},
nameLong = "South-West",
nameShort = "SW",
},
}
-- use a smaller box for duel
if #Spring.GetTeamList(0) == 1 and #Spring.GetTeamList(1) == 1 then
boxes[0].boxes[2] = nil
boxes[1].boxes[2] = nil
boxes[0].startpoints[2] = nil
boxes[0].startpoints[3] = nil
boxes[1].startpoints[2] = nil
boxes[1].startpoints[3] = nil
end
return boxes, { 2 }
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/pt_survey_tool_mineral.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_static_particle_pt_survey_tool_mineral = object_static_particle_shared_pt_survey_tool_mineral:new {
}
ObjectTemplates:addTemplate(object_static_particle_pt_survey_tool_mineral, "object/static/particle/pt_survey_tool_mineral.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c86804246.lua | 3 | 1819 | --スーパーバグマン
function c86804246.initial_effect(c)
c:EnableReviveLimit()
c:SetUniqueOnField(1,1,86804246)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e1:SetRange(LOCATION_HAND)
e1:SetTargetRange(POS_FACEUP_DEFENCE,0)
e1:SetCondition(c86804246.spcon)
e1:SetOperation(c86804246.spop)
c:RegisterEffect(e1)
--swap ad
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SWAP_AD)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(c86804246.adfilter)
c:RegisterEffect(e2)
end
function c86804246.spfilter(c,code)
return c:IsCode(code) and c:IsAbleToRemoveAsCost()
end
function c86804246.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c86804246.spfilter,tp,LOCATION_GRAVE,0,1,nil,87526784)
and Duel.IsExistingMatchingCard(c86804246.spfilter,tp,LOCATION_GRAVE,0,1,nil,23915499)
and Duel.IsExistingMatchingCard(c86804246.spfilter,tp,LOCATION_GRAVE,0,1,nil,50319138)
end
function c86804246.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c86804246.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,87526784)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c86804246.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,23915499)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g3=Duel.SelectMatchingCard(tp,c86804246.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,50319138)
g1:Merge(g2)
g1:Merge(g3)
Duel.Remove(g1,POS_FACEUP,REASON_COST)
end
function c86804246.adfilter(e,c)
return c:IsPosition(POS_FACEUP_ATTACK)
end
| gpl-2.0 |
Zefiros-Software/premake-core | tests/base/test_yaml.lua | 1 | 1420 | --
-- tests/base/test_yaml.lua
-- Tests the yaml API
--
-- taken from https://github.com/lubyk/yaml/blob/master/test/yaml_test.lua
local p = premake
local suite = test.declare("premake_yaml")
function suite.auto_decode()
test.isnotnil(yaml.decode)
end
function suite.parse_multiple_values()
local a, b, c = yaml.decode [[
--- 3
--- 4
--- 5
...
]]
test.isequal(3, a)
test.isequal(4, b)
test.isequal(5, c)
end
function suite.decode()
local data = yaml.decode [[
hey: June
ok: true
]]
test.isequal('June', data.hey)
test.isequal(true, data.ok)
end
function suite.disable_anchors()
local l = { x = 1 }
l.y = l
-- true == safe decodeing
local res = yaml.decode(yaml.encode(l), true)
test.isnil(res.y)
end
function suite.configure()
yaml.configure {
load_set_metatables = false,
}
end
function suite.encode_sorted()
yaml.configure {
sort_table_keys = true,
}
local x = {
dom = 1,
anna = 2,
louis = 3,
bernard = 4,
armand = 5,
simon = 6
}
test.isequal([[
---
anna: 2
armand: 5
bernard: 4
dom: 1
louis: 3
simon: 6
]], yaml.encode(x))
yaml.configure {
sort_table_keys = false,
}
end | bsd-3-clause |
Zefiros-Software/premake-core | src/base/field.lua | 15 | 9480 | ---
-- base/field.lua
--
-- Fields hold a particular bit of information about a configuration, such
-- as the language of a project or the list of files it uses. Each field has
-- a particular data "kind", which describes the structure of the information
-- it holds, such a simple string, or a list of paths.
--
-- The field.* functions here manage the definition of these fields, and the
-- accessor functions required to get, set, remove, and merge their values.
--
-- Copyright (c) 2014 Jason Perkins and the Premake project
---
local p = premake
p.field = {}
local field = p.field
-- Lists to hold all of the registered fields and data kinds
field._list = {}
field._loweredList = {}
field._sortedList = nil
field._kinds = {}
-- For historical reasons
premake.fields = field._list
-- A cache for data kind accessor functions
field._accessors = {}
---
-- Register a new field.
--
-- @param f
-- A table describing the new field, with these keys:
-- name A unique string name for the field, to be used to identify
-- the field in future operations.
-- kind The kind of values that can be stored into this field. Kinds
-- can be chained together to create more complex types, such as
-- "list:string".
--
-- In addition, any custom keys set on the field description will be
-- maintained.
--
-- @return
-- A populated field object. Or nil and an error message if the field could
-- not be registered.
---
function field.new(f)
-- Translate the old approaches to data kind definitions to the new
-- one used here. These should probably be deprecated eventually.
if f.kind:startswith("key-") then
f.kind = f.kind:sub(5)
f.keyed = true
end
if f.kind:endswith("-list") then
f.kind = f.kind:sub(1, -6)
f.list = true
end
local kind = f.kind
if kind == "object" or kind == "array" then
kind = "table"
end
if f.list then
kind = "list:" .. kind
end
if f.keyed then
kind = "keyed:" .. kind
end
-- Store the translated kind with a new name, so legacy add-on code
-- can continue to work with the old value.
f._kind = kind
-- Make sure scope is always an array; don't overwrite old value
if type(f.scope) == "table" then
f.scopes = f.scope
else
f.scopes = { f.scope }
end
-- All fields must have a valid store() function
if not field.accessor(f, "store") then
return nil, "invalid field kind '" .. f._kind .. "'"
end
field._list[f.name] = f
field._loweredList[f.name:lower()] = f
field._sortedList = nil
return f
end
---
-- Remove a previously created field definition.
---
function field.unregister(f)
field._list[f.name] = nil
field._loweredList[f.name:lower()] = nil
field._sortedList = nil
end
---
-- Returns an iterator for the list of registered fields; the
-- ordering of returned results is arbitrary.
---
function field.each()
local index
return function ()
index = next(field._list, index)
return field._list[index]
end
end
---
-- Returns an iterator for the list of registered fields; the
-- results are in a prioritized order, then alphabetized.
---
function field.eachOrdered()
if not field._sortedList then
-- no priorities yet, just alpha sort
local keys = table.keys(field._list)
table.sort(keys)
field._sortedList = {}
for i = 1, #keys do
field._sortedList[i] = field._list[keys[i]]
end
end
local i = 0
return function ()
i = i + 1
return field._sortedList[i]
end
end
---
-- Register a new kind of data for field storage.
--
-- @param tag
-- A unique name of the kind; used in the kind string in new field
-- definitions (see new(), above).
-- @param settings
-- A table containing the processor functions for the new kind. If
-- nil, no change is made to the current field settings.
-- @return
-- The settings table for the specified tag.
---
function field.kind(tag, settings)
if settings then
field._kinds[tag] = settings
end
return field._kinds[tag]
end
---
-- Build an "accessor" function to process incoming values for a field. This
-- function should be an interview question.
--
-- An accessor function takes the form of:
--
-- function (field, current, value, nextAccessor)
--
-- It receives the target field, the current value of that field, and the new
-- value that has been provided by the project script. It then returns the
-- new value for the target field.
--
-- @param f
-- The field for which an accessor should be returned.
-- @param method
-- The type of accessor function required; currently this should be one of
-- "store", "remove", or "merge" though it is possible for add-on modules to
-- extend the available methods by implementing appropriate processing
-- functions.
-- @return
-- An accessor function for the field's kind and method. May return nil
-- if no processing functions are available for the given method.
---
function field.accessor(f, method)
-- Prepare a cache for accessors using this method; each encountered
-- kind only needs to be fully processed once.
field._accessors[method] = field._accessors[method] or {}
local cache = field._accessors[method]
-- Helper function recurses over each piece of the field's data kind,
-- building an accessor function for each sequence encountered. Results
-- cached from earlier calls are reused again.
local function accessorForKind(kind)
-- I'll end up with a kind of "" when I hit the end of the string
if kind == "" then
return nil
end
-- Have I already cached a result from an earlier call?
if cache[kind] then
return cache[kind]
end
-- Split off the first piece from the rest of the kind. If the
-- incoming kind is "list:key:string", thisKind will be "list"
-- and nextKind will be "key:string".
local thisKind = kind:match('(.-):') or kind
local nextKind = kind:sub(#thisKind + 2)
-- Get the processor function for this kind. Processors perform
-- data validation and storage appropriate for the data structure.
local functions = field._kinds[thisKind]
if not functions then
return nil, "Invalid field kind '" .. thisKind .. "'"
end
local processor = functions[method]
if not processor then
return nil
end
-- Now recurse to get the accessor function for the remaining parts
-- of the field's data kind. If the kind was "list:key:string", then
-- the processor function handles the "list" part, and this function
-- takes care of the "key:string" part.
local nextAccessor = accessorForKind(nextKind)
-- Now here's the magic: wrap the processor and the next accessor
-- up together into a Matryoshka doll of function calls, each call
-- handling just it's level of the kind.
accessor = function(f, current, value)
return processor(f, current, value, nextAccessor)
end
-- And cache the result so I don't have to go through that again
cache[kind] = accessor
return accessor
end
return accessorForKind(f._kind)
end
function field.compare(f, a, b)
local processor = field.accessor(f, "compare")
if processor then
return processor(f, a, b)
else
return (a == b)
end
end
---
-- Fetch a field description by name.
---
function field.get(name)
return field._list[name] or field._loweredList[name:lower()]
end
function field.merge(f, current, value)
local processor = field.accessor(f, "merge")
if processor then
return processor(f, current, value)
else
return value
end
end
---
-- Is this a field that supports merging values together? Non-merging fields
-- can simply overwrite their values, merging fields can call merge() to
-- combine two values together.
---
function field.merges(f)
return (field.accessor(f, "merge") ~= nil)
end
---
-- Retrieve a property from a field, based on it's data kind. Allows extra
-- information to be stored along with the data kind definitions; use this
-- call to find the first value in the field's data kind chain.
---
function field.property(f, tag)
local kinds = string.explode(f._kind, ":", true)
for i, kind in ipairs(kinds) do
local value = field._kinds[kind][tag]
if value ~= nil then
return value
end
end
end
---
-- Override one of the field kind accessor functions. This works just like
-- p.override(), but applies the new function to the internal field
-- description and clears the accessor caches to make sure the change gets
-- picked up by future operations.
---
function field.override(fieldName, accessorName, func)
local kind = field.kind(fieldName)
p.override(kind, accessorName, func)
field._accessors = {}
end
function field.remove(f, current, value)
local processor = field.accessor(f, "remove")
if processor then
return processor(f, current, value)
else
return value
end
end
function field.removes(f)
return (field.accessor(f, "merge") ~= nil and field.accessor(f, "remove") ~= nil)
end
function field.store(f, current, value)
local processor = field.accessor(f, "store")
if processor then
return processor(f, current, value)
else
return value
end
end
function field.translate(f, value)
local processor = field.accessor(f, "translate")
if processor then
return processor(f, value, nil)[1]
else
return value
end
end
function field.translates(f)
return (field.accessor(f, "translate") ~= nil)
end
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/droid_interface/ddi_sorosuub_echelon_2.lua | 3 | 2340 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_droid_interface_ddi_sorosuub_echelon_2 = object_tangible_ship_components_droid_interface_shared_ddi_sorosuub_echelon_2:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_droid_interface_ddi_sorosuub_echelon_2, "object/tangible/ship/components/droid_interface/ddi_sorosuub_echelon_2.iff")
| agpl-3.0 |
mswf/MeepMeep | lua/base/animation/kikitotween.lua | 1 | 14861 | local tween = {
-- _VERSION = 'tween 2.0.0',
-- _DESCRIPTION = 'tweening for lua',
-- _URL = 'https://github.com/kikito/tween.lua',
-- _LICENSE = [[
-- MIT LICENSE
--
-- Copyright (c) 2014 Enrique García Cota, Yuichi Tateno, Emmanuel Oga
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject to
-- the following conditions:
--
-- The above copyright notice and this permission notice shall be included
-- in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-- ]]
}
-- easing
-- Adapted from https://github.com/EmmanuelOga/easing. See LICENSE.txt for credits.
-- For all easing functions:
-- t = time == how much time has to pass for the tweening to complete
-- b = begin == starting property value
-- c = change == ending - beginning
-- d = duration == running time. How much time has passed *right now*
local pow, sin, cos, pi, sqrt, abs, asin = math.pow, math.sin, math.cos, math.pi, math.sqrt, math.abs, math.asin
-- linear
local function linear(t, b, c, d) return c * t / d + b end
-- quad
local function inQuad(t, b, c, d) return c * pow(t / d, 2) + b end
local function outQuad(t, b, c, d)
t = t / d
return -c * t * (t - 2) + b
end
local function inOutQuad(t, b, c, d)
t = t / d * 2
if t < 1 then return c / 2 * pow(t, 2) + b end
return -c / 2 * ((t - 1) * (t - 3) - 1) + b
end
local function outInQuad(t, b, c, d)
if t < d / 2 then return outQuad(t * 2, b, c / 2, d) end
return inQuad((t * 2) - d, b + c / 2, c / 2, d)
end
-- cubic
local function inCubic (t, b, c, d) return c * pow(t / d, 3) + b end
local function outCubic(t, b, c, d) return c * (pow(t / d - 1, 3) + 1) + b end
local function inOutCubic(t, b, c, d)
t = t / d * 2
if t < 1 then return c / 2 * t * t * t + b end
t = t - 2
return c / 2 * (t * t * t + 2) + b
end
local function outInCubic(t, b, c, d)
if t < d / 2 then return outCubic(t * 2, b, c / 2, d) end
return inCubic((t * 2) - d, b + c / 2, c / 2, d)
end
-- quart
local function inQuart(t, b, c, d) return c * pow(t / d, 4) + b end
local function outQuart(t, b, c, d) return -c * (pow(t / d - 1, 4) - 1) + b end
local function inOutQuart(t, b, c, d)
t = t / d * 2
if t < 1 then return c / 2 * pow(t, 4) + b end
return -c / 2 * (pow(t - 2, 4) - 2) + b
end
local function outInQuart(t, b, c, d)
if t < d / 2 then return outQuart(t * 2, b, c / 2, d) end
return inQuart((t * 2) - d, b + c / 2, c / 2, d)
end
-- quint
local function inQuint(t, b, c, d) return c * pow(t / d, 5) + b end
local function outQuint(t, b, c, d) return c * (pow(t / d - 1, 5) + 1) + b end
local function inOutQuint(t, b, c, d)
t = t / d * 2
if t < 1 then return c / 2 * pow(t, 5) + b end
return c / 2 * (pow(t - 2, 5) + 2) + b
end
local function outInQuint(t, b, c, d)
if t < d / 2 then return outQuint(t * 2, b, c / 2, d) end
return inQuint((t * 2) - d, b + c / 2, c / 2, d)
end
-- sine
local function inSine(t, b, c, d) return -c * cos(t / d * (pi / 2)) + c + b end
local function outSine(t, b, c, d) return c * sin(t / d * (pi / 2)) + b end
local function inOutSine(t, b, c, d) return -c / 2 * (cos(pi * t / d) - 1) + b end
local function outInSine(t, b, c, d)
if t < d / 2 then return outSine(t * 2, b, c / 2, d) end
return inSine((t * 2) -d, b + c / 2, c / 2, d)
end
-- expo
local function inExpo(t, b, c, d)
if t == 0 then return b end
return c * pow(2, 10 * (t / d - 1)) + b - c * 0.001
end
local function outExpo(t, b, c, d)
if t == d then return b + c end
return c * 1.001 * (-pow(2, -10 * t / d) + 1) + b
end
local function inOutExpo(t, b, c, d)
if t == 0 then return b end
if t == d then return b + c end
t = t / d * 2
if t < 1 then return c / 2 * pow(2, 10 * (t - 1)) + b - c * 0.0005 end
return c / 2 * 1.0005 * (-pow(2, -10 * (t - 1)) + 2) + b
end
local function outInExpo(t, b, c, d)
if t < d / 2 then return outExpo(t * 2, b, c / 2, d) end
return inExpo((t * 2) - d, b + c / 2, c / 2, d)
end
-- circ
local function inCirc(t, b, c, d) return(-c * (sqrt(1 - pow(t / d, 2)) - 1) + b) end
local function outCirc(t, b, c, d) return(c * sqrt(1 - pow(t / d - 1, 2)) + b) end
local function inOutCirc(t, b, c, d)
t = t / d * 2
if t < 1 then return -c / 2 * (sqrt(1 - t * t) - 1) + b end
t = t - 2
return c / 2 * (sqrt(1 - t * t) + 1) + b
end
local function outInCirc(t, b, c, d)
if t < d / 2 then return outCirc(t * 2, b, c / 2, d) end
return inCirc((t * 2) - d, b + c / 2, c / 2, d)
end
-- elastic
local function calculatePAS(p,a,c,d)
p, a = p or d * 0.3, a or 0
if a < abs(c) then return p, c, p / 4 end -- p, a, s
return p, a, p / (2 * pi) * asin(c/a) -- p,a,s
end
local function inElastic(t, b, c, d, a, p)
local s
if t == 0 then return b end
t = t / d
if t == 1 then return b + c end
p,a,s = calculatePAS(p,a,c,d)
t = t - 1
return -(a * pow(2, 10 * t) * sin((t * d - s) * (2 * pi) / p)) + b
end
local function outElastic(t, b, c, d, a, p)
local s
if t == 0 then return b end
t = t / d
if t == 1 then return b + c end
p,a,s = calculatePAS(p,a,c,d)
return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p) + c + b
end
local function inOutElastic(t, b, c, d, a, p)
local s
if t == 0 then return b end
t = t / d * 2
if t == 2 then return b + c end
p,a,s = calculatePAS(p,a,c,d)
t = t - 1
if t < 0 then return -0.5 * (a * pow(2, 10 * t) * sin((t * d - s) * (2 * pi) / p)) + b end
return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p ) * 0.5 + c + b
end
local function outInElastic(t, b, c, d, a, p)
if t < d / 2 then return outElastic(t * 2, b, c / 2, d, a, p) end
return inElastic((t * 2) - d, b + c / 2, c / 2, d, a, p)
end
-- back
local function inBack(t, b, c, d, s)
s = s or 1.70158
t = t / d
return c * t * t * ((s + 1) * t - s) + b
end
local function outBack(t, b, c, d, s)
s = s or 1.70158
t = t / d - 1
return c * (t * t * ((s + 1) * t + s) + 1) + b
end
local function inOutBack(t, b, c, d, s)
s = (s or 1.70158) * 1.525
t = t / d * 2
if t < 1 then return c / 2 * (t * t * ((s + 1) * t - s)) + b end
t = t - 2
return c / 2 * (t * t * ((s + 1) * t + s) + 2) + b
end
local function outInBack(t, b, c, d, s)
if t < d / 2 then return outBack(t * 2, b, c / 2, d, s) end
return inBack((t * 2) - d, b + c / 2, c / 2, d, s)
end
-- bounce
local function outBounce(t, b, c, d)
t = t / d
if t < 1 / 2.75 then return c * (7.5625 * t * t) + b end
if t < 2 / 2.75 then
t = t - (1.5 / 2.75)
return c * (7.5625 * t * t + 0.75) + b
elseif t < 2.5 / 2.75 then
t = t - (2.25 / 2.75)
return c * (7.5625 * t * t + 0.9375) + b
end
t = t - (2.625 / 2.75)
return c * (7.5625 * t * t + 0.984375) + b
end
local function inBounce(t, b, c, d) return c - outBounce(d - t, 0, c, d) + b end
local function inOutBounce(t, b, c, d)
if t < d / 2 then return inBounce(t * 2, 0, c, d) * 0.5 + b end
return outBounce(t * 2 - d, 0, c, d) * 0.5 + c * .5 + b
end
local function outInBounce(t, b, c, d)
if t < d / 2 then return outBounce(t * 2, b, c / 2, d) end
return inBounce((t * 2) - d, b + c / 2, c / 2, d)
end
tween.easing = {
linear = linear,
inQuad = inQuad, outQuad = outQuad, inOutQuad = inOutQuad, outInQuad = outInQuad,
inCubic = inCubic, outCubic = outCubic, inOutCubic = inOutCubic, outInCubic = outInCubic,
inQuart = inQuart, outQuart = outQuart, inOutQuart = inOutQuart, outInQuart = outInQuart,
inQuint = inQuint, outQuint = outQuint, inOutQuint = inOutQuint, outInQuint = outInQuint,
inSine = inSine, outSine = outSine, inOutSine = inOutSine, outInSine = outInSine,
inExpo = inExpo, outExpo = outExpo, inOutExpo = inOutExpo, outInExpo = outInExpo,
inCirc = inCirc, outCirc = outCirc, inOutCirc = inOutCirc, outInCirc = outInCirc,
inElastic = inElastic, outElastic = outElastic, inOutElastic = inOutElastic, outInElastic = outInElastic,
inBack = inBack, outBack = outBack, inOutBack = inOutBack, outInBack = outInBack,
inBounce = inBounce, outBounce = outBounce, inOutBounce = inOutBounce, outInBounce = outInBounce
}
-- private stuff
local function copyTables(destination, keysTable, valuesTable)
valuesTable = valuesTable or keysTable
local mt = getmetatable(keysTable)
if mt and getmetatable(destination) == nil then
setmetatable(destination, mt)
end
for k,v in pairs(keysTable) do
if type(v) == 'table' then
destination[k] = copyTables({}, v, valuesTable[k])
else
destination[k] = valuesTable[k]
end
end
return destination
end
local function checkSubjectAndTargetRecursively(subject, target, path)
path = path or {}
local targetType, newPath
for k,targetValue in pairs(target) do
targetType, newPath = type(targetValue), copyTables({}, path)
table.insert(newPath, tostring(k))
if targetType == 'number' then
assert(type(subject[k]) == 'number', "Parameter '" .. table.concat(newPath,'/') .. "' is missing from subject or isn't a number")
elseif targetType == 'table' then
checkSubjectAndTargetRecursively(subject[k], targetValue, newPath)
else
assert(targetType == 'number', "Parameter '" .. table.concat(newPath,'/') .. "' must be a number or table of numbers")
end
end
end
local function checkNewParams(duration, subject, target, easing)
assert(type(duration) == 'number' and duration > 0, "duration must be a positive number. Was " .. tostring(duration))
local tsubject = type(subject)
assert(tsubject == 'table' or tsubject == 'userdata', "subject must be a table or userdata. Was " .. tostring(subject))
assert(type(target)== 'table', "target must be a table. Was " .. tostring(target))
assert(type(easing)=='function', "easing must be a function. Was " .. tostring(easing))
checkSubjectAndTargetRecursively(subject, target)
end
local function getEasingFunction(easing)
easing = easing or "linear"
if type(easing) == 'string' then
local name = easing
easing = tween.easing[name]
if type(easing) ~= 'function' then
error("The easing function name '" .. name .. "' is invalid")
end
end
return easing
end
local function performEasingOnSubject(subject, target, initial, clock, duration, easing)
local t,b,c,d
for k,v in pairs(target) do
if type(v) == 'table' then
performEasingOnSubject(subject[k], v, initial[k], clock, duration, easing)
else
-- Steb: I forgot what this was for, but it doesn't do anything so I disabled it
-- if type(v) == "function" then
-- v = v(subject)
-- end
t,b,c,d = clock, initial[k], v - initial[k], duration
if (type(k) == "function") then
result = easing(t,b,c,d)
k(subject, result, result, result)
else
subject[k] = easing(t,b,c,d)
end
end
end
end
-- Tween methods
local Tween = {}
local Tween_mt = {__index = Tween}
function Tween:set(clock)
-- assert(type(clock) == 'number', "clock must be a positive number or 0")
self.clock = clock
if clock <= 0 then
self.clock = 0
-- copyTables(self.subject, self.initial)
performEasingOnSubject(self.subject, self.target, self.initial, clock, self.duration, self.easing)
elseif clock >= self.duration then -- the tween has expired
self.clock = self.duration
-- copyTables(self.subject, self.target)
performEasingOnSubject(self.subject, self.target, self.initial, clock, self.duration, self.easing)
else
performEasingOnSubject(self.subject, self.target, self.initial, clock, self.duration, self.easing)
end
return clock >= self.duration
end
function Tween:reset()
return self:set(0)
end
function Tween:update(dt)
-- assert(type(dt) == 'number', "dt must be a number")
local isDone = self:set(self.clock + dt)
do
local onUpdate = self.onUpdate
local onUpdateCount = #onUpdate
local ratio = self.easing(self.clock,0,1, self.duration)
for i=1, onUpdateCount do
onUpdate[i](self, dt, ratio)
end
end
return isDone
end
function Tween:addOnUpdate(func)
table.insert(self.onUpdate, func)
return self
end
function Tween:addOnComplete(func)
table.insert(self.onComplete, func)
return self
end
function Tween:complete()
local onComplete = self.onComplete
for i=1, #onComplete do
onComplete[i](self)
end
end
function Tween:setEasing(easing)
self.easing = getEasingFunction(easing)
return self
end
-- Public interface
local function checkEntityTargets(subject, initial, target)
local keysToRemove = {}
for k, v in pairs(target) do
if (type(subject[k]) == "function") then
local stripped = k:sub(4)
local setter = subject["set"..stripped]
local getter = subject["get"..stripped]
table.insert(keysToRemove, {k, v, setter})
initial[k] = nil
initial[setter] = getter(subject)
end
end
for i=1, #keysToRemove do
target[keysToRemove[i][1]] = nil
target[keysToRemove[i][3]] = keysToRemove[i][2]
end
end
-- function tween.new(duration, subject, target, easing)
function tween.new(duration, subject, target)
-- easing = getEasingFunction(easing)
-- checkNewParams(duration, subject, target, easing)
local initial = copyTables({},target,subject)
checkEntityTargets(subject, initial, target)
return setmetatable({
duration = duration,
subject = subject,
target = target,
-- easing = easing,
easing = tween.easing.linear,
onUpdate = {},
onComplete= {},
initial = initial,
clock = 0
}, Tween_mt)
end
return tween
-- local entity_tween_mt = {
-- __index = function(table, key)
-- local getter = "get" .. k:gsub("^%l", string.upper)
-- if (subject[getter]) then
-- return subject[getter]()
-- else
-- return nil
-- end
-- end,
-- __newindex = function(table, key, value)
-- local setter = "set" .. k:gsub("^%l", string.upper)
-- if (subject[setter]) then
-- subject[setter](value)
-- else
-- return nil
-- end
-- end
-- }
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/luke_skywalker.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_luke_skywalker = object_mobile_shared_luke_skywalker:new {
}
ObjectTemplates:addTemplate(object_mobile_luke_skywalker, "object/mobile/luke_skywalker.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/corellia/corl_imprv_bridge_sm_s02.lua | 3 | 2288 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_corellia_corl_imprv_bridge_sm_s02 = object_static_structure_corellia_shared_corl_imprv_bridge_sm_s02:new {
}
ObjectTemplates:addTemplate(object_static_structure_corellia_corl_imprv_bridge_sm_s02, "object/static/structure/corellia/corl_imprv_bridge_sm_s02.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c72258771.lua | 3 | 2560 | --コアキメイル・ヴァラファール
function c72258771.initial_effect(c)
--cost
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c72258771.mtcon)
e1:SetOperation(c72258771.mtop)
c:RegisterEffect(e1)
--summon with 1 tribute
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(72258771,2))
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_SUMMON_PROC)
e2:SetCondition(c72258771.otcon)
e2:SetOperation(c72258771.otop)
e2:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e2)
--pierce
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e3)
--indes
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetValue(c72258771.efilter)
c:RegisterEffect(e4)
end
function c72258771.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c72258771.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c72258771.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c72258771.cfilter1,tp,LOCATION_HAND,0,nil)
local select=1
if g1:GetCount()>0 then
select=Duel.SelectOption(tp,aux.Stringid(72258771,0),aux.Stringid(72258771,1))
else
select=Duel.SelectOption(tp,aux.Stringid(72258771,1))+1
end
if select==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=g1:Select(tp,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
else
Duel.Destroy(e:GetHandler(),REASON_COST)
end
end
function c72258771.otfilter(c,tp)
return c:IsSetCard(0x1d) and (c:IsControler(tp) or c:IsFaceup())
end
function c72258771.otcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
return c:GetLevel()>6 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.GetTributeCount(c,mg)>0
end
function c72258771.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c72258771.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
function c72258771.efilter(e,re,rp)
return re:IsActiveType(TYPE_TRAP)
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c57046845.lua | 3 | 1214 | --剣聖-ネイキッド・ギア・フリード
function c57046845.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(57046845,0))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_EQUIP)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetTarget(c57046845.destg)
e2:SetOperation(c57046845.desop)
c:RegisterEffect(e2)
end
function c57046845.destg(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:IsDestructable() end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c57046845.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/veteran_reward/resource.lua | 3 | 2244 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_veteran_reward_resource = object_tangible_veteran_reward_shared_resource:new {
gameObjectType = 8388614
}
ObjectTemplates:addTemplate(object_tangible_veteran_reward_resource, "object/tangible/veteran_reward/resource.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Fort_Ghelsba/npcs/Treasure_Chest.lua | 5 | 2592 | -----------------------------------
-- Area: Fort Ghelsba
-- NPC: Treasure Chest
-- @zone 141
-----------------------------------
package.loaded["scripts/zones/Fort_Ghelsba/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Fort_Ghelsba/TextIDs");
local TreasureType = "Chest";
local TreasureLvL = 53;
local TreasureMinLvL = 43;
function onTrade(player,npc,trade)
-- trade:hasItemQty(1024,1); -- Treasure Key
-- trade:hasItemQty(1115,1); -- Skeleton Key
-- trade:hasItemQty(1023,1); -- Living Key
-- trade:hasItemQty(1022,1); -- Thief's Tools
local questItemNeeded = 0;
-- Player traded a key.
if ((trade:hasItemQty(1024,1) or trade:hasItemQty(1115,1) or trade:hasItemQty(1023,1) or trade:hasItemQty(1022,1)) and trade:getItemCount() == 1) then
local zone = player:getZoneID();
local pack = openChance(player,npc,trade,TreasureType,TreasureLvL,TreasureMinLvL,questItemNeeded);
local success = 0;
if (pack[2] ~= nil) then
player:messageSpecial(pack[2]);
success = pack[1];
else
success = pack[1];
end
if (success ~= -2) then
player:tradeComplete();
if (math.random() <= success) then
-- Succeded to open the coffer
player:messageSpecial(CHEST_UNLOCKED);
player:setVar("["..zone.."]".."Treasure_"..TreasureType,os.time() + math.random(CHEST_MIN_ILLUSION_TIME,CHEST_MAX_ILLUSION_TIME));
local loot = chestLoot(zone,npc);
-- print("loot array: "); -- debug
-- print("[1]", loot[1]); -- debug
-- print("[2]", loot[2]); -- debug
if (loot[1]=="gil") then
player:addGil(loot[2]*GIL_RATE);
player:messageSpecial(GIL_OBTAINED,loot[2]*GIL_RATE);
else
-- Item
player:addItem(loot[2]);
player:messageSpecial(ITEM_OBTAINED,loot[2]);
end
UpdateTreasureSpawnPoint(npc:getID());
end
end
end
end;
function onTrigger(player,npc)
player:messageSpecial(CHEST_LOCKED,1024);
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_ith_pants_formal_10.lua | 2 | 3499 | --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_pants_formal_10 = object_draft_schematic_clothing_shared_clothing_ith_pants_formal_10:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Ithorian Buckle Pants",
craftingToolTab = 8, -- (See DraftSchemticImplementation.h)
complexity = 17,
size = 3,
xpType = "crafting_clothing_general",
xp = 80,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"body", "binding_and_reinforcement", "hardware", "lining"},
ingredientSlotType = {1, 0, 1, 1},
resourceTypes = {"object/tangible/component/clothing/shared_synthetic_cloth.iff", "petrochem_inert", "object/tangible/component/clothing/shared_metal_fasteners.iff", "object/tangible/component/clothing/shared_synthetic_cloth.iff"},
resourceQuantities = {1, 40, 1, 1},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/ithorian/ith_pants_s10.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_ith_pants_formal_10, "object/draft_schematic/clothing/clothing_ith_pants_formal_10.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/weaponskills/knights_of_round.lua | 7 | 1600 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available without aftermath as a latent effect on Corbenic Sword.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%TP
-- 3.00 3.00 3.00
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");
-----------------------------------
function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar)
local params = {};
params.numHits = 1;
params.ftp100 = 3; params.ftp200 = 3; params.ftp300 = 3;
params.str_wsc = 0.4; params.dex_wsc = 0.0; params.vit_wsc = 0.0; params.agi_wsc = 0.0; params.int_wsc = 0.0; params.mnd_wsc = 0.4; params.chr_wsc = 0.0;
params.crit100 = 0.0; params.crit200 = 0.0; params.crit300 = 0.0;
params.canCrit = false;
params.acc100 = 0.0; params.acc200= 0.0; params.acc300= 0.0;
params.atkmulti = 1;
if (USE_ADOULIN_WEAPON_SKILL_CHANGES == true) then
params.ftp100 = 5; params.ftp200 = 5; params.ftp300 = 5;
end
local damage, criticalHit, tpHits, extraHits = doPhysicalWeaponskill(player, target, wsID, tp, primary, action, taChar, params);
return tpHits, extraHits, criticalHit, damage;
end; | gpl-3.0 |
DailyShana/ygopro-scripts | c99188141.lua | 3 | 1140 | --大革命返し
function c99188141.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c99188141.condition)
e1:SetTarget(c99188141.target)
e1:SetOperation(c99188141.activate)
c:RegisterEffect(e1)
end
function c99188141.condition(e,tp,eg,ep,ev,re,r,rp)
if (not re:IsActiveType(TYPE_MONSTER) and not re:IsHasType(EFFECT_TYPE_ACTIVATE))
or not Duel.IsChainNegatable(ev) then return false end
local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY)
return ex and tg~=nil and tc+tg:FilterCount(Card.IsOnField,nil)-tg:GetCount()>1
end
function c99188141.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return re:GetHandler():IsAbleToRemove() end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end
end
function c99188141.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
end
| gpl-2.0 |
kubrickfr/darktable | src/external/LuaAutoC/lautoc.lua | 18 | 2473 | #!/usr/bin/env lua
-- LuaAutoC - Automagically use C Functions and Structs with the Lua API
-- https://github.com/orangeduck/LuaAutoC
-- Daniel Holden - contact@theorangeduck.com
-- Licensed under BSD
-- Findall Function
function findall(text, pattern)
local matches = {}
for word in string.gmatch(text, pattern) do
table.insert(matches, word)
end
return matches
end
-- String Split Function
function string:split(sep)
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
self:gsub(pattern, function(c) fields[#fields+1] = c end)
return fields
end
-- Check Arguments
if #arg ~= 1 then
print('Usage: lua lautoc.lua <header.h>')
return
end
-- Open Header
local file = io.open(arg[1], 'r')
if file == nil then
print(string.format('Error: Cannot load file "%s"', arg[1]))
return
end
local text = file:read('*all')
io.close(file)
-- Remove all newlines
local text = string.gsub(text, "\r", "")
local text = string.gsub(text, "\n", "")
-- Find all typedefs, structs, and functions
typestrts = findall(text, "typedef struct {.-} %w-;")
typeenums = findall(text, "typedef enum {.-} %w-;")
funcs = findall(text, "[%w%*]- [%w_]-%(.-%);")
-- Output Typedef Enum Code
for k,v in pairs(typeenums) do
local _, _, members, typename = string.find(v, "typedef enum {(.-)} (%w-);")
print(string.format("luaA_enum(%s);", typename))
for _, mem in pairs(members:split(",")) do
local _, _, name = string.find(mem, "(%w+)")
print(string.format("luaA_enum_value(%s, %s);", typename, name))
end
print("")
end
-- Output Typedef Struct Code
for k,v in pairs(typestrts) do
local _, _, members, typename = string.find(v, "typedef struct {(.-)} (%w-);")
print(string.format("luaA_struct(%s);", typename))
for _, mem in pairs(members:split(";")) do
local meminfo = mem:split(" ")
print(string.format("luaA_struct_member(%s, %s, %s);", typename, meminfo[2], meminfo[1]))
end
print("")
end
-- Output Function Code
for k,v in pairs(funcs) do
local _, _, typename, name, args = string.find(v, "([%w%*]-) ([%w_]-)%((.-)%);")
local argtypes = {}
for _, arg in pairs(args:split(",")) do
table.insert(argtypes, arg:split(" ")[1])
end
local fstring = string.format("luaA_function(%s, %s", name, typename)
for _, v in pairs(argtypes) do
local fstring = fstring .. string.format(", %s", v)
end
local fstring = fstring .. ");"
print(fstring)
end
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_stormtrooper_white_gold.lua | 3 | 2240 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_stormtrooper_white_gold = object_mobile_shared_dressed_stormtrooper_white_gold:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_stormtrooper_white_gold, "object/mobile/dressed_stormtrooper_white_gold.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/hat/serverobjects.lua | 3 | 3200 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/wearables/hat/hat_chef_s01.lua")
includeFile("tangible/wearables/hat/hat_chef_s02.lua")
includeFile("tangible/wearables/hat/hat_imp_s01.lua")
includeFile("tangible/wearables/hat/hat_s02.lua")
includeFile("tangible/wearables/hat/hat_s04.lua")
includeFile("tangible/wearables/hat/hat_s10.lua")
includeFile("tangible/wearables/hat/hat_s12.lua")
includeFile("tangible/wearables/hat/hat_s13.lua")
includeFile("tangible/wearables/hat/hat_s14.lua")
includeFile("tangible/wearables/hat/hat_twilek_s01.lua")
includeFile("tangible/wearables/hat/hat_twilek_s02.lua")
includeFile("tangible/wearables/hat/hat_twilek_s03.lua")
includeFile("tangible/wearables/hat/hat_twilek_s04.lua")
includeFile("tangible/wearables/hat/hat_twilek_s05.lua")
includeFile("tangible/wearables/hat/nightsister_hat_s01.lua")
includeFile("tangible/wearables/hat/nightsister_hat_s02.lua")
includeFile("tangible/wearables/hat/nightsister_hat_s03.lua")
includeFile("tangible/wearables/hat/singing_mountain_clan_hat_s01.lua")
includeFile("tangible/wearables/hat/singing_mountain_clan_hat_s02.lua")
includeFile("tangible/wearables/hat/singing_mountain_clan_mask_s01.lua")
| agpl-3.0 |
Riverlance/kingdom-age-game-linux | modules/gamelib/creature.lua | 1 | 4620 | -- @docclass Creature
-- @docconsts @{
SkullNone = 0
SkullYellow = 1
SkullGreen = 2
SkullWhite = 3
SkullRed = 4
SkullBlack = 5
SkullOrange = 6
SkullProtected = 7
ShieldNone = 0
ShieldWhiteYellow = 1
ShieldWhiteBlue = 2
ShieldBlue = 3
ShieldYellow = 4
ShieldBlueSharedExp = 5
ShieldYellowSharedExp = 6
ShieldBlueNoSharedExpBlink = 7
ShieldYellowNoSharedExpBlink = 8
ShieldBlueNoSharedExp = 9
ShieldYellowNoSharedExp = 10
EmblemNone = 0
EmblemGreen = 1
EmblemRed = 2
EmblemBlue = 3
NpcIconNone = 0
NpcIconChat = 1
NpcIconTrade = 2
NpcIconQuest = 3
NpcIconTradeQuest = 4
SpecialIconNone = 0
SpecialIconWanted = 1
-- @}
function getNextSkullId(skullId)
if skullId == SkullRed or skullId == SkullBlack then
return SkullBlack
end
return SkullRed
end
function getSkullImagePath(skullId)
local path
if skullId == SkullYellow then
path = '/images/game/skulls/skull_yellow'
elseif skullId == SkullGreen then
path = '/images/game/skulls/skull_green'
elseif skullId == SkullWhite then
path = '/images/game/skulls/skull_white'
elseif skullId == SkullRed then
path = '/images/game/skulls/skull_red'
elseif skullId == SkullBlack then
path = '/images/game/skulls/skull_black'
elseif skullId == SkullOrange then
path = '/images/game/skulls/skull_orange'
elseif skullId == SkullProtected then
path = '/images/game/skulls/skull_protected'
end
return path
end
function getShieldImagePathAndBlink(shieldId)
local path, blink
if shieldId == ShieldWhiteYellow then
path, blink = '/images/game/shields/shield_yellow_white', false
elseif shieldId == ShieldWhiteBlue then
path, blink = '/images/game/shields/shield_blue_white', false
elseif shieldId == ShieldBlue then
path, blink = '/images/game/shields/shield_blue', false
elseif shieldId == ShieldYellow then
path, blink = '/images/game/shields/shield_yellow', false
elseif shieldId == ShieldBlueSharedExp then
path, blink = '/images/game/shields/shield_blue_shared', false
elseif shieldId == ShieldYellowSharedExp then
path, blink = '/images/game/shields/shield_yellow_shared', false
elseif shieldId == ShieldBlueNoSharedExpBlink then
path, blink = '/images/game/shields/shield_blue_not_shared', true
elseif shieldId == ShieldYellowNoSharedExpBlink then
path, blink = '/images/game/shields/shield_yellow_not_shared', true
elseif shieldId == ShieldBlueNoSharedExp then
path, blink = '/images/game/shields/shield_blue_not_shared', false
elseif shieldId == ShieldYellowNoSharedExp then
path, blink = '/images/game/shields/shield_yellow_not_shared', false
elseif shieldId == ShieldGray then
path, blink = '/images/game/shields/shield_gray', false
end
return path, blink
end
function getEmblemImagePath(emblemId)
local path
if emblemId == EmblemGreen then
path = '/images/game/emblems/emblem_green'
elseif emblemId == EmblemRed then
path = '/images/game/emblems/emblem_red'
elseif emblemId == EmblemBlue then
path = '/images/game/emblems/emblem_blue'
elseif emblemId == EmblemMember then
path = '/images/game/emblems/emblem_member'
elseif emblemId == EmblemOther then
path = '/images/game/emblems/emblem_other'
end
return path
end
function getIconImagePath(iconId)
local path
if iconId == NpcIconChat then
path = '/images/game/npcicons/icon_chat'
elseif iconId == NpcIconTrade then
path = '/images/game/npcicons/icon_trade'
elseif iconId == NpcIconQuest then
path = '/images/game/npcicons/icon_quest'
elseif iconId == NpcIconTradeQuest then
path = '/images/game/npcicons/icon_tradequest'
end
return path
end
function getSpecialIconPath(iconId)
local path
if iconId == SpecialIconWanted then
path = '/images/game/specialicons/wanted'
end
return path
end
function Creature:onSkullChange(skullId, oldSkull)
local imagePath = getSkullImagePath(skullId)
if imagePath then
self:setSkullTexture(imagePath)
end
end
function Creature:onShieldChange(shieldId)
local imagePath, blink = getShieldImagePathAndBlink(shieldId)
if imagePath then
self:setShieldTexture(imagePath, blink)
end
end
function Creature:onEmblemChange(emblemId)
local imagePath = getEmblemImagePath(emblemId)
if imagePath then
self:setEmblemTexture(imagePath)
end
end
function Creature:onIconChange(iconId)
local imagePath = getIconImagePath(iconId)
if imagePath then
self:setIconTexture(imagePath)
end
end
function Creature:onSpecialIconChange(iconId)
local imagePath = getSpecialIconPath(iconId)
if imagePath then
self:setSpecialIconTexture(imagePath)
end
end
| mit |
DailyShana/ygopro-scripts | c67616300.lua | 3 | 3631 | --チキンレース
function c67616300.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--change damage
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_FZONE)
e2:SetCode(EFFECT_CHANGE_DAMAGE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,0)
e2:SetCondition(c67616300.damcon1)
e2:SetValue(0)
c:RegisterEffect(e2)
local e7=e2:Clone()
e7:SetCode(EFFECT_NO_EFFECT_DAMAGE)
c:RegisterEffect(e7)
local e3=e2:Clone()
e3:SetTargetRange(0,1)
e3:SetCondition(c67616300.damcon2)
c:RegisterEffect(e3)
local e8=e3:Clone()
e8:SetCode(EFFECT_NO_EFFECT_DAMAGE)
c:RegisterEffect(e8)
--draw
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(67616300,0))
e4:SetCategory(CATEGORY_DRAW)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_FZONE)
e4:SetProperty(EFFECT_FLAG_BOTH_SIDE+EFFECT_FLAG_PLAYER_TARGET)
e4:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e4:SetCost(c67616300.effcost)
e4:SetTarget(c67616300.drtg)
e4:SetOperation(c67616300.drop)
c:RegisterEffect(e4)
--destroy
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(67616300,1))
e5:SetCategory(CATEGORY_DESTROY)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_FZONE)
e5:SetProperty(EFFECT_FLAG_BOTH_SIDE)
e5:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e5:SetCost(c67616300.effcost)
e5:SetTarget(c67616300.destg)
e5:SetOperation(c67616300.desop)
c:RegisterEffect(e5)
--recover
local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(67616300,2))
e6:SetCategory(CATEGORY_RECOVER)
e6:SetType(EFFECT_TYPE_IGNITION)
e6:SetRange(LOCATION_FZONE)
e6:SetProperty(EFFECT_FLAG_BOTH_SIDE+EFFECT_FLAG_PLAYER_TARGET)
e6:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e6:SetCost(c67616300.effcost)
e6:SetTarget(c67616300.rectg)
e6:SetOperation(c67616300.recop)
c:RegisterEffect(e6)
end
function c67616300.damcon1(e)
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)<Duel.GetLP(1-tp)
end
function c67616300.damcon2(e)
local tp=e:GetHandlerPlayer()
return Duel.GetLP(1-tp)<Duel.GetLP(tp)
end
function c67616300.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c67616300.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
Duel.SetChainLimit(aux.FALSE)
end
function c67616300.drop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
function c67616300.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDestructable() end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0)
Duel.SetChainLimit(aux.FALSE)
end
function c67616300.desop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Destroy(e:GetHandler(),REASON_EFFECT)
end
function c67616300.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,1-tp,1000)
Duel.SetChainLimit(aux.FALSE)
end
function c67616300.recop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Recover(p,d,REASON_EFFECT)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_shoes_casual_07.lua | 2 | 3446 | --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_shoes_casual_07 = object_draft_schematic_clothing_shared_clothing_shoes_casual_07:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Sandals",
craftingToolTab = 8, -- (See DraftSchemticImplementation.h)
complexity = 17,
size = 3,
xpType = "crafting_clothing_general",
xp = 90,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {2, 1},
customizationStringNames = {"/private/index_color_1", "/private/index_color_2"},
customizationDefaults = {10, 33},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"boots", "binding_and_hardware", "liner", "sole"},
ingredientSlotType = {0, 1, 0, 1},
resourceTypes = {"fiberplast", "object/tangible/component/clothing/shared_metal_fasteners.iff", "hide", "object/tangible/component/clothing/shared_shoe_sole.iff"},
resourceQuantities = {30, 1, 10, 1},
contribution = {100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/shoes/shoes_s07.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_shoes_casual_07, "object/draft_schematic/clothing/clothing_shoes_casual_07.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_ith_shirt_casual_01.lua | 2 | 3201 | --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_shirt_casual_01 = object_draft_schematic_clothing_shared_clothing_ith_shirt_casual_01:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Ithorian Long Sweater",
craftingToolTab = 8, -- (See DraftSchemticImplementation.h)
complexity = 9,
size = 3,
xpType = "crafting_general",
xp = 60,
assemblySkill = "general_assembly",
experimentingSkill = "general_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"body", "binding_and_hardware"},
ingredientSlotType = {0, 0},
resourceTypes = {"fiberplast", "petrochem_inert_polymer"},
resourceQuantities = {25, 5},
contribution = {100, 100},
targetTemplate = "object/tangible/wearables/ithorian/ith_shirt_s01.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_ith_shirt_casual_01, "object/draft_schematic/clothing/clothing_ith_shirt_casual_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/rori/garyns_vigo.lua | 1 | 1228 | garyns_vigo = Creature:new {
objectName = "@mob/creature_names:garyn_vigo",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "garyn",
faction = "garyn",
level = 32,
chanceHit = 0.4,
damageMin = 305,
damageMax = 320,
baseXp = 3279,
baseHAM = 8600,
baseHAMmax = 10500,
armor = 0,
resists = {25,25,0,0,-1,0,0,-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_garyn_vigo_bith_male_01.iff",
"object/mobile/dressed_garyn_vigo_bith_female_01.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 2000000},
{group = "wearables_common", chance = 2000000},
{group = "carbines", chance = 2000000},
{group = "tailor_components", chance = 2000000},
{group = "loot_kit_parts", chance = 2000000}
}
}
},
weapons = {"pirate_weapons_medium"},
conversationTemplate = "",
reactionStf = "@npc_reaction/slang",
attacks = merge(brawlermaster,marksmanmaster)
}
CreatureTemplates:addCreatureTemplate(garyns_vigo, "garyns_vigo")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_commoner_old_zabrak_female_01.lua | 3 | 2264 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_commoner_old_zabrak_female_01 = object_mobile_shared_dressed_commoner_old_zabrak_female_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_commoner_old_zabrak_female_01, "object/mobile/dressed_commoner_old_zabrak_female_01.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c39357122.lua | 3 | 1116 | --真紅眼の凶雷皇-エビル・デーモン
function c39357122.initial_effect(c)
aux.EnableDualAttribute(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(aux.IsDualState)
e1:SetTarget(c39357122.destg)
e1:SetOperation(c39357122.desop)
c:RegisterEffect(e1)
end
function c39357122.filter(c,atk)
return c:IsFaceup() and c:GetDefence()<atk and c:IsDestructable()
end
function c39357122.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local atk=e:GetHandler():GetAttack()
if chk==0 then return Duel.IsExistingMatchingCard(c39357122.filter,tp,0,LOCATION_MZONE,1,nil,atk) end
local g=Duel.GetMatchingGroup(c39357122.filter,tp,0,LOCATION_MZONE,nil,atk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c39357122.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
local atk=c:GetAttack()
local g=Duel.GetMatchingGroup(c39357122.filter,tp,0,LOCATION_MZONE,nil,atk)
Duel.Destroy(g,REASON_EFFECT)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/commands/invulnerable.lua | 4 | 2129 | --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
InvulnerableCommand = {
name = "invulnerable",
}
AddCommand(InvulnerableCommand)
| agpl-3.0 |
pjm0616/meowbot-pub | modules/lua/test.lua | 1 | 1224 | --[[
meowbot
Copyright (C) 2008-2009 Park Jeong Min <pjm0616_at_gmail_d0t_com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]--
-- 타이머 예제
function luatest_cb(isrv, who, msginfo, mdest, cmd, carg)
local bot = isrv:getbot()
isrv:privmsg(mdest, '5초 후에 그대로 말하겠다에요')
bot:add_timer('test',
function(bot, tmrname, userdata)
userdata.isrv:privmsg(userdata.chan, userdata.v)
end, 5000, {isrv=isrv, chan = msginfo:getchan(), v=carg}, 'once')
end
function init(bot)
bot:register_cmd('luatest', luatest_cb);
end
function cleanup(bot)
bot:unregister_cmd('luatest');
bot:del_timer('test')
end
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/bothan/hair_bothan_male_s06.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_s06 = object_tangible_hair_bothan_shared_hair_bothan_male_s06:new {
}
ObjectTemplates:addTemplate(object_tangible_hair_bothan_hair_bothan_male_s06, "object/tangible/hair/bothan/hair_bothan_male_s06.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Pagdako.lua | 5 | 1057 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Pagdako
-- Quest NPC
-- pos -200 -6 -93
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
if (player:getQuestStatus(CRYSTAL_WAR,FIRES_OF_DISCONTENT) == QUEST_ACCEPTED) then
if (player:getVar("FiresOfDiscProg") == 0) then
player:startEvent(122);
else
player:startEvent(123);
end
else
player:startEvent(106);
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 == 122) then
player:setVar("FiresOfDiscProg",1);
end
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/general/poi_nboo_corral_half_64x64_s03.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_static_structure_general_poi_nboo_corral_half_64x64_s03 = object_static_structure_general_shared_poi_nboo_corral_half_64x64_s03:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_poi_nboo_corral_half_64x64_s03, "object/static/structure/general/poi_nboo_corral_half_64x64_s03.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_tatooine_dune_stalker_brawler.lua | 3 | 2264 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_tatooine_dune_stalker_brawler = object_mobile_shared_dressed_tatooine_dune_stalker_brawler:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_dune_stalker_brawler, "object/mobile/dressed_tatooine_dune_stalker_brawler.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/chemistry/medpack_wound_health_b.lua | 2 | 3622 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_chemistry_medpack_wound_health_b = object_draft_schematic_chemistry_shared_medpack_wound_health_b:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Health Wound Medpack - B",
craftingToolTab = 64, -- (See DraftSchemticImplementation.h)
complexity = 10,
size = 4,
xpType = "crafting_medicine_general",
xp = 55,
assemblySkill = "medicine_assembly",
experimentingSkill = "medicine_experimentation",
customizationSkill = "medicine_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n", "craft_chemical_ingredients_n"},
ingredientTitleNames = {"organic_element", "inorganic_element", "delivery_medium", "drug_duration_compound", "drug_strenth_compound_2"},
ingredientSlotType = {0, 0, 1, 1, 1},
resourceTypes = {"organic", "inorganic", "object/tangible/component/chemistry/shared_solid_delivery_shell.iff", "object/tangible/component/chemistry/shared_release_mechanism_duration.iff", "object/tangible/component/chemistry/shared_biologic_effect_controller.iff"},
resourceQuantities = {14, 14, 1, 1, 1},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/medicine/crafted/medpack_wound_health_b.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_chemistry_medpack_wound_health_b, "object/draft_schematic/chemistry/medpack_wound_health_b.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/trandoshan/hair_trandoshan_female_s13.lua | 3 | 2292 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_hair_trandoshan_hair_trandoshan_female_s13 = object_tangible_hair_trandoshan_shared_hair_trandoshan_female_s13:new {
}
ObjectTemplates:addTemplate(object_tangible_hair_trandoshan_hair_trandoshan_female_s13, "object/tangible/hair/trandoshan/hair_trandoshan_female_s13.iff")
| agpl-3.0 |
Riverlance/kingdom-age-game-linux | modules/corelib/keyboard.lua | 9 | 7246 | -- @docclass
g_keyboard = {}
-- private functions
function translateKeyCombo(keyCombo)
if not keyCombo or #keyCombo == 0 then return nil end
local keyComboDesc = ''
for k,v in pairs(keyCombo) do
local keyDesc = KeyCodeDescs[v]
if keyDesc == nil then return nil end
keyComboDesc = keyComboDesc .. '+' .. keyDesc
end
keyComboDesc = keyComboDesc:sub(2)
return keyComboDesc
end
local function getKeyCode(key)
for keyCode, keyDesc in pairs(KeyCodeDescs) do
if keyDesc:lower() == key:trim():lower() then
return keyCode
end
end
end
local function retranslateKeyComboDesc(keyComboDesc)
if keyComboDesc == nil then
error('Unable to translate key combo \'' .. keyComboDesc .. '\'')
end
local keyCombo = {}
for i,currentKeyDesc in ipairs(keyComboDesc:split('+')) do
for keyCode, keyDesc in pairs(KeyCodeDescs) do
if keyDesc:lower() == currentKeyDesc:trim():lower() then
table.insert(keyCombo, keyCode)
end
end
end
return translateKeyCombo(keyCombo)
end
function determineKeyComboDesc(keyCode, keyboardModifiers)
local keyCombo = {}
if keyCode == KeyCtrl or keyCode == KeyShift or keyCode == KeyAlt then
table.insert(keyCombo, keyCode)
elseif KeyCodeDescs[keyCode] ~= nil then
if keyboardModifiers == KeyboardCtrlModifier then
table.insert(keyCombo, KeyCtrl)
elseif keyboardModifiers == KeyboardAltModifier then
table.insert(keyCombo, KeyAlt)
elseif keyboardModifiers == KeyboardCtrlAltModifier then
table.insert(keyCombo, KeyCtrl)
table.insert(keyCombo, KeyAlt)
elseif keyboardModifiers == KeyboardShiftModifier then
table.insert(keyCombo, KeyShift)
elseif keyboardModifiers == KeyboardCtrlShiftModifier then
table.insert(keyCombo, KeyCtrl)
table.insert(keyCombo, KeyShift)
elseif keyboardModifiers == KeyboardAltShiftModifier then
table.insert(keyCombo, KeyAlt)
table.insert(keyCombo, KeyShift)
elseif keyboardModifiers == KeyboardCtrlAltShiftModifier then
table.insert(keyCombo, KeyCtrl)
table.insert(keyCombo, KeyAlt)
table.insert(keyCombo, KeyShift)
end
table.insert(keyCombo, keyCode)
end
return translateKeyCombo(keyCombo)
end
local function onWidgetKeyDown(widget, keyCode, keyboardModifiers)
if keyCode == KeyUnknown then return false end
local callback = widget.boundAloneKeyDownCombos[determineKeyComboDesc(keyCode, KeyboardNoModifier)]
signalcall(callback, widget, keyCode)
callback = widget.boundKeyDownCombos[determineKeyComboDesc(keyCode, keyboardModifiers)]
return signalcall(callback, widget, keyCode)
end
local function onWidgetKeyUp(widget, keyCode, keyboardModifiers)
if keyCode == KeyUnknown then return false end
local callback = widget.boundAloneKeyUpCombos[determineKeyComboDesc(keyCode, KeyboardNoModifier)]
signalcall(callback, widget, keyCode)
callback = widget.boundKeyUpCombos[determineKeyComboDesc(keyCode, keyboardModifiers)]
return signalcall(callback, widget, keyCode)
end
local function onWidgetKeyPress(widget, keyCode, keyboardModifiers, autoRepeatTicks)
if keyCode == KeyUnknown then return false end
local callback = widget.boundKeyPressCombos[determineKeyComboDesc(keyCode, keyboardModifiers)]
return signalcall(callback, widget, keyCode, autoRepeatTicks)
end
local function connectKeyDownEvent(widget)
if widget.boundKeyDownCombos then return end
connect(widget, { onKeyDown = onWidgetKeyDown })
widget.boundKeyDownCombos = {}
widget.boundAloneKeyDownCombos = {}
end
local function connectKeyUpEvent(widget)
if widget.boundKeyUpCombos then return end
connect(widget, { onKeyUp = onWidgetKeyUp })
widget.boundKeyUpCombos = {}
widget.boundAloneKeyUpCombos = {}
end
local function connectKeyPressEvent(widget)
if widget.boundKeyPressCombos then return end
connect(widget, { onKeyPress = onWidgetKeyPress })
widget.boundKeyPressCombos = {}
end
-- public functions
function g_keyboard.bindKeyDown(keyComboDesc, callback, widget, alone)
widget = widget or rootWidget
connectKeyDownEvent(widget)
local keyComboDesc = retranslateKeyComboDesc(keyComboDesc)
if alone then
connect(widget.boundAloneKeyDownCombos, keyComboDesc, callback)
else
connect(widget.boundKeyDownCombos, keyComboDesc, callback)
end
end
function g_keyboard.bindKeyUp(keyComboDesc, callback, widget, alone)
widget = widget or rootWidget
connectKeyUpEvent(widget)
local keyComboDesc = retranslateKeyComboDesc(keyComboDesc)
if alone then
connect(widget.boundAloneKeyUpCombos, keyComboDesc, callback)
else
connect(widget.boundKeyUpCombos, keyComboDesc, callback)
end
end
function g_keyboard.bindKeyPress(keyComboDesc, callback, widget)
widget = widget or rootWidget
connectKeyPressEvent(widget)
local keyComboDesc = retranslateKeyComboDesc(keyComboDesc)
connect(widget.boundKeyPressCombos, keyComboDesc, callback)
end
local function getUnbindArgs(arg1, arg2)
local callback
local widget
if type(arg1) == 'function' then callback = arg1
elseif type(arg2) == 'function' then callback = arg2 end
if type(arg1) == 'userdata' then widget = arg1
elseif type(arg2) == 'userdata' then widget = arg2 end
widget = widget or rootWidget
return callback, widget
end
function g_keyboard.unbindKeyDown(keyComboDesc, arg1, arg2)
local callback, widget = getUnbindArgs(arg1, arg2)
if widget.boundKeyDownCombos == nil then return end
local keyComboDesc = retranslateKeyComboDesc(keyComboDesc)
disconnect(widget.boundKeyDownCombos, keyComboDesc, callback)
end
function g_keyboard.unbindKeyUp(keyComboDesc, arg1, arg2)
local callback, widget = getUnbindArgs(arg1, arg2)
if widget.boundKeyUpCombos == nil then return end
local keyComboDesc = retranslateKeyComboDesc(keyComboDesc)
disconnect(widget.boundKeyUpCombos, keyComboDesc, callback)
end
function g_keyboard.unbindKeyPress(keyComboDesc, arg1, arg2)
local callback, widget = getUnbindArgs(arg1, arg2)
if widget.boundKeyPressCombos == nil then return end
local keyComboDesc = retranslateKeyComboDesc(keyComboDesc)
disconnect(widget.boundKeyPressCombos, keyComboDesc, callback)
end
function g_keyboard.getModifiers()
return g_window.getKeyboardModifiers()
end
function g_keyboard.isKeyPressed(key)
if type(key) == 'string' then
key = getKeyCode(key)
end
return g_window.isKeyPressed(key)
end
function g_keyboard.isKeySetPressed(keys, all)
all = all or false
local result = {}
for k,v in pairs(keys) do
if type(v) == 'string' then
v = getKeyCode(v)
end
if g_window.isKeyPressed(v) then
if not all then
return true
end
table.insert(result, true)
end
end
return #result == #keys
end
function g_keyboard.isInUse()
for i = FirstKey, LastKey do
if g_window.isKeyPressed(key) then
return true
end
end
return false
end
function g_keyboard.isCtrlPressed()
return bit32.band(g_window.getKeyboardModifiers(), KeyboardCtrlModifier) ~= 0
end
function g_keyboard.isAltPressed()
return bit32.band(g_window.getKeyboardModifiers(), KeyboardAltModifier) ~= 0
end
function g_keyboard.isShiftPressed()
return bit32.band(g_window.getKeyboardModifiers(), KeyboardShiftModifier) ~= 0
end
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/screenplays/dungeon/death_watch_bunker/conversations/deathWatchBobaFettConvoHandler.lua | 1 | 1877 | local ObjectManager = require("managers.object.object_manager")
deathWatchBobaFettConvoHandler = Object:new { }
function deathWatchBobaFettConvoHandler:runScreenHandlers(conversationTemplate, conversingPlayer, conversingNPC, selectedOption, conversationScreen)
local screen = LuaConversationScreen(conversationScreen)
local screenID = screen:getScreenID()
if (screenID == "dont_give_opinions") then
CreatureObject(conversingPlayer):setScreenPlayState(1, "death_watch_bunker")
end
return conversationScreen
end
function deathWatchBobaFettConvoHandler:getInitialScreen(pPlayer, pNpc, pConversationTemplate)
return ObjectManager.withCreatureAndPlayerObject(pPlayer, function(player, playerObject)
local convoTemplate = LuaConversationTemplate(pConversationTemplate)
if (player:hasScreenPlayState(1, "death_watch_bunker")) then
return convoTemplate:getScreen("back_again")
else
return convoTemplate:getScreen("intro")
end
end)
end
function deathWatchBobaFettConvoHandler:getNextConversationScreen(pConversationTemplate, pPlayer, selectedOption, pConversingNpc)
return ObjectManager.withCreatureObject(pPlayer, function(player)
local pConversationSession = player:getConversationSession()
local pLastConversationScreen = nil
if (pConversationSession ~= nil) then
local conversationSession = LuaConversationSession(pConversationSession)
pLastConversationScreen = conversationSession:getLastConversationScreen()
end
local conversationTemplate = LuaConversationTemplate(pConversationTemplate)
if (pLastConversationScreen ~= nil) then
local lastConversationScreen = LuaConversationScreen(pLastConversationScreen)
local optionLink = lastConversationScreen:getOptionLink(selectedOption)
return conversationTemplate:getScreen(optionLink)
end
return self:getInitialScreen(pPlayer, pConversingNpc, pConversationTemplate)
end)
end | agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/quest/rori/security_guards_wife.lua | 1 | 1282 | security_guards_wife = Creature:new {
objectName = "@mob/creature_names:commoner",
socialGroup = "townsperson",
faction = "townsperson",
level = 4,
chanceHit = 0.24,
damageMin = 40,
damageMax = 45,
baseXp = 62,
baseHAM = 113,
baseHAMmax = 138,
armor = 0,
resists = {15,15,15,15,15,15,15,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = HERD,
optionsBitmask = 264,
diet = HERBIVORE,
templates = { "object/mobile/dressed_commoner_naboo_human_female_01.iff",
"object/mobile/dressed_commoner_naboo_human_female_02.iff",
"object/mobile/dressed_commoner_naboo_human_female_03.iff",
"object/mobile/dressed_commoner_naboo_human_female_04.iff",
"object/mobile/dressed_commoner_naboo_human_female_05.iff",
"object/mobile/dressed_commoner_naboo_human_female_06.iff",
"object/mobile/dressed_commoner_naboo_human_female_07.iff",
"object/mobile/dressed_commoner_naboo_human_female_08.iff",
},
lootGroups = {},
weapons = {},
conversationTemplate = "biribas_tarun_mission_target_convotemplate",
attacks = brawlermaster
}
CreatureTemplates:addCreatureTemplate(security_guards_wife, "security_guards_wife")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/skill_buff/skill_buff_onehandmelee_speed.lua | 2 | 2574 | --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_skill_buff_skill_buff_onehandmelee_speed = object_tangible_skill_buff_shared_skill_buff_onehandmelee_speed:new {
templateType = SKILLBUFF,
objectMenuComponent = {"cpp", "SkillBuffObjectMenuComponent"},
attributeListComponent = "SkillBuffObjectAttributeListComponent",
duration = 300,
useCount = 5,
modifiers = { "onehandmelee_speed", 10 },
buffName = "onehandmelee_speed",
buffCRC = 0x0696D76F
}
ObjectTemplates:addTemplate(object_tangible_skill_buff_skill_buff_onehandmelee_speed, "object/tangible/skill_buff/skill_buff_onehandmelee_speed.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/ship/star_destroyer.lua | 3 | 2164 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_ship_star_destroyer = object_ship_shared_star_destroyer:new {
}
ObjectTemplates:addTemplate(object_ship_star_destroyer, "object/ship/star_destroyer.iff")
| agpl-3.0 |
Zefiros-Software/premake-core | modules/codelite/codelite_workspace.lua | 8 | 2421 | --
-- Name: codelite/codelite_workspace.lua
-- Purpose: Generate a CodeLite workspace.
-- Author: Ryan Pusztai
-- Modified by: Andrea Zanellato
-- Manu Evans
-- Created: 2013/05/06
-- Copyright: (c) 2008-2015 Jason Perkins and the Premake project
--
local p = premake
local project = p.project
local workspace = p.workspace
local tree = p.tree
local codelite = p.modules.codelite
codelite.workspace = {}
local m = codelite.workspace
--
-- Generate a CodeLite workspace
--
function m.generate(wks)
p.utf8()
--
-- Header
--
p.w('<?xml version="1.0" encoding="UTF-8"?>')
local tagsdb = ""
-- local tagsdb = "./" .. wks.name .. ".tags"
p.push('<CodeLite_Workspace Name="%s" Database="%s" SWTLW="No">', wks.name, tagsdb)
--
-- Project list
--
local tr = workspace.grouptree(wks)
tree.traverse(tr, {
onleaf = function(n)
local prj = n.project
-- Build a relative path from the workspace file to the project file
local prjpath = p.filename(prj, ".project")
prjpath = path.getrelative(prj.workspace.location, prjpath)
if (prj.name == wks.startproject) then
p.w('<Project Name="%s" Path="%s" Active="Yes"/>', prj.name, prjpath)
else
p.w('<Project Name="%s" Path="%s"/>', prj.name, prjpath)
end
end,
onbranchenter = function(n)
p.push('<VirtualDirectory Name="%s">', n.name)
end,
onbranchexit = function(n)
p.pop('</VirtualDirectory>')
end,
})
--
-- Configurations
--
-- count the number of platforms
local platformsPresent = {}
local numPlatforms = 0
for cfg in workspace.eachconfig(wks) do
local platform = cfg.platform
if platform and not platformsPresent[platform] then
numPlatforms = numPlatforms + 1
platformsPresent[platform] = true
end
end
if numPlatforms >= 2 then
codelite.workspace.multiplePlatforms = true
end
-- for each workspace config
p.push('<BuildMatrix>')
for cfg in workspace.eachconfig(wks) do
local cfgname = codelite.cfgname(cfg)
p.push('<WorkspaceConfiguration Name="%s" Selected="yes">', cfgname)
local tr = workspace.grouptree(wks)
tree.traverse(tr, {
onleaf = function(n)
local prj = n.project
p.w('<Project Name="%s" ConfigName="%s"/>', prj.name, cfgname)
end
})
p.pop('</WorkspaceConfiguration>')
end
p.pop('</BuildMatrix>')
p.pop('</CodeLite_Workspace>')
end
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/poi/tatooine_rodianhunter_large2.lua | 2 | 2274 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_poi_tatooine_rodianhunter_large2 = object_building_poi_shared_tatooine_rodianhunter_large2:new {
gameObjectType = 531,
}
ObjectTemplates:addTemplate(object_building_poi_tatooine_rodianhunter_large2, "object/building/poi/tatooine_rodianhunter_large2.iff")
| agpl-3.0 |
KingRaptor/Zero-K | LuaUI/Widgets/chili_new/controls/button.lua | 18 | 1390 | --//=============================================================================
--- Button module
--- Button fields.
-- Inherits from Control.
-- @see control.Control
-- @table Button
-- @string[opt="button"] caption caption to be displayed
Button = Control:Inherit{
classname= "button",
caption = 'button',
defaultWidth = 70,
defaultHeight = 20,
}
local this = Button
local inherited = this.inherited
--//=============================================================================
--- Sets the caption of the button
-- @string caption new caption of the button
function Button:SetCaption(caption)
if (self.caption == caption) then return end
self.caption = caption
self:Invalidate()
end
--//=============================================================================
function Button:DrawControl()
--// gets overriden by the skin/theme
end
--//=============================================================================
function Button:HitTest(x,y)
return self
end
function Button:MouseDown(...)
self.state.pressed = true
inherited.MouseDown(self, ...)
self:Invalidate()
return self
end
function Button:MouseUp(...)
if (self.state.pressed) then
self.state.pressed = false
inherited.MouseUp(self, ...)
self:Invalidate()
return self
end
end
--//=============================================================================
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/creature/npc/base/ewok_base_male.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_creature_npc_base_ewok_base_male = object_creature_npc_base_shared_ewok_base_male:new {
}
ObjectTemplates:addTemplate(object_creature_npc_base_ewok_base_male, "object/creature/npc/base/ewok_base_male.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c78910579.lua | 7 | 1546 | --儀水鏡の反魂術
function c78910579.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c78910579.target)
e1:SetOperation(c78910579.activate)
c:RegisterEffect(e1)
end
function c78910579.filter1(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WATER) and c:IsAbleToDeck()
end
function c78910579.filter2(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsAbleToHand()
end
function c78910579.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c78910579.filter1,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingTarget(c78910579.filter2,tp,LOCATION_GRAVE,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g1=Duel.SelectTarget(tp,c78910579.filter1,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g2=Duel.SelectTarget(tp,c78910579.filter2,tp,LOCATION_GRAVE,0,2,2,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g1,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g2,2,0,0)
end
function c78910579.activate(e,tp,eg,ep,ev,re,r,rp)
local ex,g1=Duel.GetOperationInfo(0,CATEGORY_TODECK)
local ex,g2=Duel.GetOperationInfo(0,CATEGORY_TOHAND)
local tc1=g1:GetFirst()
if tc1:IsRelateToEffect(e) and Duel.SendtoDeck(tc1,nil,2,REASON_EFFECT)~=0 then
local hg=g2:Filter(Card.IsRelateToEffect,nil,e)
Duel.SendtoHand(hg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,hg)
end
end
| gpl-2.0 |
EddyK69/domoticz | scripts/dzVents/examples/check dead devices by desc.lua | 25 | 1272 | --Check dead device using their description
--This allow to configure device to be checked directly in domoticz GUI by accessing to device details and add "CDA:<delayInMinute>"
--You have to active http fetching !
return {
active = true,
on = {
['timer'] = {
'every 60 minutes'
}
},
execute = function(domoticz)
local message=""
domoticz.devices().forEach(function(device)
if (device.description ~= nil) then
_, _, threshold = string.find(device.description,"CDA:(%d+)")
if (threshold ~= nil) then
local name = device.name
local minutes = domoticz.devices(name).lastUpdate.minutesAgo
if ( minutes > tonumber(threshold)) then
message = message .. 'Device ' ..
name .. ' seems to be dead. No heartbeat for at least ' ..
minutes .. ' minutes.\r'
end
end
end
end)
if (message ~= "") then
domoticz.notify('Dead devices', message, domoticz.PRIORITY_HIGH)
domoticz.log('Dead devices found: ' .. message, domoticz.LOG_ERROR)
end
end
}
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/medicine/crafted/medpack_cure_disease_area_b.lua | 2 | 3086 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_medicine_crafted_medpack_cure_disease_area_b = object_tangible_medicine_crafted_shared_medpack_cure_disease_area_b:new {
gameObjectType = 8239,
templateType = CUREPACK,
useCount = 10,
medicineUse = 5,
effectiveness = 100,
state = DISEASED,
commandToExecute = "curedisease",
area = 5,
numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 1},
experimentalProperties = {"XX", "XX", "OQ", "PE", "OQ", "UT", "OQ", "PE", "OQ", "PE", "XX"},
experimentalWeights = {1, 1, 2, 1, 2, 1, 1, 2, 2, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_effectiveness", "exp_charges", "expRange", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "power", "charges", "area", "skillmodmin", "hitpoints"},
experimentalMin = {0, 0, 10, 15, 0, 80, 1000},
experimentalMax = {0, 0, 50, 30, 10, 80, 1000},
experimentalPrecision = {0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 4},
}
ObjectTemplates:addTemplate(object_tangible_medicine_crafted_medpack_cure_disease_area_b, "object/tangible/medicine/crafted/medpack_cure_disease_area_b.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | projects/YappyBirds/_archive/scripts_9.16.2016/levels/country/_arcade_country_07.lua | 4 | 79490 | return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.16.0",
orientation = "orthogonal",
renderorder = "right-down",
width = 64,
height = 64,
tilewidth = 32,
tileheight = 32,
nextobjectid = 65,
backgroundcolor = { 158, 206, 239 },
properties = {},
tilesets = {
{
name = "Tiles",
firstgid = 1,
tilewidth = 2048,
tileheight = 512,
spacing = 0,
margin = 0,
tileoffset = {
x = 0,
y = 0
},
properties = {},
terrains = {},
tilecount = 10,
tiles = {
{
id = 0,
image = "../../../countryLevel/128cloud00.png",
width = 128,
height = 105
},
{
id = 1,
image = "../../../countryLevel/256cloud00.png",
width = 256,
height = 209
},
{
id = 2,
image = "../../../countryLevel/256house00.png",
width = 233,
height = 256
},
{
id = 3,
image = "../../../countryLevel/256tree00.png",
width = 237,
height = 256
},
{
id = 4,
image = "../../../countryLevel/8x8.png",
width = 32,
height = 32
},
{
id = 5,
image = "../../../countryLevel/2048hills00.png",
width = 2048,
height = 376
},
{
id = 6,
image = "../../../countryLevel/2048hills01.png",
width = 2048,
height = 463
},
{
id = 7,
image = "../../../countryLevel/2048hills02.png",
width = 2048,
height = 423
},
{
id = 8,
image = "../../../countryLevel/128tree00.png",
width = 101,
height = 128
},
{
id = 9,
image = "../../../countryLevel/512tree00.png",
width = 454,
height = 512
}
}
}
},
layers = {
{
type = "tilelayer",
name = "tileLayer_house-farTree-2farClouds;00_0",
x = 0,
y = 0,
width = 64,
height = 64,
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
properties = {},
encoding = "lua",
data = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}
},
{
type = "objectgroup",
name = "objectLayer_birds-all;00",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
properties = {},
objects = {
{
id = 59,
name = "chubiBird_Test",
type = "birdSpawnPoint",
shape = "ellipse",
x = 2294.31,
y = 1697.1,
width = 0,
height = 0,
rotation = 0,
visible = true,
properties = {
["birdType"] = "chubiBird",
["initialVelocity"] = "1.2",
["spawnAmount"] = "1",
["timeFrequency"] = "1",
["timeStart"] = "0"
}
},
{
id = 60,
name = "garuBird_Test",
type = "birdSpawnPoint",
shape = "ellipse",
x = 2254.91,
y = 1524.36,
width = 0,
height = 0,
rotation = 0,
visible = true,
properties = {
["birdType"] = "garuBird",
["initialVelocity"] = "1.2",
["spawnAmount"] = "1",
["timeFrequency"] = "1",
["timeStart"] = "0"
}
},
{
id = 61,
name = "momiBird_Test",
type = "birdSpawnPoint",
shape = "ellipse",
x = 864.005,
y = 812.24,
width = 0,
height = 0,
rotation = 0,
visible = true,
properties = {
["birdType"] = "momiBird",
["initialVelocity"] = "1.2",
["spawnAmount"] = "1",
["timeFrequency"] = "1",
["timeStart"] = "0"
}
},
{
id = 62,
name = "puffyBird_Test",
type = "birdSpawnPoint",
shape = "ellipse",
x = -145.09,
y = 1409.21,
width = 0,
height = 0,
rotation = 0,
visible = true,
properties = {
["birdType"] = "puffyBird",
["initialVelocity"] = "1.2",
["spawnAmount"] = "1",
["timeFrequency"] = "1",
["timeStart"] = "0"
}
},
{
id = 63,
name = "weboBird_Test",
type = "birdSpawnPoint",
shape = "ellipse",
x = -160.242,
y = 1694.06,
width = 0,
height = 0,
rotation = 0,
visible = true,
properties = {
["birdType"] = "weboBird",
["initialVelocity"] = "1.2",
["spawnAmount"] = "1",
["timeFrequency"] = "1",
["timeStart"] = "0"
}
},
{
id = 64,
name = "zuruBird_Test",
type = "birdSpawnPoint",
shape = "ellipse",
x = 2264,
y = 1951.64,
width = 0,
height = 0,
rotation = 0,
visible = true,
properties = {
["birdType"] = "zuruBird",
["initialVelocity"] = "1.2",
["spawnAmount"] = "1",
["timeFrequency"] = "1",
["timeStart"] = "0"
}
}
}
},
{
type = "objectgroup",
name = "objectLayer_dog-path;02",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
properties = {},
objects = {
{
id = 57,
name = "p0",
type = "dogWayPoint",
shape = "ellipse",
x = 100.84,
y = 1655.46,
width = 117.647,
height = 109.244,
rotation = 0,
visible = true,
properties = {
["pathIndex"] = "0"
}
},
{
id = 58,
name = "p1",
type = "dogWayPoint",
shape = "ellipse",
x = 1890.65,
y = 1919.4,
width = 71.4286,
height = 71.4286,
rotation = 0,
visible = true,
properties = {
["pathIndex"] = "1"
}
}
}
},
{
type = "tilelayer",
name = "iPhone5_View",
x = 0,
y = 0,
width = 64,
height = 64,
visible = false,
opacity = 0.1,
offsetx = 0,
offsety = 0,
properties = {},
encoding = "lua",
data = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}
}
}
}
| mit |
DailyShana/ygopro-scripts | c30606547.lua | 5 | 1241 | --暗黒の扉
function c30606547.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--cannot attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c30606547.atkcon)
e2:SetTarget(c30606547.atktg)
c:RegisterEffect(e2)
--check
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EVENT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_SZONE)
e3:SetOperation(c30606547.checkop)
e3:SetLabelObject(e2)
c:RegisterEffect(e3)
end
function c30606547.atkcon(e)
return e:GetHandler():GetFlagEffect(30606547)~=0
end
function c30606547.atktg(e,c)
return c:GetFieldID()~=e:GetLabel()
end
function c30606547.checkop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(30606547)~=0 then return end
local fid=eg:GetFirst():GetFieldID()
e:GetHandler():RegisterFlagEffect(30606547,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
e:GetLabelObject():SetLabel(fid)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/general/cave_04_ice_s01.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_building_general_cave_04_ice_s01 = object_building_general_shared_cave_04_ice_s01:new {
}
ObjectTemplates:addTemplate(object_building_general_cave_04_ice_s01, "object/building/general/cave_04_ice_s01.iff")
| agpl-3.0 |
VideahGams/thranduil | examples/chatbox/ui/Resizable.lua | 1 | 7188 | local ui_path = tostring(...):sub(1, -10)
local Object = require(ui_path .. 'classic/classic')
local Resizable = Object:extend('Resizable')
function Resizable:resizableNew(settings)
local settings = settings or {}
self.resizing = false
self.resize_hot = false
self.resize_enter = false
self.resize_exit = false
self.resize_start = false
self.resize_end = false
self.resize_corner = settings.resize_corner
self.resize_corner_width = settings.resize_corner_width or 0
self.resize_corner_height = settings.resize_corner_height or 0
self.resize_margin_top = settings.resize_margin_top or 0
self.resize_margin_bottom = settings.resize_margin_bottom or 0
self.resize_margin_right = settings.resize_margin_right or 0
self.resize_margin_left = settings.resize_margin_left or 0
self.min_width = settings.min_width
self.min_height = settings.min_height
self.max_width = settings.max_width
self.max_height = settings.max_height
self.resize_drag_x, self.resize_drag_y = nil, nil
self.resize_x, self.resize_y = 0, 0
self.resize_previous_mouse_position = nil
self.previous_resize_hot = false
self.only_resize_horizontally = settings.only_resize_horizontally
self.only_resize_vertically = settings.only_resize_vertically
end
function Resizable:resizableUpdate(dt, parent)
local x, y = self.getMousePosition()
local sax, say, aw, ah = self.x_offset or 0, self.y_offset or 0, self.area_width or self.w, self.area_height or self.h
local horizontal = self.only_resize_horizontally or (not self.only_resize_horizontally and not self.only_resize_vertically)
local vertical = self.only_resize_vertically or (not self.only_resize_horizontally and not self.only_resize_vertically)
if self.resize_corner then
self.resize_margin_top = self.resize_corner_height
self.resize_margin_bottom = self.resize_corner_height
self.resize_margin_right = self.resize_corner_width
self.resize_margin_left = self.resize_corner_width
end
if self.resizable then
-- Check for resize_hot
self.resize_hot = false
self.resize_start = false
self.resize_end = false
-- Only resize on corners
if self.resize_corner then
local rw, rh = self.resize_corner_width, self.resize_corner_height
if self.resize_corner == 'top-left' then
if (x >= (self.x + sax) and x <= (self.x + sax + rw) and y >= (self.y + say) and y <= (self.y + say + rh)) then
self.resize_hot = true
end
elseif self.resize_corner == 'top-right' then
if (x >= (self.x + sax + aw - rw) and x <= (self.x + sax + aw) and y >= (self.y + say) and y <= (self.y + say + rh)) then
self.resize_hot = true
end
elseif self.resize_corner == 'bottom-left' then
if (x >= (self.x + sax) and x <= (self.x + sax + rw) and y >= (self.y + say + ah - rh) and y <= (self.y + say + ah)) then
self.resize_hot = true
end
elseif self.resize_corner == 'bottom-right' then
if (x >= (self.x + sax + aw - rw) and x <= (self.x + sax + aw) and y >= (self.y + say + ah - rh) and y <= (self.y + say + ah)) then
self.resize_hot = true
end
end
-- Resize on all margins
else
if horizontal then
if (x >= (self.x + sax) and x <= (self.x + sax + self.resize_margin_left) and y >= (self.y + say) and y <= (self.y + say + ah)) or
(x >= (self.x + sax + aw - self.resize_margin_right) and x <= (self.x + sax + aw) and y >= (self.y + say) and y <= (self.y + say + ah)) then
self.resize_hot = true
end
end
if vertical then
if (x >= (self.x + sax) and x <= (self.x + sax + aw) and y >= (self.y + say) and y <= (self.y + say + self.resize_margin_top)) or
(x >= (self.x + sax) and x <= (self.x + sax + aw) and y >= (self.y + say + ah - self.resize_margin_bottom) and y <= (self.y + say + ah)) then
self.resize_hot = true
end
end
end
-- Check for resize_enter
if self.resize_hot and not self.previous_resize_hot then
self.resize_enter = true
else self.resize_enter = false end
-- Check for resize_exit
if not self.resize_hot and self.previous_resize_hot then
self.resize_exit = true
else self.resize_exit = false end
end
if self.resize_hot and self.input:pressed('left-click') then
self.resizing = true
self.resize_start = true
if horizontal then
if (x >= (self.x + sax) and x <= (self.x + sax + self.resize_margin_left) and y >= (self.y + say) and y <= (self.y + say + ah)) then self.resize_drag_x = -1 end
if (x >= (self.x + sax + aw - self.resize_margin_right) and x <= (self.x + sax + aw) and y >= (self.y + say) and y <= (self.y + say + ah)) then self.resize_drag_x = 1 end
end
if vertical then
if (x >= (self.x + sax) and x <= (self.x + sax + aw) and y >= (self.y + say) and y <= (self.y + say + self.resize_margin_top)) then self.resize_drag_y = -1 end
if (x >= (self.x + sax) and x <= (self.x + sax + aw) and y >= (self.y + say + ah - self.resize_margin_bottom) and y <= (self.y + say + ah)) then self.resize_drag_y = 1 end
end
end
if self.resizing and self.input:down('left-click') then
local dx, dy = x - self.resize_previous_mouse_position.x, y - self.resize_previous_mouse_position.y
if horizontal then
if self.resize_drag_x == -1 then self.resize_x = self.resize_x + dx end
if self.resize_drag_x then
self.w = self.w + self.resize_drag_x*dx
if self.min_width then self.w = math.max(self.w, self.min_width) end
if self.max_width then self.w = math.min(self.w, self.max_width) end
end
end
if vertical then
if self.resize_drag_y == -1 then self.resize_y = self.resize_y + dy end
if self.resize_drag_y then
self.h = self.h + self.resize_drag_y*dy
if self.min_height then self.h = math.max(self.h, self.min_height) end
if self.max_height then self.h = math.min(self.h, self.max_height) end
end
end
end
if not self.draggable then
if self.parent then self.x, self.y = parent.x + self.ix + self.resize_x, parent.y + self.iy + self.resize_y
else self.x, self.y = self.ix + self.resize_x, self.iy + self.resize_y end
end
if self.resizing and self.input:released('left-click') then
self.resize_end = true
self.resizing = false
self.resize_drag_x = nil
self.resize_drag_y = nil
end
-- Set previous frame state
self.previous_resize_hot = self.resize_hot
self.resize_previous_mouse_position = {x = x, y = y}
end
return Resizable
| mit |
kubrickfr/darktable | tools/lua_doc/content.lua | 4 | 89281 | real_darktable = require "darktable"
require "darktable.debug"
local tmp_node
local function sorted_pairs (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
end
end
return iter
end
---------------------
-- check for generator functions
---------------------
for _,v in pairs({"node_to_string","para","startlist","listel","endlist","code","emphasis","url"}) do
if _ENV[v]== nil then
error("function '"..v.."' not defined when requiring content")
end
end
---------------------
-- check for database content
---------------------
if #real_darktable.database == 0 then
error("The database needs to contain at least one image to generate documentation")
end
if #real_darktable.styles == 0 then
error("The database needs to contain at least one style to generate documentation")
end
real_darktable.gui.libs.collect.filter({})
doc = require "core"
darktable = doc.toplevel.darktable
types = doc.toplevel.types
events = doc.toplevel.events
attributes = doc.toplevel.attributes
local function my_tostring(obj)
if not obj then
error("incorrect object")
end
return tostring(obj)
end
local function remove_all_children(node)
for k, v in node:all_children() do
v:remove_parent(node)
node[k] = nil
end
end
-- prevent some objects to appear at the wrong end of the tree
remove_all_children(types.dt_lua_lib_t.views)
----------------------
-- REANAMINGS --
----------------------
----------------------
-- TOPLEVEL --
----------------------
local prefix
if real_darktable.configuration.api_version_suffix ~= "" then
prefix = [[This documentation is for the *development* version of darktable. for the stable version, please visit the user manual]]..para()
else
prefix = ""
end
doc.toplevel:set_text(prefix..[[To access the darktable specific functions you must load the darktable environment:]]..
code([[darktable = require "darktable"]])..
[[All functions and data are accessed through the darktable module.]]..para()..
[[This documentation for API version ]]..real_darktable.configuration.api_version_string..[[.]])
----------------------
-- DARKTABLE --
----------------------
darktable:set_text([[The darktable library is the main entry point for all access to the darktable internals.]])
darktable.print:set_text([[Will print a string to the darktable control log (the long overlaid window that appears over the main panel).]])
darktable.print:add_parameter("message","string",[[The string to display which should be a single line.]])
darktable.print_log:set_text([[This function will print its parameter if the Lua logdomain is activated. Start darktable with the "-d lua" command line option to enable the Lua logdomain.]])
darktable.print_log:add_parameter("message","string",[[The string to display.]])
darktable.print_error:set_text([[This function is similar to]]..my_tostring(darktable.print_log)..[[ but adds an ERROR prefix for clarity.]])
darktable.print_error:add_parameter("message","string",[[The string to display.]])
darktable.register_event:set_text([[This function registers a callback to be called when a given event happens.]]..para()..
[[Events are documented ]]..node_to_string(events,[[in the event section.]]))
darktable.register_event:add_parameter("event_type","string",[[The name of the event to register to.]])
darktable.register_event:add_parameter("callback","function",[[The function to call on event. The signature of the function depends on the type of event.]])
darktable.register_event:add_parameter("...","variable",[[Some events need extra parameters at registration time; these must be specified here.]])
darktable.register_storage:set_text([[This function will add a new storage implemented in Lua.]]..para()..
[[A storage is a module that is responsible for handling images once they have been generated during export. Examples of core storages include filesystem, e-mail, facebook...]])
darktable.register_storage:add_parameter("plugin_name","string",[[A Unique name for the plugin.]])
darktable.register_storage:add_parameter("name","string",[[A human readable name for the plugin.]])
tmp_node = darktable.register_storage:add_parameter("store","function",[[This function is called once for each exported image. Images can be exported in parallel but the calls to this function will be serialized.]])
tmp_node:set_attribute("optional",true)
tmp_node:add_parameter("storage",types.dt_imageio_module_storage_t,[[The storage object used for the export.]])
tmp_node:add_parameter("image",types.dt_lua_image_t,[[The exported image object.]])
tmp_node:add_parameter("format",types.dt_imageio_module_format_t,[[The format object used for the export.]])
tmp_node:add_parameter("filename","string",[[The name of a temporary file where the processed image is stored.]])
tmp_node:add_parameter("number","integer",[[The number of the image out of the export series.]])
tmp_node:add_parameter("total","integer",[[The total number of images in the export series.]])
tmp_node:add_parameter("high_quality","boolean",[[True if the export is high quality.]])
tmp_node:add_parameter("extra_data","table",[[An empty Lua table to take extra data. This table is common to the initialize, store and finalize calls in an export series.]])
tmp_node = darktable.register_storage:add_parameter("finalize","function",[[This function is called once all images are processed and all store calls are finished.]])
tmp_node:set_attribute("optional",true)
tmp_node:add_parameter("storage",types.dt_imageio_module_storage_t,[[The storage object used for the export.]])
tmp_node:add_parameter("image_table","table",[[A table keyed by the exported image objects and valued with the corresponding temporary export filename.]])
tmp_node:add_parameter("extra_data","table",[[An empty Lua table to store extra data. This table is common to all calls to store and the call to finalize in a given export series.]])
tmp_node = darktable.register_storage:add_parameter("supported","function",[[A function called to check if a given image format is supported by the Lua storage; this is used to build the dropdown format list for the GUI.]]..para()..
[[Note that the parameters in the format are the ones currently set in the GUI; the user might change them before export.]])
tmp_node:set_attribute("optional",true)
tmp_node:add_parameter("storage",types.dt_imageio_module_storage_t,[[The storage object tested.]])
tmp_node:add_parameter("format",types.dt_imageio_module_format_t,[[The format object to report about.]])
tmp_node:add_return("boolean",[[True if the corresponding format is supported.]])
tmp_node = darktable.register_storage:add_parameter("initialize","function",[[A function called before storage happens]]..para()..
[[This function can change the list of exported functions]])
tmp_node:set_attribute("optional",true)
tmp_node:add_parameter("storage",types.dt_imageio_module_storage_t,[[The storage object tested.]])
tmp_node:add_parameter("format",types.dt_imageio_module_format_t,[[The format object to report about.]])
tmp_node:add_parameter("images","table of "..my_tostring(types.dt_lua_image_t),[[A table containing images to be exported.]])
tmp_node:add_parameter("high_quality","boolean",[[True if the export is high quality.]])
tmp_node:add_parameter("extra_data","table",[[An empty Lua table to take extra data. This table is common to the initialize, store and finalize calls in an export series.]])
tmp_node:add_return("table or nil",[[The modified table of images to export or nil]]..para()..
[[If nil (or nothing) is returned, the original list of images will be exported]]..para()..
[[If a table of images is returned, that table will be used instead. The table can be empty. The images parameter can be modified and returned]])
darktable.register_storage:add_parameter("widget",types.lua_widget,[[A widget to display in the export section of darktable's UI]]):set_attribute("optional",true)
darktable.register_lib:set_text("Register a new lib object. A lib is a graphical element of darktable's user interface")
darktable.register_lib:add_parameter("plugin_name","string","A unique name for your library")
darktable.register_lib:add_parameter("name","string","A user-visible name for your library")
darktable.register_lib:add_parameter("expandable","boolean","whether this lib should be expandable or not")
darktable.register_lib:add_parameter("resettable","boolean","whether this lib has a reset button or not")
darktable.register_lib:add_parameter("containers","table of "..my_tostring(types.dt_lua_view_t).." => [ "..my_tostring(types.dt_ui_container_t)..", int ]","A table associating to each view containing the lib the corresponding container and position")
darktable.register_lib:add_parameter("widget",types.lua_widget,"The widget to display in the lib")
tmp = darktable.register_lib:add_parameter("view_enter","function","A callback called when a view displaying the lib is entered")
tmp:add_parameter("self",types.dt_lua_lib_t,"The lib on which the callback is called"):set_attribute("is_self",true)
tmp:add_parameter("old_view",types.dt_lua_view_t,"The view that we are leaving")
tmp:add_parameter("new_view",types.dt_lua_view_t,"The view that we are entering")
tmp = darktable.register_lib:add_parameter("view_leave","function","A callback called when leaving a view displaying the lib")
tmp:add_parameter("self",types.dt_lua_lib_t,"The lib on which the callback is called"):set_attribute("is_self",true)
tmp:add_parameter("old_view",types.dt_lua_view_t,"The view that we are leaving")
tmp:add_parameter("new_view",types.dt_lua_view_t,"The view that we are entering")
darktable.films:set_text([[A table containing all the film objects in the database.]])
darktable.films['#']:set_text([[Each film has a numeric entry in the database.]])
darktable.films.new:set_text([[Creates a new empty film]]..para()..
[[ see ]]..my_tostring(darktable.database.import)..[[ to import a directory with all its images and to add images to a film]])
darktable.films.new:add_parameter("directory","string",[[The directory that the new film will represent. The directory must exist]])
darktable.films.new:add_return(types.dt_lua_film_t,"The newly created film, or the existing film if the directory is already imported")
darktable.new_format:set_text("Creates a new format object to export images")
tmp =""
for k,v in sorted_pairs(debug.getregistry().dt_lua_modules.format) do
tmp = tmp..listel(k)
end
darktable.new_format:add_parameter("type","string",[[The type of format object to create, one of : ]].. startlist().. tmp..endlist())
darktable.new_format:add_return(types.dt_imageio_module_format_t,"The newly created object. Exact type depends on the type passed")
darktable.new_storage:set_text("Creates a new storage object to export images")
tmp =""
for k,v in sorted_pairs(debug.getregistry().dt_lua_modules.storage) do
tmp = tmp..listel(k)
end
darktable.new_storage:add_parameter("type","string",[[The type of storage object to create, one of : ]].. startlist().. tmp..endlist().."(Other, lua-defined, storage types may appear.)")
darktable.new_storage:add_return(types.dt_imageio_module_storage_t,"The newly created object. Exact type depends on the type passed")
darktable.new_widget:set_text("Creates a new widget object to display in the UI")
tmp =""
for k,v in sorted_pairs(debug.getregistry().dt_lua_modules.widget) do
tmp = tmp..listel(k)
end
darktable.new_widget:add_parameter("type","string",[[The type of storage object to create, one of : ]].. startlist().. tmp..endlist())
darktable.new_widget:add_parameter("...","variable",[[Extra parameters, exact value are documented with each type]])
darktable.new_widget:add_return(types.lua_widget,"The newly created object. Exact type depends on the type passed")
----------------------
-- DARKTABLE.GUI --
----------------------
darktable.gui:set_text([[This subtable contains function and data to manipulate the darktable user interface with Lua.]]..para()..
[[Most of these function won't do anything if the GUI is not enabled (i.e you are using the command line version darktable-cli instead of darktable).]])
darktable.gui.action_images:set_text([[A table of ]]..my_tostring(types.dt_lua_image_t)..[[ on which the user expects UI actions to happen.]]..para()..
[[It is based on both the hovered image and the selection and is consistent with the way darktable works.]]..para()..
[[It is recommended to use this table to implement Lua actions rather than ]]..my_tostring(darktable.gui.hovered)..[[ or ]]..my_tostring(darktable.gui.selection)..[[ to be consistent with darktable's GUI.]])
remove_all_children(darktable.gui.action_images)
darktable.gui.hovered:set_text([[The image under the cursor or nil if no image is hovered.]])
darktable.gui.hovered:set_reported_type(types.dt_lua_image_t)
darktable.gui.selection:set_text([[Allows to change the set of selected images.]])
darktable.gui.selection:add_parameter("selection","table of "..my_tostring(types.dt_lua_image_t),[[A table of images which will define the selected images. If this parameter is not given the selection will be untouched. If an empty table is given the selection will be emptied.]]):set_attribute("optional",true)
darktable.gui.selection:add_return("table of "..my_tostring(types.dt_lua_image_t),[[A table containing the selection as it was before the function was called.]])
darktable.gui.selection:set_attribute("implicit_yield",true)
darktable.gui.current_view:set_text([[Allows to change the current view.]])
darktable.gui.current_view:add_parameter("view",types.dt_lua_view_t,[[The view to switch to. If empty the current view is unchanged]]):set_attribute("optional",true)
darktable.gui.current_view:add_return(types.dt_lua_view_t,[[the current view]])
darktable.gui.create_job:set_text([[Create a new progress_bar displayed in ]]..my_tostring(darktable.gui.libs.backgroundjobs))
darktable.gui.create_job:add_parameter("text","string",[[The text to display in the job entry]])
darktable.gui.create_job:add_parameter("percentage","boolean",[[Should a progress bar be displayed]]):set_attribute("optional",true)
tmp = darktable.gui.create_job:add_parameter("cancel_callback","function",[[A function called when the cancel button for that job is pressed]]..para().."note that the job won't be destroyed automatically. You need to set "..my_tostring(types.dt_lua_backgroundjob_t.valid).." to false for that")
tmp:set_attribute("optional",true)
tmp:add_parameter("job",types.dt_lua_backgroundjob_t,[[The job who is being cancelled]])
darktable.gui.create_job:add_return(types.dt_lua_backgroundjob_t,[[The newly created job object]])
-------------------------
-- DARKTABLE.GUIDES --
-------------------------
darktable.guides:set_text([[Guide lines to overlay over an image in crop and rotate.]]..para()..[[All guides are clipped to the drawing area.]])
darktable.guides.register_guide:set_text([[Register a new guide.]])
darktable.guides.register_guide:add_parameter("name", "string", [[The name of the guide to show in the GUI.]])
tmp_node = darktable.guides.register_guide:add_parameter("draw_callback", "function", [[The function to call to draw the guide lines. The drawn lines will be stroked by darktable.]]..para()..[[THIS IS RUNNING IN THE GUI THREAD AND HAS TO BE FAST!]])
tmp_node:add_parameter("cr", types.dt_lua_cairo_t, [[The cairo object used for drawing.]])
tmp_node:add_parameter("x", "float", [[The x coordinate of the top left corner of the drawing area.]])
tmp_node:add_parameter("y", "float", [[The y coordinate of the top left corner of the drawing area.]])
tmp_node:add_parameter("width", "float", [[The width of the drawing area.]])
tmp_node:add_parameter("height", "float", [[The height of the drawing area.]])
tmp_node:add_parameter("zoom_scale", "float", [[The current zoom_scale. Only needed when setting the line thickness.]])
darktable.guides.register_guide:add_parameter("gui_callback", "function", [[A function returning a widget to show when the guide is selected. It takes no arguments.]]):set_attribute("optional",true)
----------------------
-- DARKTABLE.TAGS --
----------------------
darktable.tags:set_text([[Allows access to all existing tags.]])
darktable.tags["#"]:set_text([[Each existing tag has a numeric entry in the tags table - use ipairs to iterate over them.]])
darktable.tags.create:set_text([[Creates a new tag and return it. If the tag exists return the existing tag.]])
darktable.tags.create:add_parameter("name","string",[[The name of the new tag.]])
darktable.tags.find:set_text([[Returns the tag object or nil if the tag doesn't exist.]])
darktable.tags.find:add_parameter("name","string",[[The name of the tag to find.]])
darktable.tags.find:add_return(types.dt_lua_tag_t,[[The tag object or nil.]])
darktable.tags.delete:set_text([[Deletes the tag object, detaching it from all images.]])
darktable.tags.delete:add_parameter("tag",types.dt_lua_tag_t,[[The tag to be deleted.]])
darktable.tags.delete:set_main_parent(darktable.tags)
darktable.tags.attach:set_text([[Attach a tag to an image; the order of the parameters can be reversed.]])
darktable.tags.attach:add_parameter("tag",types.dt_lua_tag_t,[[The tag to be attached.]])
darktable.tags.attach:add_parameter("image",types.dt_lua_image_t,[[The image to attach the tag to.]])
darktable.tags.attach:set_main_parent(darktable.tags)
darktable.tags.detach:set_text([[Detach a tag from an image; the order of the parameters can be reversed.]])
darktable.tags.detach:add_parameter("tag",types.dt_lua_tag_t,[[The tag to be detached.]])
darktable.tags.detach:add_parameter("image",types.dt_lua_image_t,[[The image to detach the tag from.]])
darktable.tags.detach:set_main_parent(darktable.tags)
darktable.tags.get_tags:set_text([[Gets all tags attached to an image.]])
darktable.tags.get_tags:add_parameter("image",types.dt_lua_image_t,[[The image to get the tags from.]])
darktable.tags.get_tags:add_return("table of "..my_tostring(types.dt_lua_tag_t),[[A table of tags that are attached to the image.]])
darktable.tags.get_tags:set_main_parent(darktable.tags)
------------------------------
-- DARKTABLE.CONFIGURATION --
------------------------------
darktable.configuration:set_text([[This table regroups values that describe details of the configuration of darktable.]])
darktable.configuration.version:set_text([[The version number of darktable.]])
darktable.configuration.has_gui:set_text([[True if darktable has a GUI (launched through the main darktable command, not darktable-cli).]])
darktable.configuration.verbose:set_text([[True if the Lua logdomain is enabled.]])
darktable.configuration.tmp_dir:set_text([[The name of the directory where darktable will store temporary files.]])
darktable.configuration.config_dir:set_text([[The name of the directory where darktable will find its global configuration objects (modules).]])
darktable.configuration.cache_dir:set_text([[The name of the directory where darktable will store its mipmaps.]])
darktable.configuration.api_version_major:set_text([[The major version number of the lua API.]])
darktable.configuration.api_version_minor:set_text([[The minor version number of the lua API.]])
darktable.configuration.api_version_patch:set_text([[The patch version number of the lua API.]])
darktable.configuration.api_version_suffix:set_text([[The version suffix of the lua API.]])
darktable.configuration.api_version_string:set_text([[The version description of the lua API. This is a string compatible with the semantic versioning convention]])
darktable.configuration.running_os:set_text([[The name of the Operating system darktable is currently running on]])
darktable.configuration.check_version:set_text([[Check that a module is compatible with the running version of darktable]]..para().."Add the following line at the top of your module : "..
code("darktable.configuration.check(...,{M,m,p},{M2,m2,p2})").."To document that your module has been tested with API version M.m.p and M2.m2.p2."..para()..
"This will raise an error if the user is running a released version of DT and a warning if he is running a development version"..para().."(the ... here will automatically expand to your module name if used at the top of your script")
darktable.configuration.check_version:add_parameter("module_name","string","The name of the module to report on error")
darktable.configuration.check_version:add_parameter("...","table...","Tables of API versions that are known to work with the script")
-----------------------------
-- DARKTABLE.PREFERENCES --
-----------------------------
darktable.preferences:set_text([[Lua allows you to manipulate preferences. Lua has its own namespace for preferences and you can't access nor write normal darktable preferences.]]..para()..
[[Preference handling functions take a _script_ parameter. This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.]]..para()..
[[Preference handling functions can't guess the type of a parameter. You must pass the type of the preference you are handling. ]]..para()..
[[Note that the directory, enum, lua and file type preferences are stored internally as string. The user can only select valid values, but a lua script can set it to any string]])
darktable.preferences.register:set_text([[Creates a new preference entry in the Lua tab of the preference screen. If this function is not called the preference can't be set by the user (you can still read and write invisible preferences).]])
darktable.preferences.register:add_parameter("script","string",[[Invisible prefix to guarantee unicity of preferences.]])
darktable.preferences.register:add_parameter("name","string",[[A unique name used with the script part to identify the preference.]])
darktable.preferences.register:add_parameter("type",types.lua_pref_type,[[The type of the preference - one of the string values described above.]])
darktable.preferences.register:add_parameter("label","string",[[The label displayed in the preference screen.]])
darktable.preferences.register:add_parameter("tooltip","string",[[The tooltip to display in the preference menu.]])
darktable.preferences.register:add_parameter("default","depends on type",[[Default value to use when not set explicitly or by the user.]]..para().."For the enum type of pref, this is mandatory"):set_attribute("optional",true)
darktable.preferences.register:add_parameter("min","int or float",[[Minimum value (integer and float preferences only).]]):set_attribute("optional",true)
darktable.preferences.register:add_parameter("max","int or float",[[Maximum value (integer and float preferences only).]]):set_attribute("optional",true)
darktable.preferences.register:add_parameter("step","float",[[Step of the spinner (float preferences only).]]):set_attribute("optional",true)
darktable.preferences.register:add_parameter("values","string...",[[Other allowed values (enum preferences only)]]):set_attribute("optional",true)
darktable.preferences.register:add_parameter("wiget",types.lua_widget,[[The widget to use in preference(lua preferences only)]]):set_attribute("optional",true)
tmp = darktable.preferences.register:add_parameter("set_callback","function",[[A function called when the widget needs to be updated from the preference]])
tmp:set_attribute("optional",true)
tmp:add_parameter("widget",types.lua_widget,"The widget to update")
darktable.preferences.read:set_text([[Reads a value from a Lua preference.]])
darktable.preferences.read:add_parameter("script","string",[[Invisible prefix to guarantee unicity of preferences.]])
darktable.preferences.read:add_parameter("name","string",[[The name of the preference displayed in the preference screen.]])
darktable.preferences.read:add_parameter("type",types.lua_pref_type,[[The type of the preference.]])
darktable.preferences.read:add_return("depends on type",[[The value of the preference.]])
darktable.preferences.write:set_text([[Writes a value to a Lua preference.]])
darktable.preferences.write:add_parameter("script","string",[[Invisible prefix to guarantee unicity of preferences.]])
darktable.preferences.write:add_parameter("name","string",[[The name of the preference displayed in the preference screen.]])
darktable.preferences.write:add_parameter("type",types.lua_pref_type,[[The type of the preference.]])
darktable.preferences.write:add_parameter("value","depends on type",[[The value to set the preference to.]])
-----------------------
-- DARKTABLE.STYLES --
-----------------------
darktable.styles:set_text([[This pseudo table allows you to access and manipulate styles.]])
darktable.styles["#"]:set_text([[Each existing style has a numeric index; you can iterate them using ipairs.]])
darktable.styles.create:set_text([[Create a new style based on an image.]])
darktable.styles.create:add_parameter("image",types.dt_lua_image_t,[[The image to create the style from.]])
darktable.styles.create:add_parameter("name","string",[[The name to give to the new style.]])
darktable.styles.create:add_parameter("description","string",[[The description of the new style.]]):set_attribute("optional")
darktable.styles.create:add_return(types.dt_style_t,[[The new style object.]])
darktable.styles.create:set_main_parent(darktable.styles)
darktable.styles.delete:set_text([[Deletes an existing style.]])
darktable.styles.delete:add_parameter("style",types.dt_style_t,[[the style to delete]])
darktable.styles.delete:set_main_parent(darktable.styles)
darktable.styles.duplicate:set_text([[Create a new style based on an existing style.]])
darktable.styles.duplicate:add_parameter("style",types.dt_style_t,[[The style to base the new style on.]])
darktable.styles.duplicate:add_parameter("name","string",[[The new style's name.]])
darktable.styles.duplicate:add_parameter("description","string",[[The new style's description.]]):set_attribute("optional")
darktable.styles.duplicate:add_return(types.dt_style_t,[[The new style object.]])
darktable.styles.duplicate:set_main_parent(darktable.styles)
darktable.styles.apply:set_text([[Apply a style to an image. The order of parameters can be inverted.]])
darktable.styles.apply:add_parameter("style",types.dt_style_t,[[The style to use.]])
darktable.styles.apply:add_parameter("image",types.dt_lua_image_t,[[The image to apply the style to.]])
darktable.styles.apply:set_main_parent(darktable.styles)
darktable.styles.import:set_text([[Import a style from an external .dtstyle file]])
darktable.styles.import:add_parameter("filename","string","The file to import");
darktable.styles.import:set_main_parent(darktable.styles)
darktable.styles.export:set_text([[Export a style to an external .dtstyle file]])
darktable.styles.export:add_parameter("style",types.dt_style_t,"The style to export");
darktable.styles.export:add_parameter("directory","string","The directory to export to");
darktable.styles.export:add_parameter("overwrite","boolean","Is overwriting an existing file allowed"):set_attribute("optional")
darktable.styles.export:set_main_parent(darktable.styles)
-------------------------
-- DARKTABLE.DATABASE --
-------------------------
darktable.database:set_text([[Allows to access the database of images. Note that duplicate images (images with the same RAW but different XMP) will appear multiple times with different duplicate indexes. Also note that all images are here. This table is not influenced by any GUI filtering (collections, stars etc...).]])
darktable.database["#"]:set_text([[Each image in the database appears with a numerical index; you can iterate them using ipairs.]])
darktable.database.duplicate:set_text([[Creates a duplicate of an image and returns it.]])
darktable.database.duplicate:add_parameter("image",types.dt_lua_image_t,[[the image to duplicate]])
darktable.database.duplicate:add_return(types.dt_lua_image_t,[[The new image object.]])
darktable.database.duplicate:set_main_parent(darktable.database)
darktable.database.import:set_text([[Imports new images into the database.]])
darktable.database.import:add_parameter("location","string",[[The filename or directory to import images from.
NOTE: If the images are set to be imported recursively in preferences only the toplevel film is returned (the one whose path was given as a parameter).
NOTE2: If the parameter is a directory the call is non-blocking; the film object will not have the newly imported images yet. Use a post-import-film filtering on that film to react when images are actually imported.
]])
darktable.database.import:add_return(types.dt_lua_image_t,[[The created image if an image is imported or the toplevel film object if a film was imported.]])
darktable.database.move_image:set_text([[Physically moves an image (and all its duplicates) to another film.]]..para()..
[[This will move the image file, the related XMP and all XMP for the duplicates to the directory of the new film]]..para()..
[[Note that the parameter order is not relevant.]])
darktable.database.move_image:add_parameter("image",types.dt_lua_image_t,[[The image to move]])
darktable.database.move_image:add_parameter("film",types.dt_lua_film_t,[[The film to move to]])
darktable.database.move_image:set_main_parent(darktable.database)
darktable.database.copy_image:set_text([[Physically copies an image to another film.]]..para()..
[[This will copy the image file and the related XMP to the directory of the new film]]..para()..
[[If there is already a file with the same name as the image file, it will create a duplicate from that file instead]]..para()..
[[Note that the parameter order is not relevant.]])
darktable.database.copy_image:add_parameter("image",types.dt_lua_image_t,[[The image to copy]])
darktable.database.copy_image:add_parameter("film",types.dt_lua_film_t,[[The film to copy to]])
darktable.database.copy_image:add_return(types.dt_lua_image_t,[[The new image]])
darktable.database.copy_image:set_main_parent(darktable.database)
darktable.collection:set_text([[Allows to access the currently worked on images, i.e the ones selected by the collection lib. Filtering (rating etc) does not change that collection.]])
darktable.collection["#"]:set_text([[Each image in the collection appears with a numerical index; you can iterate them using ipairs.]])
for k, v in darktable.gui.views:unskiped_children() do
v:set_main_parent(darktable.gui.views)
end
darktable.gui.views:set_text([[The different views in darktable]])
darktable.gui.views.map:set_text([[The map view]])
darktable.gui.views.map.latitude:set_text([[The latitude of the center of the map]])
darktable.gui.views.map.longitude:set_text([[The longitude of the center of the map]])
darktable.gui.views.map.zoom:set_text([[The current zoom level of the map]])
darktable.gui.views.darkroom:set_text([[The darkroom view]])
darktable.gui.views.lighttable:set_text([[The lighttable view]])
darktable.gui.views.tethering:set_text([[The tethering view]])
darktable.gui.views.slideshow:set_text([[The slideshow view]])
darktable.gui.views.print:set_text([[The print view]])
darktable.gui.views.knight:set_skiped()
--[[
for k, v in darktable.gui.libs:unskiped_children() do
local real_node = real_darktable.gui.libs[k]
v:set_attribute("position",real_node.position);
v:set_attribute("container",real_node.container);
local matching_views={}
for k2,v2 in pairs(real_node.views) do
table.insert(matching_views,darktable.gui.views[v2.id])
end
v:set_attribute("views",matching_views);
end
]]
darktable.gui.libs:set_text([[This table allows to reference all lib objects]]..para()..
[[lib are the graphical blocks within each view.]]..para()..
[[To quickly figure out what lib is what, you can use the following code which will make a given lib blink.]]..para()..
code([[local tested_module="global_toolbox"
dt.gui.libs[tested_module].visible=false
coroutine.yield("WAIT_MS",2000)
while true do
dt.gui.libs[tested_module].visible = not dt.gui.libs[tested_module].visible
coroutine.yield("WAIT_MS",2000)
end]]))
darktable.gui.libs.snapshots:set_text([[The UI element that manipulates snapshots in darkroom]])
darktable.gui.libs.snapshots.ratio:set_text([[The place in the screen where the line separating the snapshot is. Between 0 and 1]])
darktable.gui.libs.snapshots.direction:set_text([[The direction of the snapshot overlay]]):set_reported_type(types.snapshot_direction_t)
darktable.gui.libs.snapshots["#"]:set_text([[The different snapshots for the image]])
darktable.gui.libs.snapshots.selected:set_text([[The currently selected snapshot]])
darktable.gui.libs.snapshots.selected:set_reported_type(types.dt_lua_snapshot_t)
darktable.gui.libs.snapshots.take_snapshot:set_text([[Take a snapshot of the current image and add it to the UI]]..para()..[[The snapshot file will be generated at the next redraw of the main window]])
darktable.gui.libs.snapshots.max_snapshot:set_text([[The maximum number of snapshots]])
darktable.gui.libs.collect:set_text([[The collection UI element that allows to filter images by collection]])
darktable.gui.libs.collect.filter:set_text([[Allows to get or change the list of visible images]])
darktable.gui.libs.collect.filter:add_parameter("rules","array of"..my_tostring(types.dt_lib_collect_params_rule_t),[[A table of rules describing the filter. These rules will be applied after this call]]):set_attribute("optional",true)
darktable.gui.libs.collect.filter:add_return("array of"..my_tostring(types.dt_lib_collect_params_rule_t),[[The rules that were applied before this call.]])
darktable.gui.libs.collect.filter:set_attribute("implicit_yield",true)
darktable.gui.libs.collect.new_rule:set_text([[Returns a newly created rule object]])
darktable.gui.libs.collect.new_rule:add_return(my_tostring(types.dt_lib_collect_params_rule_t),[[The newly created rule]])
darktable.gui.libs.import:set_text([[The buttons to start importing images]])
darktable.gui.libs.import.register_widget:set_text([[Add a widget in the option expander of the import dialog]])
darktable.gui.libs.import.register_widget:add_parameter("widget",types.lua_widget,[[The widget to add to the dialog. The reset callback of the widget will be called whenever the dialog is opened]])
darktable.gui.libs.styles:set_text([[The style selection menu]])
darktable.gui.libs.metadata_view:set_text([[The widget displaying metadata about the current image]])
darktable.gui.libs.metadata_view.register_info:set_text([[Register a function providing extra info to display in the widget]])
darktable.gui.libs.metadata_view.register_info:add_parameter("name","string","The name displayed for the new information")
tmp = darktable.gui.libs.metadata_view.register_info:add_parameter("callback","function","The function providing the info")
tmp:add_parameter("image",types.dt_lua_image_t,"The image to analyze")
tmp:add_return("string","The extra information to display")
darktable.gui.libs.metadata:set_text([[The widget allowing modification of metadata fields on the current image]])
darktable.gui.libs.hinter:set_text([[The small line of text at the top of the UI showing the number of selected images]])
darktable.gui.libs.filmstrip:set_text([[The filmstrip at the bottom of some views]])
darktable.gui.libs.viewswitcher:set_text([[The labels allowing to switch view]])
darktable.gui.libs.darktable_label:set_text([[The darktable logo in the upper left corner]])
darktable.gui.libs.tagging:set_text([[The tag manipulation UI]])
darktable.gui.libs.geotagging:set_text([[The geotagging time synchronisation UI]])
darktable.gui.libs.recentcollect:set_text([[The recent collection UI element]])
darktable.gui.libs.global_toolbox:set_text([[The common tools to all view (settings, grouping...)]])
darktable.gui.libs.global_toolbox.grouping:set_text([[The current status of the image grouping option]])
darktable.gui.libs.global_toolbox.show_overlays:set_text([[the current status of the image overlays option]])
darktable.gui.libs.filter:set_text([[The image-filter menus at the top of the UI]])
darktable.gui.libs.ratings:set_text([[The starts to set the rating of an image]])
darktable.gui.libs.select:set_text([[The buttons that allow to quickly change the selection]])
darktable.gui.libs.select.register_selection:set_text([[Add a new button and call a callback when it is clicked]])
darktable.gui.libs.select.register_selection:add_parameter("label","string","The label to display on the button")
tmp = darktable.gui.libs.select.register_selection:add_parameter("callback","function","The function to call when the button is pressed")
tmp:add_parameter("event","string","The name of the button that was pressed")
tmp:add_parameter("images","table of"..tostring(types.dt_lua_image_t),"The images in the current collection. This is the same content as"..my_tostring(darktable.collection))
tmp:add_return("table of"..tostring(types.dt_lua_image_t),"The images to set the selection to")
darktable.gui.libs.select.register_selection:add_parameter("tooltip","string","The tooltip to use on the new button"):set_attribute("optional",true)
darktable.gui.libs.colorlabels:set_text([[The color buttons that allow to set labels on an image]])
darktable.gui.libs.lighttable_mode:set_text([[The navigation and zoom level UI in lighttable]])
darktable.gui.libs.copy_history:set_text([[The UI element that manipulates history]])
darktable.gui.libs.image:set_text([[The UI element that manipulates the current images]])
darktable.gui.libs.image.register_action:set_text([[Add a new button and call a callback when it is clicked]])
darktable.gui.libs.image.register_action:add_parameter("label","string","The label to display on the button")
tmp = darktable.gui.libs.image.register_action:add_parameter("callback","function","The function to call when the button is pressed")
tmp:add_parameter("event","string","The name of the button that was pressed")
tmp:add_parameter("images","table of"..tostring(types.dt_lua_image_t),"The images to act on when the button was clicked")
darktable.gui.libs.image.register_action:add_parameter("tooltip","string","The tooltip to use on the new button"):set_attribute("optional",true)
darktable.gui.libs.modulegroups:set_text([[The icons describing the different iop groups]])
darktable.gui.libs.module_toolbox:set_text([[The tools on the bottom line of the UI (overexposure)]])
darktable.gui.libs.session:set_text([[The session UI when tethering]])
darktable.gui.libs.histogram:set_text([[The histogram widget]])
darktable.gui.libs.export:set_text([[The export menu]])
darktable.gui.libs.history:set_text([[The history manipulation menu]])
darktable.gui.libs.colorpicker:set_text([[The colorpicker menu]])
darktable.gui.libs.navigation:set_text([[The full image preview to allow navigation]])
darktable.gui.libs.masks:set_text([[The masks window]])
darktable.gui.libs.view_toolbox:set_text([[]])
darktable.gui.libs.live_view:set_text([[The liveview window]])
darktable.gui.libs.map_settings:set_text([[The map setting window]])
darktable.gui.libs.camera:set_text([[The camera selection UI]])
darktable.gui.libs.location:set_text([[The location ui]])
darktable.gui.libs.backgroundjobs:set_text([[The window displaying the currently running jobs]])
darktable.gui.libs.print_settings:set_text([[The settings window in the print view]])
darktable.control:set_text([[This table contain function to manipulate the control flow of lua programs. It provides ways to do background jobs and other related functions]])
darktable.control.ending:set_text([[TRUE when darktable is terminating]]..para()..
[[Use this variable to detect when you should finish long running jobs]])
darktable.control.dispatch:set_text([[Runs a function in the background. This function will be run at a later point, after luarc has finished running. If you do a loop in such a function, please check ]]..my_tostring(darktable.control.ending)..[[ in your loop to finish the function when DT exits]])
darktable.control.dispatch:add_parameter("function","function",[[The call to dispatch]])
darktable.control.dispatch:add_parameter("...","anything",[[extra parameters to pass to the function]])
darktable.control.sleep:set_text("Suspends execution while not blocking darktable")
darktable.control.sleep:add_parameter("delay","int","The delay in millisecond to sleep")
darktable.control.execute:set_text("Run a command in a shell while not blocking darktable")
darktable.control.execute:add_parameter("command","string","The command to run, as in 'sh -c'")
darktable.control.execute:add_return("int","The result of the system call")
darktable.control.read:set_text("Block until a file is readable while not blocking darktable"..para()..emphasis("This function is not available on Windows builds"))
darktable.control.read:add_parameter("file","file","The file object to wait for")
darktable.gettext:set_text([[This table contains functions related to translating lua scripts]])
darktable.gettext.gettext:set_text([[Translate a string using the darktable textdomain]])
darktable.gettext.gettext:add_parameter("msgid","string","The string to translate");
darktable.gettext.gettext:add_return("string","The translated string");
darktable.gettext.dgettext:set_text([[Translate a string using the specified textdomain]])
darktable.gettext.dgettext:add_parameter("domainname","string","The domain to use for that translation");
darktable.gettext.dgettext:add_parameter("msgid","string","The string to translate");
darktable.gettext.dgettext:add_return("string","The translated string");
darktable.gettext.ngettext:set_text([[Translate a string depending on the number of objects using the darktable textdomain]])
darktable.gettext.ngettext:add_parameter("msgid","string","The string to translate");
darktable.gettext.ngettext:add_parameter("msgid_plural","string","The string to translate in plural form");
darktable.gettext.ngettext:add_parameter("n","int","The number of objects");
darktable.gettext.ngettext:add_return("string","The translated string");
darktable.gettext.dngettext:set_text([[Translate a string depending on the number of objects using the specified textdomain]])
darktable.gettext.dngettext:add_parameter("domainname","string","The domain to use for that translation");
darktable.gettext.dngettext:add_parameter("msgid","string","The string to translate");
darktable.gettext.dngettext:add_parameter("msgid_plural","string","The string to translate in plural form");
darktable.gettext.dngettext:add_parameter("n","int","The number of objects");
darktable.gettext.dngettext:add_return("string","The translated string");
darktable.gettext.bindtextdomain:set_text([[Tell gettext where to find the .mo file translating messages for a particular domain]])
darktable.gettext.bindtextdomain:add_parameter("domainname","string","The domain to use for that translation");
darktable.gettext.bindtextdomain:add_parameter("dirname","string","The base directory to look for the file. The file should be placed in "..emphasis("dirname").."/"..emphasis("locale name").."/LC_MESSAGES/"..emphasis("domain")..".mo");
----------------------
-- DARKTABLE.DEBUG --
----------------------
darktable.debug:set_text([[This section must be activated separately by calling
require "darktable.debug"
]])
darktable.debug.dump:set_text([[This will return a string describing everything Lua knows about an object, used to know what an object is.
This function is recursion-safe and can be used to dump _G if needed.]])
darktable.debug.dump:add_parameter("object","anything",[[The object to dump.]])
darktable.debug.dump:add_parameter("name","string",[[A name to use for the object.]]):set_attribute("optional",true)
tmp_node = darktable.debug.dump:add_parameter("known","table",[[A table of object,string pairs. Any object in that table will not be dumped, the string will be printed instead.]]..para().."defaults to "..my_tostring(darktable.debug.known).." if not set")
tmp_node:set_attribute("optional",true)
darktable.debug.dump:add_return("string",[[A string containing a text description of the object - can be very long.]])
darktable.debug.debug:set_text([[Initialized to false; set it to true to also dump information about metatables.]])
darktable.debug.max_depth:set_text([[Initialized to 10; The maximum depth to recursively dump content.]])
remove_all_children(darktable.debug.known) -- debug values, not interesting
darktable.debug.known:set_text([[A table containing the default value of ]]..my_tostring(tmp_node))
darktable.debug.type:set_text([[Similar to the system function type() but it will return the real type instead of "userdata" for darktable specific objects.]])
darktable.debug.type:add_parameter("object","anything",[[The object whose type must be reported.]])
darktable.debug.type:add_return("string",[[A string describing the type of the object.]])
----------------------
-- TYPES --
----------------------
types:set_text([[This section documents types that are specific to darktable's Lua API.]])
types.lua_os_type:set_text([[The type of OS we darktable can run on]])
types.dt_lua_image_t:set_text([[Image objects represent an image in the database. This is slightly different from a file on disk since a file can have multiple developments.
Note that this is the real image object; changing the value of a field will immediately change it in darktable and will be reflected on any copy of that image object you may have kept.]])
types.dt_lua_image_t.id:set_text([[A unique id identifying the image in the database.]])
types.dt_lua_image_t.path:set_text([[The file the directory containing the image.]])
types.dt_lua_image_t.film:set_text([[The film object that contains this image.]])
types.dt_lua_image_t.filename:set_text([[The filename of the image.]])
types.dt_lua_image_t.sidecar:set_text([[The filename of the image's sidecar file.]])
types.dt_lua_image_t.duplicate_index:set_text([[If there are multiple images based on a same file, each will have a unique number, starting from 0.]])
types.dt_lua_image_t.publisher:set_text([[The publisher field of the image.]])
types.dt_lua_image_t.title:set_text([[The title field of the image.]])
types.dt_lua_image_t.creator:set_text([[The creator field of the image.]])
types.dt_lua_image_t.rights:set_text([[The rights field of the image.]])
types.dt_lua_image_t.description:set_text([[The description field for the image.]])
types.dt_lua_image_t.exif_maker:set_text([[The maker exif data.]])
types.dt_lua_image_t.exif_model:set_text([[The camera model used.]])
types.dt_lua_image_t.exif_lens:set_text([[The id string of the lens used.]])
types.dt_lua_image_t.exif_aperture:set_text([[The aperture saved in the exif data.]])
types.dt_lua_image_t.exif_exposure:set_text([[The exposure time of the image.]])
types.dt_lua_image_t.exif_focal_length:set_text([[The focal length of the image.]])
types.dt_lua_image_t.exif_iso:set_text([[The iso used on the image.]])
types.dt_lua_image_t.exif_datetime_taken:set_text([[The date and time of the image.]])
types.dt_lua_image_t.exif_focus_distance:set_text([[The distance of the subject.]])
types.dt_lua_image_t.exif_crop:set_text([[The exif crop data.]])
types.dt_lua_image_t.latitude:set_text([[GPS latitude data of the image, nil if not set.]])
types.dt_lua_image_t.latitude:set_reported_type("float or nil")
types.dt_lua_image_t.longitude:set_text([[GPS longitude data of the image, nil if not set.]])
types.dt_lua_image_t.longitude:set_reported_type("float or nil")
types.dt_lua_image_t.elevation:set_text([[GPS altitude data of the image, nil if not set.]])
types.dt_lua_image_t.elevation:set_reported_type("float or nil")
types.dt_lua_image_t.is_raw:set_text([[True if the image is a RAW file.]])
types.dt_lua_image_t.is_ldr:set_text([[True if the image is a ldr image.]])
types.dt_lua_image_t.is_hdr:set_text([[True if the image is a hdr image.]])
types.dt_lua_image_t.has_txt:set_text([[True if the image has a txt sidecar file.]])
types.dt_lua_image_t.width:set_text([[The width of the image.]])
types.dt_lua_image_t.height:set_text([[The height of the image.]])
types.dt_lua_image_t.rating:set_text([[The rating of the image (-1 for rejected).]])
types.dt_lua_image_t.red:set_text([[True if the image has the corresponding colorlabel.]])
types.dt_lua_image_t.red:set_alias(types.dt_lua_image_t.blue)
types.dt_lua_image_t.red:set_alias(types.dt_lua_image_t.green)
types.dt_lua_image_t.red:set_alias(types.dt_lua_image_t.yellow)
types.dt_lua_image_t.red:set_alias(types.dt_lua_image_t.purple)
types.dt_lua_image_t.reset:set_text([[Removes all processing from the image, resetting it back to its original state]])
types.dt_lua_image_t.reset:add_parameter("self",types.dt_lua_image_t,[[The image whose history will be deleted]]):set_attribute("is_self",true)
types.dt_lua_image_t.delete:set_text([[Removes an image from the database]])
types.dt_lua_image_t.delete:add_parameter("self",types.dt_lua_image_t,[[The image to remove]]):set_attribute("is_self",true)
types.dt_lua_image_t.group_with:set_text([[Puts the first image in the same group as the second image. If no second image is provided the image will be in its own group.]])
types.dt_lua_image_t.group_with:add_parameter("self",types.dt_lua_image_t,[[The image whose group must be changed.]]):set_attribute("is_self",true)
types.dt_lua_image_t.group_with:add_parameter("image",types.dt_lua_image_t,[[The image we want to group with.]]):set_attribute("optional",true)
types.dt_lua_image_t.make_group_leader:set_text([[Makes the image the leader of its group.]])
types.dt_lua_image_t.make_group_leader:add_parameter("self",types.dt_lua_image_t,[[The image we want as the leader.]]):set_attribute("is_self",true)
types.dt_lua_image_t.get_group_members:set_text([[Returns a table containing all ]]..my_tostring(types.dt_lua_image_t)..[[ of the group. The group leader is both at a numeric key and at the "leader" special key (so you probably want to use ipairs to iterate through that table).]])
types.dt_lua_image_t.get_group_members:add_parameter("self",types.dt_lua_image_t,[[The image whose group we are querying.]]):set_attribute("is_self",true)
types.dt_lua_image_t.get_group_members:add_return("table of "..my_tostring(types.dt_lua_image_t),[[A table of image objects containing all images that are in the same group as the image.]])
darktable.tags.attach:set_alias(types.dt_lua_image_t.attach_tag)
types.dt_lua_image_t.group_leader:set_text([[The image which is the leader of the group this image is a member of.]])
types.dt_lua_image_t.local_copy:set_text([[True if the image has a copy in the local cache]])
types.dt_lua_image_t.drop_cache:set_text("drops the cached version of this image."..para()..
"This function should be called if an image is modified out of darktable to force DT to regenerate the thumbnail"..para()..
"darktable will regenerate the thumbnail by itself when it is needed")
types.dt_lua_image_t.drop_cache:add_parameter("self",types.dt_lua_image_t,[[The image whose cache must be dropped.]]):set_attribute("is_self",true)
types.dt_imageio_module_format_t:set_text([[A virtual type representing all format types.]])
types.dt_imageio_module_format_t.plugin_name:set_text([[A unique name for the plugin.]])
types.dt_imageio_module_format_t.name:set_text([[A human readable name for the plugin.]])
types.dt_imageio_module_format_t.extension:set_text([[The typical filename extension for that format.]])
types.dt_imageio_module_format_t.mime:set_text([[The mime type associated with the format.]])
types.dt_imageio_module_format_t.max_width:set_text([[The max width allowed for the format (0 = unlimited).]])
types.dt_imageio_module_format_t.max_height:set_text([[The max height allowed for the format (0 = unlimited).]])
types.dt_imageio_module_format_t.write_image:set_text([[Exports an image to a file. This is a blocking operation that will not return until the image is exported.]])
types.dt_imageio_module_format_t.write_image:set_attribute("implicit_yield",true)
types.dt_imageio_module_format_t.write_image:add_parameter("self",types.dt_imageio_module_format_t,[[The format that will be used to export.]]):set_attribute("is_self",true)
types.dt_imageio_module_format_t.write_image:add_parameter("image",types.dt_lua_image_t,[[The image object to export.]])
types.dt_imageio_module_format_t.write_image:add_parameter("filename","string",[[The filename to export to.]])
types.dt_imageio_module_format_t.write_image:add_parameter("allow_upscale","boolean",[[Set to true to allow upscaling of the image.]]):set_attribute("optional",true)
types.dt_imageio_module_format_t.write_image:add_return("boolean",[[Returns true on success.]])
types.dt_imageio_module_format_data_png:set_text([[Type object describing parameters to export to png.]])
types.dt_imageio_module_format_data_png.bpp:set_text([[The bpp parameter to use when exporting.]])
types.dt_imageio_module_format_data_tiff:set_text([[Type object describing parameters to export to tiff.]])
types.dt_imageio_module_format_data_tiff.bpp:set_text([[The bpp parameter to use when exporting.]])
types.dt_imageio_module_format_data_exr:set_text([[Type object describing parameters to export to exr.]])
types.dt_imageio_module_format_data_exr.compression:set_text([[The compression parameter to use when exporting.]])
types.dt_imageio_module_format_data_copy:set_text([[Type object describing parameters to export to copy.]])
types.dt_imageio_module_format_data_pfm:set_text([[Type object describing parameters to export to pfm.]])
types.dt_imageio_module_format_data_jpeg:set_text([[Type object describing parameters to export to jpeg.]])
types.dt_imageio_module_format_data_jpeg.quality:set_text([[The quality to use at export time.]])
types.dt_imageio_module_format_data_ppm:set_text([[Type object describing parameters to export to ppm.]])
types.dt_imageio_module_format_data_webp:set_text([[Type object describing parameters to export to webp.]])
types.dt_imageio_module_format_data_webp.quality:set_text([[The quality to use at export time.]])
types.dt_imageio_module_format_data_webp.comp_type:set_text([[The overall quality to use; can be one of "webp_lossy" or "webp_lossless".]]):set_reported_type(types.comp_type_t);
types.dt_imageio_module_format_data_webp.hint:set_text([[A hint on the overall content of the image.]]):set_reported_type(types.hint_t)
types.dt_imageio_module_format_data_j2k:set_text([[Type object describing parameters to export to jpeg2000.]])
types.dt_imageio_module_format_data_j2k.quality:set_text([[The quality to use at export time.]])
types.dt_imageio_module_format_data_j2k.bpp:set_text([[The bpp parameter to use when exporting.]])
types.dt_imageio_module_format_data_j2k.format:set_text([[The format to use.]]):set_reported_type(types.dt_imageio_j2k_format_t)
types.dt_imageio_module_format_data_j2k.preset:set_text([[The preset to use.]]):set_reported_type(types.dt_imageio_j2k_preset_t)
types.dt_imageio_module_format_data_pdf:set_text([[Type object describing parameters to export to pdf.]])
types.dt_imageio_module_format_data_pdf.dpi:set_text([[The dot per inch value to use at export]])
types.dt_imageio_module_format_data_pdf.icc:set_text([[Should the images be tagged with their embedded profile]])
types.dt_imageio_module_format_data_pdf.border:set_text([[Empty space around the PDF images]])
types.dt_imageio_module_format_data_pdf.orientation:set_text([[Orientation of the pages in the document]])
types.dt_imageio_module_format_data_pdf.title:set_text([[The title for the document
types.dt_imageio_module_format_data_pdf.rotate:set_text([[Should the images be rotated to match the PDF orientation]])
types.dt_imageio_module_format_data_pdf.mode:set_text([[The image mode to use at export time]])
types.dt_imageio_module_format_data_pdf.size:set_text([[The paper size to use]])
types.dt_imageio_module_format_data_pdf.compression:set_text([[Compression mode to use for images]])
types.dt_imageio_module_format_data_pdf.pages:set_text([[The page type to use]])
types.dt_imageio_module_format_data_pdf.rotate:set_text([[Should the images be rotated in the resulting PDF]])
types._pdf_mode_t:set_text([[The export mode to use for PDF document]])
types._pdf_pages_t:set_text([[The different page types for PDF export]])
types.dt_pdf_stream_encoder_t:set_text([[The compression mode for PDF document]])
types.dt_imageio_module_storage_t:set_text([[A virtual type representing all storage types.]])
types.dt_imageio_module_storage_t.plugin_name:set_text([[A unique name for the plugin.]])
types.dt_imageio_module_storage_t.name:set_text([[A human readable name for the plugin.]])
types.dt_imageio_module_storage_t.width:set_text([[The currently selected width for the plugin.]])
types.dt_imageio_module_storage_t.height:set_text([[The currently selected height for the plugin.]])
types.dt_imageio_module_storage_t.recommended_width:set_text([[The recommended width for the plugin.]])
types.dt_imageio_module_storage_t.recommended_height:set_text([[The recommended height for the plugin.]])
types.dt_imageio_module_storage_t.supports_format:set_text([[Checks if a format is supported by this storage.]])
types.dt_imageio_module_storage_t.supports_format:add_parameter("self",types.dt_imageio_module_storage_t,[[The storage type to check against.]]):set_attribute("is_self",true)
types.dt_imageio_module_storage_t.supports_format:add_parameter("format",types.dt_imageio_module_format_t,[[The format type to check.]])
types.dt_imageio_module_storage_t.supports_format:add_return("boolean",[[True if the format is supported by the storage.]])
types.dt_imageio_module_storage_data_email:set_text([[An object containing parameters to export to email.]])
types.dt_imageio_module_storage_data_flickr:set_text([[An object containing parameters to export to flickr.]])
types.dt_imageio_module_storage_data_facebook:set_text([[An object containing parameters to export to facebook.]])
types.dt_imageio_module_storage_data_latex:set_text([[An object containing parameters to export to latex.]])
types.dt_imageio_module_storage_data_latex.filename:set_text([[The filename to export to.]])
types.dt_imageio_module_storage_data_latex.title:set_text([[The title to use for export.]])
types.dt_imageio_module_storage_data_picasa:set_text([[An object containing parameters to export to picasa.]])
types.dt_imageio_module_storage_data_gallery:set_text([[An object containing parameters to export to gallery.]])
types.dt_imageio_module_storage_data_gallery.filename:set_text([[The filename to export to.]])
types.dt_imageio_module_storage_data_gallery.title:set_text([[The title to use for export.]])
types.dt_imageio_module_storage_data_disk:set_text([[An object containing parameters to export to disk.]])
types.dt_imageio_module_storage_data_disk.filename:set_text([[The filename to export to.]])
types.dt_lua_film_t:set_text([[A film in darktable; this represents a directory containing imported images.]])
types.dt_lua_film_t["#"]:set_text([[The different images within the film.]])
types.dt_lua_film_t.id:set_text([[A unique numeric id used by this film.]])
types.dt_lua_film_t.path:set_text([[The path represented by this film.]])
types.dt_lua_film_t.delete:set_text([[Removes the film from the database.]])
types.dt_lua_film_t.delete:add_parameter("self",types.dt_lua_film_t,[[The film to remove.]]):set_attribute("is_self",true)
types.dt_lua_film_t.delete:add_parameter("force","Boolean",[[Force removal, even if the film is not empty.]]):set_attribute("optional",true)
types.dt_style_t:set_text([[A style that can be applied to an image.]])
types.dt_style_t.name:set_text([[The name of the style.]])
types.dt_style_t.description:set_text([[The description of the style.]])
types.dt_style_t["#"]:set_text([[The different items that make the style.]])
types.dt_style_item_t:set_text([[An element that is part of a style.]])
types.dt_style_item_t.name:set_text([[The name of the style item.]])
types.dt_style_item_t.num:set_text([[The position of the style item within its style.]])
types.dt_lua_tag_t:set_text([[A tag that can be attached to an image.]])
types.dt_lua_tag_t.name:set_text([[The name of the tag.]])
types.dt_lua_tag_t["#"]:set_text([[The images that have that tag attached to them.]])
types.dt_lua_tag_t["#"]:set_reported_type(types.dt_lua_image_t)
types.dt_lua_lib_t:set_text([[The type of a UI lib]])
types.dt_lua_lib_t.id:set_text([[A unit string identifying the lib]])
types.dt_lua_lib_t.name:set_text([[The translated title of the UI element]])
types.dt_lua_lib_t.version:set_text([[The version of the internal data of this lib]])
types.dt_lua_lib_t.visible:set_text([[Allow to make a lib module completely invisible to the user.]]..para()..
[[Note that if the module is invisible the user will have no way to restore it without lua]])
types.dt_lua_lib_t.visible:set_attribute("implicit_yield",true)
types.dt_lua_lib_t.container:set_text([[The location of the lib in the darktable UI]]):set_reported_type(types.dt_ui_container_t)
types.dt_lua_lib_t.expandable:set_text([[True if the lib can be expanded/retracted]]);
types.dt_lua_lib_t.expanded:set_text([[True if the lib is expanded]]);
types.dt_lua_lib_t.position:set_text([[A value deciding the position of the lib within its container]])
types.dt_lua_lib_t.views:set_text([[A table of all the views that display this widget]])
types.dt_lua_lib_t.reset:set_text([[A function to reset the lib to its default values]]..para()..
[[This function will do nothing if the lib is not visible or can't be reset]])
types.dt_lua_lib_t.reset:add_parameter("self",types.dt_lua_lib_t,[[The lib to reset]]):set_attribute("is_self",true)
types.dt_lua_lib_t.on_screen:set_text([[True if the lib is currently visible on the screen]])
types.dt_lua_view_t:set_text([[A darktable view]])
types.dt_lua_view_t.id:set_text([[A unique string identifying the view]])
types.dt_lua_view_t.name:set_text([[The name of the view]])
types.dt_lua_backgroundjob_t:set_text([[A lua-managed entry in the backgroundjob lib]])
types.dt_lua_backgroundjob_t.percent:set_text([[The value of the progress bar, between 0 and 1. will return nil if there is no progress bar, will raise an error if read or written on an invalid job]])
types.dt_lua_backgroundjob_t.valid:set_text([[True if the job is displayed, set it to false to destroy the entry]]..para().."An invalid job cannot be made valid again")
types.dt_lua_snapshot_t:set_text([[The description of a snapshot in the snapshot lib]])
types.dt_lua_snapshot_t.filename:set_text([[The filename of an image containing the snapshot]])
types.dt_lua_snapshot_t.select:set_text([[Activates this snapshot on the display. To deactivate all snapshot you need to call this function on the active snapshot]])
types.dt_lua_snapshot_t.select:add_parameter("self",types.dt_lua_snapshot_t,[[The snapshot to activate]]):set_attribute("is_self",true)
types.dt_lua_snapshot_t.name:set_text([[The name of the snapshot, as seen in the UI]])
types.hint_t:set_text([[a hint on the way to encode a webp image]])
types.dt_ui_container_t:set_text([[A place in the darktable UI where a lib can be placed]])
types.snapshot_direction_t:set_text([[Which part of the main window is occupied by a snapshot]])
types.dt_imageio_j2k_format_t:set_text([[J2K format type]])
types.dt_imageio_j2k_preset_t:set_text([[J2K preset type]])
types.comp_type_t:set_text([[Type of compression for webp]])
types.lua_pref_type:set_text([[The type of value to save in a preference]])
types.dt_imageio_exr_compression_t:set_text("The type of compression to use for the EXR image")
types.dt_lib_collect_params_rule_t:set_text("A single rule for filtering a collection");
types.dt_lib_collect_params_rule_t.mode:set_text("How this rule is applied after the previous one. Unused for the first rule");
types.dt_lib_collect_params_rule_t.mode:set_reported_type(types.dt_lib_collect_mode_t)
types.dt_lib_collect_params_rule_t.data:set_text("The text segment of the rule. Exact content depends on the type of rule");
types.dt_lib_collect_params_rule_t.item:set_text("The item on which this rule filter. i.e the type of the rule");
types.dt_lib_collect_params_rule_t.item:set_reported_type(types.dt_collection_properties_t)
types.dt_lib_collect_mode_t:set_text("The logical operators to apply between rules");
types.dt_collection_properties_t:set_text("The different elements on which a collection can be filtered");
types.dt_lua_orientation_t:set_text("A possible orientation for a widget")
types.dt_lua_align_t:set_text("The alignment of a label")
types.dt_lua_ellipsize_mode_t:set_text("The ellipsize mode of a label")
types.dt_lua_cairo_t:set_text("A wrapper around a cairo drawing context."..para().."You probably shouldn't use this after the callback that got it passed returned."..para().."For more details of the member functions have a look at the cairo documentation for "..url("http://www.cairographics.org/manual/cairo-cairo-t.html", "the drawing context")..", "..url("http://www.cairographics.org/manual/cairo-Transformations.html", "transformations").." and "..url("http://www.cairographics.org/manual/cairo-Paths.html", "paths")..".")
types.dt_lua_cairo_t.save:set_text("Save the state of the drawing context.")
types.dt_lua_cairo_t.save:set_reported_type("function")
types.dt_lua_cairo_t.save:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.restore:set_text("Restore a previously saved state.")
types.dt_lua_cairo_t.restore:set_reported_type("function")
types.dt_lua_cairo_t.restore:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.move_to:set_text("Begin a new sub-path.")
types.dt_lua_cairo_t.move_to:set_reported_type("function")
types.dt_lua_cairo_t.move_to:add_parameter("self", types.dt_lua_cairo_t, "The context to modify"):set_attribute("is_self", true)
types.dt_lua_cairo_t.move_to:add_parameter("x", "float", "The x coordinate of the new position.")
types.dt_lua_cairo_t.move_to:add_parameter("y", "float", "The y coordinate of the new position.")
types.dt_lua_cairo_t.line_to:set_text("Add a line to the path.")
types.dt_lua_cairo_t.line_to:set_reported_type("function")
types.dt_lua_cairo_t.line_to:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.line_to:add_parameter("x", "float", "The x coordinate of the end of the new line.")
types.dt_lua_cairo_t.line_to:add_parameter("y", "float", "The y coordinate of the end of the new line.")
types.dt_lua_cairo_t.rectangle:set_text("Add a closed sub-path rectangle.")
types.dt_lua_cairo_t.rectangle:set_reported_type("function")
types.dt_lua_cairo_t.rectangle:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.rectangle:add_parameter("x", "float", "The x coordinate of the top left corner of the rectangle.")
types.dt_lua_cairo_t.rectangle:add_parameter("y", "float", "The y coordinate of the top left corner of the rectangle.")
types.dt_lua_cairo_t.rectangle:add_parameter("width", "float", "The width of the rectangle.")
types.dt_lua_cairo_t.rectangle:add_parameter("height", "float", "The height of the rectangle.")
types.dt_lua_cairo_t.arc:set_text("Add a circular arc.")
types.dt_lua_cairo_t.arc:set_reported_type("function")
types.dt_lua_cairo_t.arc:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.arc:add_parameter("x", "float", "The x position of the center of the arc.")
types.dt_lua_cairo_t.arc:add_parameter("y", "float", "The y position of the center of the arc.")
types.dt_lua_cairo_t.arc:add_parameter("radius", "float", "The radius of the arc.")
types.dt_lua_cairo_t.arc:add_parameter("angle1", "float", "The start angle, in radians.")
types.dt_lua_cairo_t.arc:add_parameter("angle2", "float", "The end angle, in radians.")
types.dt_lua_cairo_t.arc_negative:set_text("Add a circular arc. It only differs in the direction from "..my_tostring(types.dt_lua_cairo_t.arc)..".")
types.dt_lua_cairo_t.arc_negative:set_reported_type("function")
types.dt_lua_cairo_t.arc_negative:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.arc_negative:add_parameter("x", "float", "The x position of the center of the arc.")
types.dt_lua_cairo_t.arc_negative:add_parameter("y", "float", "The y position of the center of the arc.")
types.dt_lua_cairo_t.arc_negative:add_parameter("radius", "float", "The radius of the arc.")
types.dt_lua_cairo_t.arc_negative:add_parameter("angle1", "float", "The start angle, in radians.")
types.dt_lua_cairo_t.arc_negative:add_parameter("angle2", "float", "The end angle, in radians.")
types.dt_lua_cairo_t.rotate:set_text("Add a rotation to the transformation matrix.")
types.dt_lua_cairo_t.rotate:set_reported_type("function")
types.dt_lua_cairo_t.rotate:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.rotate:add_parameter("angle", "float", "The angle (in radians) by which the user-space axes will be rotated.")
types.dt_lua_cairo_t.scale:set_text("Add a scaling to the transformation matrix.")
types.dt_lua_cairo_t.scale:set_reported_type("function")
types.dt_lua_cairo_t.scale:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.scale:add_parameter("x", "float", "The scale factor for the x dimension.")
types.dt_lua_cairo_t.scale:add_parameter("y", "float", "The scale factor for the y dimension.")
types.dt_lua_cairo_t.translate:set_text("Add a translation to the transformation matrix.")
types.dt_lua_cairo_t.translate:set_reported_type("function")
types.dt_lua_cairo_t.translate:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.translate:add_parameter("x", "float", "Amount to translate in the x direction")
types.dt_lua_cairo_t.translate:add_parameter("y", "float", "Amount to translate in the y direction")
types.dt_lua_cairo_t.new_sub_path:set_text("Begin a new sub-path.")
types.dt_lua_cairo_t.new_sub_path:set_reported_type("function")
types.dt_lua_cairo_t.new_sub_path:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.draw_line:set_text("Helper function to draw a line with a given start and end.")
types.dt_lua_cairo_t.draw_line:set_reported_type("function")
types.dt_lua_cairo_t.draw_line:add_parameter("self", types.dt_lua_cairo_t, "The context to modify."):set_attribute("is_self", true)
types.dt_lua_cairo_t.draw_line:add_parameter("x_start", "float", "The x coordinate of the start of the new line.")
types.dt_lua_cairo_t.draw_line:add_parameter("y_start", "float", "The y coordinate of the start of the new line.")
types.dt_lua_cairo_t.draw_line:add_parameter("x_end", "float", "The x coordinate of the end of the new line.")
types.dt_lua_cairo_t.draw_line:add_parameter("y_end", "float", "The y coordinate of the end of the new line.")
types.lua_widget:set_text("Common parent type for all lua-handled widgets");
types.lua_widget.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_widget.sensitive:set_text("Set if the widget is enabled/disabled");
types.lua_widget.tooltip:set_text("Tooltip to display for the widget");
types.lua_widget.tooltip:set_reported_type("string or nil")
types.lua_widget.reset_callback:set_text("A function to call when the widget needs to reset itself"..para()..
"Note that some widgets have a default implementation that can be overridden, (containers in particular will recursively reset their children). If you replace that default implementation you need to reimplement that functionality or call the original function within your callback")
types.lua_widget.reset_callback:set_reported_type("function")
types.lua_widget.reset_callback:add_parameter("widget",types.lua_widget,"The widget that triggered the callback")
types.lua_widget.__call:set_main_parent(types.lua_widget)
types.lua_widget.__call:set_text("Using a lua widget as a function Allows to set multiple attributes of that widget at once. This is mainly used to create UI elements in a more readable way"..para()..
"For example:"..code([[
local widget = dt.new_widget("button"){
label ="my label",
clicked_callback = function() print "hello world" end
}]]))
types.lua_widget.__call:add_parameter("attributes","table","A table of attributes => value to set")
types.lua_widget.__call:add_return(types.lua_widget,"The object called itself, to allow chaining")
types.lua_container:set_text("A widget containing other widgets");
types.lua_container.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_container["#"]:set_reported_type(types.lua_widget)
types.lua_container["#"]:set_text("The widgets contained by the box"..para()..
"You can append widgets by adding them at the end of the list"..para()..
"You can remove widgets by setting them to nil")
types.lua_check_button:set_text("A checkable button with a label next to it");
types.lua_check_button.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_check_button.label:set_reported_type("string")
types.lua_check_button.label:set_text("The label displayed next to the button");
types.lua_check_button.value:set_text("If the widget is checked or not");
types.lua_check_button.clicked_callback:set_text("A function to call on button click")
types.lua_check_button.clicked_callback:set_reported_type("function")
types.lua_check_button.clicked_callback:add_parameter("widget",types.lua_widget,"The widget that triggered the callback")
types.lua_label:set_text("A label containing some text");
types.lua_label.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_label.label:set_text("The label displayed");
types.lua_label.selectable:set_text("True if the label content should be selectable");
types.lua_label.halign:set_text("The horizontal alignment of the label");
types.lua_label.halign:set_reported_type(types.dt_lua_align_t)
types.lua_label.ellipsize:set_text("The ellipsize mode of the label");
types.lua_label.ellipsize:set_reported_type(types.dt_lua_ellipsize_mode_t)
types.lua_button:set_text("A clickable button");
types.lua_button.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_button.label:set_reported_type("string")
types.lua_button.label:set_text("The label displayed on the button");
types.lua_button.clicked_callback:set_text("A function to call on button click")
types.lua_button.clicked_callback:set_reported_type("function")
types.lua_button.clicked_callback:add_parameter("widget",types.lua_widget,"The widget that triggered the callback")
types.lua_box:set_text("A container for widget in a horizontal or vertical list");
types.lua_box.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_box.orientation:set_text("The orientation of the box.")
types.lua_box.orientation:set_reported_type(types.dt_lua_orientation_t)
types.lua_entry:set_text("A widget in which the user can input text")
types.lua_entry.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_entry.text:set_text("The content of the entry")
types.lua_entry.placeholder:set_reported_type("string")
types.lua_entry.placeholder:set_text("The text to display when the entry is empty")
types.lua_entry.is_password:set_text("True if the text content should be hidden")
types.lua_entry.editable:set_text("False if the entry should be read-only")
types.lua_separator:set_text("A widget providing a separation in the UI.")
types.lua_separator.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_separator.orientation:set_text("The orientation of the separator.")
types.lua_combobox:set_text("A widget with multiple text entries in a menu"..para()..
"This widget can be set as editable at construction time."..para()..
"If it is editable the user can type a value and is not constrained by the values in the menu")
types.lua_combobox.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_combobox.value:set_reported_type("string")
types.lua_combobox.value:set_text("The text content of the selected entry, can be nil"..para()..
"You can set it to a number to select the corresponding entry from the menu"..para()..
"If the combo box is editable, you can set it to any string"..para()..
"You can set it to nil to deselect all entries")
types.lua_combobox.selected:set_text("The index of the selected entry, or 0 if nothing is selected"..para()..
"You can set it to a number to select the corresponding entry from the menu, or to 0 to select nothing"..para()..
"You can set it to nil to deselect all entries")
types.lua_combobox.selected:set_reported_type("integer")
types.lua_combobox["#"]:set_text("The various menu entries."..para()..
"You can add new entries by writing to the first element beyond the end"..para()..
"You can removes entries by setting them to nil")
types.lua_combobox["#"]:set_reported_type("string")
types.lua_combobox.changed_callback:set_text("A function to call when the value field changes (character entered or value selected)")
types.lua_combobox.changed_callback:set_reported_type("function")
types.lua_combobox.changed_callback:add_parameter("widget",types.lua_widget,"The widget that triggered the callback")
types.lua_combobox.editable:set_text("True is the user is allowed to type a string in the combobox")
types.lua_combobox.label:set_text("The label displayed on the combobox");
types.lua_file_chooser_button:set_text("A button that allows the user to select an existing file")
types.lua_file_chooser_button.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_file_chooser_button.title:set_text("The title of the window when choosing a file")
types.lua_file_chooser_button.value:set_text("The currently selected file")
types.lua_file_chooser_button.value:set_reported_type("string")
types.lua_file_chooser_button.changed_callback:set_text("A function to call when the value field changes (character entered or value selected)")
types.lua_file_chooser_button.changed_callback:set_reported_type("function")
types.lua_file_chooser_button.changed_callback:add_parameter("widget",types.lua_widget,"The widget that triggered the callback")
types.lua_file_chooser_button.is_directory:set_text("True if the file chooser button only allows directories to be selected")
types.lua_stack:set_text("A container that will only show one of its child at a time")
types.lua_stack.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_stack.active:set_text("The currently selected child, can be nil if the container has no child, can be set to one of the child widget or to an index in the child table")
types.lua_stack.active:set_reported_type(my_tostring(types.lua_widget).." or nil")
types.lua_slider:set_text("A slider that can be set by the user")
types.lua_slider.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_slider.soft_min:set_text("The soft minimum value for the slider, the slider can't go beyond this point")
types.lua_slider.soft_max:set_text("The soft maximum value for the slider, the slider can't go beyond this point")
types.lua_slider.hard_min:set_text("The hard minimum value for the slider, the user can't manually enter a value beyond this point")
types.lua_slider.hard_max:set_text("The hard maximum value for the slider, the user can't manually enter a value beyond this point")
types.lua_slider.step:set_text("The step width of the slider")
types.lua_slider.digits:set_text("The number of decimal digits shown on the slider")
types.lua_slider.digits:set_reported_type("integer")
types.lua_slider.value:set_text("The current value of the slider")
types.lua_slider.label:set_text("The label next to the slider")
types.lua_slider.label:set_reported_type("string")
types.lua_text_view:set_text("A multiline text input widget")
types.lua_text_view.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_text_view.text:set_text("The text in the widget")
types.lua_text_view.editable:set_text("False if the entry should be read-only")
types.lua_section_label:set_text("A section label");
types.lua_section_label.extra_registration_parameters:set_text("This widget has no extra registration parameters")
types.lua_section_label.label:set_text("The section name");
----------------------
-- EVENTS --
----------------------
events:set_text([[This section documents events that can be used to trigger Lua callbacks.]])
events["intermediate-export-image"]:set_text([[This event is called each time an image is exported, once for each image after the image has been processed to an image format but before the storage has moved the image to its final destination. The call is blocking.]])
events["intermediate-export-image"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["intermediate-export-image"].callback:add_parameter("image",types.dt_lua_image_t,[[The image object that has been exported.]])
events["intermediate-export-image"].callback:add_parameter("filename","string",[[The name of the file that is the result of the image being processed.]])
events["intermediate-export-image"].callback:add_parameter("format",types.dt_imageio_module_format_t,[[The format used to export the image.]])
events["intermediate-export-image"].callback:add_parameter("storage",types.dt_imageio_module_storage_t,[[The storage used to export the image (can be nil).]])
events["intermediate-export-image"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["post-import-image"]:set_text([[This event is triggered whenever a new image is imported into the database.
This event can be registered multiple times, all callbacks will be called. The call is blocking.]])
events["post-import-image"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["post-import-image"].callback:add_parameter("image",types.dt_lua_image_t,[[The image object that has been imported.]])
events["post-import-image"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["shortcut"]:set_text([[This event registers a new keyboard shortcut. The shortcut isn't bound to any key until the users does so in the preference panel.
The event is triggered whenever the shortcut is triggered.
This event can only be registered once per value of shortcut.
]])
events["shortcut"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["shortcut"].callback:add_parameter("shortcut","string",[[The tooltip string that was given at registration time.]])
events["shortcut"].extra_registration_parameters:set_text("")
events["shortcut"].extra_registration_parameters:add_parameter("tooltip","string",[[The string that will be displayed on the shortcut preference panel describing the shortcut.]])
events["post-import-film"]:set_text([[This event is triggered when an film import is finished (all post-import-image callbacks have already been triggered). This event can be registered multiple times.
]])
events["post-import-film"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["post-import-film"].callback:add_parameter("film",types.dt_lua_film_t,[[The new film that has been added. If multiple films were added recursively only the top level film is reported.]])
events["post-import-film"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["view-changed"]:set_text([[This event is triggered after the user changed the active view]])
events["view-changed"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["view-changed"].callback:add_parameter("old_view",types.dt_lua_view_t,[[The view that we just left]])
events["view-changed"].callback:add_parameter("new_view",types.dt_lua_view_t,[[The view we are now in]])
events["view-changed"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["global_toolbox-grouping_toggle"]:set_text([[This event is triggered after the user toggled the grouping button.]])
events["global_toolbox-grouping_toggle"].callback:add_parameter("toggle", "boolean", [[the new grouping status.]]);
events["global_toolbox-grouping_toggle"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["global_toolbox-overlay_toggle"]:set_text([[This event is triggered after the user toggled the overlay button.]])
events["global_toolbox-overlay_toggle"].callback:add_parameter("toggle", "boolean", [[the new overlay status.]]);
events["global_toolbox-overlay_toggle"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["mouse-over-image-changed"]:set_text([[This event is triggered whenever the image under the mouse changes]])
events["mouse-over-image-changed"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["mouse-over-image-changed"].callback:add_parameter("image",types.dt_lua_image_t,[[The new image under the mouse, can be nil if there is no image under the mouse]])
events["mouse-over-image-changed"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["exit"]:set_text([[This event is triggered when darktable exits, it allows lua scripts to do cleanup jobs]])
events["exit"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
events["pre-import"]:set_text("This event is trigger before any import action");
events["pre-import"].callback:add_parameter("event","string",[[The name of the event that triggered the callback.]])
events["pre-import"].callback:add_parameter("images","table of string",[[The files that will be imported. Modifying this table will change the list of files that will be imported"]])
events["pre-import"].extra_registration_parameters:set_text([[This event has no extra registration parameters.]])
----------------------
-- ATTRIBUTES --
----------------------
function invisible_attr(attr)
attr:set_skiped()
attr:set_attribute("internal_attr",true);
end
attributes:set_text([[This section documents various attributes used throughout the documentation.]])
invisible_attr(attributes.ret_val)
invisible_attr(attributes.signature)
invisible_attr(attributes.reported_type)
invisible_attr(attributes.is_singleton)
invisible_attr(attributes.optional)
invisible_attr(attributes.skiped)
invisible_attr(attributes.is_attribute)
invisible_attr(attributes.internal_attr)
invisible_attr(attributes.read)
invisible_attr(attributes.has_pairs)
invisible_attr(attributes.is_self)
invisible_attr(attributes.has_length)
attributes.write:set_text([[This object is a variable that can be written to.]])
--attributes.has_pairs:set_text([[This object can be used as an argument to the system function "pairs" and iterated upon.]])
--attributes.has_equal:set_text([[This object has a specific comparison function that will be used when comparing it to an object of the same type.]])
--attributes.has_length:set_text([[This object has a specific length function that will be used by the # operator.]])
attributes.has_tostring:set_text([[This object has a specific reimplementation of the "tostring" method that allows pretty-printing it.]])
attributes.implicit_yield:set_text([[This call will release the Lua lock while executing, thus allowing other Lua callbacks to run.]])
attributes.parent:set_text([[This object inherits some methods from another object. You can call the methods from the parent on the child object]])
--attributes.views:set_skiped();
--attributes.position:set_skiped();
--attributes.container:set_skiped();
attributes.values:set_skiped();
--
-- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_selonian_m_04.lua | 3 | 2200 | --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_selonian_m_04 = object_mobile_shared_dressed_selonian_m_04:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_selonian_m_04, "object/mobile/dressed_selonian_m_04.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/loot/items/wearables/ithorian/ith_jacket_s12.lua | 4 | 1146 | ith_jacket_s12 = {
-- Ithorian Warm Jacket
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/ithorian/ith_jacket_s12.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2","/private/index_color_3","/private/index_color_4"},
customizationValues = {
{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47},
{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},
{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},
{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}
},
junkDealerTypeNeeded = JUNKCLOTHESANDJEWELLERY,
junkMinValue = 45,
junkMaxValue = 90
}
addLootItemTemplate("ith_jacket_s12", ith_jacket_s12) | agpl-3.0 |
DailyShana/ygopro-scripts | c84808313.lua | 5 | 1666 | --大進化薬
function c84808313.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c84808313.cost)
e1:SetTarget(c84808313.target)
c:RegisterEffect(e1)
--reduce tribute
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DECREASE_TRIBUTE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_HAND,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_DINOSAUR))
e2:SetValue(0x20002)
c:RegisterEffect(e2)
--remain field
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_REMAIN_FIELD)
c:RegisterEffect(e3)
end
function c84808313.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_DINOSAUR) end
local g=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_DINOSAUR)
Duel.Release(g,REASON_COST)
end
function c84808313.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
c:SetTurnCounter(0)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_SZONE)
e1:SetCondition(c84808313.descon)
e1:SetOperation(c84808313.desop)
e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1)
end
function c84808313.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c84808313.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetTurnCounter()
ct=ct+1
c:SetTurnCounter(ct)
if ct==3 then
Duel.Destroy(c,REASON_RULE)
end
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c69542930.lua | 3 | 1311 | --光と闇の洗礼
function c69542930.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c69542930.cost)
e1:SetTarget(c69542930.target)
e1:SetOperation(c69542930.activate)
c:RegisterEffect(e1)
end
function c69542930.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,46986414) end
local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,1,nil,46986414)
Duel.Release(g,REASON_COST)
end
function c69542930.filter(c,e,tp)
return c:IsCode(40737112) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end
function c69542930.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c69542930.filter,tp,0x13,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x13)
end
function c69542930.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c69542930.filter,tp,0x13,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
| gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.