repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278 values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15 values |
|---|---|---|---|---|---|
CZ-NIC/nuci | src/lua_plugins/user-notify.lua | 1 | 6008 | --[[
Copyright 2014-2015, CZ.NIC z.s.p.o. (http://www.nic.cz/)
This file is part of NUCI configuration server.
NUCI 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.
NUCI is distributed in the hope that 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 NUCI. If not, see <http://www.gnu.org/licenses/>.
]]
require("datastore");
require("nutils");
local datastore = datastore("user-notify.yin");
local dir = '/tmp/user_notify'
local test_dir = '/tmp/user_notify_test'
function send_message(severity, text)
local wdir = dir;
if severity == 'test' then
wdir = test_dir;
end;
-- -t = trigger sending right now and wait for it to finish (and fail if it does so)
local ecode, stdout, stderr = run_command(nil, 'create_notification', '-t', '-d', wdir, '-s', severity, text.cs or text['-'], text.en or text['-']);
if ecode ~= 0 then
return nil, "Failed to send: " .. stderr;
end
return '<ok/>';
end
local severities = { restart = true, error = true, update = true, news = true };
function datastore:user_rpc(rpc, data)
local xml = xmlwrap.read_memory(data);
local root = xml:root();
if rpc == 'message' then
local data, err = extract_multi_texts(root, {'severity'}, self.model_ns);
if err then
return nil, err;
end
local texts = {}
for child in root:iterate() do
local name, ns = child:name();
if name == 'body' and ns == self.model_ns then
local lang = child:attribute('xml:lang') or '-';
texts[lang] = child:text();
end
end
if (not texts['-']) and (not (texts['cs'] and texts['en'])) then
return nil, {
msg = "Missing message body in at least one language",
app_tag = 'data-missing',
info_badelem = 'body',
info_badns = self.model_ns
};
end
if not severities[data[1]] then
return nil, {
msg = 'Unknown message severity: ' .. data[1],
app_tag = 'invalid-value',
info_badelem = 'severity',
info_badns = self.model_ns
};
end
nlog(NLOG_INFO, "Sending message " .. data[1]);
return send_message(data[1], texts);
elseif rpc == 'test' then
nlog(NLOG_INFO, "Sending test message");
local result, err = send_message('test', {['-'] = 'Test test test! :-)'});
run_command(nil, 'sh', '-c', 'rm -rf ' .. test_dir);
return result, err;
elseif rpc == 'display' then
local ids = {};
for mid in root:iterate() do
local name, ns = mid:name();
if name == 'message-id' and ns == self.model_ns then
local id = mid:text();
table.insert(ids, id);
end
end
local ecode, stdout, stderr = run_command(nil, 'user-notify-display', unpack(ids));
if ecode ~= 0 then
return nil, "Error marking messages as displayed: " .. stderr;
end
return '<ok/>';
else
return nil, {
msg = "Command '" .. rpc .. "' not known",
app_tag = 'unknown-element',
info_badelem = rpc,
info_badns = self.model_ns
};
end
end
function datastore:message(dir, root)
function getcontent(name)
local file, err = io.open(dir .. '/' .. name);
if not file then
return nil, err;
end
local result = file:read("*a");
file:close();
return trimr(result);
end
function exists(name)
-- This is not really check for existence of file, but it is OK for our use ‒ the file should be readable if it exists
local file, err = io.open(dir .. '/' .. name);
if file then
file:close();
return true;
else
return false;
end
end
local severity, seerr = getcontent('severity');
local body, berr = getcontent('message');
local body_en, beerr = getcontent('message_en');
local body_cs, bcerr = getcontent('message_cs');
local err;
if berr and (bcerr or berr) then
err = bcerr or beerr;
end
local err = serr or err;
if err then
return err;
end
local sent = exists('sent_by_email');
local displayed = exists('displayed');
local id = dir:match('[^/]+$');
local mnode = root:add_child('message');
mnode:add_child('id'):set_text(id);
local ben = mnode:add_child('body');
ben:set_text(body_en or body);
ben:set_attribute('xml:lang', 'en');
local bcs = mnode:add_child('body');
bcs:set_text(body_cs or body);
bcs:set_attribute('xml:lang', 'cs');
mnode:add_child('severity'):set_text(severity);
local ok, atime, mtime, ctime = pcall(function()
return file_times(dir .. '/' .. 'message');
end);
if not ok then
atime, mtime, ctime = file_times(dir .. '/' .. 'message_cs');
end
mnode:add_child('timestamp'):set_text(math.floor(mtime));
if sent then
mnode:add_child('sent');
end
if displayed then
mnode:add_child('displayed');
end
end
function datastore:get()
local ecode = run_command(nil, 'sh', '-c', 'mkdir -p ' .. dir .. ' ; while ! mkdir ' .. dir .. '/.locked ; do sleep 1 ; done');
if ecode ~= 0 then
return nil, "Couldn't lock message storage";
end
local ok, result = pcall(function()
local ok, dirs = pcall(function() return dir_content(dir) end);
if not ok then
nlog(NLOG_WARN, "The directory " .. dir .. " can't be scanned ‒ it probably doesn't exist: " .. dirs);
return nil, "Couldn't read notification storage.";
end
local result = '';
local xml = xmlwrap.new_xml_doc('messages', self.model_ns);
local root = xml:root();
for _, dir in ipairs(dirs) do
if dir.filename:match('/[%d%-]+/?$') and dir.type == 'd' then -- Check it is message, not lockdir.
local err = self:message(dir.filename, root);
if err then
nlog(NLOG_ERROR, "Message in " .. dir.filename .. " is broken: " .. err);
end
end
end
return xml:strdump();
end);
run_command(nil, 'sh', '-c', 'rm -rf ' .. dir .. '/.locked');
if ok then
return result;
else
return nil, result;
end
end
register_datastore_provider(datastore);
| gpl-3.0 |
Whitechaser/darkstar | scripts/zones/Aydeewa_Subterrane/npcs/Excavation_Site.lua | 5 | 1458 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: Excavation Site (Olduum Ring quest)
-- !pos 390 1 349 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Aydeewa_Subterrane/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
if (player:hasKeyItem(DKHAAYAS_RESEARCH_JOURNAL)) then -- If no journal, just stop right here
if (trade:hasItemQty(605,1) and trade:getItemCount() == 1) then -- Trade Pickaxe
local keyItems =
{
ELECTROCELL,
ELECTROPOT,
ELECTROLOCOMOTIVE,
}
local KI = math.random(1,3);
if (player:hasKeyItem(ELECTROCELL) or player:hasKeyItem(ELECTROPOT) or player:hasKeyItem(ELECTROLOCOMOTIVE)) == false then
player:tradeComplete();
player:addKeyItem(keyItems[KI]);
player:messageSpecial(KEYITEM_OBTAINED, keyItems[KI]);
end
end
end
end;
function onTrigger(player,npc)
player:messageSpecial(NOTHING_HAPPENS);
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 | c84824601.lua | 3 | 1186 | --ボタニティ・ガール
function c84824601.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(84824601,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c84824601.condition)
e1:SetTarget(c84824601.target)
e1:SetOperation(c84824601.operation)
c:RegisterEffect(e1)
end
function c84824601.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end
function c84824601.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c84824601.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c84824601.filter(c)
return c:IsDefenceBelow(1000) and c:IsRace(RACE_PLANT) and c:IsAbleToHand()
end
function c84824601.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c84824601.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
| gpl-2.0 |
njligames/NJLIGameEngine | projects/ELIA_macOS_Xcode/build/Release/NJLIGameEngine.app/Contents/Resources/assets/scripts/YAPPYBIRDS/SCENES/MENU/STATES/HighScores.lua | 4 | 5035 | local BaseClass = require "NJLI.STATEMACHINE.SceneEntityState"
local HighScores = {}
HighScores.__index = HighScores
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--#############################################################################
--Begin Custom Code
--Required local functions:
-- __ctor()
-- __dtor()
-- __load()
-- __unLoad()
--#############################################################################
local __ctor = function(self, init)
--TODO: construct this Entity
end
local __dtor = function(self)
--TODO: destruct this Entity
end
local __load = function(self)
--TODO: load this Entity
end
local __unLoad = function(self)
--TODO: unload this Entity
end
--#############################################################################
function HighScores:enter()
BaseClass.enter(self)
end
function HighScores:update(timeStep)
BaseClass.update(self, timeStep)
end
function HighScores:exit()
BaseClass.exit(self)
end
function HighScores:onMessage(message)
BaseClass.onMessage(self, message)
end
function HighScores:renderHUD()
BaseClass.renderHUD(self)
end
function HighScores:touchesDown(touches)
BaseClass.touchesDown(self, touches)
end
function HighScores:touchesUp(touches)
BaseClass.touchesUp(self, touches)
end
function HighScores:touchesMove(touches)
BaseClass.touchesMove(self, touches)
end
function HighScores:touchesCancelled(touches)
BaseClass.touchesCancelled(self, touches)
end
function HighScores:touchDown(touches)
BaseClass.touchDown(self, touches)
end
function HighScores:touchUp(touches)
BaseClass.touchUp(self, touches)
end
function HighScores:touchMove(touches)
BaseClass.touchMove(self, touches)
end
function HighScores:touchCancelled(touches)
BaseClass.touchCancelled(self, touches)
end
function HighScores:mouseDown(mouse)
BaseClass.mouseDown(self, mouse)
end
function HighScores:mouseUp(mouse)
BaseClass.mouseUp(self, mouse)
end
function HighScores:mouseMove(mouse)
BaseClass.mouseMove(self, mouse)
end
function HighScores:pause()
BaseClass.pause(self)
end
function HighScores:unPause()
BaseClass.unPause(self)
end
function HighScores:keyboardShow()
BaseClass.keyboardShow(self)
end
function HighScores:keyboardCancel()
BaseClass.keyboardCancel(self)
end
function HighScores:keyboardReturn(text)
BaseClass.keyboardReturn(self, text)
end
function HighScores:willResignActive()
BaseClass.willResignActive(self)
end
function HighScores:didBecomeActive()
BaseClass.didBecomeActive(self)
end
function HighScores:didEnterBackground()
BaseClass.didEnterBackground(self)
end
function HighScores:willEnterForeground()
BaseClass.willEnterForeground(self)
end
function HighScores:willTerminate()
BaseClass.willTerminate(self)
end
function HighScores:interrupt()
BaseClass.interrupt(self)
end
function HighScores:resumeInterrupt()
BaseClass.resumeInterrupt(self)
end
function HighScores:receivedMemoryWarning()
BaseClass.receivedMemoryWarning(self)
end
--#############################################################################
--End Custom Code
--#############################################################################
--#############################################################################
--DO NOT EDIT BELOW
--#############################################################################
setmetatable(HighScores, {
__index = BaseClass,
__call = function (cls, ...)
local self = setmetatable({}, cls)
--Create the base first
BaseClass._create(self, ...)
self:_create(...)
return self
end,
})
function HighScores:className()
return "HighScores"
end
function HighScores:class()
return self
end
function HighScores:superClass()
return BaseClass
end
function HighScores:__gc()
--Destroy derived class first
HighScores._destroy(self)
--Destroy base class after derived class
BaseClass._destroy(self)
end
function HighScores:__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 HighScores:_destroy()
assert(not self.__HighScoresCalledLoad, "Must unload before you destroy")
__dtor(self)
end
function HighScores:_create(init)
self.__HighScoresCalledLoad = false
__ctor(self, init)
end
function HighScores:load()
--load base first
BaseClass.load(self)
--load derived last...
__load(self)
self.__HighScoresCalledLoad = true
end
function HighScores:unLoad()
assert(self.__HighScoresCalledLoad, "Must load before unHighScores")
--unload derived first...
__unLoad(self)
self.__HighScoresCalledLoad = false
--unload base last...
BaseClass.unLoad(self)
end
return HighScores
| mit |
Whitechaser/darkstar | scripts/zones/Bastok_Mines/npcs/Mille.lua | 5 | 1259 | -----------------------------------
-- Area: Bastok_Mines
-- NPC: Mille
-- Only sells when Bastok controlls Norvallen Region
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/globals/conquest");
require("scripts/globals/shop");
-----------------------------------
function onTrade(player,npc,trade)
onHalloweenTrade(player,trade,npc)
end;
function onTrigger(player,npc)
local RegionOwner = GetRegionOwner(NORVALLEN);
if (RegionOwner ~= NATION_BASTOK) then
player:showText(npc,MILLE_CLOSED_DIALOG);
else
player:showText(npc,MILLE_OPEN_DIALOG);
local stock =
{
688, 18, -- Arrowwood Log
698, 88, -- Ash Log
618, 25, -- Blue Peas
621, 25 -- Crying Mustard
}
showShop(player,BASTOK,stock);
end
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
jeblad/Pickle | includes/LuaLibrary/lua/pure/picklelib/Bag.lua | 2 | 5251 | --- Bag for managing values.
-- The semantics of a bag is to pop the oldest entry pushed into the bag.
-- This class follows the pattern from
-- [Lua classes](../topics/lua-classes.md.html).
-- @classmod Bag
-- pure libs
local libUtil = require 'libraryUtil'
-- @var class
local Bag = {}
--- Lookup of missing class members.
-- @raise on wrong arguments
-- @tparam string key lookup of member
-- @return any
function Bag:__index( key ) -- luacheck: no self
libUtil.checkType( 'Bag:__index', 1, key, 'string', false )
return Bag[key]
end
--- Create a new instance.
-- @tparam vararg ... forwarded to `_init()`
-- @treturn self
function Bag:create( ... )
local meta = rawget( self, 'create' ) and self or getmetatable( self )
local new = setmetatable( {}, meta )
return new:_init( ... )
end
--- Initialize a new instance.
-- @tparam vararg ... pushed on the bag
-- @treturn self
function Bag:_init( ... )
self._bag = {}
for _,v in ipairs( { ... } ) do
table.insert( self._bag, v )
end
return self
end
--- Is the bag empty.
-- Note that the internal structure is non-empty even if a nil
-- is pushed on the bag.
-- @treturn boolean whether the internal structure has length zero
function Bag:isEmpty()
return #self._bag == 0
end
--- What is the depth of the internal structure.
-- Note that the internal structure has a depth even if a nil
-- is pushed on the bag.
-- @treturn number how deep is the internal structure
function Bag:depth()
return #self._bag
end
--- Get the layout of the bag.
-- This method is used for testing to inspect which types of objects exists in the bag.
-- @treturn table description of the bag
function Bag:layout()
local t = {}
for i,v in ipairs( self._bag ) do
t[i] = type( v )
end
return t
end
--- Get a reference to the bottommost item in the bag.
-- The bottommost item can also be described as the first item to be handled.
-- This method leaves the item on the bag.
-- @nick first
-- @treturn any item that can be put on the bag
function Bag:bottom()
return self._bag[1]
end
Bag.first = Bag.bottom
--- Get a reference to the topmost item in the bag.
-- The topmost item can also be described as the last item to be handled.
-- This method leaves the item on the bag.
-- @nick last
-- @treturn any item that can be put on the bag
function Bag:top()
return self._bag[#self._bag]
end
Bag.last = Bag.top
--- Push a value on the bag.
-- This is stack-like semantics.
-- @treturn self facilitate chaining
function Bag:push( ... )
for _,v in ipairs( { ... } ) do
table.insert( self._bag, v )
end
return self
end
--- Unshift a value into the bag.
-- This is queue-like semantics.
-- @treturn self facilitate chaining
function Bag:unshift( ... )
for _,v in ipairs( { ... } ) do
table.insert( self._bag, 1, v )
end
return self
end
--- Pop the last num values pushed on the bag.
-- This is stack-like semantics.
-- Note that this will remove the last pushed (topmost) value.
-- @raise on wrong arguments
-- @tparam[opt=1] nil|number num items to drop
-- @treturn any item that can be put on the bag
function Bag:pop( num )
libUtil.checkType( 'Bag:pop', 1, num, 'number', true )
num = num or 1
assert( num >= 0, 'Bag:pop; num less than zero')
if num == 0 then
return
end
local t = {}
for i=1,num do
t[num - i + 1] = table.remove( self._bag )
end
return unpack( t )
end
--- Shift the first num values unshifted into the bag.
-- This is queue-like semantics.
-- Note that this will remove the first unshifted (topmost) value.
-- @raise on wrong arguments
-- @tparam[opt=1] nil|number num items to drop
-- @treturn any item that can be put on the bag
function Bag:shift( num )
libUtil.checkType( 'Bag:shift', 1, num, 'number', true )
num = num or 1
assert( num >= 0, 'Bag:shift; num less than zero')
if num == 0 then
return
end
local t = {}
for i=1,num do
t[i] = table.remove( self._bag )
end
return unpack( t )
end
--- Drop the topmost num values of the Bag.
-- Note that this will remove the topmost values.
-- @raise on wrong arguments
-- @tparam[opt=1] nil|number num items to drop
-- @treturn self facilitate chaining
function Bag:drop( num )
libUtil.checkType( 'Bag:drop', 1, num, 'number', true )
num = num or 1
assert( num >= 0, 'Bag:drop; num less than zero')
if num == 0 then
return self
end
for _=1,num do
table.remove( self._bag )
end
return self
end
--- Get the indexed entry.
-- Accessing this will not change stored values.
-- @raise on wrong arguments
-- @tparam[opt=1] nil|number idx entry from top, negative count from bottom
-- @treturn any item that can be put in the bag
function Bag:get( idx )
libUtil.checkType( 'Bag:get', 1, idx, 'number', true )
idx = idx or 1
assert( idx ~= 0, 'Bag:get, idx equal to zero')
idx = (idx > 0) and (#self._bag - idx + 1) or math.abs( idx )
return self._bag[idx]
end
--- Export a list of all the contents.
-- @treturn table list of values
function Bag:export()
local t = {}
for i,v in ipairs( self._bag ) do
t[i] = v
end
return unpack( t )
end
--- Flush all the contents.
-- Note that this clears the internal storage.
-- @treturn table list of values
function Bag:flush()
local t = { self:export() }
self._bag = {}
return unpack( t )
end
-- Return the final class.
return Bag
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/commands/tumbleToProne.lua | 4 | 2132 | --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
TumbleToProneCommand = {
name = "tumbletoprone",
}
AddCommand(TumbleToProneCommand)
| agpl-3.0 |
DailyShana/ygopro-scripts | c62473983.lua | 5 | 1562 | --墓守の長
function c62473983.initial_effect(c)
c:SetUniqueOnField(1,0,62473983)
--immune to necro valley
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_NECRO_VALLEY_IM)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,0)
c:RegisterEffect(e1)
--summon success
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCondition(c62473983.spcon)
e2:SetTarget(c62473983.sptg)
e2:SetOperation(c62473983.spop)
c:RegisterEffect(e2)
end
function c62473983.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),0xff000000)==SUMMON_TYPE_ADVANCE
end
function c62473983.filter(c,e,tp)
return c:IsSetCard(0x2e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c62473983.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c62473983.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c62473983.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c62473983.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c62473983.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/wookiee_lifeday_female2.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_wookiee_lifeday_female2 = object_mobile_shared_wookiee_lifeday_female2:new {
}
ObjectTemplates:addTemplate(object_mobile_wookiee_lifeday_female2, "object/mobile/wookiee_lifeday_female2.iff")
| agpl-3.0 |
KingRaptor/Zero-K | LuaUI/Widgets/gui_chili_selections_and_cursortip.lua | 2 | 30693 |
function widget:GetInfo()
return {
name = "Chili Selections & CursorTip New",
desc = "Chili Selection Window and Cursor Tooltip remake.",
author = "GoogleFrog (CarRepairer and jK orginal)",
date = "9 February 2017",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false,
}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
VFS.Include("LuaRules/Configs/customcmds.h.lua")
local spGetMouseState = Spring.GetMouseState
local spTraceScreenRay = Spring.TraceScreenRay
local spGetUnitRulesParam = Spring.GetUnitRulesParam
local spGetUnitHealth = Spring.GetUnitHealth
local spGetUnitIsStunned = Spring.GetUnitIsStunned
local strFormat = string.format
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local Chili
local screen0
local tooltipWindow
local ICON_SIZE = 20
local BAR_SIZE = 22
local BAR_FONT = 13
local IMAGE_FONT = 10
local DESC_FONT = 10
local TOOLTIP_FONT = 12
local NAME_FONT = 14
local LEFT_SPACE = 24
local LEFT_WIDTH = 55
local PIC_HEIGHT = LEFT_WIDTH*4/5
local RIGHT_WIDTH = 235
local green = '\255\1\255\1'
local red = '\255\255\1\1'
local cyan = '\255\1\255\255'
local white = '\255\255\255\255'
local yellow = '\255\255\255\1'
local HEALTH_IMAGE = 'LuaUI/images/commands/bold/health.png'
local COST_IMAGE = 'LuaUI/images/cost.png'
local TIME_IMAGE = 'LuaUI/images/clock.png'
local METAL_IMAGE = 'LuaUI/images/ibeam.png'
local ENERGY_IMAGE = 'LuaUI/images/energy.png'
local METAL_RECLAIM_IMAGE = 'LuaUI/images/ibeamReclaim.png'
local ENERGY_RECLAIM_IMAGE = 'LuaUI/images/energyReclaim.png'
local CURSOR_ERASE = 'eraser'
local CURSOR_POINT = 'flagtext'
local CURSOR_DRAW = 'pencil'
local CURSOR_ERASE_NAME = "map_erase"
local CURSOR_POINT_NAME = "map_point"
local CURSOR_DRAW_NAME = "map_draw"
local iconTypesPath = LUAUI_DIRNAME .. "Configs/icontypes.lua"
local icontypes = VFS.FileExists(iconTypesPath) and VFS.Include(iconTypesPath)
local _, iconFormat = VFS.Include(LUAUI_DIRNAME .. "Configs/chilitip_conf.lua" , nil, VFS.RAW_FIRST)
local terraformGeneralTip =
green.. 'Click&Drag'..white..': Free draw terraform. \n'..
green.. 'Alt+Click&Drag'..white..': Box terraform. \n'..
green.. 'Alt+Ctrl+Click&Drag'..white..': Hollow box terraform. \n'..
green.. 'Ctrl+Click on unit' ..white..': Terraform around unit. \n'..
'\n'
local terraCmdTip = {
[CMD_RAMP] =
green.. 'Step 1'..white..': Click to start ramp \n OR click&drag to start a ramp at desired height. \n'..
green.. 'Step 2'..white..': Click to set end of ramp \n OR click&drag to set end of ramp at desired height. \n Hold '..green..'Alt'..white..' to snap to certain levels of pathability. \n'..
green.. 'Step 3'..white..': Move mouse to set ramp width, click to complete. \n'..
'\n'..
yellow..'[Any Time]\n'..
green.. 'Space'..white..': Cycle through only raise/lower \n'..
'\n'..
yellow..'[Wireframe indicator colors]\n'..
green.. 'Green'..white..': All units can traverse. \n'..
green.. 'Yellow'..white..': Vehicles cannot traverse. \n'..
green.. 'Red'..white..': Only all-terrain / spiders can traverse.',
[CMD_LEVEL] = terraformGeneralTip ..
yellow..'[During Terraform Draw]\n'..
green.. 'Ctrl'..white..': Draw straight line segment. \n'..
'\n'..
yellow..'[After Terraform Draw]\n'..
green.. 'Alt'..white..': Snap to starting height / below water level (prevent ships) / below water level (prevent land units). \n'..
green.. 'Ctrl'..white..': Hold and point at terrain to level to height pointed at.\n'..
'\n'..
yellow..'[Any Time]\n'..
green.. 'Space'..white..': Cycle through only raise/lower',
[CMD_RAISE] = terraformGeneralTip ..
yellow..'[During Terraform Draw]\n'..
green.. 'Ctrl'..white..': Draw straight line segment. \n'..
'\n'..
yellow..'[After Terraform Draw]\n'..
green.. 'Alt'..white..': Snap to steps of 15 height. \n'..
green.. 'Ctrl'..white..': Snap to 0 height.',
[CMD_SMOOTH] = terraformGeneralTip ..
yellow..'[During Terraform Draw]\n'..
green.. 'Ctrl'..white..': Draw straight line segment.',
[CMD_RESTORE] = terraformGeneralTip ..
yellow..'[Any Time]\n'..
green.. 'Space'..white..': Limit to only raise/lower',
}
local DRAWING_TOOLTIP =
green.. 'Left click'..white..': Draw on map. \n' ..
green.. 'Right click'..white..': Erase. \n' ..
green.. 'Middle click'..white..': Place marker. \n' ..
green.. 'Double click'..white..': Place marker with label.'
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Variables
local drawHotkeyBytes = {}
local drawHotkeyBytesCount = 0
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Settings
options_path = 'Settings/HUD Panels/Tooltip'
local selPath = 'Settings/HUD Panels/Selected Units Panel'
options_order = {
--tooltip
'tooltip_delay', 'independant_world_tooltip_delay',
'show_for_units', 'show_for_wreckage', 'show_for_unreclaimable', 'show_position', 'show_unit_text', 'showdrawtooltip','showterratooltip',
'showDrawTools',
--selected units
--'selection_opacity', 'groupalways', 'showgroupinfo', 'squarepics','uniticon_size','unitCommand', 'manualWeaponReloadBar', 'alwaysShowSelectionWin',
--'fancySkinning', 'leftPadding',
}
options = {
tooltip_delay = {
name = 'Tooltip display delay (0 - 4s)',
desc = 'Determines how long you can leave the mouse idle until the tooltip is displayed.',
type = 'number',
min=0,max=4,step=0.05,
value = 0,
},
independant_world_tooltip_delay = {
name = 'Unit and Feature tooltip delay (0 - 4s)',
--desc = 'Determines how long you can leave the mouse over a unit or feature until the tooltip is displayed.',
type = 'number',
min=0,max=4,step=0.05,
value = 0.2,
},
show_for_units = {
name = "Show Tooltip for Units",
type = 'bool',
value = true,
noHotkey = true,
desc = 'Show the tooltip for units.',
},
show_for_wreckage = {
name = "Show Tooltip for Wreckage",
type = 'bool',
value = true,
noHotkey = true,
desc = 'Show the tooltip for wreckage and map features.',
},
show_for_unreclaimable = {
name = "Show Tooltip for Unreclaimables",
type = 'bool',
advanced = true,
value = false,
noHotkey = true,
desc = 'Show the tooltip for unreclaimable features.',
},
show_position = {
name = "Show Position Tooltip",
type = 'bool',
advanced = true,
value = true,
noHotkey = true,
desc = 'Show the position tooltip, even when showing extended tooltips.',
},
show_unit_text = {
name = "Show Unit Text Tooltips",
type = 'bool',
advanced = true,
value = true,
noHotkey = true,
desc = 'Show the text-only tooltips for units selected but not pointed at, even when showing extended tooltips.',
},
showdrawtooltip = {
name = "Show Map-drawing Tooltip",
type = 'bool',
value = true,
noHotkey = true,
desc = 'Show map-drawing tooltip when holding down the tilde (~).',
},
showterratooltip = {
name = "Show Terraform Tooltip",
type = 'bool',
value = true,
noHotkey = true,
desc = 'Show terraform tooltip when performing terraform commands.',
},
showDrawTools = {
name = "Show Drawing Tools When Drawing",
type = 'bool',
value = true,
noHotkey = true,
desc = 'Show pencil or eraser when drawing or erasing.'
},
--selection_opacity = {
-- name = "Opacity",
-- type = "number",
-- value = 0.8, min = 0, max = 1, step = 0.01,
-- OnChange = function(self)
-- window_corner.backgroundColor = {1,1,1,self.value}
-- window_corner:Invalidate()
-- end,
-- path = selPath,
--},
--groupalways = {name='Always Group Units', type='bool', value=false, OnChange = option_Deselect,
-- path = selPath,
--},
--showgroupinfo = {name='Show Group Info', type='bool', value=true, OnChange = option_Deselect,
-- path = selPath,
--},
--squarepics = {name='Square Buildpics', type='bool', value=false, OnChange = option_Deselect,
-- path = selPath,
--},
--unitCommand = {
-- name="Show Unit's Command",
-- type='bool',
-- value= false,
-- noHotkey = true,
-- desc = "Display current command on unit's icon (only for ungrouped unit selection)",
-- path = selPath,
--},
--uniticon_size = {
-- name = 'Icon size on selection list',
-- --desc = 'Determines how small the icon in selection list need to be.',
-- type = 'number',
-- OnChange = function(self)
-- option_Deselect()
-- unitIcon_size = math.modf(self.value)
-- end,
-- min=30,max=50,step=1,
-- value = 50,
-- path = selPath,
--},
--manualWeaponReloadBar = {
-- name="Show Unit's Special Weapon Status",
-- type='bool',
-- value= true,
-- noHotkey = true,
-- desc = "Show reload progress for weapon that use manual trigger (only for ungrouped unit selection)",
-- path = selPath,
-- OnChange = option_Deselect,
--},
--fancySkinning = {
-- name = 'Fancy Skinning',
-- type = 'radioButton',
-- value = 'panel',
-- path = selPath,
-- items = {
-- {key = 'panel', name = 'None'},
-- {key = 'panel_1120', name = 'Bottom Left Flush',},
-- {key = 'panel_0120', name = 'Bot Mid Left Flush',},
-- {key = 'panel_2120', name = 'Bot Mid Both Flush',},
-- },
-- OnChange = function (self)
-- local currentSkin = Chili.theme.skin.general.skinName
-- local skin = Chili.SkinHandler.GetSkin(currentSkin)
--
-- local className = self.value
-- local newClass = skin.panel
-- if skin[className] then
-- newClass = skin[className]
-- end
--
-- window_corner.tiles = newClass.tiles
-- window_corner.TileImageFG = newClass.TileImageFG
-- --window_corner.backgroundColor = newClass.backgroundColor
-- window_corner.TileImageBK = newClass.TileImageBK
-- if newClass.padding then
-- window_corner.padding = newClass.padding
-- window_corner:UpdateClientArea()
-- end
-- window_corner:Invalidate()
-- end,
-- advanced = true,
-- noHotkey = true,
--},
--leftPadding = {
-- name = "Left Padding",
-- type = "number",
-- value = 0, min = 0, max = 500, step = 1,
-- OnChange = function(self)
-- window_corner.padding[1] = 8 + self.value
-- window_corner:UpdateClientArea()
-- end,
-- path = selPath,
--},
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Utilities
function Round(num, idp)
if (not idp) then
return math.floor(num+.5)
else
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end
end
local function Format(amount, displaySign)
local formatted
if type(amount) == "number" then
if (amount ==0) then formatted = "0" else
if (amount < 20 and (amount * 10)%10 ~=0) then
if displaySign then formatted = strFormat("%+.1f", amount)
else formatted = strFormat("%.1f", amount) end
else
if displaySign then formatted = strFormat("%+d", amount)
else formatted = strFormat("%d", amount) end
end
end
else
formatted = amount .. ""
end
return formatted
end
local function FormatPlusMinus(num)
if num > 0.04 then
return green .. Format(num, true)
elseif num < -0.04 then
return red .. Format(num, true)
end
return Format(num)
end
local function GetHealthColor(fraction, returnString)
local midpt = (fraction > 0.5)
local r, g
if midpt then
r = (1 - fraction)*2
g = 1
else
r = 1
g = fraction*2
end
if returnString then
return string.char(255, math.floor(255*r), math.floor(255*g), 0)
end
return {r, g, 0, 1}
end
local iconTypeCache = {}
local function GetUnitIcon(unitDefID)
if unitDefID and iconTypeCache[unitDefID] then
return iconTypeCache[unitDefID]
end
local ud = UnitDefs[unitDefID]
if not ud then
return
end
iconTypeCache[unitDefID] = icontypes[(ud and ud.iconType or "default")].bitmap or 'icons/' .. ud.iconType .. iconFormat
return iconTypeCache[unitDefID]
end
local unitBorderCache = {}
local function GetUnitBorder(unitDefID)
if unitDefID and unitBorderCache[unitDefID] then
return unitBorderCache[unitDefID]
end
local ud = UnitDefs[unitDefID]
if not ud then
return
end
unitBorderCache[unitDefID] = WG.GetBuildIconFrame and WG.GetBuildIconFrame(ud)
return unitBorderCache[unitDefID]
end
local function GetUnitResources(unitID)
local mm, mu, em, eu = Spring.GetUnitResources(unitID)
mm = (mm or 0) + (spGetUnitRulesParam(unitID, "current_metalIncome") or 0)
em = (em or 0) + (spGetUnitRulesParam(unitID, "current_energyIncome") or 0)
eu = (eu or 0) + (spGetUnitRulesParam(unitID, "overdrive_energyDrain") or 0)
if mm ~= 0 or mu ~= 0 or em ~= 0 or eu ~= 0 then
return mm, (mu or 0), em, eu
else
return
end
end
local function GetUnitRegenString(unitID, ud)
if unitID and (not select(3, spGetUnitIsStunned(unitID))) then
local regen_timer = Spring.GetUnitRulesParam(unitID, "idleRegenTimer")
if regen_timer then
if ((ud.idleTime <= 300) and (regen_timer > 0)) then
return " (" .. math.ceil(regen_timer / 30) .. "s)"
else
local regen = 0
if (regen_timer <= 0) then
regen = regen + (spGetUnitRulesParam(unitID, "comm_autorepair_rate") or ud.customParams.idle_regen)
end
if ud.customParams.amph_regen then
local x,y,z = Spring.GetUnitPosition(unitID)
local h = Spring.GetGroundHeight(x,z) or y
if (h < 0) then
regen = regen + math.min(ud.customParams.amph_regen, ud.customParams.amph_regen*(-h / ud.customParams.amph_submerged_at))
end
end
if ud.customParams.armored_regen and Spring.GetUnitArmored(unitID) then
regen = regen + ud.customParams.armored_regen
end
if (regen > 0) then
return " (+" .. math.ceil(regen) .. ")"
end
end
end
end
end
local function GetPlayerCaption(teamID)
local _, player,_,isAI = Spring.GetTeamInfo(teamID)
local playerName
if isAI then
local _, aiName, _, shortName = Spring.GetAIInfo(teamID)
playerName = aiName ..' ('.. shortName .. ')'
else
playerName = player and Spring.GetPlayerInfo(player) or 'noname'
end
local teamColor = Chili.color2incolor(Spring.GetTeamColor(teamID))
return WG.Translate("interface", "player") .. ': ' .. teamColor .. playerName
end
local function GetIsHoldingDrawKey()
if drawHotkeyBytesCount == 0 then
WG.drawtoolKeyPressed = false
return false
end
for i = 1, drawHotkeyBytesCount do
local key = drawHotkeyBytes[i]
if Spring.GetKeyState(key) then
WG.drawtoolKeyPressed = true
return true
end
end
WG.drawtoolKeyPressed = false
return false
end
local function UpdateMouseCursor(holdingDrawKey)
if not holdingDrawKey then
return
end
local x, y, drawing, addingPoint, erasing = Spring.GetMouseState()
if addingPoint then
Spring.SetMouseCursor(CURSOR_POINT_NAME)
elseif erasing then
Spring.SetMouseCursor(CURSOR_ERASE_NAME)
else
Spring.SetMouseCursor(CURSOR_DRAW_NAME)
end
end
local UnitDefIDByHumanName_cache = {}
local function GetUnitDefByHumanName(humanName)
local cached_unitDefID = UnitDefIDByHumanName_cache[humanName]
if (cached_udef ~= nil) then
return cached_udef
end
for i = 1, #UnitDefs do
local ud = UnitDefs[i]
if (ud.humanName == humanName) then
UnitDefIDByHumanName_cache[humanName] = i
return i
end
end
UnitDefIDByHumanName_cache[humanName] = false
return false
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Unit tooltip window components
local function GetBar(parentControl, initY, imageFile, color, colorFunc)
local image = Chili.Image:New{
x = 0,
y = initY,
width = ICON_SIZE,
height = ICON_SIZE,
file = imageFile,
parent = parentControl,
}
local bar = Chili.Progressbar:New {
x = ICON_SIZE + 1,
y = initY,
right = 0,
height = BAR_SIZE,
max = 1,
color = color,
itemMargin = {0,0,0,0},
itemPadding = {0,0,0,0},
padding = {0,0,0,0},
caption = '',
font = {size = BAR_FONT},
parent = parentControl
}
local function UpdateBar(visible, yPos, currentValue, maxValue, extraCaption, newCaption)
image:SetVisibility(visible)
bar:SetVisibility(visible)
if not visible then
return
end
if yPos then
image:SetPos(nil, yPos)
bar:SetPos(nil, yPos)
end
if not newCaption then
newCaption = Format(currentValue) .. ' / ' .. Format(maxValue)
if extraCaption then
newCaption = newCaption .. extraCaption
end
end
bar:SetCaption(newCaption)
if colorFunc then
color = colorFunc(currentValue/maxValue)
bar.color = color
end
bar:SetValue(currentValue/maxValue)
end
return UpdateBar
end
local function GetImageWithText(parentControl, initY, imageFile, caption, fontSize, iconSize, textOffset)
fontSize = fontSize or IMAGE_FONT
iconSize = iconSize or ICON_SIZE
local image = Chili.Image:New{
x = 0,
y = initY,
width = iconSize,
height = iconSize,
file = imageFile,
parent = parentControl,
}
local label = Chili.Label:New{
x = iconSize + 2,
y = initY + (textOffset or 0),
right = 0,
height = BAR_SIZE,
caption = IMAGE_FONT,
fontSize = fontSize,
parent = parentControl,
}
local function Update(visible, newCaption, newImage, yPos)
image:SetVisibility(visible)
label:SetVisibility(visible)
if not visible then
return
end
if yPos then
image:SetPos(nil, yPos)
label:SetPos(nil, yPos + textOffset)
end
label:SetCaption(newCaption)
if newImage ~= imageFile then
if imageFile == nil then
label:SetPos(iconSize + 2)
elseif newImage == nil then
label:SetPos(2)
end
imageFile = newImage
image.file = imageFile
image:Invalidate()
end
end
return Update
end
local function GetMorphInfo(parentControl, yPos)
local holder = Chili.Control:New{
x = 0,
y = yPos,
right = 0,
height = ICON_SIZE,
padding = {0,0,0,0},
parent = parentControl,
}
local morphLabel = Chili.Label:New{
x = 4,
y = 0,
height = ICON_SIZE,
width = 50,
valign = 'center',
caption = cyan .. 'Morph:',
fontSize = BAR_FONT,
parent = holder,
}
local timeImage = Chili.Image:New{
x = 54,
y = 0,
width = ICON_SIZE,
height = ICON_SIZE,
file = TIME_IMAGE,
parent = holder,
}
local timeLabel = Chili.Label:New{
x = 54 + ICON_SIZE + 4,
y = 4,
right = 0,
height = BAR_SIZE,
caption = BAR_FONT,
fontSize = fontSize,
parent = holder,
}
local costImage = Chili.Image:New{
x = 114,
y = 0,
width = ICON_SIZE,
height = ICON_SIZE,
file = COST_IMAGE,
parent = holder,
}
local costLabel = Chili.Label:New{
x = 113 + ICON_SIZE + 4,
y = 4,
right = 0,
height = BAR_SIZE,
caption = BAR_FONT,
fontSize = fontSize,
parent = holder,
}
local function Update(visible, newTime, newCost, yPos)
holder:SetVisibility(visible)
if not visible then
return
end
if yPos then
holder:SetPos(nil, yPos)
end
timeLabel:SetCaption(cyan .. newTime)
costLabel:SetCaption(cyan .. newCost)
end
return Update
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Unit tooltip window
local function GetSingleUnitInfoPanel(parentControl, isTooltipVersion)
local leftPanel = Chili.Control:New{
x = 0,
y = 0,
width = LEFT_WIDTH,
minWidth = LEFT_WIDTH,
autosize = true,
padding = {0,0,0,0},
parent = parentControl,
}
local rightPanel = Chili.Control:New{
x = LEFT_WIDTH,
y = 0,
width = RIGHT_WIDTH,
minWidth = RIGHT_WIDTH,
autosize = true,
padding = {2,0,0,0},
parent = parentControl,
}
local unitImage = Chili.Image:New{
x = 0,
y = 0,
right = 0,
height = PIC_HEIGHT,
keepAspect = false,
file = imageFile,
parent = leftPanel,
}
local unitNameUpdate = GetImageWithText(rightPanel, 1, nil, nil, NAME_FONT, nil, 3)
local unitDesc = Chili.TextBox:New{
x = 4,
y = 25,
right = 0,
height = BAR_SIZE,
fontSize = DESC_FONT,
parent = rightPanel,
}
local costInfoUpdate = GetImageWithText(leftPanel, PIC_HEIGHT + 4, COST_IMAGE, nil, nil, ICON_SIZE, 5)
local metalInfoUpdate = GetImageWithText(leftPanel, PIC_HEIGHT + LEFT_SPACE + 4, METAL_IMAGE, nil, nil, ICON_SIZE, 5)
local energyInfoUpdate = GetImageWithText(leftPanel, PIC_HEIGHT + 2*LEFT_SPACE + 4, ENERGY_IMAGE, nil, nil, ICON_SIZE, 5)
local healthBarUpdate = GetBar(rightPanel, PIC_HEIGHT + 4, HEALTH_IMAGE, {0, 1, 0, 1}, GetHealthColor)
local metalInfo
local energyInfo
local spaceClickLabel, shieldBar, buildBar, morphInfo, playerNameLabel, maxHealthLabel, morphInfo
if isTooltipVersion then
playerNameLabel = Chili.Label:New{
name = "playerNameLabel",
x = 4,
y = PIC_HEIGHT + 31,
right = 0,
height = BAR_FONT,
fontSize = BAR_FONT,
parent = rightPanel,
}
spaceClickLabel = Chili.Label:New{
x = 4,
y = PIC_HEIGHT + 55,
right = 0,
height = DESC_FONT,
fontSize = DESC_FONT,
caption = green .. WG.Translate("interface", "space_click_show_stats"),
parent = rightPanel,
}
maxHealthLabel = GetImageWithText(rightPanel, PIC_HEIGHT + 4, HEALTH_IMAGE, nil, NAME_FONT, ICON_SIZE, 3)
morphInfo = GetMorphInfo(rightPanel, PIC_HEIGHT + LEFT_SPACE + 3)
else
--shieldBar
--buildBar
end
local externalFunctions = {}
function externalFunctions.SetDisplay(unitID, unitDefID, featureID, featureDefID, morphTime, morphCost)
local teamID
local addedName
local metalInfoShown = false
local maxHealthShown = false
local morphShown = false
if featureID then
teamID = Spring.GetFeatureTeam(featureID)
local fd = FeatureDefs[featureDefID]
local leftOffset = PIC_HEIGHT + LEFT_SPACE
local featureName = fd and fd.name
local unitName
if fd and fd.customParams and fd.customParams.unit then
unitName = fd.customParams.unit
else
unitName = featureName:gsub('(.*)_.*', '%1') --filter out _dead or _dead2 or _anything
end
if unitName and UnitDefNames[unitName] then
unitDefID = UnitDefNames[unitName].id
end
if featureName:find("dead2") or featureName:find("heap") then
addedName = " (" .. WG.Translate("interface", "debris") .. ")"
elseif featureName:find("dead") then
addedName = " (" .. WG.Translate("interface", "wreckage") .. ")"
end
healthBarUpdate(false)
if unitDefID then
playerNameLabel:SetPos(nil, PIC_HEIGHT + 10)
spaceClickLabel:SetPos(nil, PIC_HEIGHT + 34)
else
leftOffset = 1
costInfoUpdate(false)
unitNameUpdate(true, fd.tooltip, nil)
playerNameLabel:SetPos(nil, PIC_HEIGHT - 10)
spaceClickLabel:SetPos(nil, PIC_HEIGHT + 14)
end
local metal, _, energy, _, _ = Spring.GetFeatureResources(featureID)
metalInfoUpdate(true, Format(metal), METAL_RECLAIM_IMAGE, leftOffset + 4)
energyInfoUpdate(true, Format(energy), ENERGY_RECLAIM_IMAGE, leftOffset + LEFT_SPACE + 4)
metalInfoShown = true
end
if unitDefID then
local ud = UnitDefs[unitDefID]
unitImage.file = "#" .. unitDefID
unitImage.file2 = GetUnitBorder(unitDefID)
unitImage:Invalidate()
costInfoUpdate(true, cyan .. Spring.Utilities.GetUnitCost(unitID, unitDefID), COST_IMAGE, PIC_HEIGHT + 4)
unitDesc:SetText(Spring.Utilities.GetDescription(ud, unitID))
unitDesc:Invalidate()
local unitName = Spring.Utilities.GetHumanName(ud, unitID)
if addedName then
unitName = unitName .. addedName
end
unitNameUpdate(true, unitName, GetUnitIcon(unitDefID))
if unitID then
playerNameLabel:SetPos(nil, PIC_HEIGHT + 31)
spaceClickLabel:SetPos(nil, PIC_HEIGHT + 55)
elseif not featureDefID then
healthBarUpdate(false)
maxHealthLabel(true, ud.health, HEALTH_IMAGE)
maxHealthShown = true
if morphTime then
morphInfo(true, morphTime, morphCost)
morphShown = true
spaceClickLabel:SetPos(nil, PIC_HEIGHT + LEFT_SPACE + 31)
else
spaceClickLabel:SetPos(nil, PIC_HEIGHT + 30)
end
end
end
if unitID then
teamID = Spring.GetUnitTeam(unitID)
local mm, mu, em, eu = GetUnitResources(unitID)
if mm then
metalInfoUpdate(true, FormatPlusMinus(mm - mu), METAL_IMAGE, PIC_HEIGHT + LEFT_SPACE + 4)
energyInfoUpdate(true, FormatPlusMinus(em - eu), ENERGY_IMAGE, PIC_HEIGHT + 2*LEFT_SPACE + 4)
metalInfoShown = true
end
local health, maxHealth = spGetUnitHealth(unitID)
healthBarUpdate(true, nil, health, maxHealth, (health < maxHealth) and GetUnitRegenString(unitID, ud))
end
if not metalInfoShown then
metalInfoUpdate(false)
energyInfoUpdate(false)
end
if playerNameLabel and teamID then
playerNameLabel:SetCaption(GetPlayerCaption(teamID))
end
playerNameLabel:SetVisibility((playerNameLabel and teamID and true) or false)
local visibleUnitDefID = (unitDefID and true) or false
unitImage:SetVisibility(visibleUnitDefID)
unitDesc:SetVisibility(visibleUnitDefID)
if spaceClickLabel then
spaceClickLabel:SetVisibility(visibleUnitDefID)
end
if maxHealthLabel and not maxHealthShown then
maxHealthLabel(false)
end
if morphInfo and not morphShown then
morphInfo(false)
end
end
function externalFunctions.SetVisible(newVisible)
leftPanel:SetVisibility(newVisible)
rightPanel:SetVisibility(newVisible)
end
return externalFunctions
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local function GetTooltipWindow()
local window = Chili.Window:New{
name = "tooltipWindow",
x = 300,
y = 250,
savespace = true,
resizable = false,
draggable = false,
autosize = true,
minWidth = RIGHT_WIDTH,
parent = screen0
}
local textTooltip = Chili.TextBox:New{
name = "textTooltip",
x = 0,
y = 0,
width = RIGHT_WIDTH - 10,
height = 5,
valign = "ascender",
autoHeight = true,
font = {size = TOOLTIP_FONT},
parent = window,
}
textTooltip:SetVisibility(false)
local unitDisplay = GetSingleUnitInfoPanel(window, true)
local externalFunctions = {}
function externalFunctions.SetTextTooltip(text)
textTooltip:SetText(text)
textTooltip:Invalidate()
textTooltip:SetVisibility(true)
unitDisplay.SetVisible(false)
end
function externalFunctions.SetUnitishTooltip(unitID, unitDefID, featureID, featureDefID, morphTime, morphCost)
unitDisplay.SetDisplay(unitID, unitDefID, featureID, featureDefID, morphTime, morphCost)
textTooltip:SetVisibility(false)
unitDisplay.SetVisible(true)
end
return externalFunctions
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local function GetUnitTooltip()
local externalFunctions
return externalFunctions
end
local function UpdateTooltip()
local holdingDrawKey = GetIsHoldingDrawKey()
local holdingSpace = select(3, Spring.GetModKeyState())
UpdateMouseCursor(holdingDrawKey)
local mx, my = spGetMouseState()
-- Mouseover build option tooltip (screen0.currentTooltip)
local chiliTooltip = screen0.currentTooltip
if chiliTooltip and string.find(chiliTooltip, "Build") then
local name = string.sub(chiliTooltip, 6)
local ud = name and UnitDefNames[name]
if ud then
tooltipWindow.SetUnitishTooltip(nil, ud.id)
return
end
end
-- Mouseover morph tooltip (screen0.currentTooltip)
if chiliTooltip and string.find(chiliTooltip, "Morph") then
local unitHumanName = chiliTooltip:gsub('Morph into a (.*)(time).*', '%1'):gsub('[^%a \-]', '')
local morphTime = chiliTooltip:gsub('.*time:(.*)metal.*', '%1'):gsub('[^%d]', '')
local morphCost = chiliTooltip:gsub('.*metal: (.*)energy.*', '%1'):gsub('[^%d]', '')
local unitDefID = GetUnitDefByHumanName(unitHumanName)
if unitDefID and morphTime and morphCost then
tooltipWindow.SetUnitishTooltip(nil, unitDefID, nil, nil, morphTime, morphCost)
end
return
end
-- Generic chili text tooltip
if chiliTooltip then
tooltipWindow.SetTextTooltip(chiliTooltip)
return
end
-- Map drawing tooltip
if holdingDrawKey then
tooltipWindow.SetTextTooltip(DRAWING_TOOLTIP)
return
end
-- Terraform tooltip (spring.GetActiveCommand)
local index, cmdID, cmdType, cmdName = Spring.GetActiveCommand()
if cmdID and terraCmdTip[cmdID] then -- options.showterratooltip.value and
tooltipWindow.SetTextTooltip(terraCmdTip[cmdID])
return
end
-- Placing structure tooltip (spring.GetActiveCommand)
if cmdID and cmdID < 0 then
tooltipWindow.SetUnitishTooltip(nil, -cmdID)
return
end
-- Unit tooltip (trace screen ray (surely))
local mx, my = spGetMouseState()
local thingType, thingParam = spTraceScreenRay(mx,my)
if thingType == "unit" then
local unitDefID = Spring.GetUnitDefID(thingParam)
tooltipWindow.SetUnitishTooltip(thingParam, unitDefID)
return
end
-- Feature tooltip (trace screen ray (surely))
if thingType == "feature" then
local featureDefID = Spring.GetFeatureDefID(thingParam)
tooltipWindow.SetUnitishTooltip(nil, nil, thingParam, featureDefID)
return
end
-- Ground position tooltip (spGetCurrentTooltip())
if holdingSpace then
tooltipWindow.SetTextTooltip(Spring.GetCurrentTooltip())
return
end
-- Start position tooltip (really bad widget interface)
-- Don't want to implement this as is (pairs over positions registered in WG).
-- Geothermal tooltip (WG.mouseAboveGeo)
if WG.mouseAboveGeo then
WG.Translate("interface", "geospot")
return
end
end
function widget:SelectionChanged(newSelection)
-- Check if selection is 0, hide window. Return
-- Check if selection is 1, get unit tooltip
-- Check if selection is many, get unit list tooltip
-- Update group info.
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Widget Interface
function widget:Update(dt)
UpdateTooltip()
end
function widget:Initialize()
Chili = WG.Chili
screen0 = Chili.Screen0
Spring.AssignMouseCursor(CURSOR_ERASE_NAME, CURSOR_ERASE, true, false) -- Hotspot center.
Spring.AssignMouseCursor(CURSOR_POINT_NAME, CURSOR_POINT, true, true)
Spring.AssignMouseCursor(CURSOR_DRAW_NAME, CURSOR_DRAW, true, true)
local hotkeys = WG.crude.GetHotkeys("drawinmap")
for k,v in pairs(hotkeys) do
drawHotkeyBytesCount = drawHotkeyBytesCount + 1
drawHotkeyBytes[drawHotkeyBytesCount] = v:byte(-1)
end
tooltipWindow = GetTooltipWindow()
end | gpl-2.0 |
Whitechaser/darkstar | scripts/zones/Windurst_Woods/npcs/Mourices.lua | 5 | 3258 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mourices
-- Involved In Mission: Journey Abroad
-- !pos -50.646 -0.501 -27.642 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Woods/TextIDs");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
local MissionStatus = player:getVar("MissionStatus");
if (player:getCurrentMission(SANDORIA) == JOURNEY_TO_WINDURST and trade:hasItemQty(12298,2) and trade:getItemCount() == 2) then -- Trade 2 Parana Shield
if (MissionStatus == 5) then
player:startEvent(455); -- before deliver shield to the yagudo
elseif (MissionStatus == 6) then
player:startEvent(457); -- after deliver...Finish part of this quest
end
end
end;
function onTrigger(player,npc)
local MissionStatus = player:getVar("MissionStatus");
if (player:getCurrentMission(SANDORIA) == JOURNEY_ABROAD) then
-- San d'Oria Mission 2-3 Part I - Windurst > Bastok
if (MissionStatus == 2) then
player:startEvent(448);
elseif (MissionStatus == 7) then
player:startEvent(458);
-- San d'Oria Mission 2-3 Part II - Bastok > Windurst
elseif (MissionStatus == 6) then
player:startEvent(462);
elseif (MissionStatus == 11) then
player:startEvent(468);
end
-- San d'Oria Mission 2-3 Part I - Windurst > Bastok
elseif (player:getCurrentMission(SANDORIA) == JOURNEY_TO_WINDURST) then
if (MissionStatus >= 3 and MissionStatus <= 5) then
player:startEvent(449);
elseif (MissionStatus == 6) then
player:startEvent(456);
end
-- San d'Oria Mission 2-3 Part II - Bastok > Windurst
elseif (player:getCurrentMission(SANDORIA) == JOURNEY_TO_WINDURST2) then
if (MissionStatus == 7 or MissionStatus == 8) then
player:startEvent(463);
elseif (MissionStatus == 9 or MissionStatus == 10) then
player:startEvent(467);
end
else
player:startEvent(441);
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 == 448) then
player:addMission(SANDORIA,JOURNEY_TO_WINDURST);
player:setVar("MissionStatus",3);
player:delKeyItem(LETTER_TO_THE_CONSULS_SANDORIA);
elseif (csid == 457) then
player:setVar("MissionStatus",7);
player:tradeComplete();
player:addMission(SANDORIA,JOURNEY_ABROAD);
elseif (csid == 462) then
player:addMission(SANDORIA,JOURNEY_TO_WINDURST2);
player:setVar("MissionStatus",7);
elseif (csid == 467) then
player:addMission(SANDORIA,JOURNEY_ABROAD);
player:delKeyItem(KINDRED_CREST);
player:setVar("MissionStatus",11);
player:addKeyItem(KINDRED_REPORT);
player:messageSpecial(KEYITEM_OBTAINED,KINDRED_REPORT);
end
end;
| gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/engine/eng_sfs_tuned_imperial_2.lua | 3 | 2312 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_engine_eng_sfs_tuned_imperial_2 = object_tangible_ship_components_engine_shared_eng_sfs_tuned_imperial_2:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_engine_eng_sfs_tuned_imperial_2, "object/tangible/ship/components/engine/eng_sfs_tuned_imperial_2.iff")
| agpl-3.0 |
salzmdan/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ltq-dsl.lua | 17 | 4392 | local function scrape()
local fd = io.popen("/etc/init.d/dsl_control lucistat")
local dsl_func = loadstring(fd:read("*a"))
fd:close()
if not dsl_func then
return
end
local dsl_stat = dsl_func()
local dsl_line_attenuation = metric("dsl_line_attenuation_db", "gauge")
local dsl_signal_attenuation = metric("dsl_signal_attenuation_db", "gauge")
local dsl_snr = metric("dsl_signal_to_noise_margin_db", "gauge")
local dsl_aggregated_transmit_power = metric("dsl_aggregated_transmit_power_db", "gauge")
local dsl_latency = metric("dsl_latency_seconds", "gauge")
local dsl_datarate = metric("dsl_datarate", "gauge")
local dsl_max_datarate = metric("dsl_max_datarate", "gauge")
local dsl_error_seconds_total = metric("dsl_error_seconds_total", "counter")
local dsl_errors_total = metric("dsl_errors_total", "counter")
-- dsl hardware/firmware information
metric("dsl_info", "gauge", {
atuc_vendor_id = dsl_stat.atuc_vendor_id,
atuc_system_vendor_id = dsl_stat.atuc_system_vendor_id,
chipset = dsl_stat.chipset,
firmware_version = dsl_stat.firmware_version,
api_version = dsl_stat.api_version,
}, 1)
-- dsl line settings information
metric("dsl_line_info", "gauge", {
xtse1 = dsl_stat.xtse1,
xtse2 = dsl_stat.xtse2,
xtse3 = dsl_stat.xtse3,
xtse4 = dsl_stat.xtse4,
xtse5 = dsl_stat.xtse5,
xtse6 = dsl_stat.xtse6,
xtse7 = dsl_stat.xtse7,
xtse8 = dsl_stat.xtse8,
annex = dsl_stat.annex_s,
mode = dsl_stat.line_mode_s,
profile = dsl_stat.profile_s,
}, 1)
-- dsl up is 1 if the line is up and running
local dsl_up
if dsl_stat.line_state == "UP" then
dsl_up = 1
else
dsl_up = 0
end
metric("dsl_up", "gauge", {
detail = dsl_stat.line_state_detail,
}, dsl_up)
-- dsl line status data
metric("dsl_uptime_seconds", "gauge", {}, dsl_stat.line_uptime)
-- dsl db measurements
dsl_line_attenuation({direction="down"}, dsl_stat.line_attenuation_down)
dsl_line_attenuation({direction="up"}, dsl_stat.line_attenuation_up)
dsl_signal_attenuation({direction="down"}, dsl_stat.signal_attenuation_down)
dsl_signal_attenuation({direction="up"}, dsl_stat.signal_attenuation_up)
dsl_snr({direction="down"}, dsl_stat.noise_margin_down)
dsl_snr({direction="up"}, dsl_stat.noise_margin_up)
dsl_aggregated_transmit_power({direction="down"}, dsl_stat.actatp_down)
dsl_aggregated_transmit_power({direction="up"}, dsl_stat.actatp_up)
-- dsl performance data
if dsl_stat.latency_down ~= nil then
dsl_latency({direction="down"}, dsl_stat.latency_down / 1000000)
dsl_latency({direction="up"}, dsl_stat.latency_up / 1000000)
end
dsl_datarate({direction="down"}, dsl_stat.data_rate_down)
dsl_datarate({direction="up"}, dsl_stat.data_rate_up)
dsl_max_datarate({direction="down"}, dsl_stat.max_data_rate_down)
dsl_max_datarate({direction="up"}, dsl_stat.max_data_rate_up)
-- dsl errors
dsl_error_seconds_total({err="forward error correction",loc="near"}, dsl_stat.errors_fecs_near)
dsl_error_seconds_total({err="forward error correction",loc="far"}, dsl_stat.errors_fecs_far)
dsl_error_seconds_total({err="errored",loc="near"}, dsl_stat.errors_es_near)
dsl_error_seconds_total({err="errored",loc="far"}, dsl_stat.errors_es_near)
dsl_error_seconds_total({err="severely errored",loc="near"}, dsl_stat.errors_ses_near)
dsl_error_seconds_total({err="severely errored",loc="near"}, dsl_stat.errors_ses_near)
dsl_error_seconds_total({err="loss of signal",loc="near"}, dsl_stat.errors_loss_near)
dsl_error_seconds_total({err="loss of signal",loc="far"}, dsl_stat.errors_loss_far)
dsl_error_seconds_total({err="unavailable",loc="near"}, dsl_stat.errors_uas_near)
dsl_error_seconds_total({err="unavailable",loc="far"}, dsl_stat.errors_uas_far)
dsl_errors_total({err="header error code error",loc="near"}, dsl_stat.errors_hec_near)
dsl_errors_total({err="header error code error",loc="far"}, dsl_stat.errors_hec_far)
dsl_errors_total({err="non pre-emptive crc error",loc="near"}, dsl_stat.errors_crc_p_near)
dsl_errors_total({err="non pre-emptive crc error",loc="far"}, dsl_stat.errors_crc_p_far)
dsl_errors_total({err="pre-emptive crc error",loc="near"}, dsl_stat.errors_crcp_p_near)
dsl_errors_total({err="pre-emptive crc error",loc="far"}, dsl_stat.errors_crcp_p_far)
end
return { scrape = scrape }
| gpl-2.0 |
DailyShana/ygopro-scripts | c93542102.lua | 3 | 2353 | --D・モバホン
function c93542102.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(93542102,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c93542102.cona)
e1:SetTarget(c93542102.tga)
e1:SetOperation(c93542102.opa)
c:RegisterEffect(e1)
--confirm
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(93542102,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c93542102.cond)
e2:SetTarget(c93542102.tgd)
e2:SetOperation(c93542102.opd)
c:RegisterEffect(e2)
end
function c93542102.cona(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() and e:GetHandler():IsAttackPos()
end
function c93542102.cond(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() and e:GetHandler():IsDefencePos()
end
function c93542102.cfilter(c)
return c:IsLevelBelow(4) and c:IsSetCard(0x26) and c:IsType(TYPE_MONSTER)
end
function c93542102.tga(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0
and Duel.IsExistingMatchingCard(c93542102.cfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end
function c93542102.tgd(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end
function c93542102.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x26) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end
function c93542102.opa(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end
local dc=Duel.TossDice(tp,1)
Duel.ConfirmDecktop(tp,dc)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local g=Duel.GetDecktopGroup(tp,dc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:FilterSelect(tp,c93542102.filter,1,1,nil,e,tp)
Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP)
Duel.ShuffleDeck(tp)
end
function c93542102.opd(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end
local dc=Duel.TossDice(tp,1)
local g=Duel.GetDecktopGroup(tp,dc)
Duel.ConfirmCards(tp,g)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/vehicle/armor_plating_mk1.lua | 3 | 2264 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_vehicle_armor_plating_mk1 = object_tangible_component_vehicle_shared_armor_plating_mk1:new {
}
ObjectTemplates:addTemplate(object_tangible_component_vehicle_armor_plating_mk1, "object/tangible/component/vehicle/armor_plating_mk1.iff")
| agpl-3.0 |
HydraFramework/release-ios | Debug51/builtin/native/utils.lua | 5 | 1046 | module(..., package.seeall)
function versionCompare(version1, version2)
return helper:compareVersion_withVersion_(version1, version2)
end
function tojson(str)
return helper:tojson(str)
end
function navigateURL(urlString)
return helper:navigateURL(urlString)
end
function urlencode(str)
return helper:urlencode(str)
end
function urldecode(str)
return helper:urldecode(str)
end
function dump(o)
return helper:dump(o)
end
function registerPush()
helper:registerPush()
end
function md5String(str)
return helper:md5String(str)
end
function exit(code)
helper:exit(code)
end
function takePhoto(args)
return helper:takePhoto(args)
end
function advancedTakePhoto(option)
if option and type(option) ~= "table" then
option = nil
end
return helper:advancedTakePhoto(option)
end
function editImage(img, opt)
if opt and type(opt) ~= "table" then
opt = nil
end
return helper:editImage_withOption(img, opt)
end
function requestPushToken()
helper:registerPush()
end
| mit |
HydraFramework/release-ios | Release/builtin/native/utils.lua | 5 | 1046 | module(..., package.seeall)
function versionCompare(version1, version2)
return helper:compareVersion_withVersion_(version1, version2)
end
function tojson(str)
return helper:tojson(str)
end
function navigateURL(urlString)
return helper:navigateURL(urlString)
end
function urlencode(str)
return helper:urlencode(str)
end
function urldecode(str)
return helper:urldecode(str)
end
function dump(o)
return helper:dump(o)
end
function registerPush()
helper:registerPush()
end
function md5String(str)
return helper:md5String(str)
end
function exit(code)
helper:exit(code)
end
function takePhoto(args)
return helper:takePhoto(args)
end
function advancedTakePhoto(option)
if option and type(option) ~= "table" then
option = nil
end
return helper:advancedTakePhoto(option)
end
function editImage(img, opt)
if opt and type(opt) ~= "table" then
opt = nil
end
return helper:editImage_withOption(img, opt)
end
function requestPushToken()
helper:registerPush()
end
| mit |
xiewen/DBProxy | tests/suite/base/t/chain1b.lua | 4 | 1105 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
$%ENDLICENSE%$ --]]
function read_query(packet)
if packet:byte() ~= proxy.COM_QUERY then
return
end
local query = packet:sub(2)
if query == 'SELECT 1' then
proxy.queries:append(1, string.char(proxy.COM_QUERY) .. 'SELECT 1, "ADDITION"')
return proxy.PROXY_SEND_QUERY
end
end
function read_query_result(inj)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/space_imperial_experimental_pilot.lua | 3 | 2248 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_space_imperial_experimental_pilot = object_mobile_shared_space_imperial_experimental_pilot:new {
}
ObjectTemplates:addTemplate(object_mobile_space_imperial_experimental_pilot, "object/mobile/space_imperial_experimental_pilot.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/space/weapon/missile/wpn_concussion_missile_mk2.lua | 2 | 3259 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_space_weapon_missile_wpn_concussion_missile_mk2 = object_draft_schematic_space_weapon_missile_shared_wpn_concussion_missile_mk2:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Mark II Concussion Missile Pack",
craftingToolTab = 131072, -- (See DraftSchemticImplementation.h)
complexity = 19,
size = 0,
xpType = "shipwright",
xp = 313,
assemblySkill = "weapon_systems",
experimentingSkill = "weapons_systems_experimentation",
customizationSkill = "medicine_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n"},
ingredientTitleNames = {"casing", "warhead"},
ingredientSlotType = {0, 0},
resourceTypes = {"steel", "radioactive_polymetric"},
resourceQuantities = {1000, 250},
contribution = {100, 100},
targetTemplate = "object/tangible/ship/crafted/weapon/missile/wpn_concussion_missile_mk2.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_space_weapon_missile_wpn_concussion_missile_mk2, "object/draft_schematic/space/weapon/missile/wpn_concussion_missile_mk2.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c44509898.lua | 3 | 1617 | --ピンポイント・ガード
function c44509898.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_ATTACK_ANNOUNCE)
e1:SetCondition(c44509898.condition)
e1:SetTarget(c44509898.target)
e1:SetOperation(c44509898.operation)
c:RegisterEffect(e1)
end
function c44509898.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c44509898.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c44509898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c44509898.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c44509898.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c44509898.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c44509898.operation(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_DEFENCE)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
tc:RegisterEffect(e2)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/faction_perk/hq/hq_s03_imp.lua | 1 | 14447 | --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_faction_perk_hq_hq_s03_imp = object_building_faction_perk_hq_shared_hq_s03_imp:new {
lotSize = 0,
containerComponent = "GCWBaseContainerComponent",
zoneComponent = "StructureZoneComponent",
maintenanceCost = 0,
baseMaintenanceRate = 0,
faction = "imperial",
pvpFaction = "imperial",
dataObjectComponent = "DestructibleBuildingDataComponent",
allowedZones = {"dantooine", "naboo", "rori","tatooine", "corellia", "lok", "talus"},
constructionMarker = "object/building/player/construction/construction_player_house_generic_medium_style_01.iff",
length = 7,
width = 6,
planetMapCategory = "imperial_hq",
alwaysPublic = 1,
factionBaseType = 1,
skillMods = {
{"private_buff_mind", 100},
{"private_med_battle_fatigue", 5},
{"private_medical_rating", 100},
},
childObjects = {
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-10, z=0, y=37, ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=10, z=0, y=37, ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
-- wall 2
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-14, z=0, y=32, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=14, z=0, y=32, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-18, z=0, y=29, ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=18, z=0, y=29, ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
-- wall 4
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-22, z=0, y=25, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=22, z=0, y=25, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
-- wall 5 ( 45deg)
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=18.5, z=0, y=17.5, ox=0, oy=-.395, oz=0, ow=.92, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-18.5, z=0, y=17.5, ox=0, oy=.395, oz=0, ow=.92, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_16_style_01.iff", x=16, z=0, y=7, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_16_style_01.iff", x=-16, z=0, y=7, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=12.25, z=0, y=-.75,ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-12.25, z=0, y=-.75, ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=9, z=0, y=-6, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/static/structure/military/military_wall_med_imperial_style_01.iff", x=-9, z=0, y=-6, ox=0, oy=-.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
-- back walls
{templateFile = "object/static/structure/military/military_wall_med_imperial_16_style_01.iff", x=0, z=0, y=-10 , ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/installation/faction_perk/turret/tower_lg.iff", x=-18, z=0, y=32, ox=0, oy=-0, oz=0, ow=1, cellid=-1, containmentType=-1}, -- left turret front
{templateFile = "object/installation/faction_perk/turret/tower_lg.iff", x=18, z=0, y=32, ox=0, oy=0, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/installation/faction_perk/turret/tower_lg.iff", x=-13, z=0, y=-5, ox=0, oy=.7, oz=0, ow=-.7, cellid=-1, containmentType=-1}, -- back turret front
{templateFile = "object/installation/faction_perk/turret/tower_lg.iff", x=13, z=0, y=-5, ox=0, oy=.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/tangible/terminal/terminal_hq_turret_control.iff", x=-5, z=.25, y=1.5, ow=.7, ox=0, oz=0, oy=.7, cellid=2, containmentType=-1},
{templateFile = "object/tangible/terminal/terminal_hq_turret_control.iff", x=-5, z=.25, y=0, ow=.7, ox=0, oz=0, oy=.7, cellid=2, containmentType=-1},
{templateFile = "object/tangible/terminal/terminal_hq_turret_control.iff", x=-5, z=.25, y=-1.5, ow=.7, ox=0, oz=0, oy=.7, cellid=2, containmentType=-1},
{templateFile = "object/tangible/terminal/terminal_hq_turret_control.iff", x=-5, z=.25, y=-3, ow=.7, ox=0, oz=0, oy=.7, cellid=2, containmentType=-1},
{templateFile = "object/tangible/terminal/terminal_hq_imperial.iff", x = .38, z = .25, y = 1.75, ox = 0, oy = 0, oz = 0, ow = 1, cellid = 2, containmentType = -1 },
{templateFile = "object/tangible/hq_destructible/uplink_terminal.iff", x =5, z =.25, y =-4, ow =-.662, ox =0, oz = 0, oy =.749, cellid = 3, containmentType = -1},
{templateFile = "object/tangible/hq_destructible/security_terminal.iff", x =-9, z =-13.75, y =4.5, ox = 0, oy =.076, oz = 0, ow =1, cellid = 7, containmentType = -1 },
{templateFile = "object/tangible/hq_destructible/override_terminal.iff", x =3, z =-20.75, y=1.5, ox=0, oy=0, oz=0, ow=1, cellid = 9, containmentType = -1 },
{templateFile = "object/tangible/hq_destructible/power_regulator.iff", x = 4.25, z =-20.75, y =36, ox = 0, oy =1, oz = 0, ow =0, cellid = 10, containmentType = -1 },
{templateFile="object/tangible/terminal/terminal_mission.iff", x=-11, z=-13.75, y=7, ow=.7, ox=0, oz=0, oy=.7, cellid=7, containmentType=-1},
{templateFile="object/tangible/terminal/terminal_bank.iff", x=6, z=-20.75, y=13, ow=1, ox=0, oz=0, oy=0, cellid=10, containmentType=-1},
{templateFile="object/tangible/terminal/terminal_insurance.iff", x=-2, z=-20.75, y=13, ow=1, ox=0, oz=0, oy=0, cellid=10, containmentType=-1},
{templateFile="object/tangible/terminal/terminal_mission_imperial.iff", x=8, z=-13.75, y=7, ow=-.7, ox=0, oz=0, oy=.7, cellid=7, containmentType=-1},
{templateFile = "object/installation/faction_perk/minefield/field_1x1.iff", x=5, z=0, y=28, ox=0, oy=.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/installation/faction_perk/minefield/field_1x1.iff", x=-5, z=0, y=28, ox=0, oy=.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/installation/faction_perk/minefield/field_1x1.iff", x=0, z=0, y=43, ox=0, oy=.7, oz=0, ow=.7, cellid=-1, containmentType=-1},
{templateFile = "object/installation/faction_perk/covert_detector/detector_base.iff", x=15, z=0, y=50, ox=0, oy=-.3, oz=0, ow=1, cellid=-1, containmentType=-1},
{templateFile = "object/installation/faction_perk/covert_detector/detector_base.iff", x=-15, z=0, y=50, ox=0, oy=-.3, oz=0, ow=1, cellid=-1, containmentType=-1},
},
childCreatureObjects = {
{ mobile="at_st", x=35, z=0, y=32, cellid=-1, respawn=600, containmentType=-1, heading=3.14},
{ mobile="at_st", x=-35, z=0, y=32, cellid=-1, respawn=600, containmentType=-1, heading=0},
{ mobile="dark_trooper", x=25, z=0, y=-13, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper_squad_leader", x=30, z=0, y=-13, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=27.5, z=0, y=-10.5, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper_medic", x=25, z=0, y=-8, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper_bombardier", x=30, z=0, y=-8, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="dark_trooper", x=-25, z=0, y=-13, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper_squad_leader", x=-30, z=0, y=-13, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=-27.5, z=0, y=-10.5, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper_medic", x=-25, z=0, y=-8, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper_bombardier", x=-30, z=0, y=-8, cellid=-1, respawn=300, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=12, z=0, y=54, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=17, z=0, y=54, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper_bombardier", x=12, z=0, y=50, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper_medic", x=17, z=0, y=50, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=12, z=0, y=46, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=17, z=0, y=46, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=-12, z=0, y=54, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=-17, z=0, y=54, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper_bombardier", x=-12, z=0, y=50, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper_medic", x=-17, z=0, y=50, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=-12, z=0, y=46, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="stormtrooper", x=-17, z=0, y=46, cellid=-1, respawn=360, containmentType=-1, heading=0},
{ mobile="dark_trooper", x=3, z=0, y=27, cellid=-1, respawn=420, containmentType=-1, heading=.78},
{ mobile="dark_trooper", x=-3, z=0, y=27, cellid=-1, respawn=420, containmentType=-1, heading=.78},
{ mobile="dark_trooper", x=6, z=0, y=20, cellid=-1, respawn=420, containmentType=-1, heading=0},
{ mobile="dark_trooper", x=-6, z=0, y=20, cellid=-1, respawn=420, containmentType=-1, heading=0},
{ mobile="dark_trooper", x=9, z=0, y=22, cellid=-1, respawn=420, containmentType=-1, heading=0},
{ mobile="dark_trooper", x=-9, z=0, y=22, cellid=-1, respawn=420, containmentType=-1, heading=0},
{ mobile="imperial_warrant_officer_i", x=-4.4, z=0, y=-2.1, cellid=2, respawn=300, containmentType=-1, heading=4.7},
{ mobile="imperial_warrant_officer_i", x=-4.4, z=0, y=0.9, cellid=2, respawn=300, containmentType=-1, heading=4.7},
{ mobile="dark_trooper", x=4, z=-3.25, y=5, cellid=4, respawn=300, containmentType=-1, heading=3.14},
{ mobile="dark_trooper", x=-4, z=-10.25, y=-6, cellid=5, respawn=300, containmentType=-1, heading=1.57},
{ mobile="stormtrooper", x=-2.7, z=-13.75, y=7, cellid=7, respawn=300, containmentType=-1, heading=1.57},
{ mobile="dark_trooper", x=-5, z=-13.75, y=7, cellid=7, respawn=300, containmentType=-1, heading=1.57},
{ mobile="dark_trooper", x=4, z=-20.75, y=6, cellid=9, respawn=300, containmentType=-1, heading=4.7},
{ mobile="dark_trooper", x=-1.5, z=-20.75, y=6, cellid=9, respawn=300, containmentType=-1, heading=1.57},
{ mobile="stormtrooper_medic", x=-1.1, z=-20.75, y=10.2, cellid=9, respawn=300, containmentType=-1, heading=1.57},
{ mobile="stormtrooper", x=4.5, z=-20.75, y=15.8, cellid=10, respawn=300, containmentType=-1, heading=4.7},
{ mobile="dark_trooper", x=-2, z=-20.75, y=15.8, cellid=10, respawn=300, containmentType=-1, heading=1.57},
{ mobile="dark_trooper", x=1.5, z=-20.75, y=24.7, cellid=10, respawn=300, containmentType=-1, heading=0},
{ mobile="imperial_general", x=5.5, z=-20.75, y=35.5, cellid=10, respawn=300, containmentType=-1, heading=3.14},
{ mobile="imperial_major", x=-2.3, z=-20.75, y=35.5, cellid=10, respawn=300, containmentType=-1, heading=3.14},
{ mobile="imperial_colonel", x=1.7, z=-20.75, y=32.45, cellid=10, respawn=300, containmentType=-1, heading=3.14},
{ mobile="imperial_recruiter", x=-5, z=-20.75, y=32, cellid=10, containmentType=-1, respawn=60, heading=1.57},
},
}
ObjectTemplates:addTemplate(object_building_faction_perk_hq_hq_s03_imp, "object/building/faction_perk/hq/hq_s03_imp.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/engine/eng_cygnus_hdx.lua | 3 | 2272 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_engine_eng_cygnus_hdx = object_tangible_ship_components_engine_shared_eng_cygnus_hdx:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_engine_eng_cygnus_hdx, "object/tangible/ship/components/engine/eng_cygnus_hdx.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_commoner_naboo_human_female_03.lua | 3 | 2268 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_commoner_naboo_human_female_03 = object_mobile_shared_dressed_commoner_naboo_human_female_03:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_commoner_naboo_human_female_03, "object/mobile/dressed_commoner_naboo_human_female_03.iff")
| agpl-3.0 |
KingRaptor/Zero-K | LuaRules/Configs/morph_defs.lua | 7 | 9105 | -- $Id: morph_defs.lua 4643 2009-05-22 05:52:27Z carrepairer $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
include("LuaRules/Configs/customcmds.h.lua")
local morphDefs = {
--// Evil4Zerggin: Revised time requirements. All rank requirements set to 3.
--// Time requirements:
--// To t1 unit: 10
--// To t2 unit: 20
--// To t1 structure: 30
--// To t2 structure: 60
--// KR: No longer consistently following tech time requirements, instead it's more correlated to cost difference (since there are no tech levels).
--// Hidden Chicken Faction
chicken_drone = {
[1] = {
into = 'chickend',
energy = 15,
time = 20,
},
[2] = {
into = 'nest',
energy = 30,
time = 20,
},
[3] = {
into = 'chickenspire',
energy = 600,
time = 90,
},
[4] = {
into = 'thicket',
time = 4,
},
},
nest = {
into = 'roostfac',
time = 60,
},
chicken_drone_starter = {
{
into = 'nest',
time = 1,
},
},
}
local baseComMorph = {
[0] = {time = 10, cost = 0},
[1] = {time = 25, cost = 250},
[2] = {time = 30, cost = 300},
[3] = {time = 40, cost = 400},
[4] = {time = 50, cost = 500},
}
--------------------------------------------------------------------------------
-- customparams
--------------------------------------------------------------------------------
for i=1,#UnitDefs do
local ud = UnitDefs[i]
local cp = ud.customParams
local name = ud.name
local morphTo = cp.morphto
if morphTo then
local targetDef = UnitDefNames[morphTo]
morphDefs[name] = morphDefs[name] or {}
morphDefs[name][#morphDefs[name] + 1] = {
into = morphTo,
time = cp.morphtime or (cp.level and math.floor((targetDef.metalCost - ud.metalCost) / (6 * (cp.level+1)))), -- or 30,
combatMorph = cp.combatmorph == "1",
}
end
end
--------------------------------------------------------------------------------
-- basic (non-modular) commander handling
--------------------------------------------------------------------------------
local comms = {"armcom", "corcom", "commrecon", "commsupport", "benzcom", "cremcom"}
for i = 1, #comms do
for j = 0,4 do
local source = comms[i] .. j
local destination = comms[i] .. (j+1)
morphDefs[source] = {
into = destination,
time = baseComMorph[j].time,
metal = baseComMorph[j].cost,
energy = baseComMorph[j].cost,
combatMorph = true,
}
end
end
--------------------------------------------------------------------------------
-- modular commander handling
--------------------------------------------------------------------------------
local comMorph = { -- not needed
[1] = {time = 20,},
[2] = {time = 25,},
[3] = {time = 30,},
[4] = {time = 35,},
[5] = {time = 40,},
}
local customComms = {}
local function InitUnsafe()
if not Spring.GetPlayerList then
return
end
for name, id in pairs(Spring.GetPlayerList()) do -- pairs(playerIDsByName) do
-- copied from PlanetWars
local commData, success
local customKeys = select(10, Spring.GetPlayerInfo(id))
local commDataRaw = customKeys and customKeys.commanders
if not (commDataRaw and type(commDataRaw) == 'string') then
if commDataRaw then
err = "Comm data entry for player "..id.." is in invalid format"
end
commData = {}
else
commDataRaw = string.gsub(commDataRaw, '_', '=')
commDataRaw = Spring.Utilities.Base64Decode(commDataRaw)
--Spring.Echo(commDataRaw)
local commDataFunc, err = loadstring("return "..commDataRaw)
if commDataFunc then
success, commData = pcall(commDataFunc)
if not success then
err = commData
commData = {}
end
end
end
if err then
Spring.Log(gadget:GetInfo().name, LOG.WARNING, 'Comm Morph warning: ' .. err)
end
for series, subdata in pairs(commData) do
customComms[id] = customComms[id] or {}
customComms[id][series] = subdata
end
end
end
local function CheckForExistingMorph(morphee, target)
local array = morphDefs[morphee]
if not array then
return false
end
if array.into then
return (array.into == target)
end
for index,morphOpts in pairs(array) do
if morphOpts.into and morphOpts.into == target then
return true
end
end
return false
end
InitUnsafe()
for id, playerData in pairs(customComms) do
Spring.Echo("Setting morph for custom comms for player: "..id)
for chassisName, array in pairs(playerData) do
for i=1,#array do
--Spring.Echo(array[i], array[i+1])
local targetDef = array[i+1] and UnitDefNames[array[i+1]]
local originDef = UnitDefNames[array[i]] or UnitDefNames[array[i]]
if targetDef and originDef then
--Spring.Echo("Configuring comm morph: "..(array[i]) , array[i+1])
local sourceName, targetName = originDef.name, targetDef.name
local morphCost
local morphOption = comMorph[i] and Spring.Utilities.CopyTable(comMorph[i], true) or {}
morphOption.into = array[i+1]
-- set time
morphOption.time = math.floor( (targetDef.metalCost - originDef.metalCost) / (5 * (i+1)) ) or morphOption.time
--morphOption.time = math.floor((targetDef.metalCost - originDef.metalCost)/10) or morphOption.time
--morphOption.time = math.floor(15 + i*5) or morphOption.time
morphOption.combatMorph = true
-- copy, checking that this morph isn't already defined
morphDefs[sourceName] = morphDefs[sourceName] or {}
if not CheckForExistingMorph(sourceName, targetName) then
morphDefs[sourceName][#(morphDefs[sourceName]) + 1] = morphOption
else
Spring.Echo("Duplicate morph, exiting")
end
end
end
end
end
--check that the morphs were actually inserted
--[[
for i,v in pairs(morphDefs) do
Spring.Echo(i)
if v.into then Spring.Echo("\t"..v.into)
else
for a,b in pairs(v) do Spring.Echo("\t"..b.into) end
end
end
]]--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local MAX_MORPH = 0
local UPGRADING_BUILD_SPEED = 250
local function DefCost(paramName, udSrc, udDst)
local pSrc = udSrc[paramName]
local pDst = udDst[paramName]
if (not pSrc) or (not pDst) then
return 0
end
local cost = (pDst - pSrc)
if (cost < 0) then
cost = 0
end
return math.floor(cost)
end
local function BuildMorphDef(udSrc, morphData)
local udDst = UnitDefNames[morphData.into]
if (not udDst) then
Spring.Log(gadget:GetInfo().name, LOG.WARNING, 'Morph gadget: Bad morph dst type: ' .. morphData.into)
return
else
if (CMD_MORPH + MAX_MORPH >= CMD_MORPH_STOP ) then --reached next custom command ID in the list (see: customcmds.h.lua)
Spring.Log(gadget:GetInfo().name, LOG.WARNING, 'Morph CMD_ID is overflowing/overlapping with other command.')
end
if (CMD_MORPH_STOP + MAX_MORPH >= 2*CMD_MORPH_STOP-CMD_MORPH ) then --reached next custom command ID in the list (see: customcmds.h.lua)
Spring.Log(gadget:GetInfo().name, LOG.WARNING, 'Morph Stop CMD_ID is overflowing/overlapping with other command.')
end
local unitDef = udDst
local newData = {}
newData.into = udDst.id
newData.time = morphData.time or math.floor(unitDef.buildTime*7/UPGRADING_BUILD_SPEED)
newData.increment = (1 / (30 * newData.time))
newData.metal = morphData.metal or DefCost('metalCost', udSrc, udDst)
newData.energy = morphData.energy or DefCost('energyCost', udSrc, udDst)
newData.combatMorph = morphData.combatMorph or false
newData.resTable = {
m = (newData.increment * newData.metal),
e = (newData.increment * newData.energy)
}
newData.facing = morphData.facing
MAX_MORPH = MAX_MORPH + 1 -- CMD_MORPH is the "generic" morph command. "Specific" morph command start at CMD_MORPH+1
newData.cmd = CMD_MORPH + MAX_MORPH
newData.stopCmd = CMD_MORPH_STOP + MAX_MORPH
if (type(GG.MorphInfo)~="table") then
GG.MorphInfo = {["CMD_MORPH_BASE_ID"]=CMD_MORPH,["CMD_MORPH_STOP_BASE_ID"]=CMD_MORPH_STOP}
end
if (type(GG.MorphInfo[udSrc.id])~="table") then
GG.MorphInfo[udSrc.id]={}
end
GG.MorphInfo[udSrc.id][udDst.id]=newData.cmd
GG.MorphInfo["MAX_MORPH"] = MAX_MORPH
newData.texture = morphData.texture
newData.text = morphData.text
return newData
end
end
local function ValidateMorphDefs(mds)
local newDefs = {}
for src, morphData in pairs(mds) do
local udSrc = UnitDefNames[src]
if (not udSrc) then
Spring.Log("Morph", LOG.WARNING, 'Morph gadget: Bad morph src type: ' .. src)
else
newDefs[udSrc.id] = {}
if (morphData.into) then
local morphDef = BuildMorphDef(udSrc, morphData)
if (morphDef) then
newDefs[udSrc.id][morphDef.cmd] = morphDef
end
else
for _, morphData in pairs(morphData) do
local morphDef = BuildMorphDef(udSrc, morphData)
if (morphDef) then
newDefs[udSrc.id][morphDef.cmd] = morphDef
end
end
end
end
end
return newDefs
end
return ValidateMorphDefs(morphDefs), MAX_MORPH
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/chemistry/component/infection_amplifier_advanced.lua | 2 | 3301 | --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_component_infection_amplifier_advanced = object_draft_schematic_chemistry_component_shared_infection_amplifier_advanced:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Advanced Infection Amplifier",
craftingToolTab = 64, -- (See DraftSchemticImplementation.h)
complexity = 15,
size = 2,
xpType = "crafting_medicine_general",
xp = 115,
assemblySkill = "combat_medicine_assembly",
experimentingSkill = "combat_medicine_experimentation",
customizationSkill = "medicine_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_chemical_ingredients_n", "craft_chemical_ingredients_n"},
ingredientTitleNames = {"delivery_medium", "body_shell"},
ingredientSlotType = {0, 0},
resourceTypes = {"gas_reactive_eleton", "aluminum_titanium"},
resourceQuantities = {28, 28},
contribution = {100, 100},
targetTemplate = "object/tangible/component/chemistry/infection_amplifier_advanced.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_chemistry_component_infection_amplifier_advanced, "object/draft_schematic/chemistry/component/infection_amplifier_advanced.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/weapon/component/weapon_mount.lua | 3 | 2268 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_weapon_component_weapon_mount = object_draft_schematic_weapon_component_shared_weapon_mount:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_weapon_mount, "object/draft_schematic/weapon/component/weapon_mount.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/poi/corellia_corellia_times_investigators_camp_small1.lua | 2 | 2358 | --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_corellia_corellia_times_investigators_camp_small1 = object_building_poi_shared_corellia_corellia_times_investigators_camp_small1:new {
gameObjectType = 531,
}
ObjectTemplates:addTemplate(object_building_poi_corellia_corellia_times_investigators_camp_small1, "object/building/poi/corellia_corellia_times_investigators_camp_small1.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c38468214.lua | 3 | 2435 | --エーリアン・ヒュプノ
function c38468214.initial_effect(c)
aux.EnableDualAttribute(c)
--add counter
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(38468214,0))
e1:SetCategory(CATEGORY_CONTROL)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(aux.IsDualState)
e1:SetTarget(c38468214.target)
e1:SetOperation(c38468214.operation)
c:RegisterEffect(e1)
end
function c38468214.filter(c)
return c:GetCounter(0xe)>0 and c:IsControlerCanBeChanged()
end
function c38468214.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c38468214.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c38468214.filter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,c38468214.filter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
end
function c38468214.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget()
if tc:GetCounter(0xe)>0 and tc:IsRelateToEffect(e) then
c:SetCardTarget(tc)
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_CONTROL)
e1:SetValue(tp)
e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetCondition(c38468214.ctcon)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetLabel(tp)
e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetCondition(c38468214.rmctcon)
e2:SetOperation(c38468214.rmctop)
tc:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_SELF_DESTROY)
e3:SetReset(RESET_EVENT+0x1fe0000)
e3:SetCondition(c38468214.descon)
tc:RegisterEffect(e3)
end
end
function c38468214.ctcon(e)
local c=e:GetOwner()
return c:IsHasCardTarget(e:GetHandler()) and not c:IsDisabled()
end
function c38468214.rmctcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==e:GetLabel()
end
function c38468214.rmctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(tp,0xe,1,REASON_EFFECT)
end
function c38468214.descon(e)
return e:GetHandler():GetCounter(0xe)==0
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/poi/naboo_ruins_small_1.lua | 2 | 2238 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_building_poi_naboo_ruins_small_1 = object_building_poi_shared_naboo_ruins_small_1:new {
gameObjectType = 531,
}
ObjectTemplates:addTemplate(object_building_poi_naboo_ruins_small_1, "object/building/poi/naboo_ruins_small_1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_bestine_artist05.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_mobile_dressed_bestine_artist05 = object_mobile_shared_dressed_bestine_artist05:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_bestine_artist05, "object/mobile/dressed_bestine_artist05.iff")
| agpl-3.0 |
AndyClausen/PNRP_HazG | postnukerp/Gamemode/shared.lua | 1 | 20722 | GM.Name = "PostNukeRP" --Set the gamemode name
GM.Author = "EldarStorm LostInTheWird MainError" --Set the author name
GM.Email = "N/A" --Set the author email
GM.Website = "http://postnukerp.com" --Set the author website
GM.Version = "1.1.2"
DeriveGamemode("sandbox")
PNRP = {}
PNRP_Path = "PostNukeRP/"
PNRP_MOTDPath = "http://postnukerp.com/rules.php"
PNRP_WIKIPath = "http://postnukerp.com/wiki"
--Team Variables
TEAM_WASTELANDER = 6
TEAM_SCAVENGER = 7
TEAM_SCIENCE = 8
TEAM_ENGINEER = 9
TEAM_CULTIVATOR = 5
team.SetUp( TEAM_WASTELANDER, "Wastelander", Color( 125, 125, 125, 255 ) ) --Gray
team.SetUp( TEAM_SCAVENGER, "Scavenger", Color( 102, 51, 0, 225 ) ) --Brown
team.SetUp( TEAM_SCIENCE, "Science", Color( 0, 0, 153, 225 ) ) --Blue
team.SetUp( TEAM_ENGINEER, "Engineer", Color( 255, 204, 0, 225 ) ) --Orange
team.SetUp( TEAM_CULTIVATOR, "Cultivator", Color( 51, 153, 0, 225 ) ) --Green
PNRP.Resources = { }
table.insert(PNRP.Resources,"Scrap")
table.insert(PNRP.Resources,"Small_Parts")
table.insert(PNRP.Resources,"Chemicals")
PNRP.Skills = {}
PNRP.Skills["Scavenging"] = {name = "Scavenging", desc ="Better scavenging through experience.", basecost = 150, maxlvl = 5, class = nil}
PNRP.Skills["Endurance"] = {name = "Endurance", desc ="Staying on your feet longer, to survive better", basecost = 100, maxlvl = 6, class = {TEAM_WASTELANDER}}
PNRP.Skills["Athletics"] = {name = "Athletics", desc ="Running a bit faster always helps.", basecost = 100, maxlvl = 5, class = nil}
PNRP.Skills["Weapon Handling"] = {name = "Weapon Handling", desc ="Accuracy with firearms. Who wouldn't want that?", basecost = 100, maxlvl = 5, class = nil}
PNRP.Skills["Construction"] = {name = "Construction", desc ="Know-how to make things cost less.", basecost = 100, maxlvl = 5, class = {TEAM_ENGINEER}}
PNRP.Skills["Backpacking"] = {name = "Backpacking", desc ="Knowing how to pack is great for carrying more.", basecost = 50, maxlvl = 5, class = nil}
PNRP.Skills["Animal Husbandry"] = {name = "Animal Husbandry", desc ="Like cattle rearing, but in worm form!", basecost = 150, maxlvl = 5, class = {TEAM_SCIENCE}}
PNRP.Skills["Mining"] = {name = "Mining", desc ="Get the most out of your sonic miners!", basecost = 150, maxlvl = 5, class = {TEAM_SCAVENGER}}
PNRP.Skills["Farming"] = {name = "Farming", desc ="Take care of those plants less. God yes...", basecost = 150, maxlvl = 5, class = {TEAM_CULTIVATOR}}
PNRP.Skills["Salvaging"] = {name = "Salvaging", desc ="Lose less when taking stuff apart!", basecost = 100, maxlvl = 5, class = nil}
//New skills
PNRP.Skills["Fabrication"] = {name = "Fabrication", desc ="The action or process of manufacturing or inventing something.", basecost = 150, maxlvl = 5, class = {TEAM_SCIENCE}}
PNRP.Skills["Cooking"] = {name = "Cooking", desc ="High quality food for you, mate!", basecost = 150, maxlvl = 5, class = {TEAM_CULTIVATOR}}
PNRP.Skills["Case Retrieval (SOON)"] = {name = "Case Retrieval (SOON)", desc ="Bulletcases is an essential part of blowing out feminist brains.", basecost = 0, maxlvl = 0, class = {TEAM_WASTELANDER}}
PNRP.Skills["Advanced Recycling"] = {name = "Advanced Recycling", desc ="Being a professional hippie saves you a lot of resources.", basecost = 150, maxlvl = 5, class = {TEAM_SCAVENGER}}
PNRP.Skills["Steady Hands (SOON)"] = {name = "Steady Hands (SOON)", desc ="Not being a retard a spilling smokeless powder helps you get more bullets to wreck those damn sandniggers.", basecost = 0, maxlvl = 0, class = {TEAM_ENGINEER}}
PNRP.ScavItems = {}
PNRP.ScavItems["fuel_h2pod"] = 100
PNRP.ScavItems["fuel_uranrods"] = 150
PNRP.ScavItems["intm_sensorpod"] = 350
PNRP.ScavItems["intm_seeds"] = 500
PNRP.ScavItems["intm_pulsecore"] = 269
PNRP.ScavItems["intm_servo"] = 350
PNRP.ScavItems["intm_diamsaw"] = 150
PNRP.ScavItems["intm_waterjet"] = 60
PNRP.ScavItems["intm_solarthinfilm"] = 80
PNRP.ScavItems["intm_fusioncore"] = 20
PNRP.ScavItems["intm_nukecore"] = 50
PNRP.ScavItems["food_beans"] = 1500
PNRP.ScavItems["intm_bakingsoda"] = 650
PNRP.ScavItems["intm_cookingsalt"] = 800
PNRP.ScavItems["intm_flour"] = 500
PNRP.ScavItems["intm_sugar"] = 700
PNRP.ScavItems["intm_water_bottle_empty"] = 1700
PNRP.ScavItems["intm_yeast"] = 400
PNRP.ScavItems["intm_zombiecookingoil"] = 100
PNRP.ScavItems["intm_cast"] = 80
PNRP.ScavItems["intm_largerifleprimers"] = 90
PNRP.ScavItems["intm_pistolprimers"] = 140
PNRP.ScavItems["intm_rifleprimers"] = 100
PNRP.ScavItems["intm_shotgunprimer"] = 120
PNRP.ScavItems["intm_smokelesspowder"] = 200
PNRP.ScavItems["intm_chip"] = 180
PNRP.ScavItems["intm_resistor"] = 160
PNRP.ScavItems["intm_transistors"] = 175
PNRP.ScavItems["intm_elecboard"] = 60
PNRP.ScavItems["intm_puretablet"] = 100
PNRP.ScavItems["gidzco_brick"] = 850
PNRP.ScavItems["skullwep"] = 600
PNRP.ScavItems["weapon_bat"] = 300
PNRP.ScavItems["weapon_keyboard"] = 350
PNRP.ScavItems["weapon_knuckles"] = 150
PNRP.ScavItems["weapon_plank"] = 760
PNRP.ScavItems["weapon_shovel"] = 400
PNRP.ScavItems["weapon_sledgehammer"] = 100
PNRP.ScavItems["weapon_wrench"] = 250
PNRP.ScavItems["weapon_axe"] = 200
PNRP.ScavItems["weapon_pizzacutter"] = 160
PNRP.ScavItems["weapon_screwdriver"] = 250
PNRP.ScavItems["fas2_civilian_ak47"] = 40
PNRP.ScavItems["fas2_civilian_sg550"] = 20
PNRP.ScavItems["fas2_hk_293c"] = 17
PNRP.ScavItems["fas2_lesocom"] = 50
PNRP.ScavItems["fas2_m1911"] = 90 //Jet fuel can't melt steel beams
PNRP.ScavItems["fas2_toz34"] = 60
PNRP.ScavItems["fas2_rem870"] = 65
PNRP.ScavItems["fas2_ragingbull"] = 40
PNRP.ScavItems["fas2_glock20"] = 70
PNRP.ScavItems["fas2_ammo_12gauge"] = 120
PNRP.ScavItems["fas2_ammo_45acp"] = 100
PNRP.ScavItems["fas2_ammo_556x45"] = 60
PNRP.ScavItems["drug_pre_war_ibuprofen"] = 250
PNRP.ScavItems["drug_pre_war_paracetamol"] = 250
PNRP.ScavItems["m9k_ammo_nervegas"] = 17
PNRP.ScavItems["book_anarchistcookbook"] = 60
PNRP.ScavItems["book_munitions"] = 60
PNRP.ScavItems["book_introductiontomodernoptics"]= 60
PNRP.ScavItems["book_modernelectronicsbook"] = 60
PNRP.ScavItems["intm_5.45x39_case"] = 40
PNRP.ScavItems["intm_5.56x45_case"] = 150
PNRP.ScavItems["intm_7.62x39_case"] = 100
PNRP.ScavItems["intm_7.62x51_case"] = 140
PNRP.ScavItems["intm_9x18_case"] = 50
PNRP.ScavItems["intm_9x19_case"] = 90
PNRP.ScavItems["intm_12gauge_case"] = 200
PNRP.ScavItems["intm_44mag_case"] = 70
PNRP.ScavItems["intm_45acp_case"] = 200
PNRP.ScavItems["intm_50ae_case"] = 40
PNRP.ScavItems["intm_50bmg_case"] = 60
PNRP.ScavItems["ptp_cardboardknife"] = 400
PNRP.ScavItems["ptp_coltjungle"] = 200
PNRP.ScavItems["ptp_powerframe"] = 200
PNRP.ScavItems["ptp_kitchenknife"] = 750
PNRP.ScavItems["ptp_kukriknife"] = 85
PNRP.ScavItems["ptp_m7bae"] = 350
PNRP.ScavItems["ptp_meatcleaver"] = 450
PNRP.ScavItems["ptp_campingozark"] = 300
PNRP.ScavItems["ptp_pipe"] = 900
PNRP.ScavItems["ptp_pipewrench"] = 150
PNRP.ScavItems["ptp_fasthawk"] = 70
PNRP.ScavItems["ptp_tomatoknife"] = 150
PNRP.ScavItems["ptp_rollingpin"] = 300
//PNRP.ScavItems["junk_500lb_bomb"] = 10
//PNRP.ScavItems["junk_100lb_bomb"] = 25
//PNRP.ScavItems["intm_50lb_broken"] = 50
PNRP.ScavItems["intm_plastic_bucket"] = 500
PNRP.ScavItems["intm_bathtub"] = 300
PNRP.ScavItems["intm_military_gun_safe"] = 25
PNRP.ScavItems["intm_law_gun_safe"] = 50
PNRP.ScavItems["intm_civilian_gun_safe"] = 125
PNRP.ScavItems["tool_bomb_defuser"] = 10
--PNRP.ScavItems["food_pickle_jar"] = 150
--PNRP.ScavItems["food_cock_pops"] = 300
--PNRP.ScavItems["food_jew_flakes"] = 300
--PNRP.ScavItems["food_coca_cola"] = 500
--PNRP.ScavItems["food_panda"] = 300
local PlayerMeta = FindMetaTable("Player")
PNRP.JunkModels = { "models/props_junk/TrashCluster01a.mdl",
"models/Gibs/helicopter_brokenpiece_03.mdl",
"models/props_combine/combine_barricade_bracket02a.mdl",
"models/props_vehicles/car001b_hatchback.mdl",
"models/props_vehicles/car001a_hatchback.mdl",
"models/props_vehicles/car002a_physics.mdl",
"models/props_vehicles/car003a.mdl",
"models/props_vehicles/car004b_physics.mdl",
"models/props_vehicles/truck002a_cab.mdl",
"models/props_vehicles/apc001.mdl"}
PNRP.ChemicalModels = { "models/props_junk/garbage128_composite001c.mdl",
"models/Gibs/gunship_gibs_sensorarray.mdl",
"models/Gibs/gunship_gibs_eye.mdl",
"models/props_c17/oildrum001.mdl",
"models/props_junk/metalgascan.mdl" }
PNRP.SmallPartsModels = { "models/props_combine/combine_binocular01.mdl",
"models/Gibs/Scanner_gib01.mdl",
"models/Gibs/Scanner_gib05.mdl",
"models/props_lab/tpswitch.mdl",
"models/props_trainstation/payphone001a.mdl"}
PNRP.DefWeps = {"weapon_physcannon",
"weapon_physgun",
"ptp_plasticknife",
"weapon_simplekeys",
"gmod_camera",
"gmod_tool"}
PNRP.friendlies = { "npc_floor_turret",
"npc_hdvermin",
"npc_hdvermin_fast",
"npc_hdvermin_poison",
"npc_petbird_crow",
"npc_petbird_gull",
"npc_petbird_pigeon" }
CreateConVar("pnrp_SpawnMobs","1",FCVAR_REPLICATED + FCVAR_NOTIFY)
CreateConVar("pnrp_MaxZombies","30",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxFastZombies","5",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxPoisonZombs","2",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxAntlions","10",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxAntGuards","1",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
--Spawns a zombie when the player dies
CreateConVar("pnrp_PlyDeathZombie","1",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
--Mound Spawner Vars
CreateConVar("pnrp_MaxMounds","1",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MoundRate","5",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MoundChance","15",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxMoundAntlions","10",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MoundAntlionsPerCycle","5",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxMoundGuards","1",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MoundMobRate","5",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MoundGuardChance","10",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_packCap","75",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_packCapScav","110",FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_ReproduceRes","1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_MaxReproducedRes","20", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_propSpawnpointProtection", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_propBanning", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_propAllowing", "0", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_AllowPunt", "0", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_propPay", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_propCost", "10", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_adminCreateAll", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_adminTouchAll", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_adminNoCost", "0", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_exp2Level", "4", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_toolLevel", "4", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_voiceLimit", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_voiceDist", "750", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_classChangePay", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_classChangeCost", "10", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_deathPay", "1", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_deathCost", "10", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_maxOwnDoors", "3", FCVAR_REPLICATED + FCVAR_NOTIFY + FCVAR_ARCHIVE)
CreateConVar("pnrp_debug", "0", 0)
local pmeta = FindMetaTable("Player")
function pmeta:IsOutside()
local trace = {}
trace.start = self:GetPos()
trace.endpos = trace.start + Vector( 0, 0, 350 )
trace.filter = self
local tr = util.TraceLine( trace )
if !tr.HitWorld && !tr.HitNonWorld then
return true
end
return false
end
-- Anti-cheat for net messages
-- Anti-cheat for duplicator
include("itembase.lua")
if (SERVER) then
AddCSLuaFile("itembase.lua")
end
for k, v in pairs( file.Find(PNRP_Path.."gamemode/items/*.lua", "LUA" ) ) do
include("items/"..v)
if (SERVER) then AddCSLuaFile("items/"..v) end
end
-- function AddItemsDir(dir)
-- for k, v in pairs( file.Find(PNRP_Path.."gamemode/items/"..dir.."/*.lua", "LUA" ) ) do
-- include("items/"..dir.."/"..v)
-- if (SERVER) then AddCSLuaFile("items/"..v) end
-- end
-- end
-- AddItemsDir("attachments_code")
-- AddItemsDir("books_code")
function PNRP:GetUID( ply )
local plUID = tostring(ply:GetNetworkedString( "UID" , "None" ))
if plUID == "None" and IsValid(ply) then
plUID = ply:UniqueID()
end
return plUID
end
function PNRP.FindItemID( class )
for itemname, item in pairs( PNRP.Items ) do
if item.Ent == "prop_physics" and item.ID == class then
return item.ID
elseif class == item.Ent then
return item.ID
end
end
return nil
end
function PNRP.FindWepItem( model )
local fixedModel = "fas2_att_"..model
-- if string.find(model, "v_") then
-- fixedModel = string.sub( model, 1, string.find(model, "v_") - 1).."w"..string.sub( model, string.find(model, "v_") + 1 )
-- else
-- fixedModel = model
-- end
-- if model == "models/Weapons/V_hands.mdl" or model == "models/weapons/v_hands.mdl" then
-- fixedModel = "models/props_citizen_tech/transponder.mdl"
-- end
for itemname, item in pairs( PNRP.Items ) do
if fixedModel == item.ID then
return item
elseif model == item.ID then
return item
end
end
return nil
end
function GM:StartEntityDriving( ent, ply )
if ply:IsUserGroup("superadmin") and GetConVarNumber("pnrp_adminTouchAll") == 1 then
drive.Start( ply, ent )
end
end
function PNRP.FindAmmoType( id, class )
if id then
if PNRP.Items[id].Type == "weapon" then
return PNRP.Weapons[id].AmmoType
end
-- if id == "wep_deagle" or id == "wep_scout" then
-- return "357"
-- elseif id == "wep_p228" then
-- return "pistol"
-- elseif id == "wep_shotgun" then
-- return "buckshot"
-- else
-- return "smg1"
-- end
-- elseif class then
-- if class == "wep_deagle" or class == "wep_scout" then
-- return "357"
-- elseif class == "wep_p228" then
-- return "pistol"
-- elseif class == "wep_shotgun" then
-- return "buckshot"
-- else
-- return "smg1"
-- end
end
end
function PlayerMeta:TraceFromEyes(dist)
local trace = {}
trace.start = self:GetShootPos()
trace.endpos = trace.start + (self:GetAimVector() * dist)
trace.filter = self
return util.TraceLine(trace)
end
----------------------------------------
-- Weapon HOLDTYPE SWITCH fix --
--____________________________________--
-- I know this is hacky. Not much --
-- I can do about that. Only way I --
-- got the stupid shit to work. --
----------------------------------------
local RP_Default_Weapons = {}
RP_Default_Weapons = { "weapon_pnrp_ak-comp", "weapon_pnrp_badlands", "weapon_pnrp_charge", "weapon_pnrp_knife",
"weapon_pnrp_p228", "weapon_pnrp_precrifle", "weapon_pnrp_pumpshotgun", "weapon_pnrp_revolver", "weapon_pnrp_saw",
"weapon_pnrp_scrapmp", "weapon_pnrp_smg", "weapon_pnrp_57luck", "weapon_pnrp_ump", "weapon_pnrp_m82", "weapon_pnrp_pulserifle",
"weapon_pnrp_flaregun" }
local function HoldTypeFix()
for k, v in pairs(player.GetAll()) do
local myWep = v:GetActiveWeapon()
if myWep and IsValid(myWep) then
local wepFound = false
for _, wepClass in pairs(RP_Default_Weapons) do
if wepClass == myWep:GetClass() then
wepFound = true
break
end
end
if wepFound and IsValid(myWep) then
if v:Crouching() then
myWep:SetWeaponHoldType(myWep.HoldType)
elseif myWep:GetNWBool("IsPassive", false) or myWep:GetDTBool(0) or v:KeyDown( IN_SPEED ) then
if myWep.HoldType == "pistol" or myWep.HoldType == "revolver" or myWep.HoldType == "knife" or myWep.HoldType == "slam" then
myWep:SetWeaponHoldType("normal")
else
myWep:SetWeaponHoldType("passive")
end
elseif myWep:GetDTBool(1) and myWep.HoldType == "pistol" then
myWep:SetWeaponHoldType("revolver")
elseif myWep:GetDTBool(1) and myWep.HoldType == "shotgun" then
myWep:SetWeaponHoldType("ar2")
else
myWep:SetWeaponHoldType(myWep.HoldType or "normal")
end
end
end
end
end
hook.Add( "Think", "holdtypefix", HoldTypeFix )
function toIntfromBool(bool)
if bool == true then
return 1
elseif bool == false then
return 0
else
return bool
end
end
--Checks the players weight
function PNRP:WeightCk( ply, w )
local weightCap
if team.GetName(ply:Team()) == "Scavenger" then
weightCap = GetConVarNumber("pnrp_packCapScav") + (ply:GetSkill("Backpacking")*10)
else
weightCap = GetConVarNumber("pnrp_packCap") + (ply:GetSkill("Backpacking")*10)
end
local expWeight = PNRP.InventoryWeight( ply ) + weight
if expWeight <= weightCap then
return true
else
return false
end
end
function round(num, idp)
if idp and idp>0 then
local mult = 10^idp
return math.floor(num * mult + 0.5) / mult
end
return math.floor(num + 0.5)
end
-----------------------------------------------------------------------------------------------------------------------------
--Wiktors Jew Script---------------------------------------------------[HITLER DID NOTHING WRONG]----------------------------
-----------------------------------------------------------------------------------------------------------------------------
-----------------------------------
hook.Add ( "PlayerSay", "Jewmaker", function( ply, text ) -- --
if text=="Andy is a jew" then -- ---- ----------------- --
-- ---- ----------------- --
if ply:SteamID()=="STEAM_0:0:20321511" then -- ---- ---- --
for pl,value in pairs(player.GetAll()) do -- ---- ---- --
if pl:SteamID()=="STEAM_0:1:6848048" then -- ------------------------------ --
pl.rpname="Jew" -- ------------------------------ --
-- ---- ---- --
else ply:ChatPrint("jew"..pl:SteamID()) -- ---- ---- --
end
end -- ----------------- ---- --
end -- ----------------- ---- --
end -- --
end) ------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
--EOF | gpl-3.0 |
njligames/NJLIGameEngine | projects/ELIA/_archive/scripts_9.16.2016/levels/country/_survival_country_02.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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
}
}
}
}
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/weapon/hutt_heavy_weapon3_s03.lua | 3 | 2304 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_attachment_weapon_hutt_heavy_weapon3_s03 = object_tangible_ship_attachment_weapon_shared_hutt_heavy_weapon3_s03:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_attachment_weapon_hutt_heavy_weapon3_s03, "object/tangible/ship/attachment/weapon/hutt_heavy_weapon3_s03.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/Ship_bound_for_Mhaura/Zone.lua | 5 | 1036 | -----------------------------------
--
-- Zone: Ship_bound_for_Mhaura (221)
--
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ship_bound_for_Mhaura/TextIDs");
-----------------------------------
function onInitialize(zone)
end;
function onZoneIn(player,prevZone)
local cs = -1;
if (player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0) then
local position = math.random(-2,2) + 0.150;
player:setPos(position,-2.100,3.250,64);
end
return cs;
end;
function onTransportEvent(player,transport)
player:startEvent(512);
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 == 512) then
player:setPos(0,0,0,0,249);
end
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/screenplays/racetracks/lok.lua | 2 | 4176 | local ObjectManager = require("managers.object.object_manager")
RaceTrack = require("screenplays.racetracks.racetrackengine")
lok_racetrack_screenplay = RaceTrack:new {
trackConfig={
debugMode = 0, -- 0 = off, 1 = print debug messages
planetName = "lok", -- The planet the Track is on
badgeToAward=BDG_RACING_LOK_MARATHON, -- Badge to be awarded for best daily time
trackName="LOKRT", -- Internal trackname , should be unique to the track
className="lok_racetrack_screenplay", -- Class name of this class
trackCheckpoint="@theme_park/racing/racing:lok_waypoint_name_checkpoint", --Waypoint names
trackLaptime="@theme_park/racing/racing:lok_laptime_checkpoint", -- System message sent at each waypoint
timeResolution=2, -- number of decimal places to use for the laptimes 0 = none, 1 = well 1 etc
expiryTime = (1*3600), --Amount of time in seconds that a player will be expired from the track (stops silly times over this limit)
resetTime = (22*3600)+(10*60), --Time of day in seconds that track resets High Scores
waypointRadius=10, -- size of the waypoint observer
raceCoordinator = {x=630,y=5055,z=12.7}, -- Location of the race coordinator. Note the Z coord is VERY important or conversations break
waypoints = { {x = 946, y = 4634}, -- The coords of the waypoints
{x = 1065, y = 3156},
{x = 3828, y = -532},
{x = 3337, y = -2425},
{x = 3364, y = -3819},
{x = 2962, y = -4546},
{x = 3080, y = -4671},
{x = 3009, y = -4798},
{x = 2893, y = -4782},
{x = 2744, y = -4458},
{x = 509, y = -2924},
{x = -497, y = -624},
{x = 427, y = 705},
{x = 838, y = 2738},
{x = -19, y = 4059},
{x = -26, y = 4558},
{x = 275, y = 5073},
{x = 630, y = 5055}
}
}
}
registerScreenPlay("lok_racetrack_screenplay", true)
--------------------------------------
-- Initialize screenplay -
--------------------------------------
function lok_racetrack_screenplay:start()
if (isZoneEnabled(self.trackConfig.planetName)) then
self:spawnMobiles()
self:createRaceTrack()
end
end
function lok_racetrack_screenplay:spawnMobiles()
local pCoord = spawnMobile(self.trackConfig.planetName, "lok_race_coordinator", 1, self.trackConfig.raceCoordinator.x, self.trackConfig.raceCoordinator.z, self.trackConfig.raceCoordinator.y, 35, 0)
end
function lok_racetrack_screenplay:enteredWaypoint(pActiveArea, pObject)
return self:processWaypoint(pActiveArea, pObject)
end
lok_racetrack_convo_handler = Object:new {}
function lok_racetrack_convo_handler:getNextConversationScreen(conversationTemplate, conversingPlayer, selectedOption)
local convosession = CreatureObject(conversingPlayer):getConversationSession()
local lastConversationScreen = nil
local conversation = LuaConversationTemplate(conversationTemplate)
local nextConversationScreen
if ( conversation ~= nil ) then
-- checking to see if we have a next screen
if ( convosession ~= nil ) then
local session = LuaConversationSession(convosession)
if ( session ~= nil ) then
lastConversationScreen = session:getLastConversationScreen()
else
print("session was not good in getNextScreen")
end
end
if ( lastConversationScreen == nil ) then
nextConversationScreen = conversation:getInitialScreen()
else
local luaLastConversationScreen = LuaConversationScreen(lastConversationScreen)
local optionLink = luaLastConversationScreen:getOptionLink(selectedOption)
nextConversationScreen = conversation:getScreen(optionLink)
end
end
return nextConversationScreen
end
function lok_racetrack_convo_handler:runScreenHandlers(conversationTemplate, conversingPlayer, conversingNPC, selectedOption, conversationScreen)
local screen = LuaConversationScreen(conversationScreen)
local screenID = screen:getScreenID()
if ( screenID == "cs_jsPlumb_1_116" ) then
lok_racetrack_screenplay:startRacing(conversingPlayer)
elseif ( screenID == "cs_jsPlumb_1_181" ) then -- Personal Best
lok_racetrack_screenplay:displayPersonalBestTime(conversingPlayer)
elseif ( screenID == "cs_jsPlumb_1_207" ) then -- Track Best
lok_racetrack_screenplay:displayTrackBestTime(conversingPlayer)
end
return conversationScreen
end
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/player/player_house_corellia_large_style_01.lua | 1 | 4390 | --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_player_player_house_corellia_large_style_01 = object_building_player_shared_player_house_corellia_large_style_01:new {
lotSize = 5,
baseMaintenanceRate = 8,
allowedZones = {"corellia", "dantooine", "lok", "naboo", "rori", "talus", "tatooine"},
publicStructure = 0,
skillMods = {
{"private_medical_rating", 100},
{"private_buff_mind", 100},
{"private_med_battle_fatigue", 5}
},
childObjects = {
{templateFile = "object/tangible/sign/player/house_address_corellia.iff", x = 3.68, z = 2, y = 13.04, ox = 0, oy = 0.707107, oz = 0, ow = 0.707107, cellid = -1, containmentType = -1},
{templateFile = "object/tangible/terminal/terminal_player_structure.iff", x = 3.17, z = 4.585, y = -4.4, ox = 0, oy = 0, oz = 0, ow = 1, cellid = 8, containmentType = -1},
},
shopSigns = {
{templateFile = "object/tangible/sign/player/house_address_corellia.iff", x = 3.68, z = 2, y = 13.04, ox = 0, oy = 0.707107, oz = 0, ow = 0.707107, cellid = -1, containmentType = -1, requiredSkill = "", suiItem = "@player_structure:house_address"},
{templateFile = "object/tangible/sign/player/shop_sign_s01.iff", x = -10, z = 0.5, y = 16, ox = 0, oy = 0, oz = 0, ow = 1, cellid = -1, containmentType = -1, requiredSkill = "crafting_merchant_management_01", suiItem = "@player_structure:shop_sign1"},
{templateFile = "object/tangible/sign/player/shop_sign_s02.iff", x = -10, z = 0.5, y = 16, ox = 0, oy = 0, oz = 0, ow = 1, cellid = -1, containmentType = -1, requiredSkill = "crafting_merchant_management_02", suiItem = "@player_structure:shop_sign2"},
{templateFile = "object/tangible/sign/player/shop_sign_s03.iff", x = -10, z = 0.5, y = 16, ox = 0, oy = 0, oz = 0, ow = 1, cellid = -1, containmentType = -1, requiredSkill = "crafting_merchant_management_03", suiItem = "@player_structure:shop_sign3"},
{templateFile = "object/tangible/sign/player/shop_sign_s04.iff", x = -10, z = 0.5, y = 16, ox = 0, oy = 0, oz = 0, ow = 1, cellid = -1, containmentType = -1, requiredSkill = "crafting_merchant_management_04", suiItem = "@player_structure:shop_sign4"},
},
constructionMarker = "object/building/player/construction/construction_player_house_corellia_large_style_01.iff",
length = 5,
width = 7
}
ObjectTemplates:addTemplate(object_building_player_player_house_corellia_large_style_01, "object/building/player/player_house_corellia_large_style_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/vog_eel.lua | 3 | 2144 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_vog_eel = object_mobile_shared_vog_eel:new {
}
ObjectTemplates:addTemplate(object_mobile_vog_eel, "object/mobile/vog_eel.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/container/base/base_container_volume.lua | 3 | 2268 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_container_base_base_container_volume = object_tangible_container_base_shared_base_container_volume:new {
}
ObjectTemplates:addTemplate(object_tangible_container_base_base_container_volume, "object/tangible/container/base/base_container_volume.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/instrument/serverobjects.lua | 3 | 3048 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
includeFile("draft_schematic/instrument/component/serverobjects.lua")
-- Server Objects
includeFile("draft_schematic/instrument/instrument_bandfill.lua")
includeFile("draft_schematic/instrument/instrument_base.lua")
includeFile("draft_schematic/instrument/instrument_drums.lua")
includeFile("draft_schematic/instrument/instrument_fanfar.lua")
includeFile("draft_schematic/instrument/instrument_fizz.lua")
includeFile("draft_schematic/instrument/instrument_flute_droopy.lua")
includeFile("draft_schematic/instrument/instrument_kloo_horn.lua")
includeFile("draft_schematic/instrument/instrument_mandoviol.lua")
includeFile("draft_schematic/instrument/instrument_nalargon.lua")
includeFile("draft_schematic/instrument/instrument_omni_box.lua")
includeFile("draft_schematic/instrument/instrument_organ_figrin_dan.lua")
includeFile("draft_schematic/instrument/instrument_organ_max_rebo.lua")
includeFile("draft_schematic/instrument/instrument_slitherhorn.lua")
includeFile("draft_schematic/instrument/instrument_traz.lua")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_feinu_zerk.lua | 3 | 2188 | --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_feinu_zerk = object_mobile_shared_dressed_feinu_zerk:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_feinu_zerk, "object/mobile/dressed_feinu_zerk.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/zones/PsoXja/npcs/_091.lua | 5 | 1047 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _091 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 350.000 -1.925 -61.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/globals");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/zones/PsoXja/MobIDs");
require("scripts/globals/status");
-----------------------------------
function onTrade(player,npc,trade)
if ( player:getMainJob() == JOBS.THF and trade:getItemCount() == 1 and (trade:hasItemQty(1115,1) or trade:hasItemQty(1023,1) or trade:hasItemQty(1022,1)) ) then
attemptPickLock(player, npc, player:getZPos() >= -61);
end
end;
function onTrigger(player,npc)
attemptOpenDoor(player, npc, player:getZPos() >= -61);
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 26 and option == 1) then
player:setPos(260,-0.25,-20,254,111);
end
end;
| gpl-3.0 |
DailyShana/ygopro-scripts | c74593218.lua | 3 | 1850 | --H-C クサナギ
function c74593218.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),4,3)
c:EnableReviveLimit()
--negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(74593218,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_ATKCHANGE)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c74593218.negcon)
e1:SetCost(c74593218.negcost)
e1:SetTarget(c74593218.negtg)
e1:SetOperation(c74593218.negop)
c:RegisterEffect(e1)
end
function c74593218.negcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainNegatable(ev)
end
function c74593218.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c74593218.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end
function c74593218.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.NegateActivation(ev)
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then
Duel.BreakEffect()
if c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500)
e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1)
end
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/vehicle/weapon_array.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_component_vehicle_weapon_array = object_tangible_component_vehicle_shared_weapon_array:new {
}
ObjectTemplates:addTemplate(object_tangible_component_vehicle_weapon_array, "object/tangible/component/vehicle/weapon_array.iff")
| agpl-3.0 |
njligames/NJLIGameEngine | src/njli/platform/cmake.in/ldoc.in/WorldInput.lua | 4 | 2243 |
----
-- @file WorldInput
---- Brief description.
-- @return <#return value description#>
function WorldInput:WorldInput()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function WorldInput:getClassName()
end
---- Brief description.
-- <#Description#>
-- @return <#return value description#>
function WorldInput:getType()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:getTouch()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:getTouch()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:numberOfTouches()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:setTouch()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:setTouch()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:clearNodeTouches()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:touchDown()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:touchUp()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:touchMove()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:touchCancelled()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:setOrientation()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:isPortraitOrientation()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:isLandscapeOrientation()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:getOrientation()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:showKeyboard()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:clearTouches()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:WorldInput()
end
---- Brief description.
-- @return <#return value description#>
function WorldInput:operator=()
end
| mit |
DailyShana/ygopro-scripts | c40164421.lua | 9 | 2902 | --ライトロード・メイデン ミネルバ
function c40164421.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40164421,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c40164421.thtg)
e1:SetOperation(c40164421.thop)
c:RegisterEffect(e1)
--discard deck
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(40164421,1))
e2:SetCategory(CATEGORY_DECKDES)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(c40164421.discon)
e2:SetTarget(c40164421.distg)
e2:SetOperation(c40164421.disop)
c:RegisterEffect(e2)
--discard deck2
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(40164421,2))
e3:SetCategory(CATEGORY_DECKDES)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(c40164421.discon2)
e3:SetTarget(c40164421.distg2)
e3:SetOperation(c40164421.disop2)
c:RegisterEffect(e3)
end
function c40164421.cfilter(c)
return c:IsSetCard(0x38) and c:IsType(TYPE_MONSTER)
end
function c40164421.thfilter(c,lv)
return c:IsLevelBelow(lv) and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsAbleToHand()
end
function c40164421.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local g=Duel.GetMatchingGroup(c40164421.cfilter,tp,LOCATION_GRAVE,0,nil)
local ct=g:GetClassCount(Card.GetCode)
return Duel.IsExistingMatchingCard(c40164421.thfilter,tp,LOCATION_DECK,0,1,nil,ct)
end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c40164421.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c40164421.cfilter,tp,LOCATION_GRAVE,0,nil)
local ct=g:GetClassCount(Card.GetCode)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,c40164421.thfilter,tp,LOCATION_DECK,0,1,1,nil,ct)
if sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
end
function c40164421.discon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_DECK+LOCATION_HAND)
end
function c40164421.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1)
end
function c40164421.disop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.DiscardDeck(p,d,REASON_EFFECT)
end
function c40164421.discon2(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer()
end
function c40164421.distg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,2)
end
function c40164421.disop2(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardDeck(tp,2,REASON_EFFECT)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/lair/creature_lair/dantooine_voritor_jungle_lair_neutral_medium_boss_01.lua | 3 | 1059 | dantooine_voritor_jungle_lair_neutral_medium_boss_01 = Lair:new {
mobiles = {{"horned_voritor_lizard",1}},
bossMobiles = {{"spiked_slasher",1}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_leaf_small_fog_red.iff","object/tangible/lair/base/poi_all_lair_thicket_small_fog_red.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_leaf_small_fog_red.iff","object/tangible/lair/base/poi_all_lair_thicket_small_fog_red.iff"},
buildingsMedium = {"object/tangible/lair/base/poi_all_lair_leaf_small_fog_red.iff","object/tangible/lair/base/poi_all_lair_thicket_small_fog_red.iff"},
buildingsHard = {"object/tangible/lair/base/poi_all_lair_leaf_small_fog_red.iff","object/tangible/lair/base/poi_all_lair_thicket_small_fog_red.iff"},
buildingsVeryHard = {"object/tangible/lair/base/poi_all_lair_leaf_small_fog_red.iff","object/tangible/lair/base/poi_all_lair_thicket_small_fog_red.iff"},
}
addLairTemplate("dantooine_voritor_jungle_lair_neutral_medium_boss_01", dantooine_voritor_jungle_lair_neutral_medium_boss_01)
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/faction/imperial/civil_patrol_captain.lua | 2 | 1260 | civil_patrol_captain = Creature:new {
objectName = "@mob/creature_names:imperial_civil_patrol_captain",
randomNameType = NAME_GENERIC_TAG,
socialGroup = "imperial",
faction = "imperial",
level = 9,
chanceHit = 0.27,
damageMin = 80,
damageMax = 90,
baseXp = 292,
baseHAM = 675,
baseHAMmax = 825,
armor = 0,
resists = {10,10,10,10,10,10,10,-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_imperial_officer_m.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 4000000},
{group = "wearables_common", chance = 2000000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
}
}
},
weapons = {"ranged_weapons"},
conversationTemplate = "",
reactionStf = "@npc_reaction/military",
personalityStf = "@hireling/hireling_military",
attacks = merge(marksmannovice,brawlernovice)
}
CreatureTemplates:addCreatureTemplate(civil_patrol_captain, "civil_patrol_captain")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/munition/component/enhanced_destructive_pulse_channeling.lua | 3 | 2376 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_munition_component_enhanced_destructive_pulse_channeling = object_draft_schematic_munition_component_shared_enhanced_destructive_pulse_channeling:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_munition_component_enhanced_destructive_pulse_channeling, "object/draft_schematic/munition/component/enhanced_destructive_pulse_channeling.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/collectible/collectible_parts/blue_rug_thread_04.lua | 3 | 2336 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_loot_collectible_collectible_parts_blue_rug_thread_04 = object_tangible_loot_collectible_collectible_parts_shared_blue_rug_thread_04:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_collectible_collectible_parts_blue_rug_thread_04, "object/tangible/loot/collectible/collectible_parts/blue_rug_thread_04.iff")
| agpl-3.0 |
Whitechaser/darkstar | scripts/globals/items/bowl_of_miso_ramen+1.lua | 2 | 1586 | -----------------------------------------
-- ID: 6461
-- Item: bowl_of_miso_ramen_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP +105
-- STR +6
-- VIT +6
-- DEF +11% (cap 175)
-- Magic Evasion +11% (cap 55)
-- Magic Def. Bonus +6
-- Resist Slow +15
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(dsp.effects.FOOD) == true or target:hasStatusEffect(dsp.effects.FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
function onItemUse(target)
target:addStatusEffect(dsp.effects.FOOD,0,0,3600,6461);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_HP, 105);
target:addMod(MOD_STR, 6);
target:addMod(MOD_VIT, 6);
target:addMod(MOD_FOOD_DEFP, 11);
target:addMod(MOD_FOOD_DEF_CAP, 175);
-- target:addMod(MOD_FOOD_MEVAP, 11);
-- target:addMod(MOD_FOOD_MEVA_CAP, 55);
target:addMod(MOD_MDEF, 6);
target:addMod(MOD_SLOWRES, 15);
end;
function onEffectLose(target, effect)
target:delMod(MOD_HP, 105);
target:delMod(MOD_STR, 6);
target:delMod(MOD_VIT, 6);
target:delMod(MOD_FOOD_DEFP, 11);
target:delMod(MOD_FOOD_DEF_CAP, 175);
-- target:delMod(MOD_FOOD_MEVAP, 11);
-- target:delMod(MOD_FOOD_MEVA_CAP, 55);
target:delMod(MOD_MDEF, 6);
target:delMod(MOD_SLOWRES, 15);
end;
| gpl-3.0 |
Whitechaser/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm6.lua | 5 | 1041 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm6 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- !pos -220.039 -5.500 194.192 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/zones/Garlaige_Citadel/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local hittingTheMarquisateHagainCS = player:getVar("hittingTheMarquisateHagainCS");
if (hittingTheMarquisateHagainCS == 2) then
player:messageSpecial(PRESENCE_FROM_CEILING);
player:setVar("hittingTheMarquisateHagainCS",3);
end
end;
function onEventUpdate(player,csid,option)
-- printf("CSID2: %u",csid);
-- printf("RESULT2: %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/space/capacitor/energy_saver_battery_mk1.lua | 2 | 3330 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_space_capacitor_energy_saver_battery_mk1 = object_draft_schematic_space_capacitor_shared_energy_saver_battery_mk1:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Energy Saver Battery - Mark I",
craftingToolTab = 131072, -- (See DraftSchemticImplementation.h)
complexity = 19,
size = 1,
xpType = "shipwright",
xp = 25,
assemblySkill = "advanced_assembly",
experimentingSkill = "advanced_ship_experimentation",
customizationSkill = "advanced_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n"},
ingredientTitleNames = {"battery_casing", "enhanced_battery_core"},
ingredientSlotType = {0, 0},
resourceTypes = {"steel", "copper_borocarbitic"},
resourceQuantities = {75, 25},
contribution = {100, 100},
targetTemplate = "object/tangible/ship/crafted/capacitor/energy_saver_battery_mk1.iff",
additionalTemplates = {
"object/tangible/ship/crafted/capacitor/shared_energy_saver_battery_mk1.iff",
}
}
ObjectTemplates:addTemplate(object_draft_schematic_space_capacitor_energy_saver_battery_mk1, "object/draft_schematic/space/capacitor/energy_saver_battery_mk1.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/tatooine/wall_gate_tatooine_wide_style_01.lua | 3 | 2320 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_tatooine_wall_gate_tatooine_wide_style_01 = object_static_structure_tatooine_shared_wall_gate_tatooine_wide_style_01:new {
}
ObjectTemplates:addTemplate(object_static_structure_tatooine_wall_gate_tatooine_wide_style_01, "object/static/structure/tatooine/wall_gate_tatooine_wide_style_01.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c78835747.lua | 3 | 1838 | --EMカレイドスコーピオン
function c78835747.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_PZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c78835747.atktg)
e2:SetValue(300)
c:RegisterEffect(e2)
--attack all
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(78835747,0))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1)
e3:SetCondition(c78835747.condition)
e3:SetTarget(c78835747.target)
e3:SetOperation(c78835747.operation)
c:RegisterEffect(e3)
end
function c78835747.atktg(e,c)
return c:IsAttribute(ATTRIBUTE_LIGHT)
end
function c78835747.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP()
end
function c78835747.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
end
function c78835747.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_ATTACK_ALL)
e1:SetValue(c78835747.atkfilter)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
end
end
function c78835747.atkfilter(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/furniture/all/frn_all_potted_plants_sml_s05.lua | 3 | 2296 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_furniture_all_frn_all_potted_plants_sml_s05 = object_tangible_furniture_all_shared_frn_all_potted_plants_sml_s05:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_potted_plants_sml_s05, "object/tangible/furniture/all/frn_all_potted_plants_sml_s05.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c27207573.lua | 3 | 1844 | --侵略の手段
function c27207573.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c27207573.condition)
e1:SetCost(c27207573.cost)
e1:SetTarget(c27207573.target)
e1:SetOperation(c27207573.activate)
c:RegisterEffect(e1)
end
function c27207573.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c27207573.cfilter(c)
return c:IsSetCard(0x100a) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c27207573.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c27207573.cfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c27207573.cfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
end
function c27207573.filter(c)
return c:IsFaceup() and c:IsSetCard(0x100a)
end
function c27207573.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c27207573.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c27207573.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c27207573.filter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c27207573.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END)
e1:SetValue(800)
tc:RegisterEffect(e1)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/space/booster/booster_mk5.lua | 1 | 3520 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_space_booster_booster_mk5 = object_draft_schematic_space_booster_shared_booster_mk5:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Mark V Booster",
craftingToolTab = 131072, -- (See DraftSchemticImplementation.h)
complexity = 36,
size = 1,
xpType = "shipwright",
xp = 1250,
assemblySkill = "booster_assembly",
experimentingSkill = "booster_experimentation",
customizationSkill = "medicine_customization",
disableFactoryRun = true,
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n", "craft_item_ingredients_n"},
ingredientTitleNames = {"casing", "booster_nozzle", "liquid_fuel", "booster_upgrade", "fuel_mixing_chamber"},
ingredientSlotType = {0, 0, 0, 3, 0},
resourceTypes = {"steel", "aluminum", "fuel_petrochem_liquid", "object/tangible/ship/crafted/booster/shared_base_booster_subcomponent_mk5.iff", "ore"},
resourceQuantities = {1250, 1250, 1250, 1, 1250},
contribution = {100, 100, 100, 100, 100},
targetTemplate = "object/tangible/ship/crafted/booster/booster_mk5.iff",
additionalTemplates = {
"object/tangible/ship/crafted/booster/shared_booster_mk5.iff",
}
}
ObjectTemplates:addTemplate(object_draft_schematic_space_booster_booster_mk5, "object/draft_schematic/space/booster/booster_mk5.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/quest/generic/noble_target_hyperdrive.lua | 1 | 1866 | noble_target_hyperdrive = Creature:new {
objectName = "@mob/creature_names:thug",
socialGroup = "thug",
faction = "thug",
level = 7,
chanceHit = 0.26,
damageMin = 55,
damageMax = 65,
baseXp = 187,
baseHAM = 270,
baseHAMmax = 330,
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,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {
"object/mobile/dressed_criminal_thug_aqualish_male_01.iff",
"object/mobile/dressed_criminal_thug_aqualish_male_02.iff",
"object/mobile/dressed_criminal_thug_aqualish_female_01.iff",
"object/mobile/dressed_criminal_thug_aqualish_female_02.iff",
"object/mobile/dressed_criminal_thug_bothan_male_01.iff",
"object/mobile/dressed_criminal_thug_bothan_female_01.iff",
"object/mobile/dressed_criminal_thug_human_male_01.iff",
"object/mobile/dressed_criminal_thug_human_male_02.iff",
"object/mobile/dressed_criminal_thug_human_female_01.iff",
"object/mobile/dressed_criminal_thug_human_female_02.iff",
"object/mobile/dressed_criminal_thug_rodian_male_01.iff",
"object/mobile/dressed_criminal_thug_rodian_female_01.iff",
"object/mobile/dressed_criminal_thug_trandoshan_male_01.iff",
"object/mobile/dressed_criminal_thug_trandoshan_female_01.iff",
"object/mobile/dressed_criminal_thug_zabrak_male_01.iff",
"object/mobile/dressed_criminal_thug_zabrak_female_01.iff"},
lootGroups = {
{
groups = {
{group = "task_loot_hyperdrive_part", chance = 10000000}
},
lootChance = 10000000
}
},
weapons = {"pirate_weapons_light"},
conversationTemplate = "",
attacks = merge(marksmannovice,brawlernovice)
}
CreatureTemplates:addCreatureTemplate(noble_target_hyperdrive, "noble_target_hyperdrive") | agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_rebel_specforce_general_twk_female_01.lua | 3 | 2296 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_rebel_specforce_general_twk_female_01 = object_mobile_shared_dressed_rebel_specforce_general_twk_female_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_rebel_specforce_general_twk_female_01, "object/mobile/dressed_rebel_specforce_general_twk_female_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/poi/tatooine_rodianhunter_large1.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_large1 = object_building_poi_shared_tatooine_rodianhunter_large1:new {
gameObjectType = 531,
}
ObjectTemplates:addTemplate(object_building_poi_tatooine_rodianhunter_large1, "object/building/poi/tatooine_rodianhunter_large1.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c70902743.lua | 3 | 3078 | --レッド・デーモンズ・ドラゴン
function c70902743.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--destroy1
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(70902743,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLED)
e1:SetCondition(c70902743.condition1)
e1:SetTarget(c70902743.target1)
e1:SetOperation(c70902743.operation1)
c:RegisterEffect(e1)
--destroy2
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(70902743,1))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetCondition(c70902743.condition2)
e2:SetTarget(c70902743.target2)
e2:SetOperation(c70902743.operation2)
c:RegisterEffect(e2)
if not c70902743.global_check then
c70902743.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_ATTACK_ANNOUNCE)
ge1:SetOperation(c70902743.check)
Duel.RegisterEffect(ge1,0)
local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_ATTACK_DISABLED)
ge2:SetOperation(c70902743.check2)
Duel.RegisterEffect(ge2,0)
end
end
function c70902743.check(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
local ct=tc:GetFlagEffectLabel(70902743)
if ct then
tc:SetFlagEffectLabel(70902743,ct+1)
else
tc:RegisterFlagEffect(70902743,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1,1)
end
end
function c70902743.check2(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
local ct=tc:GetFlagEffectLabel(70902743)
if ct then
tc:SetFlagEffectLabel(70902743,ct-1)
end
end
function c70902743.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget() and not Duel.GetAttackTarget():IsAttackPos()
end
function c70902743.filter1(c)
return not c:IsAttackPos() and c:IsDestructable()
end
function c70902743.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(c70902743.filter1,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c70902743.operation1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c70902743.filter1,tp,0,LOCATION_MZONE,nil)
Duel.Destroy(g,REASON_EFFECT)
end
function c70902743.filter2(c)
local ct=c:GetFlagEffectLabel(70902743)
return (not ct or ct==0) and c:IsDestructable()
end
function c70902743.condition2(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer()
end
function c70902743.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(c70902743.filter2,tp,LOCATION_MZONE,0,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c70902743.operation2(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c70902743.filter2,tp,LOCATION_MZONE,0,e:GetHandler())
Duel.Destroy(g,REASON_EFFECT)
end
| gpl-2.0 |
TWEFF/Luci | modules/admin-full/luasrc/model/cbi/admin_system/startup.lua | 67 | 2805 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require "luci.fs"
require "luci.sys"
require "luci.util"
local inits = { }
for _, name in ipairs(luci.sys.init.names()) do
local index = luci.sys.init.index(name)
local enabled = luci.sys.init.enabled(name)
if index < 255 then
inits["%02i.%s" % { index, name }] = {
name = name,
index = tostring(index),
enabled = enabled
}
end
end
m = SimpleForm("initmgr", translate("Initscripts"), translate("You can enable or disable installed init scripts here. Changes will applied after a device reboot.<br /><strong>Warning: If you disable essential init scripts like \"network\", your device might become inaccessible!</strong>"))
m.reset = false
m.submit = false
s = m:section(Table, inits)
i = s:option(DummyValue, "index", translate("Start priority"))
n = s:option(DummyValue, "name", translate("Initscript"))
e = s:option(Button, "endisable", translate("Enable/Disable"))
e.render = function(self, section, scope)
if inits[section].enabled then
self.title = translate("Enabled")
self.inputstyle = "save"
else
self.title = translate("Disabled")
self.inputstyle = "reset"
end
Button.render(self, section, scope)
end
e.write = function(self, section)
if inits[section].enabled then
inits[section].enabled = false
return luci.sys.init.disable(inits[section].name)
else
inits[section].enabled = true
return luci.sys.init.enable(inits[section].name)
end
end
start = s:option(Button, "start", translate("Start"))
start.inputstyle = "apply"
start.write = function(self, section)
luci.sys.call("/etc/init.d/%s %s >/dev/null" %{ inits[section].name, self.option })
end
restart = s:option(Button, "restart", translate("Restart"))
restart.inputstyle = "reload"
restart.write = start.write
stop = s:option(Button, "stop", translate("Stop"))
stop.inputstyle = "remove"
stop.write = start.write
f = SimpleForm("rc", translate("Local Startup"),
translate("This is the content of /etc/rc.local. Insert your own commands here (in front of 'exit 0') to execute them at the end of the boot process."))
t = f:field(TextValue, "rcs")
t.rmempty = true
t.rows = 20
function t.cfgvalue()
return luci.fs.readfile("/etc/rc.local") or ""
end
function f.handle(self, state, data)
if state == FORM_VALID then
if data.rcs then
luci.fs.writefile("/etc/rc.local", data.rcs:gsub("\r\n", "\n"))
end
end
return true
end
return m, f
| apache-2.0 |
Whitechaser/darkstar | scripts/zones/Lufaise_Meadows/npcs/Cotete_WW.lua | 2 | 2987 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Cotete, W.W.
-- Border Conquest Guards
-- !pos 414.659 0.905 -52.417 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("scripts/zones/Lufaise_Meadows/TextIDs");
local guardnation = NATION_WINDURST; -- SANDORIA, BASTOK, WINDURST, 4 = jeuno
local guardtype = 4; -- 1: city, 2: foreign, 3: outpost, 4: border
local region = TAVNAZIANARCH;
local csid = 0x7ff6;
function onTrade(player,npc,trade)
tradeConquestGuard(player,npc,trade,guardnation,guardtype);
end;
function onTrigger(player,npc)
if (player:hasKeyItem(getSupplyKey(region)) and player:getNation() == guardnation) then
if (supplyRunFresh(player) == 1) then
player:startEvent(csid,16,0,0,0,1,0,0,255); -- you have brought us supplies !
else
player:showText(npc, CONQUEST - 1); -- "Hmm... These supplies you have brought us are too old to be of any use."
player:delKeyItem(getSupplyKey(region));
player:messageSpecial(KEYITEM_OBTAINED + 1, getSupplyKey(region));
player:setVar("supplyQuest_region",0);
end
else
local arg1 = getArg1(guardnation, player) - 1;
if (arg1 >= 1792) then -- foreign, non-allied
player:startEvent(csid,1808,0,0,0,0,player:getRank(),0,0);
else -- citizen or allied
player:startEvent(csid,arg1,0,0x3F0000,0,0,getArg6(player),0,0);
end
end
end;
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("OPTION: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("OPTION: %u",option);
if (option == 1) then
local duration = (player:getRank() + getNationRank(player:getNation()) + 3) * 3600;
player:delStatusEffect(dsp.effects.SIGIL);
player:delStatusEffect(dsp.effects.SANCTION);
player:delStatusEffect(dsp.effects.SIGNET);
player:addStatusEffect(dsp.effects.SIGNET,0,0,duration); -- Grant Signet
elseif (option == 2) then
player:delKeyItem(getSupplyKey(region));
player:addCP(supplyReward[region + 1])
player:messageSpecial(CONQUEST); -- "You've earned conquest points!"
if (hasOutpost(player, region+5) == 0) then
local supply_quests = 2^(region+5);
player:addNationTeleport(guardnation,supply_quests);
player:setVar("supplyQuest_region",0);
end
elseif (option == 4) then
if (player:delGil(giltosetHP(guardnation,player))) then
player:setHomePoint();
player:messageSpecial(CONQUEST + 94); -- "Your home point has been set."
else
player:messageSpecial(CONQUEST + 95); -- "You do not have enough gil to set your home point here."
end
end
end; | gpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/vehicle/disperser.lua | 3 | 2232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_vehicle_disperser = object_tangible_component_vehicle_shared_disperser:new {
}
ObjectTemplates:addTemplate(object_tangible_component_vehicle_disperser, "object/tangible/component/vehicle/disperser.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/weapon/rifle_blaster_e11.lua | 2 | 3653 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_weapon_rifle_blaster_e11 = object_draft_schematic_weapon_shared_rifle_blaster_e11:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "E11 Rifle",
craftingToolTab = 1, -- (See DraftSchemticImplementation.h)
complexity = 22,
size = 3,
xpType = "crafting_weapons_general",
xp = 160,
assemblySkill = "weapon_assembly",
experimentingSkill = "weapon_experimentation",
customizationSkill = "weapon_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n"},
ingredientTitleNames = {"frame_assembly", "receiver_assembly", "grip_assembly", "powerhandler", "barrel", "scope", "stock"},
ingredientSlotType = {0, 0, 0, 1, 1, 3, 3},
resourceTypes = {"iron_plumbum", "metal_ferrous", "metal", "object/tangible/component/weapon/shared_blaster_power_handler.iff", "object/tangible/component/weapon/shared_blaster_rifle_barrel.iff", "object/tangible/component/weapon/shared_scope_weapon.iff", "object/tangible/component/weapon/shared_stock.iff"},
resourceQuantities = {45, 15, 12, 1, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/weapon/ranged/rifle/rifle_e11.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_rifle_blaster_e11, "object/draft_schematic/weapon/rifle_blaster_e11.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/destructible/destructible_tato_cave_rock_med.lua | 3 | 2344 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_destructible_destructible_tato_cave_rock_med = object_static_destructible_shared_destructible_tato_cave_rock_med:new {
pvpStatusBitmask = ATTACKABLE,
optionsBitmask = 0
}
ObjectTemplates:addTemplate(object_static_destructible_destructible_tato_cave_rock_med, "object/static/destructible/destructible_tato_cave_rock_med.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/component/weapon/blaster_barrel_wp_muzzle_m_s05.lua | 3 | 2312 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_component_weapon_blaster_barrel_wp_muzzle_m_s05 = object_tangible_component_weapon_shared_blaster_barrel_wp_muzzle_m_s05:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_blaster_barrel_wp_muzzle_m_s05, "object/tangible/component/weapon/blaster_barrel_wp_muzzle_m_s05.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/lair/npc_theater/endor_panshee_weathered_shaman_neutral_medium_theater.lua | 3 | 1175 | endor_panshee_weathered_shaman_neutral_medium_theater = Lair:new {
mobiles = {
{"weathered_panshee_shaman",1},
{"panshee_shaman",1},
{"gifted_panshee_shaman",1},
{"adept_panshee_shaman",1}
},
spawnLimit = 12,
buildingsVeryEasy = {"object/building/poi/endor_ewok_medium.iff","object/building/poi/endor_ewok_medium3.iff","object/building/poi/endor_ewok_medium4.iff"},
buildingsEasy = {"object/building/poi/endor_ewok_medium.iff","object/building/poi/endor_ewok_medium3.iff","object/building/poi/endor_ewok_medium4.iff"},
buildingsMedium = {"object/building/poi/endor_ewok_medium.iff","object/building/poi/endor_ewok_medium3.iff","object/building/poi/endor_ewok_medium4.iff"},
buildingsHard = {"object/building/poi/endor_ewok_medium.iff","object/building/poi/endor_ewok_medium3.iff","object/building/poi/endor_ewok_medium4.iff"},
buildingsVeryHard = {"object/building/poi/endor_ewok_medium.iff","object/building/poi/endor_ewok_medium3.iff","object/building/poi/endor_ewok_medium4.iff"},
mobType = "npc",
buildingType = "theater"
}
addLairTemplate("endor_panshee_weathered_shaman_neutral_medium_theater", endor_panshee_weathered_shaman_neutral_medium_theater)
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/shield_generator/shd_sfs_limited_advanced.lua | 3 | 2352 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_shield_generator_shd_sfs_limited_advanced = object_tangible_ship_components_shield_generator_shared_shd_sfs_limited_advanced:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_shield_generator_shd_sfs_limited_advanced, "object/tangible/ship/components/shield_generator/shd_sfs_limited_advanced.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/endor/endor_village_tree.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_building_endor_endor_village_tree = object_building_endor_shared_endor_village_tree:new {
}
ObjectTemplates:addTemplate(object_building_endor_endor_village_tree, "object/building/endor/endor_village_tree.iff")
| agpl-3.0 |
vansatchen/dlink327 | releases/sources/Domoticz/domoticz/scripts/dzVents/runtime/TimedCommand.lua | 5 | 2481 | local scriptPath = _G.globalvariables['script_path']
package.path = package.path .. ';' .. scriptPath .. '?.lua'
local utils = require('Utils')
-- generic 'switch' class with timed options
-- supports chainging like:
-- switch(v1).for_min(v2).after_sec/min(v3)
-- switch(v1).within_min(v2).for_min(v3)
-- switch(v1).after_sec(v2).for_min(v3)
local function deprecationWarning(msg)
utils.log(msg, utils.LOG_ERROR)
end
local function TimedCommand(domoticz, name, value)
local valueValue = value
local afterValue, forValue, randomValue
local constructCommand = function()
local command = {} -- array of command parts
table.insert(command, valueValue)
if (randomValue ~= nil) then
table.insert(command, 'RANDOM ' .. tostring(randomValue))
end
if (afterValue ~= nil) then
table.insert(command, 'AFTER ' .. tostring(afterValue))
end
if (forValue ~= nil) then
table.insert(command, 'FOR ' .. tostring(forValue))
end
local sCommand = table.concat(command, " ")
utils.log('Constructed timed-command: ' .. sCommand, utils.LOG_DEBUG)
return sCommand
end
-- get a reference to the latest entry in the commandArray so we can
-- keep modifying it here.
local latest, command, sValue = domoticz.sendCommand(name, constructCommand())
return {
['_constructCommand'] = constructCommand, -- for testing purposes
['_latest'] = latest, -- for testing purposes
['afterSec'] = function(seconds)
afterValue = seconds
latest[command] = constructCommand()
return {
['forMin'] = function(minutes)
forValue = minutes
latest[command] = constructCommand()
end
}
end,
['afterMin'] = function(minutes)
afterValue = minutes * 60
latest[command] = constructCommand()
return {
['forMin'] = function(minutes)
forValue = minutes
latest[command] = constructCommand()
end
}
end,
['forMin'] = function(minutes)
forValue = minutes
latest[command] = constructCommand()
return {
['afterSec'] = function(seconds)
afterValue = seconds
latest[command] = constructCommand()
end,
['afterMin'] = function(minutes)
afterValue = minutes * 60
latest[command] = constructCommand()
end
}
end,
['withinMin'] = function(minutes)
randomValue = minutes
latest[command] = constructCommand()
return {
['forMin'] = function(minutes)
forValue = minutes
latest[command] = constructCommand()
end
}
end
}
end
return TimedCommand | gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/simple_kit/wiring_blue.lua | 3 | 2232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_loot_simple_kit_wiring_blue = object_tangible_loot_simple_kit_shared_wiring_blue:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_simple_kit_wiring_blue, "object/tangible/loot/simple_kit/wiring_blue.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/item/item_basket_closed.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_basket_closed = object_static_item_shared_item_basket_closed:new {
}
ObjectTemplates:addTemplate(object_static_item_item_basket_closed, "object/static/item/item_basket_closed.iff")
| agpl-3.0 |
Zefiros-Software/premake-core | tests/config/test_targetinfo.lua | 1 | 4738 | --
-- tests/config/test_targetinfo.lua
-- Test the config object's build target accessor.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("config_targetinfo")
local config = p.config
--
-- Setup and teardown
--
local wks, prj
function suite.setup()
p.action.set("test")
wks, prj = test.createWorkspace()
system "macosx"
end
local function prepare()
local cfg = test.getconfig(prj, "Debug")
return config.gettargetinfo(cfg)
end
--
-- Directory uses targetdir() value if present.
--
function suite.directoryIsTargetDir_onTargetDir()
targetdir "../bin"
i = prepare()
test.isequal("../bin", path.getrelative(os.getcwd(), i.directory))
end
--
-- Base name should use the project name by default.
--
function suite.basenameIsProjectName_onNoTargetName()
i = prepare()
test.isequal("MyProject", i.basename)
end
--
-- Base name should use targetname() if present.
--
function suite.basenameIsTargetName_onTargetName()
targetname "MyTarget"
i = prepare()
test.isequal("MyTarget", i.basename)
end
--
-- Base name should use suffix if present.
--
function suite.basenameUsesSuffix_onTargetSuffix()
targetsuffix "-d"
i = prepare()
test.isequal("MyProject-d", i.basename)
end
--
-- Name should not have an extension for Posix executables.
--
function suite.nameHasNoExtension_onMacOSXConsoleApp()
system "MacOSX"
i = prepare()
test.isequal("MyProject", i.name)
end
function suite.nameHasNoExtension_onLinuxConsoleApp()
system "Linux"
i = prepare()
test.isequal("MyProject", i.name)
end
function suite.nameHasNoExtension_onBSDConsoleApp()
system "BSD"
i = prepare()
test.isequal("MyProject", i.name)
end
--
-- Name should use ".exe" for Windows executables.
--
function suite.nameUsesExe_onWindowsConsoleApp()
kind "ConsoleApp"
system "Windows"
i = prepare()
test.isequal("MyProject.exe", i.name)
end
function suite.nameUsesExe_onWindowsWindowedApp()
kind "WindowedApp"
system "Windows"
i = prepare()
test.isequal("MyProject.exe", i.name)
end
--
-- Name should use ".dll" for Windows shared libraries.
--
function suite.nameUsesDll_onWindowsSharedLib()
kind "SharedLib"
system "Windows"
i = prepare()
test.isequal("MyProject.dll", i.name)
end
--
-- Name should use ".lib" for Windows static libraries.
--
function suite.nameUsesLib_onWindowsStaticLib()
kind "StaticLib"
system "Windows"
i = prepare()
test.isequal("MyProject.lib", i.name)
end
--
-- Name should use "lib and ".dylib" for Mac shared libraries.
--
function suite.nameUsesLib_onMacSharedLib()
kind "SharedLib"
system "MacOSX"
i = prepare()
test.isequal("libMyProject.dylib", i.name)
end
--
-- Name should use "lib and ".a" for Mac static libraries.
--
function suite.nameUsesLib_onMacStaticLib()
kind "StaticLib"
system "MacOSX"
i = prepare()
test.isequal("libMyProject.a", i.name)
end
--
-- Name should use "lib" and ".so" for Linux shared libraries.
--
function suite.nameUsesLib_onLinuxSharedLib()
kind "SharedLib"
system "Linux"
i = prepare()
test.isequal("libMyProject.so", i.name)
end
--
-- Name should use "lib" and ".a" for Linux shared libraries.
--
function suite.nameUsesLib_onLinuxStaticLib()
kind "StaticLib"
system "Linux"
i = prepare()
test.isequal("libMyProject.a", i.name)
end
--
-- Name should use a prefix if set.
--
function suite.nameUsesPrefix_onTargetPrefix()
targetprefix "sys"
i = prepare()
test.isequal("sysMyProject", i.name)
end
--
-- Bundle name should be set and use ".app" for Mac windowed applications.
--
function suite.bundlenameUsesApp_onMacWindowedApp()
kind "WindowedApp"
system "MacOSX"
i = prepare()
test.isequal("MyProject.app", i.bundlename)
end
--
-- Bundle path should be set for Mac windowed applications.
--
function suite.bundlepathSet_onMacWindowedApp()
kind "WindowedApp"
system "MacOSX"
i = prepare()
test.isequal("bin/Debug/MyProject.app/Contents/MacOS", path.getrelative(os.getcwd(), i.bundlepath))
end
--
-- Target extension is used if set.
--
function suite.extensionSet_onTargetExtension()
targetextension ".self"
i = prepare()
test.isequal("MyProject.self", i.name)
end
--
-- .NET executables should always default to ".exe" extensions.
--
function suite.appUsesExe_onDotNet()
_TARGET_OS = "macosx"
language "C#"
i = prepare()
test.isequal("MyProject.exe", i.name)
end
--
-- .NET libraries should always default to ".dll" extensions.
--
function suite.appUsesExe_onDotNetSharedLib()
_TARGET_OS = "macosx"
language "C#"
kind "SharedLib"
i = prepare()
test.isequal("MyProject.dll", i.name)
end
| bsd-3-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/lair/base/poi_all_lair_bones_fog_red.lua | 2 | 2320 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_lair_base_poi_all_lair_bones_fog_red = object_tangible_lair_base_shared_poi_all_lair_bones_fog_red:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_base_poi_all_lair_bones_fog_red, "object/tangible/lair/base/poi_all_lair_bones_fog_red.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c43694481.lua | 3 | 1171 | --ブリザード・ファルコン
function c43694481.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(43694481,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c43694481.damcon)
e1:SetCost(c43694481.damcost)
e1:SetTarget(c43694481.damtg)
e1:SetOperation(c43694481.damop)
c:RegisterEffect(e1)
end
function c43694481.damcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetAttack()>e:GetHandler():GetBaseAttack()
end
function c43694481.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,43694481)==0 end
Duel.RegisterFlagEffect(tp,43694481,RESET_PHASE+PHASE_END,0,1)
end
function c43694481.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(1500)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1500)
end
function c43694481.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c79852326.lua | 3 | 2012 | --死霊ゾーマ
function c79852326.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:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c79852326.target)
e1:SetOperation(c79852326.activate)
c:RegisterEffect(e1)
end
function c79852326.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,79852326,0,0x21,1800,500,4,RACE_ZOMBIE,ATTRIBUTE_DARK) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c79852326.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,79852326,0,0x21,1800,500,4,RACE_ZOMBIE,ATTRIBUTE_DARK) then return end
c:AddTrapMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_DARK,RACE_ZOMBIE,4,1800,500)
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_DEFENCE)
c:TrapMonsterBlock()
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(79852326,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_LEAVE_FIELD)
e1:SetCondition(c79852326.damcon)
e1:SetTarget(c79852326.damtg)
e1:SetOperation(c79852326.damop)
e1:SetReset(RESET_EVENT+0x17e0000)
c:RegisterEffect(e1)
end
function c79852326.damcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_BATTLE)
end
function c79852326.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local bc=e:GetHandler():GetBattleTarget()
local dam=bc:GetAttack()
if dam<0 then dam=0 end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end
function c79852326.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
| gpl-2.0 |
DailyShana/ygopro-scripts | c49352945.lua | 3 | 5424 | --E・HERO ストーム・ネオス
function c49352945.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode3(c,89943723,17955766,54959865,false,false)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c49352945.splimit)
c:RegisterEffect(e1)
--special summon rule
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_EXTRA)
e2:SetCondition(c49352945.spcon)
e2:SetOperation(c49352945.spop)
c:RegisterEffect(e2)
--return
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(49352945,0))
e3:SetCategory(CATEGORY_TODECK)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(c49352945.retcon1)
e3:SetTarget(c49352945.rettg)
e3:SetOperation(c49352945.retop)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(0)
e4:SetCondition(c49352945.retcon2)
c:RegisterEffect(e4)
--destroy
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(49352945,1))
e5:SetCategory(CATEGORY_DESTROY)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetTarget(c49352945.destg)
e5:SetOperation(c49352945.desop)
c:RegisterEffect(e5)
--todeck
local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(49352945,2))
e6:SetCategory(CATEGORY_TODECK)
e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e6:SetCode(49352945)
e6:SetTarget(c49352945.tdtg)
e6:SetOperation(c49352945.tdop)
c:RegisterEffect(e6)
end
function c49352945.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
function c49352945.spfilter(c,code)
return c:IsAbleToDeckOrExtraAsCost() and c:GetCode()==code
end
function c49352945.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<-2 then return false end
local g1=Duel.GetMatchingGroup(c49352945.spfilter,tp,LOCATION_ONFIELD,0,nil,89943723)
local g2=Duel.GetMatchingGroup(c49352945.spfilter,tp,LOCATION_ONFIELD,0,nil,17955766)
local g3=Duel.GetMatchingGroup(c49352945.spfilter,tp,LOCATION_ONFIELD,0,nil,54959865)
if g1:GetCount()==0 or g2:GetCount()==0 or g3:GetCount()==0 then return false end
if ft>0 then return true end
local f1=g1:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)>0 and 1 or 0
local f2=g2:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)>0 and 1 or 0
local f3=g3:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)>0 and 1 or 0
if ft==-2 then return f1+f2+f3==3
elseif ft==-1 then return f1+f2+f3>=2
else return f1+f2+f3>=1 end
end
function c49352945.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g1=Duel.GetMatchingGroup(c49352945.spfilter,tp,LOCATION_ONFIELD,0,nil,89943723)
local g2=Duel.GetMatchingGroup(c49352945.spfilter,tp,LOCATION_ONFIELD,0,nil,17955766)
local g3=Duel.GetMatchingGroup(c49352945.spfilter,tp,LOCATION_ONFIELD,0,nil,54959865)
g1:Merge(g2)
g1:Merge(g3)
local g=Group.CreateGroup()
local tc=nil
for i=1,3 do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
if ft<=0 then
tc=g1:FilterSelect(tp,Card.IsLocation,1,1,nil,LOCATION_MZONE):GetFirst()
else
tc=g1:Select(tp,1,1,nil):GetFirst()
end
g:AddCard(tc)
g1:Remove(Card.IsCode,nil,tc:GetCode())
ft=ft+1
end
local cg=g:Filter(Card.IsFacedown,nil)
if cg:GetCount()>0 then
Duel.ConfirmCards(1-tp,cg)
end
Duel.SendtoDeck(g,nil,2,REASON_COST)
end
function c49352945.retcon1(e,tp,eg,ep,ev,re,r,rp,chk)
return not e:GetHandler():IsHasEffect(42015635)
end
function c49352945.retcon2(e,tp,eg,ep,ev,re,r,rp,chk)
return e:GetHandler():IsHasEffect(42015635)
end
function c49352945.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtra() end
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
end
function c49352945.retop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
Duel.SendtoDeck(c,nil,2,REASON_EFFECT)
if c:IsLocation(LOCATION_EXTRA) then
Duel.RaiseSingleEvent(c,49352945,e,0,0,0,0)
end
end
function c49352945.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
end
function c49352945.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c49352945.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(c49352945.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c49352945.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c49352945.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.Destroy(g,REASON_EFFECT)
end
function c49352945.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end
function c49352945.tdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/hair/mon_calamari/base/serverobjects.lua | 3 | 2282 | --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/hair/mon_calamari/base/hair_mon_calamari_base.lua")
includeFile("tangible/hair/mon_calamari/base/hair_mon_calamari_female_base.lua")
includeFile("tangible/hair/mon_calamari/base/hair_mon_calamari_male_base.lua")
| agpl-3.0 |
Wilma456/Computercraft | Programs/virtualos-manager.lua | 1 | 15251 | local sDir = "/var/virtualos-manager"
local sSaveFile = "drivelist.lua"
local sVirtualPath
local bSelect = false
local tList = {}
local nSelect
local w,h = term.getSize()
local sVersion = "3.0"
local tEmptyMenu = {}
local tSelectMenu = {}
if fs.exists(fs.combine(fs.getDir(shell.getRunningProgram()),"virtualos.lua")) then
sVirtualPath = "/"..fs.combine(fs.getDir(shell.getRunningProgram()),"virtualos.lua")
elseif fs.exists("/usr/bin/virtualos.lua") then
sVirtualPath = "/usr/bin/virtualos.lua"
else
error("Can't find VirtualOS",0)
end
local function showText(sText)
w,h = term.getSize()
term.setBackgroundColor(colors.white)
term.clear()
term.setTextColor(colors.black)
term.setCursorPos(1,1)
print(sText)
term.setBackgroundColor(colors.blue)
term.setCursorPos(1,h)
term.clearLine()
term.write("OK")
while true do
local ev,me,x,y = os.pullEvent("mouse_click")
if y == h then
return
end
end
end
local function redrawMenu()
w,h = term.getSize()
term.setBackgroundColor(colors.white)
term.clear()
term.setBackgroundColor(colors.blue)
term.setCursorPos(1,1)
term.clearLine()
term.setTextColor(colors.black)
if bSelect then
for k,v in ipairs(tSelectMenu) do
term.write(v.text.." ")
end
else
for k,v in ipairs(tEmptyMenu) do
term.write(v.text.." ")
end
end
term.setCursorPos(w,1)
term.blit("X","f","e")
term.setBackgroundColor(colors.white)
for i=2,h do
if type(tList[i-1]) == "table" then
term.setCursorPos(1,i)
if i-1 == nSelect then
term.setBackgroundColor(colors.yellow)
term.clearLine()
term.write(tList[i-1]["name"])
term.setBackgroundColor(colors.white)
else
term.write(tList[i-1]["name"])
end
end
end
end
local function getCommand()
local sRomPath
if os.version():sub(9) == tList[nSelect]["version"] then
sRomPath = "/rom"
else
sRomPath = fs.combine(sDir,"rom/"..tList[nSelect]["version"])
end
local sExtra = " \"--title="..tList[nSelect]["title"].."\" --id="..tList[nSelect]["id"]
if tonumber(tList[nSelect]["version"]) <= 1.5 then
sExtra = sExtra.." --oldnative"
end
if tList[nSelect]["version"] == "1.2" then
sExtra = sExtra.." --diskapi"
end
if tList[nSelect]["http"] == false then
sExtra = sExtra.." --nohttp"
end
if tList[nSelect]["sharefolder"] == true then
sExtra = sExtra.." --sharePath="..tList[nSelect]["sharepath"].." --shareName="..tList[nSelect]["sharename"]
end
if tList[nSelect]["time"] == false then
sExtra = sExtra.." --notime"
end
if tList[nSelect]["day"] == false then
sExtra = sExtra.." --noday"
end
if tList[nSelect]["setlabel"] == true then
sExtra = sExtra.." --label="..tList[nSelect]["label"]
end
if tList[nSelect]["allowper"] == false then
sExtra = sExtra.." --noper"
end
if tList[nSelect]["epoch"] == false then
sExtra = sExtra.." --noepoch"
end
if tList[nSelect]["diskmount"] then
sExtra = sExtra.." --diskmount"
end
if tList[nSelect]["turtleapi"] == false then
sExtra = sExtra.." --noturtle"
end
if tList[nSelect]["pocketapi"] == false then
sExtra = sExtra.." --nopocket"
end
if tList[nSelect]["commandapi"] == false then
sExtra = sExtra.." --nocomand"
end
return sVirtualPath.." --biosPath="..fs.combine(sDir,"bios/"..tList[nSelect]["version"])..".lua --romPath="..sRomPath.." --rootPath="..fs.combine(sDir,"drive/"..tList[nSelect]["name"])..sExtra
end
local function downloadFile(sURL,sPath)
local handle = http.get(sURL)
if not handle then
return false
end
local file = fs.open(sPath,"w")
file.write(handle.readAll())
file.close()
handle.close()
return true
end
local function getVersion()
local tVersion = {"1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8"}
term.setBackgroundColor(colors.white)
term.clear()
term.setBackgroundColor(colors.blue)
term.setCursorPos(1,1)
term.clearLine()
term.setTextColor(colors.black)
term.write("Please choose CraftOS Version:")
term.setBackgroundColor(colors.white)
for k,v in ipairs(tVersion) do
term.setCursorPos(1,k+1)
term.write("CraftOS "..v)
end
while true do
local ev,me,x,y = os.pullEvent("mouse_click")
if type(tVersion[y-1]) == "string" then
return tVersion[y-1]
end
end
end
local function getBios(sVersion)
local tBios = {}
tBios["1.0"] = "https://raw.githubusercontent.com/Wilma456/ComputercraftRom/1.0/bios.lua"
tBios["1.1"] = "https://raw.githubusercontent.com/Wilma456/ComputercraftRom/1.1/bios.lua"
tBios["1.2"] = "https://raw.githubusercontent.com/Wilma456/ComputercraftRom/1.2/bios.lua"
tBios["1.3"] = "https://raw.githubusercontent.com/Wilma456/ComputercraftRom/1.3/bios.lua"
tBios["1.4"] = "https://raw.githubusercontent.com/Wilma456/ComputercraftRom/1.4/bios.lua"
tBios["1.5"] = "https://raw.githubusercontent.com/alekso56/ComputercraftLua/1.5/bios.lua"
tBios["1.6"] = "https://raw.githubusercontent.com/alekso56/ComputercraftLua/1.65/bios.lua"
tBios["1.7"] = "https://raw.githubusercontent.com/alekso56/ComputercraftLua/1.79/bios.lua"
tBios["1.8"] = "https://raw.githubusercontent.com/dan200/ComputerCraft/master/src/main/resources/assets/computercraft/lua/bios.lua"
local sFile = fs.combine(sDir,"bios")
sFile = fs.combine(sFile,sVersion..".lua")
if not fs.exists(sFile) then
downloadFile(tBios[sVersion],sFile)
end
end
local function getRom(sVersion)
local sPath = fs.combine(sDir,"rom/"..sVersion)
if os.version():sub(9) == sVersion or fs.exists(sPath) then
return
end
term.clear()
term.setCursorPos(1,1)
print("Download /rom")
local handle = http.get("https://raw.githubusercontent.com/Wilma456/Computercraft/master/romlist.lua")
local tList = load(handle.readAll())()
handle.close()
for k,v in pairs(tList[sVersion]) do
print("Download "..k)
if downloadFile(v,fs.combine(sPath,k)) == false then
printError("Falied to download "..k)
end
end
end
local function newMachine()
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(colors.blue)
term.clearLine()
term.write("Please choose a name:")
term.setBackgroundColor(colors.white)
term.setCursorPos(1,2)
local name = read()
if name == "" then
showText("The Name can't be empty")
redrawMenu()
return
elseif name:find(" ") ~= nil then
showText("No spaces allowed")
redrawMenu()
return
end
for k,v in ipairs(tList) do
if v.name == name then
showText("This Name does already exists")
redrawMenu()
return
end
end
local ver = getVersion()
getBios(ver)
getRom(ver)
fs.makeDir(fs.combine(sDir,"drive/"..name))
local tmpta = {}
tmpta.name = name
tmpta.version = ver
tmpta.http = true
tmpta.sharefolder = false
tmpta.sharepath = "/"
tmpta.sharename = "share"
tmpta.time = true
tmpta.day = true
tmpta.setlabel = false
tmpta.label = name
tmpta.id = "0"
tmpta.title = "CraftOS "..ver
tmpta.allowper = true
tmpta.epoch = true
tmpta.diskmount = false
tmpta.turtleapi = true
tmpta.pocketapi = true
tmpta.commandapi = true
table.insert(tList,tmpta)
local file = fs.open(fs.combine(sDir,sSaveFile),"w")
file.write(textutils.serialize(tList))
file.close()
redrawMenu()
end
local function newLink()
term.setBackgroundColor(colors.white)
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(colors.blue)
term.clearLine()
term.write("Please enter Path:")
term.setBackgroundColor(colors.white)
term.setCursorPos(1,2)
local path = read()
if fs.exists(path) then
term.clear()
term.setCursorPos(1,1)
term.write("File exists. Overwrite? (Y/N)")
while true do
local ev,me = os.pullEvent("key")
if me == keys.y then
break
elseif me == keys.n then
redrawMenu()
return
end
end
end
local file = fs.open(path,"w")
file.write('shell.run("'..getCommand():gsub('"','\\"')..'")')
file.close()
redrawMenu()
end
local function about()
showText("VirtualOS-Manager Version "..sVersion..[[ made by Wilma456
This is a GUI for VirtualOS, which allows you to run CraftOS in a virtual Machine.
VirtualOS and VirtualOS-Manager are both licensed under the BSD 2-clause "Simplified" License]])
redrawMenu()
end
local function run()
term.clear()
term.setCursorPos(1,1)
if shell.run(getCommand()) == false then
print("Press any Key to Continue")
os.pullEvent("key")
end
redrawMenu()
end
local function delete()
fs.delete(fs.combine(sDir,"/drive/"..tList[nSelect]["name"]))
table.remove(tList,nSelect)
bSelect = false
local file = fs.open(fs.combine(sDir,sSaveFile),"w")
file.write(textutils.serialize(tList))
file.close()
redrawMenu()
end
local function writeBoolean(bBool)
if bBool == true then
term.blit("true","5555","0000")
else
term.blit("false","eeeee","00000")
end
end
local function edit()
local tObj = tList[nSelect]
local tOptions = {}
tOptions[1] = {"boolean","Enable Http: ","http"}
tOptions[2] = {"boolean","Enable Shared Folder: ","sharefolder"}
tOptions[3] = {"text","Shared Folder Path: ","sharepath"}
tOptions[4] = {"text","Shared Folder Name: ","sharename"}
tOptions[5] = {"boolean","Enable os.time(): ","time"}
tOptions[6] = {"boolean","Enable os.day(): ","day"}
tOptions[7] = {"boolean","Set Computer Label: ","setlabel"}
tOptions[8] = {"text","Computer Label: ","label"}
tOptions[9] = {"number","Computer ID: ","id"}
tOptions[10] = {"text","Multishell Title: ","title"}
tOptions[11] = {"boolean","Allow Peripherals: ","allowper"}
tOptions[12] = {"boolean","Enable os.epoch(): ","epoch"}
tOptions[13] = {"boolean","Give acces to Diskdata: ","diskmount"}
tOptions[14] = {"boolean","Enable Turtle API ","turtleapi"}
tOptions[15] = {"boolean","Enable Pocket API ","pocketapi"}
tOptions[16] = {"boolean","Enable Commands API ","commandapi"}
while true do
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)
term.clear()
term.setBackgroundColor(colors.blue)
term.setCursorPos(1,h)
term.clearLine()
term.write("OK")
term.setBackgroundColor(colors.white)
for k,v in ipairs(tOptions) do
term.setCursorPos(1,k)
if v[1] == "boolean" then
term.write(v[2])
writeBoolean(tObj[v[3]])
elseif v[1] == "text" or v[1] == "number" then
term.write(v[2]..tObj[v[3]])
end
end
local ev,me,x,y = os.pullEvent()
if ev == "mouse_click" then
if type(tOptions[y]) == "table" then
if tOptions[y][1] == "boolean" then
tObj[tOptions[y][3]] = not(tObj[tOptions[y][3]])
elseif tOptions[y][1] == "text" then
term.setCursorPos(#tOptions[y][2]+1,y)
tObj[tOptions[y][3]] = read(nil,nil,nil,tObj[tOptions[y][3]])
elseif tOptions[y][1] == "number" then
term.setCursorPos(#tOptions[y][2]+1,y)
local tmp = read(nil,nil,nil,tObj[tOptions[y][3]])
if tonumber(tmp) == nil then
showText("You can only insert Numbers here")
else
tObj[tOptions[y][3]] = tmp
end
end
elseif y == h then
break
end
end
end
local file = fs.open(fs.combine(sDir,sSaveFile),"w")
file.write(textutils.serialize(tList))
file.close()
redrawMenu()
end
local function copy()
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(colors.blue)
term.clearLine()
term.write("Please choose a name:")
term.setBackgroundColor(colors.white)
term.setCursorPos(1,2)
local name = read()
if name == "" then
showText("The Name can't be empty")
redrawMenu()
return
elseif name:find(" ") ~= nil then
showText("No spaces allowed")
redrawMenu()
return
end
for k,v in ipairs(tList) do
if v.name == name then
showText("This Name does already exists")
redrawMenu()
return
end
end
local tmpta = {}
for k,v in pairs(tList[nSelect]) do
tmpta[k] = v
end
tmpta.name = name
table.insert(tList,tmpta)
fs.copy(fs.combine(sDir,"/drive/"..tList[nSelect]["name"]),fs.combine(sDir,"/drive/"..name))
redrawMenu()
end
if fs.exists(fs.combine(sDir,sSaveFile)) then
local file = fs.open(fs.combine(sDir,sSaveFile),"r")
tList = textutils.unserialise(file.readAll())
file.close()
else
tList = {}
end
local function backwardsBoolean(bRe,bDe)
if bRe == nil then
return bDe
else
return bRe
end
end
--Backwards Compatibylity
for k,v in ipairs(tList) do
v.http = backwardsBoolean(v.http,true)
v.sharefolder = backwardsBoolean(v.sharefolder,false)
v.sharepath = v.sharepath or "/"
v.sharename = v.sharename or "share"
v.time = backwardsBoolean(v.time,true)
v.day = backwardsBoolean(v.day,true)
v.setlabel = backwardsBoolean(v.setlabel,false)
v.label = v.label or v.name
v.id = v.id or "0"
v.title = v.title or "CraftOS "..v.version
v.allowper = backwardsBoolean(v.allowper,true)
v.epoch = backwardsBoolean(v.epoch,true)
v.diskmount = backwardsBoolean(v.diskmount,false)
v.turtleapi = backwardsBoolean(v.turtleapi,true)
v.pocketapi = backwardsBoolean(v.pocketapi,true)
v.commandapi = backwardsBoolean(v.commandapi,true)
end
tEmptyMenu[1] = {text="New",func=newMachine}
tEmptyMenu[2] = {text="About",func=about}
tSelectMenu[1] = {text="Run",func=run}
tSelectMenu[2] = {text="Delete",func=delete}
tSelectMenu[3] = {text="Edit",func=edit}
tSelectMenu[4] = {text="Copy",func=copy}
tSelectMenu[5] = {text="New",func=newMachine}
tSelectMenu[6] = {text="Link",func=newLink}
tSelectMenu[7] = {text="About",func=about}
redrawMenu()
while true do
local ev,me,x,y = os.pullEvent()
if ev == "mouse_click" then
if y == 1 then
if bSelect == false then
local nMenupos = 0
for key,menuitem in ipairs(tEmptyMenu) do
if x > nMenupos and x < menuitem.text:len()+nMenupos+1 then
menuitem.func()
break
else
nMenupos = nMenupos+menuitem.text:len()+1
end
end
if x == w then
break
end
elseif bSelect == true then
local nMenupos = 0
for key,menuitem in ipairs(tSelectMenu) do
if x > nMenupos and x < menuitem.text:len()+nMenupos+1 then
menuitem.func()
break
else
nMenupos = nMenupos+menuitem.text:len()+1
end
end
if x == w then
break
end
end
elseif type(tList[y-1]) == "table" then
nSelect = y - 1
bSelect = true
redrawMenu()
end
end
end
term.setBackgroundColor(colors.black)
term.setCursorPos(1,1)
term.clear()
| bsd-2-clause |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/installation/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/creature/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/theme_park/alderaan/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/installation/battlefield/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_giker_budz.lua | 3 | 2188 | --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_giker_budz = object_mobile_shared_dressed_giker_budz:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_giker_budz, "object/mobile/dressed_giker_budz.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/weapon/ranged/objects.lua | 165 | 2016 | --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.
| agpl-3.0 |
DailyShana/ygopro-scripts | c37322745.lua | 3 | 1409 | --ナチュルの森
function c37322745.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetDescription(aux.Stringid(37322745,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_CHAIN_NEGATED)
e2:SetCondition(c37322745.condition)
e2:SetTarget(c37322745.target)
e2:SetOperation(c37322745.operation)
c:RegisterEffect(e2)
end
function c37322745.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
end
function c37322745.filter(c)
return c:IsLevelBelow(3) and c:IsSetCard(0x2a) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c37322745.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
and Duel.IsExistingMatchingCard(c37322745.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c37322745.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c37322745.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/quest/dantooine/xaan_bandit.lua | 1 | 1037 | xaan_bandit = Creature:new {
objectName = "@mob/creature_names:bandit",
socialGroup = "bandit",
faction = "bandit",
level = 8,
chanceHit = 0.27,
damageMin = 70,
damageMax = 75,
baseXp = 235,
baseHAM = 405,
baseHAMmax = 495,
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 = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + STALKER, KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_plasma_bandit.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 5000000},
{group = "tailor_components", chance = 1500000},
{group = "loot_kit_parts", chance = 2000000},
{group = "wearables_common", chance = 1500000}
}
}
},
weapons = {"pirate_weapons_light"},
conversationTemplate = "",
attacks = merge(marksmannovice,brawlernovice)
}
CreatureTemplates:addCreatureTemplate(xaan_bandit, "xaan_bandit")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_bustier_casual_01.lua | 2 | 3361 | --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_bustier_casual_01 = object_draft_schematic_clothing_shared_clothing_bustier_casual_01:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Light Bustier",
craftingToolTab = 8, -- (See DraftSchemticImplementation.h)
complexity = 19,
size = 3,
xpType = "crafting_clothing_general",
xp = 120,
assemblySkill = "clothing_assembly",
experimentingSkill = "clothing_experimentation",
customizationSkill = "clothing_customization",
customizationOptions = {34, 2},
customizationStringNames = {"/private/index_color_0", "/private/index_color_1"},
customizationDefaults = {0, 246},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"bodice", "binding_and_reinforcement", "trim"},
ingredientSlotType = {1, 0, 0},
resourceTypes = {"object/tangible/component/clothing/shared_synthetic_cloth.iff", "fiberplast", "hide"},
resourceQuantities = {2, 20, 30},
contribution = {100, 100, 100},
targetTemplate = "object/tangible/wearables/bustier/bustier_s01.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_bustier_casual_01, "object/draft_schematic/clothing/clothing_bustier_casual_01.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/wearables/bandolier/bandolier_s04.lua | 3 | 5588 | --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_bandolier_bandolier_s04 = object_tangible_wearables_bandolier_shared_bandolier_s04:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"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/ithorian_female.iff",
"object/mobile/vendor/ithorian_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/wookiee_female.iff",
"object/mobile/vendor/wookiee_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },
numberExperimentalProperties = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
experimentalProperties = {"XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX", "XX"},
experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hitpoints", "mod_idx_one", "mod_val_one", "mod_idx_two", "mod_val_two", "mod_idx_three", "mod_val_three", "mod_idx_four", "mod_val_four", "mod_idx_five", "mod_val_five", "mod_idx_six", "mod_val_six"},
experimentalMin = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalMax = {0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_tangible_wearables_bandolier_bandolier_s04, "object/tangible/wearables/bandolier/bandolier_s04.iff")
| agpl-3.0 |
panpakr/TronLauncher | dmc_corona/lib/dmc_lua/lua_e4x.lua | 47 | 18011 | --====================================================================--
-- lua_e4x.lua
--
-- Documentation: http://docs.davidmccuskey.com/display/docs/lua_e4x.lua
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014 David McCuskey. All Rights Reserved.
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.
--]]
--====================================================================--
-- DMC Lua Library : Lua E4X
--====================================================================--
-- Semantic Versioning Specification: http://semver.org/
local VERSION = "0.1.1"
--====================================================================--
-- XML Classes
--====================================================================--
--====================================================================--
-- Setup, Constants
-- forward declare
local XmlListBase, XmlList
local XmlBase, XmlDocNode, XmlDecNode, XmlNode, XmlTextNode, XmlAttrNode
local tconcat = table.concat
local tinsert = table.insert
local tremove = table.remove
--====================================================================--
-- Support Functions
local function createXmlList()
return XmlList()
end
-- http://lua-users.org/wiki/FunctionalLibrary
-- filter(function, table)
-- e.g: filter(is_even, {1,2,3,4}) -> {2,4}
function filter(func, tbl)
local xlist= XmlList()
for i,v in ipairs(tbl) do
if func(v) then
xlist:addNode(v)
end
end
return xlist
end
-- map(function, table)
-- e.g: map(double, {1,2,3}) -> {2,4,6}
function map(func, tbl)
local xlist= XmlList()
for i,v in ipairs(tbl) do
xlist:addNode( func(v) )
end
return xlist
end
-- foldr(function, default_value, table)
-- e.g: foldr(operator.mul, 1, {1,2,3,4,5}) -> 120
function foldr(func, val, tbl)
for i,v in pairs(tbl) do
val = func(val, v)
end
return val
end
local function decodeXmlString(value)
value = string.gsub(value, "&#x([%x]+)%;",
function(h)
return string.char(tonumber(h, 16))
end)
value = string.gsub(value, "&#([0-9]+)%;",
function(h)
return string.char(tonumber(h, 10))
end)
value = string.gsub(value, """, "\"")
value = string.gsub(value, "'", "'")
value = string.gsub(value, ">", ">")
value = string.gsub(value, "<", "<")
value = string.gsub(value, "&", "&")
return value
end
function encodeXmlString(value)
value = string.gsub(value, "&", "&"); -- '&' -> "&"
value = string.gsub(value, "<", "<"); -- '<' -> "<"
value = string.gsub(value, ">", ">"); -- '>' -> ">"
value = string.gsub(value, "\"", """); -- '"' -> """
value = string.gsub(value, "([^%w%&%;%p%\t% ])",
function(c)
return string.format("&#x%X;", string.byte(c))
end);
return value;
end
--====================================================================--
-- XML Class Support
local function listIndexFunc( t, k )
-- print( "listIndexFunc", t, k )
local o, val, f
-- check if search for attribute with '@'
if string.sub(k,1,1) == '@' then
local _,_, name = string.find(k,'^@(.*)$')
val = t:attribute(name)
end
if val ~= nil then return val end
-- -- check for key directly on object
-- val = rawget( t, k )
-- if val ~= nil then return val end
-- check OO hierarchy
o = rawget( t, '__super' )
if o then val = o[k] end
if val ~= nil then return val end
-- check for key in nodes
local nodes = rawget( t, '__nodes' )
if nodes and type(k)=='number' then
val = nodes[k]
elseif type(k)=='string' then
val = t:child(k)
end
if val ~= nil then return val end
return nil
end
local function indexFunc( t, k )
-- print( "indexFunc", t, k )
local o, val
-- check if search for attribute with '@'
if string.sub(k,1,1) == '@' then
local _,_, name = string.find(k,'^@(.*)$')
val = t:attribute(name)
end
if val ~= nil then return val end
-- check for key directly on object
-- val = rawget( t, k )
-- if val ~= nil then return val end
-- check OO hierarchy
-- method lookup
o = rawget( t, '__super' )
if o then val = o[k] end
if val ~= nil then return val end
-- check for key in children
-- dot traversal
local children = rawget( t, '__children' )
if children then
val = nil
local func = function( node )
return ( node:name() == k )
end
local v = filter( func, children )
if v:length() > 0 then
val = v
end
end
if val ~= nil then return val end
return nil
end
local function toStringFunc( t )
return t:toString()
end
local function bless( base, params )
params = params or {}
--==--
local o = obj or {}
local mt = {
-- __index = indexFunc,
__index = params.indexFunc,
__newindex = params.newIndexFunc,
__tostring = params.toStringFunc,
__len = function() error( "hrererer") end
}
setmetatable( o, mt )
if base and base.new and type(base.new)=='function' then
mt.__call = base.new
end
o.__super = base
return o
end
local function inheritsFrom( base_class, params, constructor )
params = params or {}
params.indexFunc = params.indexFunc or indexFunc
local o
-- TODO: work out toString method
-- if base_class and base_class.toString and type(base_class.toString)=='function' then
-- params.toStringFunc = base_class.toString
-- end
o = bless( base_class, params )
-- Return the class object of the instance
function o:class()
return o
end
-- Return the superclass object of the instance
function o:superClass()
return base_class
end
-- Return true if the caller is an instance of theClass
function o:isa( the_class )
local b_isa = false
local cur_class = o
while ( cur_class ~= nil ) and ( b_isa == false ) do
if cur_class == the_class then
b_isa = true
else
cur_class = cur_class:superClass()
end
end
return b_isa
end
return o
end
--====================================================================--
-- XML List Base
XmlListBase = inheritsFrom( nil )
function XmlListBase:new( params )
-- print("XmlListBase:new")
local o = self:_bless()
if o._init then o:_init( params ) end
return o
end
function XmlListBase:_bless( obj )
-- print("XmlListBase:_bless")
local p = {
indexFunc=listIndexFunc,
newIndexFunc=listNewIndexFunc,
}
return bless( self, p )
end
--====================================================================--
-- XML List
XmlList = inheritsFrom( XmlListBase )
XmlList.NAME = 'XML List'
function XmlList:_init( params )
-- print("XmlList:_init")
self.__nodes = {}
end
function XmlList:addNode( node )
-- print( "XmlList:addNode", node.NAME )
assert( node ~= nil, "XmlList:addNode, node can't be nil" )
--==--
local nodes = rawget( self, '__nodes' )
if not node:isa( XmlList ) then
tinsert( nodes, node )
else
-- process XML List
for i,v in node:nodes() do
-- print('dd>> ', i,v, v.NAME)
tinsert( nodes, v )
end
end
end
function XmlList:attribute( key )
-- print( "XmlList:attribute", key )
local result = XmlList()
for _, node in self:nodes() do
result:addNode( node:attribute( key ) )
end
return result
end
function XmlList:child( name )
-- print( "XmlList:child", name )
local nodes, func, result
result = XmlList()
for _, node in self:nodes() do
result:addNode( node:child( name ) )
end
return result
end
function XmlList:length()
local nodes = rawget( self, '__nodes' )
return #nodes
end
-- iterator, used in for X in ...
function XmlList:nodes()
local pos = 1
local nodes = rawget( self, '__nodes' )
return function()
while pos <= #nodes do
local val = nodes[pos]
local i = pos
pos=pos+1
return i, val
end
return nil, nil
end
end
function XmlList:toString()
-- error("error XmlList:toString")
local nodes = rawget( self, '__nodes' )
if #nodes == 0 then return nil end
local func = function( val, node )
return val .. node:toString()
end
return foldr( func, "", nodes )
end
function XmlList:toXmlString()
error( "XmlList:toXmlString, not implemented" )
end
--====================================================================--
-- XML Base
XmlBase = inheritsFrom( nil )
function XmlBase:new( params )
-- print("XmlBase:new")
local o = self:_bless()
if o._init then o:_init( params ) end
return o
end
function XmlBase:_bless( obj )
-- print("XmlBase:_bless")
local p = {
indexFunc=indexFunc,
newIndexFunc=nil,
}
return bless( self, p )
end
--====================================================================--
-- XML Declaration Node
XmlDecNode = inheritsFrom( XmlBase )
XmlDecNode.NAME = 'XML Node'
function XmlDecNode:_init( params )
-- print("XmlDecNode:_init")
params = params or {}
self.__attrs = {}
end
function XmlDecNode:addAttribute( node )
self.__attrs[ node:name() ] = node
end
--====================================================================--
-- XML Node
XmlNode = inheritsFrom( XmlBase )
XmlNode.NAME = 'XML Node'
function XmlNode:_init( params )
-- print("XmlNode:_init")
params = params or {}
self.__parent = params.parent
self.__name = params.name
self.__children = {}
self.__attrs = {}
end
function XmlNode:parent()
return rawget( self, '__parent' )
end
function XmlNode:addAttribute( node )
self.__attrs[ node:name() ] = node
end
-- return XmlList
function XmlNode:attribute( name )
-- print("XmlNode:attribute", name )
if name == '*' then return self:attributes() end
local attrs = rawget( self, '__attrs' )
local result = XmlList()
local attr = attrs[ name ]
if attr then
result:addNode( attr )
end
return result
end
function XmlNode:attributes()
local attrs = rawget( self, '__attrs' )
local result = XmlList()
for k,attr in pairs(attrs) do
result:addNode( attr )
end
return result
end
-- hasOwnProperty("@ISBN") << attribute
-- hasOwnProperty("author") << element
-- returns boolean
function XmlNode:hasOwnProperty( key )
-- print("XmlNode:hasOwnProperty", key)
if string.sub(key,1,1) == '@' then
local _,_, name = string.find(key,'^@(.*)$')
return ( self:attribute(name):length() > 0 )
else
return ( self:child(key):length() > 0 )
end
end
function XmlNode:hasSimpleContent()
local is_simple = true
local children = rawget( self, '__children' )
for k,node in pairs( children ) do
-- print(k,node)
if node:isa( XmlNode ) then is_simple = false end
if not is_simple then break end
end
return is_simple
end
function XmlNode:hasComplexContent()
return not self:hasSimpleContent()
end
function XmlNode:length()
return 1
end
function XmlNode:name()
return self.__name
end
function XmlNode:setName( value )
self.__name = value
end
function XmlNode:addChild( node )
table.insert( self.__children, node )
end
function XmlNode:child( name )
-- print("XmlNode:child", self, name )
local children = rawget( self, '__children' )
local func = function( node )
return ( node:name() == name )
end
return filter( func, children )
end
function XmlNode:children()
local children = rawget( self, '__children' )
local func = function( node )
return true
end
return filter( func, children )
end
function XmlNode:toString()
return self:_childrenContent()
end
function XmlNode:toXmlString()
local str_t = {
"<"..self.__name,
self:_attrContent(),
">",
self:_childrenContent(),
"</"..self.__name..">",
}
return table.concat( str_t, '' )
end
function XmlNode:_childrenContent()
local children = rawget( self, '__children' )
local func = function( val, node )
return val .. node:toXmlString()
end
return foldr( func, "", children )
end
function XmlNode:_attrContent()
local attrs = rawget( self, '__attrs' )
table.sort( attrs ) -- apply some consistency
local str_t = {}
for k, attr in pairs( attrs ) do
tinsert( str_t, attr:toXmlString() )
end
if #str_t > 0 then
tinsert( str_t, 1, '' ) -- insert blank space
end
return tconcat( str_t, ' ' )
end
--====================================================================--
-- XML Doc Node
XmlDocNode = inheritsFrom( XmlNode )
XmlDocNode.NAME = "Attribute Node"
function XmlDocNode:_init( params )
-- print("XmlDocNode:_init")
params = params or {}
XmlNode._init( self, params )
self.declaration = params.declaration
end
--====================================================================--
-- XML Attribute Node
XmlAttrNode = inheritsFrom( XmlBase )
XmlAttrNode.NAME = "Attribute Node"
function XmlAttrNode:_init( params )
-- print("XmlAttrNode:_init", params.name )
params = params or {}
self.__name = params.name
self.__value = params.value
end
function XmlAttrNode:name()
return self.__name
end
function XmlAttrNode:setName( value )
self.__name = value
end
function XmlAttrNode:toString()
-- print("XmlAttrNode:toString")
return self.__value
end
function XmlAttrNode:toXmlString()
return self.__name..'="'..self.__value..'"'
end
--====================================================================--
-- XML Text Node
XmlTextNode = inheritsFrom( XmlBase )
XmlTextNode.NAME = "Text Node"
function XmlTextNode:_init( params )
-- print("XmlTextNode:_init")
params = params or {}
self.__text = params.text or ""
end
function XmlTextNode:toString()
return self.__text
end
function XmlTextNode:toXmlString()
return self.__text
end
--====================================================================--
-- XML Parser
--====================================================================--
-- https://github.com/PeterHickman/plxml/blob/master/plxml.lua
-- https://developer.coronalabs.com/code/simple-xml-parser
-- https://github.com/Cluain/Lua-Simple-XML-Parser/blob/master/xmlSimple.lua
-- http://lua-users.org/wiki/LuaXml
local XmlParser = {}
XmlParser.XML_DECLARATION_RE = '<?xml (.-)?>'
XmlParser.XML_TAG_RE = '<(%/?)([%w:-]+)(.-)(%/?)>'
XmlParser.XML_ATTR_RE = "([%-_%w]+)=([\"'])(.-)%2"
function XmlParser:decodeXmlString(value)
return decodeXmlString(value)
end
function XmlParser:parseAttributes( node, attr_str )
string.gsub(attr_str, XmlParser.XML_ATTR_RE, function( key, _, val )
local attr = XmlAttrNode( {name=key, value=val} )
node:addAttribute( attr )
end)
end
-- creates top-level Document Node
function XmlParser:parseString( xml_str )
-- print( "XmlParser:parseString" )
local root = XmlDocNode()
local node
local si, ei, close, label, attrs, empty
local text, lval
local pos = 1
--== declaration
si, ei, attrs = string.find(xml_str, XmlParser.XML_DECLARATION_RE, pos)
if not si then
-- error("no declaration")
else
node = XmlDecNode()
self:parseAttributes( node, attrs )
root.declaration = node
pos = ei + 1
end
--== doc type
-- pos = ei + 1
--== document root element
si,ei,close,label,attrs,empty = string.find(xml_str, XmlParser.XML_TAG_RE, pos)
text = string.sub(xml_str, pos, si-1)
if not string.find(text, "^%s*$") then
root:addChild( XmlTextNode( {text=decodeXmlString(text)} ) )
end
pos = ei + 1
if close == "" and empty == "" then -- start tag
root:setName( label )
self:parseAttributes( root, attrs )
pos = self:_parseString( xml_str, root, pos )
elseif empty == '/' then -- empty element tag
root:setName( label )
else
error( "malformed XML in XmlParser:parseString" )
end
return root
end
-- recursive method
--
function XmlParser:_parseString( xml_str, xml_node, pos )
-- print( "XmlParser:_parseString", xml_node:name(), pos )
local si, ei, close, label, attrs, empty
local node
while true do
si,ei,close,label,attrs,empty = string.find(xml_str, XmlParser.XML_TAG_RE, pos)
if not si then break end
local text = string.sub(xml_str, pos, si-1)
if not string.find(text, "^%s*$") then
local node = XmlTextNode( {text=decodeXmlString(text),parent=xml_node} )
xml_node:addChild( node )
end
pos = ei + 1
if close == "" and empty == "" then -- start tag of doc
local node = XmlNode( {name=label,parent=xml_node} )
self:parseAttributes( node, attrs )
xml_node:addChild( node )
pos = self:_parseString( xml_str, node, pos )
elseif empty == "/" then -- empty element tag
local node = XmlNode( {name=label,parent=xml_node} )
self:parseAttributes( node, attrs )
xml_node:addChild( node )
else -- end tag
assert( xml_node:name() == label, "incorrect closing label found:" )
break
end
end
return pos
end
--====================================================================--
-- Lua E4X API
--====================================================================--
local function parse( xml_str )
-- print( "LuaE4X.parse" )
assert( type(xml_str)=='string', 'Lua E4X: missing XML data to parse' )
assert( #xml_str > 0, 'Lua E4X: XML data must have length' )
return XmlParser:parseString( xml_str )
end
local function load( file )
print("LuaE4X.load")
end
local function save( xml_node )
print("LuaE4X.save")
end
--====================================================================--
-- Lua E4X Facade
--====================================================================--
return {
Parser=XmlParser,
XmlListClass=XmlList,
XmlNodeClass=XmlNode,
load=load,
parse=parse,
save=save
}
| mit |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/loot/quest/lifeday_orb.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_tangible_loot_quest_lifeday_orb = object_tangible_loot_quest_shared_lifeday_orb:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_quest_lifeday_orb, "object/tangible/loot/quest/lifeday_orb.iff")
| agpl-3.0 |
DailyShana/ygopro-scripts | c99458769.lua | 3 | 2432 | --暗黒界の魔神 レイン
function c99458769.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(99458769,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c99458769.spcon)
e1:SetTarget(c99458769.sptg)
e1:SetOperation(c99458769.spop)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(99458769,1))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c99458769.descon)
e2:SetTarget(c99458769.destg)
e2:SetOperation(c99458769.desop)
c:RegisterEffect(e2)
end
function c99458769.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND) and bit.band(r,0x4040)==0x4040 and rp~=tp
and e:GetHandler():GetPreviousControler()==tp
end
function c99458769.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c99458769.spop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SpecialSummon(e:GetHandler(),1,tp,tp,false,false,POS_FACEUP)
end
end
function c99458769.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end
function c99458769.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c1=Duel.GetMatchingGroupCount(Card.IsDestructable,tp,0,LOCATION_MZONE,nil)
local c2=Duel.GetMatchingGroupCount(Card.IsDestructable,tp,0,LOCATION_SZONE,nil)
if (c1>c2 and c2~=0) or c1==0 then c1=c2 end
if c1~=0 then
local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,c1,0,0)
end
end
function c99458769.desop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_MZONE,nil)
local g2=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_SZONE,nil)
if g1:GetCount()>0 or g2:GetCount()>0 then
if g1:GetCount()==0 then
Duel.Destroy(g2,REASON_EFFECT)
elseif g2:GetCount()==0 then
Duel.Destroy(g1,REASON_EFFECT)
else
Duel.Hint(HINT_SELECTMSG,tp,0)
local ac=Duel.SelectOption(tp,aux.Stringid(99458769,2),aux.Stringid(99458769,3))
if ac==0 then Duel.Destroy(g1,REASON_EFFECT)
else Duel.Destroy(g2,REASON_EFFECT) end
end
end
end
| gpl-2.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/poi/creature_lair_malkloc.lua | 2 | 2246 | --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_creature_lair_malkloc = object_building_poi_shared_creature_lair_malkloc:new {
gameObjectType = 531,
}
ObjectTemplates:addTemplate(object_building_poi_creature_lair_malkloc, "object/building/poi/creature_lair_malkloc.iff")
| agpl-3.0 |
lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/components/shield_generator/shd_cygnus_mk4.lua | 3 | 2312 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_shield_generator_shd_cygnus_mk4 = object_tangible_ship_components_shield_generator_shared_shd_cygnus_mk4:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_shield_generator_shd_cygnus_mk4, "object/tangible/ship/components/shield_generator/shd_cygnus_mk4.iff")
| agpl-3.0 |
ibb-zimmers/betsynetpdf | sumatrapdf/luatest/t00.lua | 7 | 1101 | require'setupluafiles'
local winapi = require'winapi'
require'mywin'
require'winapi.messageloop'
local c = winapi.MyWindow{title = 'Main',
help_button = false, maximize_button = true, minimize_button = true,
autoquit = true, w = 500, h = 300, visible = false}
c:show()
function c:WM_GETDLGCODE()
return DLGC_WANTALLKEYS
end
function c:on_key_down(vk, flags)
print('WM_KEYDOWN', vk, flags)
end
function c:on_paint(hdc)
print(string.format("on_paint(hdc=%p)", hdc))
local brWhite = winapi.GetStockObject(winapi.WHITE_BRUSH)
local brBlack = winapi.GetStockObject(winapi.BLACK_BRUSH)
--print(string.format("whiteBrush: %p", whiteBrush))
--local prev1 = winapi.SelectObject(hdc, white)
--local r = winapi.RECT(0, 0, 40, 40)
local r = c:get_client_rect()
print(r)
winapi.FillRect(hdc, r, brWhite)
local newDx = r.w / 2
local newDy = r.h / 2
local x = (r.w - newDx) / 2
local y = (r.h - newDy) / 2
r = winapi.RECT(x, y, x + newDx, y + newDy)
winapi.FillRect(hdc, r, brBlack)
--winapi.SelectObject(hdc, prev1)
print(r)
end
winapi.MessageLoop()
| gpl-3.0 |
Goodzilam/b | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ('..user_id..')'
return user_info
end
local function chat_stats(chat_id)
-- Users on chat
local hash = 'chat:'..chat_id..':users'
local users = redis:smembers(hash)
local users_info = {}
-- Get user info
for i = 1, #users do
local user_id = users[i]
local user_info = get_msgs_user_chat(user_id, chat_id)
table.insert(users_info, user_info)
end
-- Sort users by msgs number
table.sort(users_info, function(a, b)
if a.msgs and b.msgs then
return a.msgs > b.msgs
end
end)
local text = ''
for k,user in pairs(users_info) do
text = text..user.name..' => '..user.msgs..'\n'
end
return text
end
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
print('Service message')
return msg
end
-- Save user on Redis
if msg.from.type == 'user' then
local hash = 'user:'..msg.from.id
print('Saving user', hash)
if msg.from.print_name then
redis:hset(hash, 'print_name', msg.from.print_name)
end
if msg.from.first_name then
redis:hset(hash, 'first_name', msg.from.first_name)
end
if msg.from.last_name then
redis:hset(hash, 'last_name', msg.from.last_name)
end
end
-- Save stats on Redis
if msg.to.type == 'chat' then
-- User is on chat
local hash = 'chat:'..msg.to.id..':users'
redis:sadd(hash, msg.from.id)
end
-- Total user msgs
local hash = 'msgs:'..msg.from.id..':'..msg.to.id
redis:incr(hash)
-- Check flood
if msg.from.type == 'user' then
local hash = 'user:'..msg.from.id..':msgs'
local msgs = tonumber(redis:get(hash) or 0)
if msgs > NUM_MSG_MAX then
print('User '..msg.from.id..'is flooding '..msgs)
msg = nil
end
redis:setex(hash, TIME_CHECK, msgs+1)
end
return msg
end
local function bot_stats()
local redis_scan = [[
local cursor = '0'
local count = 0
repeat
local r = redis.call("SCAN", cursor, "MATCH", KEYS[1])
cursor = r[1]
count = count + #r[2]
until cursor == '0'
return count]]
-- Users
local hash = 'msgs:*:'..our_id
local r = redis:eval(redis_scan, 1, hash)
local text = 'Users: '..r
hash = 'chat:*:users'
r = redis:eval(redis_scan, 1, hash)
text = text..'\nChats: '..r
return text
end
local function run(msg, matches)
if matches[1]:lower() == "stats" then
if not matches[2] then
if msg.to.type == 'chat' then
local chat_id = msg.to.id
return chat_stats(chat_id)
else
return 'Stats works only on chats'
end
end
if matches[2] == "bot" then
if not is_sudo(msg) then
return "Bot stats requires privileged user"
else
return bot_stats()
end
end
if matches[2] == "chat" then
if not is_sudo(msg) then
return "This command requires privileged user"
else
return chat_stats(matches[3])
end
end
end
end
return {
description = "Plugin to update user stats.",
usage = {
"!stats: Returns a list of Username [telegram_id]: msg_num",
"!stats chat <chat_id>: Show stats for chat_id",
"!stats bot: Shows bot stats (sudo users)"
},
patterns = {
"^!([Ss]tats)$",
"^!([Ss]tats) (chat) (%d+)",
"^!([Ss]tats) (bot)"
},
run = run,
pre_process = pre_process
}
end | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.