repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278 values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15 values |
|---|---|---|---|---|---|
kidaa/Awakening-Core3 | bin/scripts/object/mobile/space_comm_aynat_ace_01.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_space_comm_aynat_ace_01 = object_mobile_shared_space_comm_aynat_ace_01:new {
}
ObjectTemplates:addTemplate(object_mobile_space_comm_aynat_ace_01, "object/mobile/space_comm_aynat_ace_01.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/medicine/crafted/medpack_disease_area_health_a.lua | 1 | 3379 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_medicine_crafted_medpack_disease_area_health_a = object_tangible_medicine_crafted_shared_medpack_disease_area_health_a:new {
gameObjectType = 8240,
templateType = DOTPACK,
useCount = 10,
medicineUse = 5,
effectiveness = 100,
duration = 300,
range = 15,
rangeMod = 1.0,
pool = 0,
dotType = DISEASED,
potency = 150,
commandToExecute = "/applydisease",
area = 10,
numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 2, 2, 1},
experimentalProperties = {"XX", "XX", "OQ", "PE", "OQ", "UT", "CD", "OQ", "CD", "OQ", "OQ", "PE", "OQ", "PE", "DR", "OQ", "XX"},
experimentalWeights = {1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 2, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_effectiveness", "exp_charges", "exp_charges", "exp_effectiveness", "expEaseOfUse", "expEaseOfUse", "exp_effectiveness", "null"},
experimentalSubGroupTitles = {"null", "null", "power", "charges", "range", "area", "skillmodmin", "potency", "duration", "hitpoints"},
experimentalMin = {0, 0, 10, 5, 15, 5, 60, 25, 120, 1000},
experimentalMax = {0, 0, 20, 15, 20, 10, 40, 50, 600, 1000},
experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 4},
}
ObjectTemplates:addTemplate(object_tangible_medicine_crafted_medpack_disease_area_health_a, "object/tangible/medicine/crafted/medpack_disease_area_health_a.iff")
| lgpl-3.0 |
DelaramSudo/Taylor | plugins/filtering.lua | 11 | 2563 | --[[
#
# @GPMOD
# @Dragon_Born
#
]]
local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "کلمه جدید به فیلتر کلمات اضافه شد\n>"..name
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local function list_variablesbad(msg)
local hash = get_variables_hash(msg)
if hash then
local names = redis:hkeys(hash)
local text = 'لیست کلمات غیرمجاز :\n\n'
for i=1, #names do
text = text..'> '..names[i]..'\n'
end
return text
else
return
end
end
function clear_commandbad(msg, var_name)
--Save on redis
local hash = get_variables_hash(msg)
redis:del(hash, var_name)
return 'تمامی کلمات فیلتر شده حذف شدند'
end
local function list_variables2(msg, value)
local hash = get_variables_hash(msg)
if hash then
local names = redis:hkeys(hash)
local text = ''
for i=1, #names do
if string.match(value, names[i]) and not is_momod(msg) then
if msg.to.type == 'channel' then
delete_msg(msg.id,ok_cb,false)
else
kick_user(msg.from.id, msg.to.id)
end
return
end
--text = text..names[i]..'\n'
end
end
end
local function get_valuebad(msg, var_name)
local hash = get_variables_hash(msg)
if hash then
local value = redis:hget(hash, var_name)
if not value then
return
else
return value
end
end
end
function clear_commandsbad(msg, cmd_name)
--Save on redis
local hash = get_variables_hash(msg)
redis:hdel(hash, cmd_name)
return ''..cmd_name..' پاک شد'
end
local function run(msg, matches)
if matches[2] == 'addword' then
if not is_momod(msg) then
return 'only for moderators'
end
local name = string.sub(matches[3], 1, 50)
local text = addword(msg, name)
return text
end
if matches[2] == 'badwords' then
return list_variablesbad(msg)
elseif matches[2] == 'clearbadwords' then
if not is_momod(msg) then return '_|_' end
local asd = '1'
return clear_commandbad(msg, asd)
elseif matches[2] == 'remword' or matches[2] == 'rw' then
if not is_momod(msg) then return '_|_' end
return clear_commandsbad(msg, matches[3])
else
local name = user_print_name(msg.from)
return list_variables2(msg, matches[1])
end
end
return {
patterns = {
"^([#/])(rw) (.*)$",
"^([#/])(addword) (.*)$",
"^([#/])(remword) (.*)$",
"^([#/])(badwords)$",
"^([#/])(clearbadwords)$",
"^(.+)$",
},
run = run
}
| gpl-2.0 |
eraffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Endracion.lua | 2 | 5993 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Endracion
-- !pos -110 1 -34 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
CurrentMission = player:getCurrentMission(SANDORIA);
OrcishScoutCompleted = player:hasCompletedMission(SANDORIA,SMASH_THE_ORCISH_SCOUTS);
BatHuntCompleted = player:hasCompletedMission(SANDORIA,BAT_HUNT);
TheCSpringCompleted = player:hasCompletedMission(SANDORIA,THE_CRYSTAL_SPRING);
MissionStatus = player:getVar("MissionStatus");
Count = trade:getItemCount();
if (CurrentMission ~= 255) then
if (CurrentMission == SMASH_THE_ORCISH_SCOUTS and trade:hasItemQty(16656,1) and Count == 1 and OrcishScoutCompleted == false) then -- Trade Orcish Axe
player:startEvent(1020); -- Finish Mission "Smash the Orcish scouts" (First Time)
elseif (CurrentMission == SMASH_THE_ORCISH_SCOUTS and trade:hasItemQty(16656,1) and Count == 1) then -- Trade Orcish Axe
player:startEvent(1002); -- Finish Mission "Smash the Orcish scouts" (Repeat)
elseif (CurrentMission == BAT_HUNT and trade:hasItemQty(1112,1) and Count == 1 and BatHuntCompleted == false and MissionStatus == 2) then -- Trade Orcish Mail Scales
player:startEvent(1023); -- Finish Mission "Bat Hunt"
elseif (CurrentMission == BAT_HUNT and trade:hasItemQty(891,1) and Count == 1 and BatHuntCompleted == true) then -- Trade Bat Fang
player:startEvent(1003); -- Finish Mission "Bat Hunt" (repeat)
elseif (CurrentMission == THE_CRYSTAL_SPRING and trade:hasItemQty(4528,1) and Count == 1 and TheCSpringCompleted == false) then -- Trade Crystal Bass
player:startEvent(1030); -- Dialog During Mission "The Crystal Spring"
elseif (CurrentMission == THE_CRYSTAL_SPRING and trade:hasItemQty(4528,1) and Count == 1 and TheCSpringCompleted) then -- Trade Crystal Bass
player:startEvent(1013); -- Finish Mission "The Crystal Spring" (repeat)
else
player:startEvent(1008); -- Wrong Item
end
else
player:startEvent(1010); -- Mission not activated
end
end;
function onTrigger(player,npc)
local PresOfPapsqueCompleted = player:hasCompletedMission(SANDORIA,PRESTIGE_OF_THE_PAPSQUE);
if (player:getNation() ~= dsp.nation.SANDORIA) then
player:startEvent(1011); -- for Non-San d'Orians
else
CurrentMission = player:getCurrentMission(SANDORIA);
MissionStatus = player:getVar("MissionStatus");
pRank = player:getRank();
cs, p, offset = getMissionOffset(player,1,CurrentMission,MissionStatus);
if (CurrentMission <= 15 and (cs ~= 0 or offset ~= 0 or (CurrentMission == 0 and offset == 0))) then
if (cs == 0) then
player:showText(npc,ORIGINAL_MISSION_OFFSET + offset); -- dialog after accepting mission
else
player:startEvent(cs,p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8]);
end
elseif (pRank == 1 and player:hasCompletedMission(SANDORIA,SMASH_THE_ORCISH_SCOUTS) == false) then
player:startEvent(1000); -- Start First Mission "Smash the Orcish scouts"
elseif (player:hasKeyItem(dsp.ki.ANCIENT_SANDORIAN_BOOK)) then
player:startEvent(1035);
elseif (CurrentMission == RANPERRE_S_FINAL_REST and player:getVar("MissionStatus",4) and tonumber(os.date("%j")) == player:getVar("Wait1DayForRanperre_date")) then
player:startEvent(1037);
elseif (CurrentMission == RANPERRE_S_FINAL_REST and player:getVar("MissionStatus") == 4 and tonumber(os.date("%j")) ~= player:getVar("Wait1DayForRanperre_date")) then -- Ready now.
player:startEvent(1039);
elseif (CurrentMission == RANPERRE_S_FINAL_REST and player:getVar("MissionStatus") == 6) then
player:startEvent(1039);
elseif (CurrentMission == RANPERRE_S_FINAL_REST and player:getVar("MissionStatus") == 9) then
player:startEvent(1033);
elseif (CurrentMission ~= THE_SECRET_WEAPON and pRank == 7 and PresOfPapsqueCompleted == true and getMissionRankPoints(player,19) == 1 and player:getVar("SecretWeaponStatus") == 0) then
player:startEvent(61);
elseif (CurrentMission == THE_SECRET_WEAPON and player:getVar("SecretWeaponStatus") == 3) then
player:startEvent(1043);
elseif ((CurrentMission ~= 255) and not (player:getVar("MissionStatus") == 8)) then
player:startEvent(1001); -- Have mission already activated
else
mission_mask, repeat_mask = getMissionMask(player);
player:startEvent(1009,mission_mask, 0, 0 ,0 ,0 ,repeat_mask); -- Mission List
end
end
end;
function onEventUpdate(player,csid,option)
-- printf("onUpdateCSID: %u",csid);
-- printf("onUpdateOPTION: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("onFinishCSID: %u",csid);
-- printf("onFinishOPTION: %u",option);
finishMissionTimeline(player,1,csid,option);
if (csid == 1035) then
player:setVar("MissionStatus",4);
player:delKeyItem(dsp.ki.ANCIENT_SANDORIAN_BOOK);
player:setVar("Wait1DayForRanperre_date", os.date("%j"));
elseif (csid == 1037) then
player:setVar("MissionStatus",6);
elseif (csid == 1039) then
player:setVar("MissionStatus",7);
player:setVar("Wait1DayForRanperre_date",0);
elseif (csid == 1033) then
finishMissionTimeline(player,2,csid,option);
elseif (csid == 61) then
player:setVar("SecretWeaponStatus",1);
elseif (csid == 1043) then
finishMissionTimeline(player,2,csid,option);
end
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/tatooine/tusken_raid_champion.lua | 1 | 1421 | tusken_raid_champion = Creature:new {
objectName = "@mob/creature_names:Tusken_raid_champion",
socialGroup = "tusken_raider",
pvpFaction = "tusken_raider",
faction = "tusken_raider",
level = 62,
chanceHit = 0.62,
damageMin = 455,
damageMax = 620,
baseXp = 6013,
baseHAM = 11000,
baseHAMmax = 14000,
armor = 0,
resists = {45,25,0,80,-1,40,-1,0,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + KILLER + STALKER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/tusken_raider.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 1500000},
{group = "tusken_common", chance = 3000000},
{group = "wearables_all", chance = 2000000},
{group = "bone_armor", chance = 750000},
{group = "chitin_armor", chance = 750000},
{group = "armor_attachments", chance = 500000},
{group = "clothing_attachments", chance = 500000},
{group = "color_crystals", chance = 500000},
{group = "crystals_good", chance = 500000}
},
lootChance = 3200000
}
},
weapons = {"tusken_weapons"},
conversationTemplate = "",
attacks = merge(marksmanmaster,brawlermaster,fencermaster,riflemanmaster)
}
CreatureTemplates:addCreatureTemplate(tusken_raid_champion, "tusken_raid_champion")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/deed/pet_deed/huf_dun_deed.lua | 1 | 2580 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_deed_pet_deed_huf_dun_deed = object_tangible_deed_pet_deed_shared_huf_dun_deed:new {
templateType = PETDEED,
numberExperimentalProperties = {1, 1},
experimentalProperties = {"XX", "XX"},
experimentalWeights = {1, 1},
experimentalGroupTitles = {"null", "null"},
experimentalSubGroupTitles = {"null", "null"},
experimentalMin = {0, 0},
experimentalMax = {0, 0},
experimentalPrecision = {0, 0},
experimentalCombineType = {0, 0},
}
ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_huf_dun_deed, "object/tangible/deed/pet_deed/huf_dun_deed.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/space_starfighter_engineer_trainer_03.lua | 3 | 2264 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_space_starfighter_engineer_trainer_03 = object_mobile_shared_space_starfighter_engineer_trainer_03:new {
}
ObjectTemplates:addTemplate(object_mobile_space_starfighter_engineer_trainer_03, "object/mobile/space_starfighter_engineer_trainer_03.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/globals/items/apple_pie_+1.lua | 2 | 1067 | -----------------------------------------
-- ID: 4320
-- Item: Apple Pie +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 4
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(dsp.effect.FOOD) == true or target:hasStatusEffect(dsp.effect.FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
function onItemUse(target)
target:addStatusEffect(dsp.effect.FOOD,0,0,3600,4320);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(dsp.mod.MP, 30);
target:addMod(dsp.mod.INT, 4);
target:addMod(dsp.mod.MPHEAL, 2);
end;
function onEffectLose(target, effect)
target:delMod(dsp.mod.MP, 30);
target:delMod(dsp.mod.INT, 4);
target:delMod(dsp.mod.MPHEAL, 2);
end;
| gpl-3.0 |
eraffxi/darkstar | scripts/globals/weaponskills/resolution.lua | 2 | 1843 | -----------------------------------
-- Resolution
-- Great Sword weapon skill
-- Skill Level: 357
-- Delivers a fivefold attack. Damage varies with TP.
-- In order to obtain Resolution, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hits.
-- Resolution has an attack penalty of -8%.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR:73~85%, depending on merit points upgrades.
-- 100%TP 200%TP 300%TP
-- 0.71875 1.5 2.25
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");
-----------------------------------
function onUseWeaponSkill(player, target, wsID, tp, primary, action, taChar)
local params = {};
params.numHits = 5;
params.ftp100 = 0.71875; params.ftp200 = 0.84375 params.ftp300 = 0.96875
params.str_wsc = 0.85 + (player:getMerit(dsp.merit.RESOLUTION) / 100); params.dex_wsc = 0.0; params.vit_wsc = 0.0; params.agi_wsc = 0.0; params.int_wsc = 0.0; params.mnd_wsc = 0.0; params.chr_wsc = 0.0;
params.crit100 = 0.0; params.crit200 = 0.0; params.crit300 = 0.0;
params.canCrit = false;
params.acc100 = 0.0; params.acc200= 0.0; params.acc300= 0.0;
params.atkmulti = 0.85;
params.multiHitfTP = true
if (USE_ADOULIN_WEAPON_SKILL_CHANGES == true) then
params.ftp100 = 0.71875; params.ftp200 = 1.5 params.ftp300 = 2.25;
params.str_wsc = 0.7 + (player:getMerit(dsp.merit.RESOLUTION) / 100);
end
local damage, criticalHit, tpHits, extraHits = doPhysicalWeaponskill(player, target, wsID, tp, primary, action, taChar, params);
return tpHits, extraHits, criticalHit, damage;
end
| gpl-3.0 |
eraffxi/darkstar | scripts/globals/abilities/pets/thunderstorm.lua | 2 | 1372 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------
function onAbilityCheck(player, target, ability)
return 0,0;
end;
function onPetAbility(target, pet, skill)
local dINT = math.floor(pet:getStat(dsp.mod.INT) - target:getStat(dsp.mod.INT));
local tp = skill:getTP() / 10;
local master = pet:getMaster();
local merits = 0;
if (master ~= nil and master:isPC()) then
merits = master:getMerit(dsp.merit.THUNDERSTORM);
end
tp = tp + (merits - 40);
if (tp > 300) then
tp = 300;
end
--note: this formula is only accurate for level 75 - 76+ may have a different intercept and/or slope
local damage = math.floor(512 + 1.72*(tp+1));
damage = damage + (dINT * 1.5);
damage = MobMagicalMove(pet,target,skill,damage,dsp.magic.ele.LIGHTNING,1,TP_NO_EFFECT,0);
damage = mobAddBonuses(pet, nil, target, damage.dmg, dsp.magic.ele.LIGHTNING);
damage = AvatarFinalAdjustments(damage,pet,skill,target,MOBSKILL_MAGICAL,MOBPARAM_NONE,1);
target:delHP(damage);
target:updateEnmityFromDamage(pet,damage);
return damage;
end | gpl-3.0 |
eraffxi/darkstar | scripts/globals/items/death_penalty.lua | 2 | 4359 | -----------------------------------------
-- ID: 19007
-- Item: Death Penalty
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPONSKILL = "AFTERMATH_DEATH_PENALTY";
local NAME_EFFECT_LOSE = "AFTERMATH_LOST_DEATH_PENALTY";
-- https://www.bg-wiki.com/bg/Mythic_Aftermath
local aftermathTable = {};
-- Death Penalty (75)
aftermathTable[19007] =
{
{ -- Tier 1
duration = 60,
mods =
{
{ id = dsp.mod.RACC, power = function(tp) return math.floor(tp / 100); end }
}
},
{ -- Tier 2
duration = 90,
mods =
{
{ id = dsp.mod.RATT, power = function(tp) return math.floor(2 * tp / 50 - 60); end }
}
},
{ -- Tier 3
duration = 120,
mods =
{
{ id = dsp.mod.REM_OCC_DO_DOUBLE_DMG_RANGED, power = function(tp) return 40; end }
}
}
};
-- Death Penalty (80)
aftermathTable[19076] =
{
{ -- Tier 1
duration = 90,
mods =
{
{ id = dsp.mod.RACC, power = function(tp) return math.floor(tp / 50); end }
}
},
{ -- Tier 2
duration = 120,
mods =
{
{ id = dsp.mod.RATT, power = function(tp) return math.floor(3 * tp / 50 - 90); end }
}
},
{ -- Tier 3
duration = 180,
mods =
{
{ id = dsp.mod.REM_OCC_DO_DOUBLE_DMG_RANGED, power = function(tp) return 60; end }
}
}
};
aftermathTable[19096] = aftermathTable[19076]; -- Death Penalty (85)
aftermathTable[19628] = aftermathTable[19076]; -- Death Penalty (90)
-- Death Penalty (95)
aftermathTable[19726] =
{
{ -- Tier 1
duration = 90,
mods =
{
{ id = dsp.mod.RACC, power = function(tp) return math.floor(tp / 50 + 10); end }
}
},
{ -- Tier 2
duration = 120,
mods =
{
{ id = dsp.mod.RATT, power = function(tp) return math.floor(tp * 0.06 - 80); end }
}
},
{ -- Tier 3
duration = 180,
mods =
{
{ id = dsp.mod.REM_OCC_DO_DOUBLE_DMG_RANGED, power = function(tp) return 40; end },
{ id = dsp.mod.REM_OCC_DO_TRIPLE_DMG_RANGED, power = function(tp) return 20; end }
}
}
};
aftermathTable[19835] = aftermathTable[19726]; -- Death Penalty (99)
aftermathTable[19964] = aftermathTable[19726]; -- Death Penalty (99/II)
aftermathTable[21262] = aftermathTable[19726]; -- Death Penalty (119)
aftermathTable[21263] = aftermathTable[19726]; -- Death Penalty (119/II)
aftermathTable[21268] = aftermathTable[19726]; -- Death Penalty (119/III)
function onWeaponskill(user, target, wsid, tp, action)
if (wsid == dsp.ws.LEADEN_SALUTE) then -- Leaden Salute onry
if (shouldApplyAftermath(user, tp)) then
local itemId = user:getEquipID(dsp.slot.RANGED);
if (aftermathTable[itemId]) then
-- Apply the effect and add mods
addMythicAftermathEffect(user, tp, aftermathTable[itemId]);
-- Add a listener for when aftermath wears (to remove mods)
user:addListener("EFFECT_LOSE", NAME_EFFECT_LOSE, aftermathLost);
end
end
end
end
function aftermathLost(target, effect)
if (effect:getType() == dsp.effect.AFTERMATH) then
local itemId = target:getEquipID(dsp.slot.RANGED);
if (aftermathTable[itemId]) then
-- Remove mods
removeMythicAftermathEffect(target, effect, aftermathTable[itemId]);
-- Remove the effect listener
target:removeListener(NAME_EFFECT_LOSE);
end
end
end
function onItemCheck(player, param, caster)
if (param == dsp.itemCheck.EQUIP) then
player:addListener("WEAPONSKILL_USE", NAME_WEAPONSKILL, onWeaponskill);
elseif (param == dsp.itemCheck.UNEQUIP) then
-- Make sure we clean up the effect and mods
if (player:hasStatusEffect(dsp.effect.AFTERMATH)) then
aftermathLost(player, player:getStatusEffect(dsp.effect.AFTERMATH));
end
player:removeListener(NAME_WEAPONSKILL);
end
return 0;
end | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/medicine/crafted/medpack_enhance_constitution_b.lua | 1 | 3096 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_medicine_crafted_medpack_enhance_constitution_b = object_tangible_medicine_crafted_shared_medpack_enhance_constitution_b:new {
gameObjectType = 8238,
templateType = ENHANCEPACK,
useCount = 10,
medicineUse = 10,
effectiveness = 200,
duration = 1800,
attribute = 2,
numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 1},
experimentalProperties = {"XX", "XX", "OQ", "PE", "OQ", "UT", "DR", "OQ", "OQ", "PE", "XX"},
experimentalWeights = {1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_effectiveness", "exp_charges", "exp_effectiveness", "expEaseOfUse", "null"},
experimentalSubGroupTitles = {"null", "null", "power", "charges", "duration", "skillmodmin", "hitpoints"},
experimentalMin = {0, 0, 20, 5, 1200, 70, 100},
experimentalMax = {0, 0, 200, 15, 7200, 55, 150},
experimentalPrecision = {0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 4},
}
ObjectTemplates:addTemplate(object_tangible_medicine_crafted_medpack_enhance_constitution_b, "object/tangible/medicine/crafted/medpack_enhance_constitution_b.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/furniture/imperial/data_terminal_s2.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_furniture_imperial_data_terminal_s2 = object_tangible_furniture_imperial_shared_data_terminal_s2:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_imperial_data_terminal_s2, "object/tangible/furniture/imperial/data_terminal_s2.iff")
| lgpl-3.0 |
abbasgh12345/abbas0 | plugins/plugin.lua | 3 | 5964 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( name )
for k,v in pairs(plugins_names()) do
if name..'.lua' == v then
return true
end
end
return false
end
local function list_all_plugins(only_enabled)
local text = ''
local nsum = 0
for k, v in pairs( plugins_names( )) do
-- ✔ enabled, ❌ disabled
local status = '❌'
nsum = nsum+1
nact = 0
-- Check if is enabled
for k2, v2 in pairs(_config.enabled_plugins) do
if v == v2..'.lua' then
status = '✔'
end
nact = nact+1
end
if not only_enabled or status == '✔' then
-- get the name
v = string.match (v, "(.*)%.lua")
text = text..nsum..'> '..status..' '..v..'\n'
end
end
local text = text..'\n______________________________\nNumber of all tools: '..nsum..'\nEnable tools= '..nact..' and Disables= '..nsum-nact
return text
end
local function list_plugins(only_enabled)
local text = ''
local nsum = 0
for k, v in pairs( plugins_names( )) do
-- ✔ enabled, ❌ disabled
local status = '❌'
nsum = nsum+1
nact = 0
-- Check if is enabled
for k2, v2 in pairs(_config.enabled_plugins) do
if v == v2..'.lua' then
status = '✔'
end
nact = nact+1
end
if not only_enabled or status == '✔' then
-- get the name
v = string.match (v, "(.*)%.lua")
text = text..status..' '..v..'\n'
end
end
local text = text..'\n___________________________\nAll tools= '..nsum..' ,Enable items= '..nact
return text
end
local function reload_plugins( )
plugins = {}
load_plugins()
return list_plugins(true)
end
local function enable_plugin( plugin_name )
print('checking if '..plugin_name..' exists')
-- Check if plugin is enabled
if plugin_enabled(plugin_name) then
return plugin_name..' is enabled'
end
-- Checks if plugin exists
if plugin_exists(plugin_name) then
-- Add to the config table
table.insert(_config.enabled_plugins, plugin_name)
print(plugin_name..' added to _config table')
save_config()
-- Reload the plugins
return reload_plugins( )
else
return plugin_name..' does not exists'
end
end
local function disable_plugin( name, chat )
-- Check if plugins exists
if not plugin_exists(name) then
return name..' does not exists'
end
local k = plugin_enabled(name)
-- Check if plugin is enabled
if not k then
return name..' not enabled'
end
-- Disable and reload
table.remove(_config.enabled_plugins, k)
save_config( )
return reload_plugins(true)
end
local function disable_plugin_on_chat(receiver, plugin)
if not plugin_exists(plugin) then
return "Plugin doesn't exists"
end
if not _config.disabled_plugin_on_chat then
_config.disabled_plugin_on_chat = {}
end
if not _config.disabled_plugin_on_chat[receiver] then
_config.disabled_plugin_on_chat[receiver] = {}
end
_config.disabled_plugin_on_chat[receiver][plugin] = true
save_config()
return plugin..' disabled in group'
end
local function reenable_plugin_on_chat(receiver, plugin)
if not _config.disabled_plugin_on_chat then
return 'There aren\'t any disabled plugins'
end
if not _config.disabled_plugin_on_chat[receiver] then
return 'There aren\'t any disabled plugins for this chat'
end
if not _config.disabled_plugin_on_chat[receiver][plugin] then
return 'This plugin is not disabled'
end
_config.disabled_plugin_on_chat[receiver][plugin] = false
save_config()
return plugin..' enabled again'
end
local function run(msg, matches)
-- Show the available plugins
if matches[1] == '[!/]plugins' and is_sudo(msg) then --after changed to moderator mode, set only sudo
return list_all_plugins()
end
-- Re-enable a plugin for this chat
if matches[1] == '+' and matches[3] == 'gp' then
local receiver = get_receiver(msg)
local plugin = matches[2]
print(""..plugin..' enabled in group')
return reenable_plugin_on_chat(receiver, plugin)
end
-- Enable a plugin
if matches[1] == '+' and is_sudo(msg) then --after changed to moderator mode, set only sudo
local plugin_name = matches[2]
print("enable: "..matches[2])
return enable_plugin(plugin_name)
end
-- Disable a plugin on a chat
if matches[1] == '-' and matches[3] == 'gp' then
local plugin = matches[2]
local receiver = get_receiver(msg)
print(""..plugin..' disabled in group')
return disable_plugin_on_chat(receiver, plugin)
end
-- Disable a plugin
if matches[1] == '-' and is_sudo(msg) then --after changed to moderator mode, set only sudo
if matches[2] == 'plugins' then
return 'This plugin can\'t be disabled'
end
print("disable: "..matches[2])
return disable_plugin(matches[2])
end
-- Reload all the plugins!
if matches[1] == '@' and is_sudo(msg) then --after changed to moderator mode, set only sudo
return reload_plugins(true)
end
end
return {
description = "Plugin Manager",
usage = {
moderator = {
"/plugins - (name) gp : disable item in group",
"/plugins + (name) gp : enable item in group",
},
sudo = {
"/plugins : plugins list",
"/plugins + (name) : enable bot item",
"/plugins - (name) : disable bot item",
"/plugins ? : reloads plugins" },
},
patterns = {
"^[!/]plugins$",
"^[!/]plugins? (+) ([%w_%.%-]+)$",
"^[!/]plugins? (-) ([%w_%.%-]+)$",
"^[!/]plugins? (+) ([%w_%.%-]+) (gp)",
"^[!/]plugins? (-) ([%w_%.%-]+) (gp)",
"^[!/]plugins? (?)$" },
run = run,
moderated = true, -- set to moderator mode
--privileged = true
}
end
| gpl-2.0 |
kidaa/Awakening-Core3 | bin/scripts/object/ship/rebel_gunboat_tier3.lua | 3 | 2184 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_ship_rebel_gunboat_tier3 = object_ship_shared_rebel_gunboat_tier3:new {
}
ObjectTemplates:addTemplate(object_ship_rebel_gunboat_tier3, "object/ship/rebel_gunboat_tier3.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Dedden_IM.lua | 2 | 2949 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Dedden, I.M.
-- Border Conquest Guards
-- !pos -252.454 -1.958 624.366 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("scripts/zones/The_Sanctuary_of_ZiTah/TextIDs");
local guardnation = dsp.nation.BASTOK; -- SANDORIA, BASTOK, WINDURST, 4 = jeuno
local guardtype = 4; -- 1: city, 2: foreign, 3: outpost, 4: border
local region = dsp.region.LITELOR;
local csid = 0x7ff8;
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("OPTION: %u",option);
end;
function onEventFinish(player,csid,option)
-- printf("OPTION: %u",option);
if (option == 1) then
local duration = (player:getRank() + getNationRank(player:getNation()) + 3) * 3600;
player:delStatusEffect(dsp.effect.SIGIL);
player:delStatusEffect(dsp.effect.SANCTION);
player:delStatusEffect(dsp.effect.SIGNET);
player:addStatusEffect(dsp.effect.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 |
eraffxi/darkstar | scripts/zones/Port_Bastok/npcs/Ronan.lua | 2 | 2219 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ronan
-- Start & Finishes Quest: Out of One's Shell
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
if (player:getQuestStatus(BASTOK,OUT_OF_ONE_S_SHELL) == QUEST_ACCEPTED and player:getVar("OutOfOneShell") == 0) then
if (trade:hasItemQty(17397,3) and trade:getItemCount() == 3) then
player:startEvent(84);
end
end
end;
function onTrigger(player,npc)
OutOfOneShell = player:getQuestStatus(BASTOK,OUT_OF_ONE_S_SHELL);
if (OutOfOneShell == QUEST_ACCEPTED and player:getVar("OutOfOneShell") == 1) then
if (player:needToZone()) then
player:startEvent(85);
else
player:startEvent(86);
end
elseif (OutOfOneShell == QUEST_ACCEPTED) then
player:showText(npc,RONAN_DIALOG_1);
elseif (OutOfOneShell == QUEST_COMPLETED) then
player:startEvent(89);
elseif (player:getQuestStatus(BASTOK,THE_QUADAV_S_CURSE) == QUEST_COMPLETED and player:getFameLevel(BASTOK) >= 2) then
player:startEvent(82);
else
player:startEvent(37);
end
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 82) then
player:addQuest(BASTOK,OUT_OF_ONE_S_SHELL);
elseif (csid == 84) then
player:needToZone(true);
player:setVar("OutOfOneShell",1);
player:tradeComplete();
elseif (csid == 86) then
if (player:getFreeSlotsCount() >= 1) then
player:addTitle(dsp.title.SHELL_OUTER);
player:setVar("OutOfOneShell",0);
player:addItem(12501);
player:messageSpecial(ITEM_OBTAINED,12501);
player:addFame(BASTOK,120);
player:completeQuest(BASTOK,OUT_OF_ONE_S_SHELL);
else
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,12501);
end
end
end; | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/draft_schematic/clothing/clothing_armor_ithorian_defender_boots.lua | 1 | 3969 | --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_armor_ithorian_defender_boots = object_draft_schematic_clothing_shared_clothing_armor_ithorian_defender_boots:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Ithorian Defender Boots",
craftingToolTab = 2, -- (See DraftSchemticImplementation.h)
complexity = 40,
size = 4,
xpType = "crafting_clothing_armor",
xp = 360,
assemblySkill = "armor_assembly",
experimentingSkill = "armor_experimentation",
customizationSkill = "armor_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n", "craft_clothing_ingredients_n"},
ingredientTitleNames = {"auxilary_coverage", "body", "liner", "hardware_and_attachments", "binding_and_reinforcement", "padding", "armor", "load_bearing_harness", "reinforcement"},
ingredientSlotType = {0, 0, 0, 0, 0, 0, 1, 1, 1},
resourceTypes = {"hide_leathery_lok", "hide_scaley", "fiberplast_corellia", "metal", "petrochem_inert_polymer", "hide_wooly", "object/tangible/component/armor/shared_armor_segment_padded.iff", "object/tangible/component/clothing/shared_synthetic_cloth.iff", "object/tangible/component/clothing/shared_reinforced_fiber_panels.iff"},
resourceQuantities = {40, 40, 20, 25, 25, 30, 1, 2, 1},
contribution = {100, 100, 100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/wearables/armor/ithorian_defender/ith_armor_s01_boots.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_clothing_clothing_armor_ithorian_defender_boots, "object/draft_schematic/clothing/clothing_armor_ithorian_defender_boots.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/structure/general/tato_cave_stalactite_tiny.lua | 3 | 2288 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_general_tato_cave_stalactite_tiny = object_static_structure_general_shared_tato_cave_stalactite_tiny:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_tato_cave_stalactite_tiny, "object/static/structure/general/tato_cave_stalactite_tiny.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/item/item_tool_meson_taloscope.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_item_item_tool_meson_taloscope = object_static_item_shared_item_tool_meson_taloscope:new {
}
ObjectTemplates:addTemplate(object_static_item_item_tool_meson_taloscope, "object/static/item/item_tool_meson_taloscope.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/loot/collectible/collectible_parts/light_table_structure_04.lua | 3 | 2360 | --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_light_table_structure_04 = object_tangible_loot_collectible_collectible_parts_shared_light_table_structure_04:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_collectible_collectible_parts_light_table_structure_04, "object/tangible/loot/collectible/collectible_parts/light_table_structure_04.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/space_comm_hutt_01.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_space_comm_hutt_01 = object_mobile_shared_space_comm_hutt_01:new {
}
ObjectTemplates:addTemplate(object_mobile_space_comm_hutt_01, "object/mobile/space_comm_hutt_01.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/vog_eel/lair_vog_eel_underwater.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_vog_eel_lair_vog_eel_underwater = object_tangible_lair_vog_eel_shared_lair_vog_eel_underwater:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_vog_eel_lair_vog_eel_underwater, "object/tangible/lair/vog_eel/lair_vog_eel_underwater.iff")
| lgpl-3.0 |
fegimanam/1p | plugins/spamwili.lua | 4 | 69448 | local function run(msg)
if msg.text == "[!/]killwili" then
return "".. [[
wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wilili😈wili😈wili😈wili😈wili😈wili😈wili😈wili��wili😈 wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili�
wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili�
wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili�
wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili�
wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili� wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili😈wili�
]]
end
end
return {
description = "wili",
usage = "/spam : send 100000pm for spaming",
patterns = {
"^[!/]killwili$"
},
run = run,
privileged = true,
pre_process = pre_process
}
| gpl-2.0 |
Creedsteam/SuperCreed | plugins/expire.lua | 2 | 3557 | local function pre_process(msg)
local timetoexpire = 'unknown'
local expiretime = redis:hget ('expiretime', get_receiver(msg))
local now = tonumber(os.time())
if expiretime then
timetoexpire = math.floor((tonumber(expiretime) - tonumber(now)) / 86400) + 1
if tonumber("0") > tonumber(timetoexpire) and not is_admin1(msg) then
if msg.text:match('/') then
return send_large_msg(get_receiver(msg), 'تاریخ اتقضای گروه به پایان رسید\nای دی برای تمدید : @Mr_Creed..')
else
return
end
end
if tonumber(timetoexpire) == 0 then
if redis:hget('expires0',msg.to.id) then return msg end
send_large_msg(get_receiver(msg), '0 روز تا پایان تاریخ انقضای گروه باقی مانده است\nنسبت به تمدید اقدام کنید\nای دی برای تمدید : @Mr_Creed.')
redis:hset('expires0',msg.to.id,'5')
end
if tonumber(timetoexpire) == 1 then
if redis:hget('expires1',msg.to.id) then return msg end
send_large_msg(get_receiver(msg), '1 روز تا پایان تاریخ انقضای گروه باقی مانده است\nنسبت به تمدید اقدام کنید\nای دی برای تمدید : @Mr_Creed.')
redis:hset('expires1',msg.to.id,'5')
end
if tonumber(timetoexpire) == 2 then
if redis:hget('expires2',msg.to.id) then return msg end
send_large_msg(get_receiver(msg), '2 روز تا پایان تاریخ انقضای گروه باقی مانده است\nنسبت به تمدید اقدام کنید\nای دی برای تمدید : @Mr_Creed.')
redis:hset('expires2',msg.to.id,'5')
end
if tonumber(timetoexpire) == 3 then
if redis:hget('expires3',msg.to.id) then return msg end
send_large_msg(get_receiver(msg), '3 روز تا پایان تاریخ انقضای گروه باقی مانده است\nنسبت به تمدید اقدام کنید\nای دی برای تمدید : @Mr_Creed.')
redis:hset('expires3',msg.to.id,'5')
end
if tonumber(timetoexpire) == 4 then
if redis:hget('expires4',msg.to.id) then return msg end
send_large_msg(get_receiver(msg), '4 روز تا پایان تاریخ انقضای گروه باقی مانده است\nنسبت به تمدید اقدام کنید\nای دی برای تمدید : @Mr_Creed.')
redis:hset('expires4',msg.to.id,'5')
end
if tonumber(timetoexpire) == 5 then
if redis:hget('expires5',msg.to.id) then return msg end
send_large_msg(get_receiver(msg), '5 روز تا پایان تاریخ انقضای گروه باقی مانده است\nنسبت به تمدید اقدام کنید.')
redis:hset('expires5',msg.to.id,'5')
end
end
return msg
end
function run(msg, matches)
if matches[1]:lower() == 'setexpire' then
if not is_admin1(msg) then return end
local time = os.time()
local buytime = tonumber(os.time())
local timeexpire = tonumber(buytime) + (tonumber(matches[2]) * 86400)
redis:hset('expiretime',get_receiver(msg),timeexpire)
return "Group expire time seted on "..matches[2].. " Days later ."
end
if matches[1]:lower() == 'expire' then
local expiretime = redis:hget ('expiretime', get_receiver(msg))
if not expiretime then return 'No Expire have been set !' else
local now = tonumber(os.time())
return (math.floor((tonumber(expiretime) - tonumber(now)) / 86400) + 1) .. " Days letter !"
end
end
end
return {
patterns = {
"^[!/]([Ss]etexpire) (.*)$",
"^[!/]([Ee]xpire)$",
},
run = run,
pre_process = pre_process
}
| agpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/ship/components/booster/bst_moncal_advanced.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_ship_components_booster_bst_moncal_advanced = object_tangible_ship_components_booster_shared_bst_moncal_advanced:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_booster_bst_moncal_advanced, "object/tangible/ship/components/booster/bst_moncal_advanced.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/commands.lua | 1 | 33665 | -- define an object to carry state data for combat commands
function StateEffect(t, et, dm, jm, c, s, l)
return {
effectType = t,
defenderExclusionTimers = et,
defenderStateDefenseModifiers = dm,
defenderJediStateDefenseModifiers = jm,
stateChance = c,
stateStrength = s,
stateLength = l
}
end
-- carries dot data for combat commands
function DotEffect(t, dm, pl, h, p, c, s, d, pp, sp)
return {
dotType = t,
defenderStateDefenseModifers = dm,
dotPool = pl,
dotDamageofHit = h,
dotPotency = p,
dotChance = c,
dotStrength = s,
dotDuration = d,
primaryPercent = pp or 100,
secondaryPercent = sp or 100
}
end
-- run command scripts
RunSlashCommandsFile("actionShot1.lua")
RunSlashCommandsFile("actionShot2.lua")
RunSlashCommandsFile("activateClone.lua")
RunSlashCommandsFile("activateQuest.lua")
RunSlashCommandsFile("addAllowedPlayer.lua")
RunSlashCommandsFile("addBannedPlayer.lua")
RunSlashCommandsFile("addFriend.lua")
RunSlashCommandsFile("addIgnore.lua")
RunSlashCommandsFile("addMapLocation.lua")
RunSlashCommandsFile("addPower.lua")
RunSlashCommandsFile("adjustLotCount.lua")
RunSlashCommandsFile("aiIgnore.lua")
RunSlashCommandsFile("aim.lua")
RunSlashCommandsFile("alert.lua")
RunSlashCommandsFile("animalAttack.lua")
RunSlashCommandsFile("animalCalm.lua")
RunSlashCommandsFile("animalScare.lua")
RunSlashCommandsFile("anon.lua")
RunSlashCommandsFile("applyDisease.lua")
RunSlashCommandsFile("applyPoison.lua")
RunSlashCommandsFile("applyPowerup.lua")
RunSlashCommandsFile("areatrack.lua")
RunSlashCommandsFile("assignDroid.lua")
RunSlashCommandsFile("assist.lua")
RunSlashCommandsFile("associateDroidControlDeviceWithShip.lua")
RunSlashCommandsFile("attack.lua")
RunSlashCommandsFile("auction.lua")
RunSlashCommandsFile("auctionAccept.lua")
RunSlashCommandsFile("auctionBid.lua")
RunSlashCommandsFile("auctionCancel.lua")
RunSlashCommandsFile("auctionCreate.lua")
RunSlashCommandsFile("auctionQuery.lua")
RunSlashCommandsFile("auctionRetrieve.lua")
RunSlashCommandsFile("auctionsay.lua")
RunSlashCommandsFile("avoidIncapacitation.lua")
RunSlashCommandsFile("bandFlourish.lua")
RunSlashCommandsFile("battlefieldStatus.lua")
RunSlashCommandsFile("berserk1.lua")
RunSlashCommandsFile("berserk2.lua")
RunSlashCommandsFile("bet.lua")
RunSlashCommandsFile("bleedingShot.lua")
RunSlashCommandsFile("blindAttack.lua")
RunSlashCommandsFile("boardShuttle.lua")
RunSlashCommandsFile("bodyShot1.lua")
RunSlashCommandsFile("bodyShot2.lua")
RunSlashCommandsFile("bodyShot3.lua")
RunSlashCommandsFile("boostmorale.lua")
RunSlashCommandsFile("broadcast.lua")
RunSlashCommandsFile("broadcastArea.lua")
RunSlashCommandsFile("broadcastGalaxy.lua")
RunSlashCommandsFile("broadcastPlanet.lua")
RunSlashCommandsFile("burstRun.lua")
RunSlashCommandsFile("burstShot1.lua")
RunSlashCommandsFile("burstShot2.lua")
RunSlashCommandsFile("cancelCraftingSession.lua")
RunSlashCommandsFile("centerOfBeing.lua")
RunSlashCommandsFile("changeBandMusic.lua")
RunSlashCommandsFile("changeDance.lua")
RunSlashCommandsFile("changeMusic.lua")
RunSlashCommandsFile("channelForce.lua")
RunSlashCommandsFile("chargeShot1.lua")
RunSlashCommandsFile("chargeShot2.lua")
RunSlashCommandsFile("checkForceStatus.lua")
RunSlashCommandsFile("cityInfo.lua")
RunSlashCommandsFile("cityban.lua")
RunSlashCommandsFile("citypardon.lua")
RunSlashCommandsFile("claimVeteranReward.lua")
RunSlashCommandsFile("clearCompletedQuest.lua")
RunSlashCommandsFile("clearVeteranReward.lua")
RunSlashCommandsFile("clientQualifiedForSkill.lua")
RunSlashCommandsFile("clone.lua")
RunSlashCommandsFile("closeContainer.lua")
RunSlashCommandsFile("colorlights.lua")
RunSlashCommandsFile("combat.lua")
RunSlashCommandsFile("combatEscape.lua")
RunSlashCommandsFile("combatModeCheck.lua")
RunSlashCommandsFile("combatSpam.lua")
RunSlashCommandsFile("combatTarget.lua")
RunSlashCommandsFile("completeQuest.lua")
RunSlashCommandsFile("conceal.lua")
RunSlashCommandsFile("concealShot.lua")
RunSlashCommandsFile("confusionShot.lua")
RunSlashCommandsFile("consent.lua")
RunSlashCommandsFile("corpse.lua")
RunSlashCommandsFile("counterAttack.lua")
RunSlashCommandsFile("coupDeGrace.lua")
RunSlashCommandsFile("craft.lua")
RunSlashCommandsFile("createCreature.lua")
RunSlashCommandsFile("createManfSchematic.lua")
RunSlashCommandsFile("createMissionElement.lua")
RunSlashCommandsFile("createNPC.lua")
RunSlashCommandsFile("createPrototype.lua")
RunSlashCommandsFile("createSpawningElement.lua")
RunSlashCommandsFile("createSpawningElementWithDifficulty.lua")
RunSlashCommandsFile("creatureAreaAttack.lua")
RunSlashCommandsFile("creatureAreaBleeding.lua")
RunSlashCommandsFile("creatureAreaCombo.lua")
RunSlashCommandsFile("creatureAreaDisease.lua")
RunSlashCommandsFile("creatureAreaKnockdown.lua")
RunSlashCommandsFile("creatureAreaPoison.lua")
RunSlashCommandsFile("creatureRangedAttack.lua")
RunSlashCommandsFile("credits.lua")
RunSlashCommandsFile("cripplingShot.lua")
RunSlashCommandsFile("csAppendComment.lua")
RunSlashCommandsFile("csCancelTicket.lua")
RunSlashCommandsFile("csConnectPlayer.lua")
RunSlashCommandsFile("csCreateTicket.lua")
RunSlashCommandsFile("csDisconnectPlayer.lua")
RunSlashCommandsFile("csGetArticle.lua")
RunSlashCommandsFile("csGetComments.lua")
RunSlashCommandsFile("csGetTickets.lua")
RunSlashCommandsFile("csRequestCategories.lua")
RunSlashCommandsFile("csSearchKnowledgeBase.lua")
RunSlashCommandsFile("cuiConsentResponse.lua")
RunSlashCommandsFile("cureDisease.lua")
RunSlashCommandsFile("curePoison.lua")
RunSlashCommandsFile("customizeDroid.lua")
RunSlashCommandsFile("customizeVehicle.lua")
RunSlashCommandsFile("database.lua")
RunSlashCommandsFile("dazzle.lua")
RunSlashCommandsFile("deactivateQuest.lua")
RunSlashCommandsFile("deathBlow.lua")
RunSlashCommandsFile("deathCount.lua")
RunSlashCommandsFile("declareOvert.lua")
RunSlashCommandsFile("declareresidence.lua")
RunSlashCommandsFile("decline.lua")
RunSlashCommandsFile("defaultAttack.lua")
RunSlashCommandsFile("defaultDroidAttack.lua")
RunSlashCommandsFile("defuseMinefield.lua")
RunSlashCommandsFile("delegateFactionPoints.lua")
RunSlashCommandsFile("denyService.lua")
RunSlashCommandsFile("deployTrap.lua")
RunSlashCommandsFile("destroy.lua")
RunSlashCommandsFile("destroystructure.lua")
RunSlashCommandsFile("detonateDroid.lua")
RunSlashCommandsFile("diagnose.lua")
RunSlashCommandsFile("disarmingShot1.lua")
RunSlashCommandsFile("disarmingShot2.lua")
RunSlashCommandsFile("disband.lua")
RunSlashCommandsFile("dismissGroupMember.lua")
RunSlashCommandsFile("dismount.lua")
RunSlashCommandsFile("dismountandstore.lua")
RunSlashCommandsFile("distract.lua")
RunSlashCommandsFile("diveShot.lua")
RunSlashCommandsFile("dizzyAttack.lua")
RunSlashCommandsFile("doubleTap.lua")
RunSlashCommandsFile("dragIncapacitatedPlayer.lua")
RunSlashCommandsFile("drainForce.lua")
RunSlashCommandsFile("duel.lua")
RunSlashCommandsFile("dumpTargetInformation.lua")
RunSlashCommandsFile("dumpZoneInformation.lua")
RunSlashCommandsFile("eat.lua")
RunSlashCommandsFile("editAppearance.lua")
RunSlashCommandsFile("editBank.lua")
RunSlashCommandsFile("editBankAccount.lua")
RunSlashCommandsFile("editStats.lua")
RunSlashCommandsFile("emboldenpets.lua")
RunSlashCommandsFile("emptyMailTarget.lua")
RunSlashCommandsFile("endDuel.lua")
RunSlashCommandsFile("enragepets.lua")
RunSlashCommandsFile("equilibrium.lua")
RunSlashCommandsFile("executeKnowledgeBaseMessage.lua")
RunSlashCommandsFile("extinguishFire.lua")
RunSlashCommandsFile("extractObject.lua")
RunSlashCommandsFile("eyeShot.lua")
RunSlashCommandsFile("factoryCrateSplit.lua")
RunSlashCommandsFile("fanShot.lua")
RunSlashCommandsFile("fastBlast.lua")
RunSlashCommandsFile("feignDeath.lua")
RunSlashCommandsFile("find.lua")
RunSlashCommandsFile("findFriend.lua")
RunSlashCommandsFile("findMyTrainer.lua")
RunSlashCommandsFile("findObject.lua")
RunSlashCommandsFile("findPlayer.lua")
RunSlashCommandsFile("fireAcidCone1.lua")
RunSlashCommandsFile("fireAcidCone2.lua")
RunSlashCommandsFile("fireAcidSingle1.lua")
RunSlashCommandsFile("fireAcidSingle2.lua")
RunSlashCommandsFile("fireHeavyWeapon.lua")
RunSlashCommandsFile("fireLightningCone1.lua")
RunSlashCommandsFile("fireLightningCone2.lua")
RunSlashCommandsFile("fireLightningSingle1.lua")
RunSlashCommandsFile("fireLightningSingle2.lua")
RunSlashCommandsFile("firejet.lua")
RunSlashCommandsFile("firstAid.lua")
RunSlashCommandsFile("fish.lua")
RunSlashCommandsFile("flameCone1.lua")
RunSlashCommandsFile("flameCone2.lua")
RunSlashCommandsFile("flameSingle1.lua")
RunSlashCommandsFile("flameSingle2.lua")
RunSlashCommandsFile("flashSpeeder.lua")
RunSlashCommandsFile("flourish.lua")
RunSlashCommandsFile("flurryShot1.lua")
RunSlashCommandsFile("flurryShot2.lua")
RunSlashCommandsFile("flushingShot1.lua")
RunSlashCommandsFile("flushingShot2.lua")
RunSlashCommandsFile("forage.lua")
RunSlashCommandsFile("forceAbsorb1.lua")
RunSlashCommandsFile("forceAbsorb2.lua")
RunSlashCommandsFile("forceArmor1.lua")
RunSlashCommandsFile("forceArmor2.lua")
RunSlashCommandsFile("forceChoke.lua")
RunSlashCommandsFile("forceCommand.lua")
RunSlashCommandsFile("forceCureDisease.lua")
RunSlashCommandsFile("forceCurePoison.lua")
RunSlashCommandsFile("forceFeedback1.lua")
RunSlashCommandsFile("forceFeedback2.lua")
RunSlashCommandsFile("forceIntimidate1.lua")
RunSlashCommandsFile("forceIntimidate2.lua")
RunSlashCommandsFile("forceKnockdown1.lua")
RunSlashCommandsFile("forceKnockdown2.lua")
RunSlashCommandsFile("forceKnockdown3.lua")
RunSlashCommandsFile("forceLightningCone1.lua")
RunSlashCommandsFile("forceLightningCone2.lua")
RunSlashCommandsFile("forceLightningSingle1.lua")
RunSlashCommandsFile("forceLightningSingle2.lua")
RunSlashCommandsFile("forceMeditate.lua")
RunSlashCommandsFile("forceOfWill.lua")
RunSlashCommandsFile("forceProtection.lua")
RunSlashCommandsFile("forceResistBleeding.lua")
RunSlashCommandsFile("forceResistDisease.lua")
RunSlashCommandsFile("forceResistPoison.lua")
RunSlashCommandsFile("forceResistStates.lua")
RunSlashCommandsFile("forceRun1.lua")
RunSlashCommandsFile("forceRun2.lua")
RunSlashCommandsFile("forceRun3.lua")
RunSlashCommandsFile("forceShield1.lua")
RunSlashCommandsFile("forceShield2.lua")
RunSlashCommandsFile("forceSpeed1.lua")
RunSlashCommandsFile("forceSpeed2.lua")
RunSlashCommandsFile("forceThrow1.lua")
RunSlashCommandsFile("forceThrow2.lua")
RunSlashCommandsFile("forceWeaken1.lua")
RunSlashCommandsFile("forceWeaken2.lua")
RunSlashCommandsFile("formup.lua")
RunSlashCommandsFile("freezePlayer.lua")
RunSlashCommandsFile("fullAutoArea1.lua")
RunSlashCommandsFile("fullAutoArea2.lua")
RunSlashCommandsFile("fullAutoSingle1.lua")
RunSlashCommandsFile("fullAutoSingle2.lua")
RunSlashCommandsFile("g.lua")
RunSlashCommandsFile("gallop.lua")
RunSlashCommandsFile("gallopStop.lua")
RunSlashCommandsFile("gc.lua")
RunSlashCommandsFile("gcwStatus.lua")
RunSlashCommandsFile("generateCraftedItem.lua")
RunSlashCommandsFile("getAccountInfo.lua")
RunSlashCommandsFile("getAttributes.lua")
RunSlashCommandsFile("getAttributesBatch.lua")
RunSlashCommandsFile("getFriendList.lua")
RunSlashCommandsFile("getGameTime.lua")
RunSlashCommandsFile("getIgnoreList.lua")
RunSlashCommandsFile("getMapLocations.lua")
RunSlashCommandsFile("getObjVars.lua")
RunSlashCommandsFile("getPlayerId.lua")
RunSlashCommandsFile("getPrototype.lua")
RunSlashCommandsFile("getRank.lua")
RunSlashCommandsFile("getSpawnDelays.lua")
RunSlashCommandsFile("getStationName.lua")
RunSlashCommandsFile("getVeteranRewardTime.lua")
RunSlashCommandsFile("getVeteranRewardTimeCs.lua")
RunSlashCommandsFile("giveItem.lua")
RunSlashCommandsFile("giveMaintenanceToVendor.lua")
RunSlashCommandsFile("givevendormaint.lua")
RunSlashCommandsFile("gmCreateClassResource.lua")
RunSlashCommandsFile("gmCreateSpecificResource.lua")
RunSlashCommandsFile("gmForceCommand.lua")
RunSlashCommandsFile("gmForceRank.lua")
RunSlashCommandsFile("gmFsVillage.lua")
RunSlashCommandsFile("gmJediState.lua")
RunSlashCommandsFile("gmRevive.lua")
RunSlashCommandsFile("goto.lua")
RunSlashCommandsFile("grantBadge.lua")
RunSlashCommandsFile("grantPadawanTrialsEligibility.lua")
RunSlashCommandsFile("grantSkill.lua")
RunSlashCommandsFile("grantTitle.lua")
RunSlashCommandsFile("grantZoningRights.lua")
RunSlashCommandsFile("groupChat.lua")
RunSlashCommandsFile("groupSay.lua")
RunSlashCommandsFile("gsay.lua")
RunSlashCommandsFile("gtell.lua")
RunSlashCommandsFile("guild.lua")
RunSlashCommandsFile("guildremove.lua")
RunSlashCommandsFile("guildsay.lua")
RunSlashCommandsFile("guildstatus.lua")
RunSlashCommandsFile("harmful.lua")
RunSlashCommandsFile("harmless.lua")
RunSlashCommandsFile("harvestCorpse.lua")
RunSlashCommandsFile("harvesterActivate.lua")
RunSlashCommandsFile("harvesterDeactivate.lua")
RunSlashCommandsFile("harvesterDiscardHopper.lua")
RunSlashCommandsFile("harvesterGetResourceData.lua")
RunSlashCommandsFile("harvesterHarvest.lua")
RunSlashCommandsFile("harvesterMakeCrate.lua")
RunSlashCommandsFile("harvesterSelectResource.lua")
RunSlashCommandsFile("harvesterTakeSurvey.lua")
RunSlashCommandsFile("hasVeteranReward.lua")
RunSlashCommandsFile("haveconsent.lua")
RunSlashCommandsFile("headShot1.lua")
RunSlashCommandsFile("headShot2.lua")
RunSlashCommandsFile("headShot3.lua")
RunSlashCommandsFile("healActionSelf1.lua")
RunSlashCommandsFile("healActionSelf2.lua")
RunSlashCommandsFile("healActionWoundOther1.lua")
RunSlashCommandsFile("healActionWoundOther2.lua")
RunSlashCommandsFile("healActionWoundSelf1.lua")
RunSlashCommandsFile("healActionWoundSelf2.lua")
RunSlashCommandsFile("healAllOther1.lua")
RunSlashCommandsFile("healAllOther2.lua")
RunSlashCommandsFile("healAllSelf1.lua")
RunSlashCommandsFile("healAllSelf2.lua")
RunSlashCommandsFile("healBattleFatigueOther1.lua")
RunSlashCommandsFile("healBattleFatigueOther2.lua")
RunSlashCommandsFile("healBattleFatigueSelf1.lua")
RunSlashCommandsFile("healBattleFatigueSelf2.lua")
RunSlashCommandsFile("healDamage.lua")
RunSlashCommandsFile("healDroidDamage.lua")
RunSlashCommandsFile("healDroidWound.lua")
RunSlashCommandsFile("healEnhance.lua")
RunSlashCommandsFile("healHealthSelf1.lua")
RunSlashCommandsFile("healHealthSelf2.lua")
RunSlashCommandsFile("healHealthWoundOther1.lua")
RunSlashCommandsFile("healHealthWoundOther2.lua")
RunSlashCommandsFile("healHealthWoundSelf1.lua")
RunSlashCommandsFile("healHealthWoundSelf2.lua")
RunSlashCommandsFile("healMind.lua")
RunSlashCommandsFile("healMindSelf1.lua")
RunSlashCommandsFile("healMindSelf2.lua")
RunSlashCommandsFile("healMindWoundOther1.lua")
RunSlashCommandsFile("healMindWoundOther2.lua")
RunSlashCommandsFile("healMindWoundSelf1.lua")
RunSlashCommandsFile("healMindWoundSelf2.lua")
RunSlashCommandsFile("healPet.lua")
RunSlashCommandsFile("healState.lua")
RunSlashCommandsFile("healStatesOther.lua")
RunSlashCommandsFile("healStatesSelf.lua")
RunSlashCommandsFile("healWound.lua")
RunSlashCommandsFile("healthShot1.lua")
RunSlashCommandsFile("healthShot2.lua")
RunSlashCommandsFile("holoEmote.lua")
RunSlashCommandsFile("imagedesign.lua")
RunSlashCommandsFile("initializeComponent.lua")
RunSlashCommandsFile("innate.lua")
RunSlashCommandsFile("insertItemIntoShipComponentSlot.lua")
RunSlashCommandsFile("installMissionTerminal.lua")
RunSlashCommandsFile("installShipComponent.lua")
RunSlashCommandsFile("insure.lua")
RunSlashCommandsFile("intimidate1.lua")
RunSlashCommandsFile("intimidate2.lua")
RunSlashCommandsFile("intimidationAttack.lua")
RunSlashCommandsFile("invite.lua")
RunSlashCommandsFile("invulnerable.lua")
RunSlashCommandsFile("itemmoveback.lua")
RunSlashCommandsFile("itemmovedown.lua")
RunSlashCommandsFile("itemmoveforward.lua")
RunSlashCommandsFile("itemmoveup.lua")
RunSlashCommandsFile("itemrotateleft.lua")
RunSlashCommandsFile("itemrotateright.lua")
RunSlashCommandsFile("jediMindTrick.lua")
RunSlashCommandsFile("join.lua")
RunSlashCommandsFile("joinGame.lua")
RunSlashCommandsFile("kick.lua")
RunSlashCommandsFile("kill.lua")
RunSlashCommandsFile("killPlayer.lua")
RunSlashCommandsFile("kipUpShot.lua")
RunSlashCommandsFile("kneel.lua")
RunSlashCommandsFile("knockdownAttack.lua")
RunSlashCommandsFile("knockdownFire.lua")
RunSlashCommandsFile("lag.lua")
RunSlashCommandsFile("lastDitch.lua")
RunSlashCommandsFile("launchFirework.lua")
RunSlashCommandsFile("leaveGame.lua")
RunSlashCommandsFile("leaveGroup.lua")
RunSlashCommandsFile("legShot1.lua")
RunSlashCommandsFile("legShot2.lua")
RunSlashCommandsFile("legShot3.lua")
RunSlashCommandsFile("lfg.lua")
RunSlashCommandsFile("listActiveQuests.lua")
RunSlashCommandsFile("listCompletedQuests.lua")
RunSlashCommandsFile("listGuilds.lua")
RunSlashCommandsFile("listen.lua")
RunSlashCommandsFile("logout.lua")
RunSlashCommandsFile("loot.lua")
RunSlashCommandsFile("lootAiCorpse.lua")
RunSlashCommandsFile("lootPlayerCorpse.lua")
RunSlashCommandsFile("lowBlow.lua")
RunSlashCommandsFile("makeLeader.lua")
RunSlashCommandsFile("makeSurvey.lua")
RunSlashCommandsFile("manufacture.lua")
RunSlashCommandsFile("maskscent.lua")
RunSlashCommandsFile("maxCombatAbility.lua")
RunSlashCommandsFile("maxStats.lua")
RunSlashCommandsFile("medicalForage.lua")
RunSlashCommandsFile("meditate.lua")
RunSlashCommandsFile("mediumDisease.lua")
RunSlashCommandsFile("mediumPoison.lua")
RunSlashCommandsFile("melee1hBlindHit1.lua")
RunSlashCommandsFile("melee1hBlindHit2.lua")
RunSlashCommandsFile("melee1hBodyHit1.lua")
RunSlashCommandsFile("melee1hBodyHit2.lua")
RunSlashCommandsFile("melee1hBodyHit3.lua")
RunSlashCommandsFile("melee1hDizzyHit1.lua")
RunSlashCommandsFile("melee1hDizzyHit2.lua")
RunSlashCommandsFile("melee1hHealthHit1.lua")
RunSlashCommandsFile("melee1hHealthHit2.lua")
RunSlashCommandsFile("melee1hHit1.lua")
RunSlashCommandsFile("melee1hHit2.lua")
RunSlashCommandsFile("melee1hHit3.lua")
RunSlashCommandsFile("melee1hLunge1.lua")
RunSlashCommandsFile("melee1hLunge2.lua")
RunSlashCommandsFile("melee1hScatterHit1.lua")
RunSlashCommandsFile("melee1hScatterHit2.lua")
RunSlashCommandsFile("melee1hSpinAttack1.lua")
RunSlashCommandsFile("melee1hSpinAttack2.lua")
RunSlashCommandsFile("melee2hArea1.lua")
RunSlashCommandsFile("melee2hArea2.lua")
RunSlashCommandsFile("melee2hArea3.lua")
RunSlashCommandsFile("melee2hHeadHit1.lua")
RunSlashCommandsFile("melee2hHeadHit2.lua")
RunSlashCommandsFile("melee2hHeadHit3.lua")
RunSlashCommandsFile("melee2hHit1.lua")
RunSlashCommandsFile("melee2hHit2.lua")
RunSlashCommandsFile("melee2hHit3.lua")
RunSlashCommandsFile("melee2hLunge1.lua")
RunSlashCommandsFile("melee2hLunge2.lua")
RunSlashCommandsFile("melee2hMindHit1.lua")
RunSlashCommandsFile("melee2hMindHit2.lua")
RunSlashCommandsFile("melee2hSpinAttack1.lua")
RunSlashCommandsFile("melee2hSpinAttack2.lua")
RunSlashCommandsFile("melee2hSweep1.lua")
RunSlashCommandsFile("melee2hSweep2.lua")
RunSlashCommandsFile("mildDisease.lua")
RunSlashCommandsFile("mildPoison.lua")
RunSlashCommandsFile("mindBlast1.lua")
RunSlashCommandsFile("mindBlast2.lua")
RunSlashCommandsFile("mindShot1.lua")
RunSlashCommandsFile("mindShot2.lua")
RunSlashCommandsFile("minefieldAttack.lua")
RunSlashCommandsFile("money.lua")
RunSlashCommandsFile("mount.lua")
RunSlashCommandsFile("moveFurniture.lua")
RunSlashCommandsFile("multiTargetPistolShot.lua")
RunSlashCommandsFile("multiTargetShot.lua")
RunSlashCommandsFile("nameStructure.lua")
RunSlashCommandsFile("newbieRequestStartingLocations.lua")
RunSlashCommandsFile("newbieSelectStartingLocation.lua")
RunSlashCommandsFile("newbiehelper.lua")
RunSlashCommandsFile("nextCraftingStage.lua")
RunSlashCommandsFile("npc.lua")
RunSlashCommandsFile("npcConversationSelect.lua")
RunSlashCommandsFile("npcConversationStart.lua")
RunSlashCommandsFile("npcConversationStop.lua")
RunSlashCommandsFile("object.lua")
RunSlashCommandsFile("objvar.lua")
RunSlashCommandsFile("openContainer.lua")
RunSlashCommandsFile("overChargeShot1.lua")
RunSlashCommandsFile("overChargeShot2.lua")
RunSlashCommandsFile("overrideActiveMonths.lua")
RunSlashCommandsFile("overridePadawanTrialsEligibility.lua")
RunSlashCommandsFile("paWithdraw.lua")
RunSlashCommandsFile("panicShot.lua")
RunSlashCommandsFile("pauseDance.lua")
RunSlashCommandsFile("pauseMusic.lua")
RunSlashCommandsFile("paymaintenance.lua")
RunSlashCommandsFile("peace.lua")
RunSlashCommandsFile("permissionListModify.lua")
RunSlashCommandsFile("pistolMeleeDefense1.lua")
RunSlashCommandsFile("pistolMeleeDefense2.lua")
RunSlashCommandsFile("placeBattlefieldStructure.lua")
RunSlashCommandsFile("placeStructure.lua")
RunSlashCommandsFile("placeStructureMode.lua")
RunSlashCommandsFile("planet.lua")
RunSlashCommandsFile("planetsay.lua")
RunSlashCommandsFile("planetwarp.lua")
RunSlashCommandsFile("planetwarpTarget.lua")
RunSlashCommandsFile("pointBlankArea1.lua")
RunSlashCommandsFile("pointBlankArea2.lua")
RunSlashCommandsFile("pointBlankSingle1.lua")
RunSlashCommandsFile("pointBlankSingle2.lua")
RunSlashCommandsFile("polearmActionHit1.lua")
RunSlashCommandsFile("polearmActionHit2.lua")
RunSlashCommandsFile("polearmArea1.lua")
RunSlashCommandsFile("polearmArea2.lua")
RunSlashCommandsFile("polearmHit1.lua")
RunSlashCommandsFile("polearmHit2.lua")
RunSlashCommandsFile("polearmHit3.lua")
RunSlashCommandsFile("polearmLegHit1.lua")
RunSlashCommandsFile("polearmLegHit2.lua")
RunSlashCommandsFile("polearmLegHit3.lua")
RunSlashCommandsFile("polearmLunge1.lua")
RunSlashCommandsFile("polearmLunge2.lua")
RunSlashCommandsFile("polearmSpinAttack1.lua")
RunSlashCommandsFile("polearmSpinAttack2.lua")
RunSlashCommandsFile("polearmStun1.lua")
RunSlashCommandsFile("polearmStun2.lua")
RunSlashCommandsFile("polearmSweep1.lua")
RunSlashCommandsFile("polearmSweep2.lua")
RunSlashCommandsFile("postureDownAttack.lua")
RunSlashCommandsFile("postureUpAttack.lua")
RunSlashCommandsFile("powerBoost.lua")
RunSlashCommandsFile("prone.lua")
RunSlashCommandsFile("purchaseReinforcement.lua")
RunSlashCommandsFile("purchaseTicket.lua")
RunSlashCommandsFile("quickHeal.lua")
RunSlashCommandsFile("rally.lua")
RunSlashCommandsFile("reconnectToTransferServer.lua")
RunSlashCommandsFile("recruitSkillTrainer.lua")
RunSlashCommandsFile("regainConsciousness.lua")
RunSlashCommandsFile("regeneration.lua")
RunSlashCommandsFile("registerWithLocation.lua")
RunSlashCommandsFile("reload.lua")
RunSlashCommandsFile("remote.lua")
RunSlashCommandsFile("removeAllowedPlayer.lua")
RunSlashCommandsFile("removeBannedPlayer.lua")
RunSlashCommandsFile("removeFriend.lua")
RunSlashCommandsFile("removeIgnore.lua")
RunSlashCommandsFile("repairBattlefieldStructure.lua")
RunSlashCommandsFile("repairShipComponentInSlot.lua")
RunSlashCommandsFile("report.lua")
RunSlashCommandsFile("requestBadges.lua")
RunSlashCommandsFile("requestBiography.lua")
RunSlashCommandsFile("requestCharacterMatch.lua")
RunSlashCommandsFile("requestCharacterSheetInfo.lua")
RunSlashCommandsFile("requestCoreSample.lua")
RunSlashCommandsFile("requestCraftingSession.lua")
RunSlashCommandsFile("requestDraftSlots.lua")
RunSlashCommandsFile("requestDraftSlotsBatch.lua")
RunSlashCommandsFile("requestManfSchematicSlots.lua")
RunSlashCommandsFile("requestResourceWeights.lua")
RunSlashCommandsFile("requestResourceWeightsBatch.lua")
RunSlashCommandsFile("requestSetStatMigrationData.lua")
RunSlashCommandsFile("requestStatMigrationData.lua")
RunSlashCommandsFile("requestStatMigrationStart.lua")
RunSlashCommandsFile("requestStatMigrationStop.lua")
RunSlashCommandsFile("requestStimpack.lua")
RunSlashCommandsFile("requestSurvey.lua")
RunSlashCommandsFile("requestWaypointAtPosition.lua")
RunSlashCommandsFile("resSampleLoop.lua")
RunSlashCommandsFile("rescue.lua")
RunSlashCommandsFile("resendLoginMessageToAll.lua")
RunSlashCommandsFile("resetJedi.lua")
RunSlashCommandsFile("resource.lua")
RunSlashCommandsFile("resourceContainerSplit.lua")
RunSlashCommandsFile("resourceContainerTransfer.lua")
RunSlashCommandsFile("resourceSetName.lua")
RunSlashCommandsFile("restartConversion.lua")
RunSlashCommandsFile("restartCraftingSession.lua")
RunSlashCommandsFile("retreat.lua")
RunSlashCommandsFile("revivePlayer.lua")
RunSlashCommandsFile("revokeBadge.lua")
RunSlashCommandsFile("revokeSkill.lua")
RunSlashCommandsFile("rolePlay.lua")
RunSlashCommandsFile("rollShot.lua")
RunSlashCommandsFile("rotateFurniture.lua")
RunSlashCommandsFile("saber1hComboHit1.lua")
RunSlashCommandsFile("saber1hComboHit2.lua")
RunSlashCommandsFile("saber1hComboHit3.lua")
RunSlashCommandsFile("saber1hFlurry.lua")
RunSlashCommandsFile("saber1hFlurry2.lua")
RunSlashCommandsFile("saber1hHeadHit1.lua")
RunSlashCommandsFile("saber1hHeadHit2.lua")
RunSlashCommandsFile("saber1hHeadHit3.lua")
RunSlashCommandsFile("saber1hHit1.lua")
RunSlashCommandsFile("saber1hHit2.lua")
RunSlashCommandsFile("saber1hHit3.lua")
RunSlashCommandsFile("saber2hBodyHit1.lua")
RunSlashCommandsFile("saber2hBodyHit2.lua")
RunSlashCommandsFile("saber2hBodyHit3.lua")
RunSlashCommandsFile("saber2hFrenzy.lua")
RunSlashCommandsFile("saber2hHit1.lua")
RunSlashCommandsFile("saber2hHit2.lua")
RunSlashCommandsFile("saber2hHit3.lua")
RunSlashCommandsFile("saber2hPhantom.lua")
RunSlashCommandsFile("saber2hSweep1.lua")
RunSlashCommandsFile("saber2hSweep2.lua")
RunSlashCommandsFile("saber2hSweep3.lua")
RunSlashCommandsFile("saberPolearmDervish.lua")
RunSlashCommandsFile("saberPolearmDervish2.lua")
RunSlashCommandsFile("saberPolearmHit1.lua")
RunSlashCommandsFile("saberPolearmHit2.lua")
RunSlashCommandsFile("saberPolearmHit3.lua")
RunSlashCommandsFile("saberPolearmLegHit1.lua")
RunSlashCommandsFile("saberPolearmLegHit2.lua")
RunSlashCommandsFile("saberPolearmLegHit3.lua")
RunSlashCommandsFile("saberPolearmSpinAttack1.lua")
RunSlashCommandsFile("saberPolearmSpinAttack2.lua")
RunSlashCommandsFile("saberPolearmSpinAttack3.lua")
RunSlashCommandsFile("saberSlash1.lua")
RunSlashCommandsFile("saberSlash2.lua")
RunSlashCommandsFile("saberThrow1.lua")
RunSlashCommandsFile("saberThrow2.lua")
RunSlashCommandsFile("saberThrow3.lua")
RunSlashCommandsFile("sample.lua")
RunSlashCommandsFile("sampleDNA.lua")
RunSlashCommandsFile("scatterShot1.lua")
RunSlashCommandsFile("scatterShot2.lua")
RunSlashCommandsFile("script.lua")
RunSlashCommandsFile("seGoggles.lua")
RunSlashCommandsFile("searchCorpse.lua")
RunSlashCommandsFile("secretSpawnSpam.lua")
RunSlashCommandsFile("selectDraftSchematic.lua")
RunSlashCommandsFile("server.lua")
RunSlashCommandsFile("serverDestroyObject.lua")
RunSlashCommandsFile("serverSysGroup.lua")
RunSlashCommandsFile("setBiography.lua")
RunSlashCommandsFile("setBiographyAdmin.lua")
RunSlashCommandsFile("setBoostmorale.lua")
RunSlashCommandsFile("setCharge.lua")
RunSlashCommandsFile("setCurrentSkillTitle.lua")
RunSlashCommandsFile("setExperience.lua")
RunSlashCommandsFile("setFaction.lua")
RunSlashCommandsFile("setFactionStanding.lua")
RunSlashCommandsFile("setFirstName.lua")
RunSlashCommandsFile("setFormup.lua")
RunSlashCommandsFile("setGodMode.lua")
RunSlashCommandsFile("setHue.lua")
RunSlashCommandsFile("setIntimidate.lua")
RunSlashCommandsFile("setLastName.lua")
RunSlashCommandsFile("setLoginMessage.lua")
RunSlashCommandsFile("setLoginTitle.lua")
RunSlashCommandsFile("setMatchMakingCharacterId.lua")
RunSlashCommandsFile("setMatchMakingPersonalId.lua")
RunSlashCommandsFile("setMaximumSpawnTime.lua")
RunSlashCommandsFile("setMinimumSpawnTime.lua")
RunSlashCommandsFile("setMood.lua")
RunSlashCommandsFile("setMoodInternal.lua")
RunSlashCommandsFile("setName.lua")
RunSlashCommandsFile("setOwner.lua")
RunSlashCommandsFile("setPerformanceBuffTarget.lua")
RunSlashCommandsFile("setPlanetLimit.lua")
RunSlashCommandsFile("setPlayerAppearance.lua")
RunSlashCommandsFile("setPlayerState.lua")
RunSlashCommandsFile("setPublicState.lua")
RunSlashCommandsFile("setRank.lua")
RunSlashCommandsFile("setRetreat.lua")
RunSlashCommandsFile("setSpeed.lua")
RunSlashCommandsFile("setSpokenLanguage.lua")
RunSlashCommandsFile("setSteadyaim.lua")
RunSlashCommandsFile("setTEF.lua")
RunSlashCommandsFile("setVeteranReward.lua")
RunSlashCommandsFile("setWarcry.lua")
RunSlashCommandsFile("setWaypointActiveStatus.lua")
RunSlashCommandsFile("setWaypointName.lua")
RunSlashCommandsFile("setpermission.lua")
RunSlashCommandsFile("setprivacy.lua")
RunSlashCommandsFile("showCouncilRank.lua")
RunSlashCommandsFile("showDanceVisuals.lua")
RunSlashCommandsFile("showFactionInformation.lua")
RunSlashCommandsFile("showMusicianVisuals.lua")
RunSlashCommandsFile("showPvPRating.lua")
RunSlashCommandsFile("showSpawnRegion.lua")
RunSlashCommandsFile("sitServer.lua")
RunSlashCommandsFile("skill.lua")
RunSlashCommandsFile("smokebomb.lua")
RunSlashCommandsFile("sniperShot.lua")
RunSlashCommandsFile("snoop.lua")
RunSlashCommandsFile("social.lua")
RunSlashCommandsFile("socialInternal.lua")
RunSlashCommandsFile("spatialChat.lua")
RunSlashCommandsFile("spatialChatInternal.lua")
RunSlashCommandsFile("spawnStatus.lua")
RunSlashCommandsFile("splitCreditsWithGroup.lua")
RunSlashCommandsFile("spotlight.lua")
RunSlashCommandsFile("sprayShot.lua")
RunSlashCommandsFile("stand.lua")
RunSlashCommandsFile("startBand.lua")
RunSlashCommandsFile("startCitySpawner.lua")
RunSlashCommandsFile("startDance.lua")
RunSlashCommandsFile("startMusic.lua")
RunSlashCommandsFile("startSpawner.lua")
RunSlashCommandsFile("startTargetSpawner.lua")
RunSlashCommandsFile("startTraceLogging.lua")
RunSlashCommandsFile("startleShot1.lua")
RunSlashCommandsFile("startleShot2.lua")
RunSlashCommandsFile("stat.lua")
RunSlashCommandsFile("steadyaim.lua")
RunSlashCommandsFile("stopBand.lua")
RunSlashCommandsFile("stopBleeding.lua")
RunSlashCommandsFile("stopCitySpawner.lua")
RunSlashCommandsFile("stopCraftingSession.lua")
RunSlashCommandsFile("stopDance.lua")
RunSlashCommandsFile("stopMusic.lua")
RunSlashCommandsFile("stopSpawner.lua")
RunSlashCommandsFile("stopTargetSpawner.lua")
RunSlashCommandsFile("stopTraceLogging.lua")
RunSlashCommandsFile("stoplistening.lua")
RunSlashCommandsFile("stoppingShot.lua")
RunSlashCommandsFile("stopwatching.lua")
RunSlashCommandsFile("strafeShot1.lua")
RunSlashCommandsFile("strafeShot2.lua")
RunSlashCommandsFile("strongDisease.lua")
RunSlashCommandsFile("strongPoison.lua")
RunSlashCommandsFile("structurestatus.lua")
RunSlashCommandsFile("stunAttack.lua")
RunSlashCommandsFile("suppressionFire1.lua")
RunSlashCommandsFile("suppressionFire2.lua")
RunSlashCommandsFile("surpriseShot.lua")
RunSlashCommandsFile("surrenderSkill.lua")
RunSlashCommandsFile("survey.lua")
RunSlashCommandsFile("synchronizedUiListen.lua")
RunSlashCommandsFile("synchronizedUiStopListening.lua")
RunSlashCommandsFile("systemMessage.lua")
RunSlashCommandsFile("takeCover.lua")
RunSlashCommandsFile("tame.lua")
RunSlashCommandsFile("target.lua")
RunSlashCommandsFile("taunt.lua")
RunSlashCommandsFile("teach.lua")
RunSlashCommandsFile("teleport.lua")
RunSlashCommandsFile("teleportTarget.lua")
RunSlashCommandsFile("teleportTo.lua")
RunSlashCommandsFile("tellpet.lua")
RunSlashCommandsFile("tendDamage.lua")
RunSlashCommandsFile("tendDamageTool.lua")
RunSlashCommandsFile("tendWound.lua")
RunSlashCommandsFile("tendWoundsTool.lua")
RunSlashCommandsFile("threatenShot.lua")
RunSlashCommandsFile("throwGrenade.lua")
RunSlashCommandsFile("throwTrap.lua")
RunSlashCommandsFile("tip.lua")
RunSlashCommandsFile("toggleAwayFromKeyBoard.lua")
RunSlashCommandsFile("toggleCombatTaunts.lua")
RunSlashCommandsFile("toggleDisplayingFactionRank.lua")
RunSlashCommandsFile("torsoShot.lua")
RunSlashCommandsFile("totalHealOther.lua")
RunSlashCommandsFile("totalHealSelf.lua")
RunSlashCommandsFile("transferForce.lua")
RunSlashCommandsFile("transferItem.lua")
RunSlashCommandsFile("transferItemArmor.lua")
RunSlashCommandsFile("transferItemMisc.lua")
RunSlashCommandsFile("transferItemWeapon.lua")
RunSlashCommandsFile("transferstructure.lua")
RunSlashCommandsFile("tumbleToKneeling.lua")
RunSlashCommandsFile("tumbleToProne.lua")
RunSlashCommandsFile("tumbleToStanding.lua")
RunSlashCommandsFile("turretFire.lua")
RunSlashCommandsFile("turretFireManual.lua")
RunSlashCommandsFile("unCityBan.lua")
RunSlashCommandsFile("unarmedBlind1.lua")
RunSlashCommandsFile("unarmedBodyHit1.lua")
RunSlashCommandsFile("unarmedCombo1.lua")
RunSlashCommandsFile("unarmedCombo2.lua")
RunSlashCommandsFile("unarmedDizzy1.lua")
RunSlashCommandsFile("unarmedHeadHit1.lua")
RunSlashCommandsFile("unarmedHit1.lua")
RunSlashCommandsFile("unarmedHit2.lua")
RunSlashCommandsFile("unarmedHit3.lua")
RunSlashCommandsFile("unarmedKnockdown1.lua")
RunSlashCommandsFile("unarmedKnockdown2.lua")
RunSlashCommandsFile("unarmedLegHit1.lua")
RunSlashCommandsFile("unarmedLunge1.lua")
RunSlashCommandsFile("unarmedLunge2.lua")
RunSlashCommandsFile("unarmedSpinAttack1.lua")
RunSlashCommandsFile("unarmedSpinAttack2.lua")
RunSlashCommandsFile("unarmedStun1.lua")
RunSlashCommandsFile("unassociateDroidControlDeviceWithShip.lua")
RunSlashCommandsFile("unconsent.lua")
RunSlashCommandsFile("underHandShot.lua")
RunSlashCommandsFile("unfreezePlayer.lua")
RunSlashCommandsFile("uninstallShipComponent.lua")
RunSlashCommandsFile("uninvite.lua")
RunSlashCommandsFile("unsnoop.lua")
RunSlashCommandsFile("useReconDrone.lua")
RunSlashCommandsFile("useSkillBuff.lua")
RunSlashCommandsFile("ventriloquism.lua")
RunSlashCommandsFile("vertFurniture.lua")
RunSlashCommandsFile("vitalize.lua")
RunSlashCommandsFile("volleyFire.lua")
RunSlashCommandsFile("volleyFireAttack.lua")
RunSlashCommandsFile("warcry1.lua")
RunSlashCommandsFile("warcry2.lua")
RunSlashCommandsFile("warningShot.lua")
RunSlashCommandsFile("watch.lua")
RunSlashCommandsFile("wildShot1.lua")
RunSlashCommandsFile("wildShot2.lua")
RunSlashCommandsFile("wipeItems.lua")
RunSlashCommandsFile("wookieeRoar.lua")
RunSlashCommandsFile("eject.lua")
RunSlashCommandsFile("waypoint.lua")
RunSlashCommandsFile("unstick.lua")
RunSlashCommandsFile("launchIntoSpace.lua")
RunSlashCommandsFile("createVendor.lua")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/draft_schematic/droid/component/chassis_droid_surgical.lua | 2 | 3761 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_droid_component_chassis_droid_surgical = object_draft_schematic_droid_component_shared_chassis_droid_surgical:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Surgical ADV Droid Chassis",
craftingToolTab = 32, -- (See DraftSchemticImplementation.h)
complexity = 25,
size = 8,
xpType = "crafting_droid_general",
xp = 240,
assemblySkill = "droid_assembly",
experimentingSkill = "droid_experimentation",
customizationSkill = "droid_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n", "craft_droid_ingredients_n"},
ingredientTitleNames = {"frame", "leg_struts", "body_sheath", "hydraulic_system_pumps", "droid_brain", "manipulator_arm", "sensor_suite"},
ingredientSlotType = {1, 0, 0, 0, 1, 1, 1},
resourceTypes = {"object/tangible/component/droid/shared_advanced_droid_frame.iff", "steel", "fiberplast", "metal_nonferrous", "object/tangible/component/droid/shared_droid_brain_advanced.iff", "object/tangible/component/droid/shared_manipulator_arm.iff", "object/tangible/component/droid/shared_sensor_package_droid.iff"},
resourceQuantities = {1, 60, 30, 30, 1, 1, 1},
contribution = {100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/component/droid/surgical_droid_chassis.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_droid_component_chassis_droid_surgical, "object/draft_schematic/droid/component/chassis_droid_surgical.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/Zone.lua | 2 | 6948 | -----------------------------------
--
-- Zone: Alzadaal_Undersea_Ruins (72)
--
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ruins/TextIDs");
require("scripts/globals/missions");
require("scripts/globals/besieged");
require("scripts/globals/settings");
require("scripts/globals/titles");
-----------------------------------
function onInitialize(zone)
zone:registerRegion(1, -329, -2, 483,-323, 0, 489); -- map 1 SE porter
zone:registerRegion(2, -477, -2, 631,-471, 0, 636); -- map 1 NW porter
zone:registerRegion(3, 110, -2,-556, 116, 0,-551); -- map 2 west porter (white)
zone:registerRegion(4, 30, -2, 750, 36, 0, 757); -- map 3 west porter (blue)
zone:registerRegion(5, 83, -2, 750, 90, 0, 757); -- map 3 east porter (white)
zone:registerRegion(6, -329, -2, 150,-323, 0, 156); -- map 4 porter (white)
zone:registerRegion(7, -208, -2,-556,-202, 0,-551); -- map 5 porter (white)
zone:registerRegion(8, 323, -2, 591, 329, 0, 598); -- map 6 east porter (white)
zone:registerRegion(9, 270, -2, 591, 276, 0, 598); -- map 6 west porter (blue)
zone:registerRegion(10, 442, -2,-557, 450, 0,-550); -- map 7 porter (white)
zone:registerRegion(11, -63,-10, 56, -57,-8, 62); -- map 8 NW/Arrapago porter
zone:registerRegion(12, 17, -6, 56, 23,-4, 62); -- map 8 NE/Silver Sea/Khim porter
zone:registerRegion(13, -63,-10, -23, -57,-8, -16); -- map 8 SW/Zhayolm/bird camp porter
zone:registerRegion(14, 17, -6, -23, 23,-4, -16); -- map 8 SE/Bhaflau Porter
zone:registerRegion(15,-556, -2, -77,-550, 0, -71); -- map 9 east porter (white)
zone:registerRegion(16,-609, -2, -77,-603, 0, -71); -- map 9 west porter (blue)
zone:registerRegion(17, 643, -2,-289, 649, 0,-283); -- map 10 east porter (blue)
zone:registerRegion(18, 590, -2,-289, 597, 0,-283); -- map 10 west porter (white)
zone:registerRegion(19, 603, -2, 522, 610, 0, 529); -- map 11 east porter (blue)
zone:registerRegion(20, 550, -2, 522, 557, 0, 529); -- map 11 west porter (white)
zone:registerRegion(21,-556, -2,-489,-550, 0,-483); -- map 12 east porter (white)
zone:registerRegion(22,-610, -2,-489,-603, 0,-483); -- map 12 west porter (blue)
zone:registerRegion(23,382, -1,-582,399, 1,-572); -- mission 9 TOAU
end;
function onZoneIn(player,prevZone)
local cs = -1;
if (player:getXPos() == 0 and player:getYPos() == 0 and player:getZPos() == 0) then
player:setPos(222.798, -0.5, 19.872, 0);
end
if (player:getCurrentMission(TOAU) == PATH_OF_DARKNESS and player:getVar("AhtUrganStatus") == 2) then
cs = 7;
elseif (player:getCurrentMission(TOAU) == NASHMEIRAS_PLEA and player:getVar("AhtUrganStatus") == 2) then
cs = 10;
end
return cs;
end;
function afterZoneIn(player)
player:entityVisualPacket("1pa1");
player:entityVisualPacket("1pb1");
player:entityVisualPacket("2pb1");
end;
function onRegionEnter(player,region)
switch (region:GetRegionID()): caseof
{
[1] = function (x)
player:startEvent(204);
end,
[2] = function (x)
player:startEvent(205);
end,
[3] = function (x)
player:startEvent(201);
end,
[4] = function (x)
player:startEvent(203);
end,
[5] = function (x)
player:startEvent(202);
end,
[6] = function (x)
player:startEvent(206);
end,
[7] = function (x)
player:startEvent(211);
end,
[8] = function (x)
player:startEvent(200);
end,
[9] = function (x)
player:startEvent(201);
end,
[10] = function (x)
player:startEvent(213);
end,
[11] = function (x)
player:startEvent(218);
end,
[12] = function (x)
player:startEvent(221);
end,
[13] = function (x)
player:startEvent(219);
end,
[14] = function (x)
player:startEvent(220);
end,
[15] = function (x)
player:startEvent(207);
end,
[16] = function (x)
player:startEvent(208);
end,
[17] = function (x)
player:startEvent(214);
end,
[18] = function (x)
player:startEvent(207);
end,
[19] = function (x)
player:startEvent(202);
end,
[20] = function (x)
player:startEvent(207);
end,
[21] = function (x)
player:startEvent(207);
end,
[22] = function (x)
player:startEvent(210);
end,
[23] = function (x)
if (player:getCurrentMission(TOAU) == UNDERSEA_SCOUTING) then
player:startEvent(1, getMercenaryRank(player));
end
end,
}
end;
function onRegionLeave(player,region)
end;
function onEventUpdate(player,csid,option)
-- printf("UPDATE CSID: %u",csid);
-- printf("UPDATE RESULT: %u",option);
if (csid == 1 and option == 10) then -- start
player:updateEvent(0,0,0,0,0,0,0,0);
elseif (csid == 1 and option == 1) then -- windows
player:setLocalVar("UnderseaScouting", player:getLocalVar("UnderseaScouting")+1);
player:updateEvent(player:getLocalVar("UnderseaScouting"),0,0,0,0,0,0,0);
elseif (csid == 1 and option == 2) then -- pillars
player:setLocalVar("UnderseaScouting", player:getLocalVar("UnderseaScouting")+2);
player:updateEvent(player:getLocalVar("UnderseaScouting"),0,0,0,0,0,0,0);
elseif (csid == 1 and option == 3) then -- floor
player:setLocalVar("UnderseaScouting", player:getLocalVar("UnderseaScouting")+4);
player:updateEvent(player:getLocalVar("UnderseaScouting"),0,0,0,0,0,0,0);
end
end;
function onEventFinish(player,csid,option)
-- printf("FINISH CSID: %u",csid);
-- printf("FINISH RESULT: %u",option);
if (csid == 1) then
player:addKeyItem(dsp.ki.ASTRAL_COMPASS);
player:completeMission(TOAU,UNDERSEA_SCOUTING);
player:addMission(TOAU,ASTRAL_WAVES);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.ASTRAL_COMPASS);
elseif (csid == 7) then
player:completeMission(TOAU,PATH_OF_DARKNESS);
player:setTitle(dsp.title.NAJAS_COMRADEINARMS);
player:setVar("AhtUrganStatus",0);
player:addMission(TOAU,FANGS_OF_THE_LION);
elseif (csid == 10) then
player:completeMission(TOAU,NASHMEIRAS_PLEA);
player:setTitle(dsp.title.PREVENTER_OF_RAGNAROK);
player:setVar("AhtUrganStatus",0);
player:addMission(TOAU,RAGNAROK);
elseif (csid == 116) then -- enter instancedd nyzul island
player:setPos(0,0,0,0,77);
end
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/setWaypointActiveStatus.lua | 4 | 2162 | --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
SetWaypointActiveStatusCommand = {
name = "setwaypointactivestatus",
}
AddCommand(SetWaypointActiveStatusCommand)
| lgpl-3.0 |
upsoft/avbot | extension/luascript/libs/luascript/seventhsea.lua | 3 | 2584 | --7th sea投骰
--格式:.7 5k3+1
require("rex_pcre")
n=1
table.insert(main_help_table,".7 (dp)(k保留)(+加值) (理由) 7海投骰")
function seventhsea(msg,msg_time,buddy_name,buddy_num,qun_name,qun_num)
--entrance
local rex="^.7\\s(\\d*)(?:k(\\d*))?(?:\\+(\\d*))?(?:\\s(.*))?$"
dice,hold,addup,reason=rex_pcre.match(msg,rex,1,"i")
if (not dice) then return end
--init
dice=tonumber(dice)
if (hold) then
hold=tonumber(hold)
else
hold=dice
end
if (addup) then
addup=tonumber(addup)
else
addup=0
end
if reason==false then reason="" end
--处理保留部分
if hold>10 or hold>dice then say("保留数需要比dp小且小于10",qun_num,buddy_num) return end
--处理dp部分,根据7海规则,大于10的每个先算进保留里
if dice>10 then
hold=hold+dice-10
dice=10
--比10k10还大就放加值里
if hold>10 then
addup=addup+(hold-10)*10
hold=10
end
end
--proccess done
--random init
math.randomseed(os.time()+n)
math.random()
if n<10000 then n=n+1 else n=1 end
--begin throw
throw_result_table=seven_throw(dice)
--end throw
--process result
taked_result,taked_result_table=seven_take(throw_result_table,hold)
msg=buddy_name.."在"..msg_time.."进行"..reason.."检定:\n"
..dice.."K"..hold.."+"..addup..":("..seven_process_result(throw_result_table)..")->("
..seven_process_result(taked_result_table)..")="..taked_result.."+"..addup.."="..(taked_result+addup)
for i=1,string.len(msg),700 do
say(string.sub(msg,i,i+699),qun_num,buddy_num)
end
result=nil
end
function seven_process_result(r)
s=""
for _time,t_r in ipairs(r) do
if(_time>1) then
s=s..","
end
s=s..t_r
end
return s
end
function seven_take(result_table,hold)
table.sort(result_table, function(a,b) if a>b then return true else return false end end)
this_result_table={}
this_result=0
for i=1,hold do
--print(i,this_result,result_table[i])
this_result_table[i]=result_table[i]
this_result=this_result+result_table[i]
end
return this_result,this_result_table
end
function seven_throw(dice)
r={}
for i=1,dice do
local total_throw=0
a=true
while a do
local this_throw=math.random(1,10)
n=n+1
if this_throw==10 then
a=true
else
a=false
end
total_throw=total_throw+this_throw
end
--print(total_throw)
table.insert(r,total_throw)
end
return r
end
function say(msg,qun_num,buddy_num)
if qun_num==nil then
say_buddy(msg,buddy_num)
else
say_qun(msg,qun_num)
end
end
| agpl-3.0 |
eraffxi/darkstar | scripts/zones/Rolanberry_Fields/npcs/Cavernous_Maw.lua | 2 | 2558 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Cavernous Maw
-- !pos -198 8 361 110
-- Teleports Players to Rolanberry Fields [S]
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/teleports");
require("scripts/globals/missions");
require("scripts/globals/campaign");
require("scripts/zones/Rolanberry_Fields/TextIDs");
require("scripts/globals/titles");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
if (ENABLE_WOTG == 1 and player:hasKeyItem(dsp.ki.PURE_WHITE_FEATHER) == false) then
player:startEvent(500,1);
elseif (ENABLE_WOTG == 1 and hasMawActivated(player,1)) then
if (player:getCurrentMission(WOTG) == BACK_TO_THE_BEGINNING and
(player:getQuestStatus(CRYSTAL_WAR, CLAWS_OF_THE_GRIFFON) == QUEST_COMPLETED or
player:getQuestStatus(CRYSTAL_WAR, THE_TIGRESS_STRIKES) == QUEST_COMPLETED or
player:getQuestStatus(CRYSTAL_WAR, FIRES_OF_DISCONTENT) == QUEST_COMPLETED)) then
player:startEvent(501);
else
player:startEvent(904);
end
else
player:messageSpecial(NOTHING_HAPPENS);
end
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 500) then
local r = math.random(1,3);
player:addKeyItem(dsp.ki.PURE_WHITE_FEATHER);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.PURE_WHITE_FEATHER);
player:completeMission(WOTG,CAVERNOUS_MAWS);
player:addMission(WOTG,BACK_TO_THE_BEGINNING);
if (r == 1) then
player:addNationTeleport(MAW,1);
dsp.teleport.toMaw(player,1); -- go to Batallia_Downs[S]
elseif (r == 2) then
player:addNationTeleport(MAW,2);
dsp.teleport.toMaw(player,3); -- go to Rolanberry_Fields_[S]
elseif (r == 3) then
player:addNationTeleport(MAW,4);
dsp.teleport.toMaw(player,5); -- go to Sauromugue_Champaign_[S]
end;
elseif (csid == 904 and option == 1) then
dsp.teleport.toMaw(player,3); -- go to Rolanberry_Fields_[S]
elseif (csid == 501) then
player:completeMission(WOTG, BACK_TO_THE_BEGINNING);
player:addMission(WOTG, CAIT_SITH);
player:addTitle(dsp.title.CAIT_SITHS_ASSISTANT);
dsp.teleport.toMaw(player,3);
end;
end; | gpl-3.0 |
widelands/widelands | data/tribes/initialization/barbarians/starting_conditions/discovery.lua | 1 | 1639 | -- =======================================================================
-- Discovery starting conditions for Barbarians
-- =======================================================================
include "scripting/starting_conditions.lua"
push_textdomain("tribes")
init = {
-- TRANSLATORS: This is the name of a starting condition
descname = _("Discovery"),
-- TRANSLATORS: This is the tooltip for the "Discovery" starting condition
tooltip = _("Start the game with three ships on the ocean and only a handful of supplies"),
map_tags = {"seafaring"},
incompatible_wc = {"scripting/win_conditions/hq_hunter.lua"},
uses_map_starting_position = false,
func = function(player, shared_in_start)
local map = wl.Game().map
local sf = map.player_slots[player.number].starting_field
if shared_in_start then
sf = shared_in_start
else
player:allow_workers("all")
end
launch_expeditions(player, {
{
log = 7,
granite = 1,
barbarians_lumberjack = 3,
barbarians_ranger = 2,
barbarians_soldier = 1,
},
{
granite = 1,
blackwood = 5,
grout = 3,
barbarians_stonemason = 2,
barbarians_gardener = 1,
barbarians_soldier = 1,
},
{
grout = 1,
iron = 2,
barbarians_soldier = 1,
barbarians_geologist = 1,
barbarians_miner = 2,
barbarians_smelter = 2,
barbarians_blacksmith = 1,
barbarians_innkeeper = 2,
barbarians_fisher = 1,
},
})
end
}
pop_textdomain()
return init
| gpl-2.0 |
kidaa/Awakening-Core3 | bin/scripts/object/building/poi/naboo_gungawar_large1.lua | 1 | 2224 | --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_gungawar_large1 = object_building_poi_shared_naboo_gungawar_large1:new {
}
ObjectTemplates:addTemplate(object_building_poi_naboo_gungawar_large1, "object/building/poi/naboo_gungawar_large1.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/particle/particle_newbie_bomb_debris.lua | 3 | 2260 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_particle_particle_newbie_bomb_debris = object_static_particle_shared_particle_newbie_bomb_debris:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_newbie_bomb_debris, "object/static/particle/particle_newbie_bomb_debris.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/wearables/gloves/serverobjects.lua | 3 | 2677 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/wearables/gloves/gloves_corsec.lua")
includeFile("tangible/wearables/gloves/gloves_s02.lua")
includeFile("tangible/wearables/gloves/gloves_s03.lua")
includeFile("tangible/wearables/gloves/gloves_s06.lua")
includeFile("tangible/wearables/gloves/gloves_s07.lua")
includeFile("tangible/wearables/gloves/gloves_s10.lua")
includeFile("tangible/wearables/gloves/gloves_s11.lua")
includeFile("tangible/wearables/gloves/gloves_s12.lua")
includeFile("tangible/wearables/gloves/gloves_s13.lua")
includeFile("tangible/wearables/gloves/gloves_s14.lua")
includeFile("tangible/wearables/gloves/gloves_tusken_raider.lua")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/loot/items/wearables/ithorian/ith_bodysuit_s03.lua | 4 | 1294 | ith_bodysuit_s03 = {
-- Ithorian Tight Fit Jumpsuit
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/wearables/ithorian/ith_bodysuit_s03.iff",
craftingValues = {},
skillMods = {},
customizationStringNames = {"/private/index_color_1","/private/index_color_2"},
customizationValues = {
{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119},
{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119}
},
junkDealerTypeNeeded = JUNKCLOTHESANDJEWELLERY,
junkMinValue = 50,
junkMaxValue = 100
}
addLootItemTemplate("ith_bodysuit_s03", ith_bodysuit_s03) | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/building/naboo/serverobjects.lua | 3 | 4749 | --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("building/naboo/association_hall_civilian_naboo.lua")
includeFile("building/naboo/bank_naboo.lua")
includeFile("building/naboo/bubble_naboo_large_style_1.lua")
includeFile("building/naboo/bubble_naboo_medium_style_1.lua")
includeFile("building/naboo/bubble_naboo_medium_style_2.lua")
includeFile("building/naboo/bubble_naboo_small_style_1.lua")
includeFile("building/naboo/cantina_naboo.lua")
includeFile("building/naboo/capitol_naboo_theed.lua")
includeFile("building/naboo/cloning_facility_naboo.lua")
includeFile("building/naboo/emperors_retreat.lua")
includeFile("building/naboo/filler_building_naboo_style_10.lua")
includeFile("building/naboo/filler_building_naboo_style_11.lua")
includeFile("building/naboo/filler_building_naboo_style_2.lua")
includeFile("building/naboo/filler_building_naboo_style_3.lua")
includeFile("building/naboo/filler_building_naboo_style_4.lua")
includeFile("building/naboo/filler_building_naboo_style_5.lua")
includeFile("building/naboo/filler_building_naboo_style_6.lua")
includeFile("building/naboo/filler_building_naboo_style_8.lua")
includeFile("building/naboo/filler_building_naboo_style_9.lua")
includeFile("building/naboo/filler_nboo_bldg_32x16_style_01.lua")
includeFile("building/naboo/filler_nboo_bldg_32x16_style_02.lua")
includeFile("building/naboo/filler_nboo_bldg_64x32_s02.lua")
includeFile("building/naboo/filler_nboo_bldg_64x32_style_01.lua")
includeFile("building/naboo/guild_combat_naboo_style_01.lua")
includeFile("building/naboo/guild_commerce_naboo_style_01.lua")
includeFile("building/naboo/guild_theater_naboo_s01.lua")
includeFile("building/naboo/guild_university_naboo_style_01.lua")
includeFile("building/naboo/hangar_naboo_theed.lua")
includeFile("building/naboo/hospital_naboo.lua")
includeFile("building/naboo/hospital_naboo_s02.lua")
includeFile("building/naboo/hotel_naboo_theed.lua")
includeFile("building/naboo/housing_naboo_style_1.lua")
includeFile("building/naboo/housing_naboo_style_3.lua")
includeFile("building/naboo/merchant_tent_naboo_s01.lua")
includeFile("building/naboo/palace_naboo_theed.lua")
includeFile("building/naboo/parking_garage_naboo_style_1.lua")
includeFile("building/naboo/ply_nboo_house_lg_s01_fp1.lua")
includeFile("building/naboo/ply_nboo_house_m_s01_fp1.lua")
includeFile("building/naboo/ply_nboo_house_m_s02_fp1.lua")
includeFile("building/naboo/ply_nboo_house_s_s01_fp1.lua")
includeFile("building/naboo/ply_nboo_house_s_s02_fp1.lua")
includeFile("building/naboo/power_generator_naboo_theed.lua")
includeFile("building/naboo/salon_corellia.lua")
includeFile("building/naboo/salon_naboo.lua")
includeFile("building/naboo/shuttleport_naboo.lua")
includeFile("building/naboo/starport_naboo.lua")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/particle/pt_lok_volcano_smoke.lua | 3 | 2232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_particle_pt_lok_volcano_smoke = object_static_particle_shared_pt_lok_volcano_smoke:new {
}
ObjectTemplates:addTemplate(object_static_particle_pt_lok_volcano_smoke, "object/static/particle/pt_lok_volcano_smoke.iff")
| lgpl-3.0 |
palmettos/cnLuCI | applications/luci-splash/luasrc/model/cbi/splash/splash.lua | 52 | 3212 | --[[
LuCI - Lua Configuration Interface
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
]]--
require("luci.model.uci")
m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks."))
s = m:section(NamedSection, "general", "core", translate("General"))
s.addremove = false
s:option(Value, "leasetime", translate("Clearance time"), translate("Clients that have accepted the splash are allowed to use the network for that many hours."))
local redir = s:option(Value, "redirect_url", translate("Redirect target"), translate("Clients are redirected to this page after they have accepted the splash. If this is left empty they are redirected to the page they had requested."))
redir.rmempty = true
s:option(Value, "limit_up", translate("Upload limit"), translate("Clients upload speed is limited to this value (kbyte/s)"))
s:option(Value, "limit_down", translate("Download limit"), translate("Clients download speed is limited to this value (kbyte/s)"))
s:option(DummyValue, "_tmp", "",
translate("Bandwidth limit for clients is only activated when both up- and download limit are set. " ..
"Use a value of 0 here to completely disable this limitation. Whitelisted clients are not limited."))
s = m:section(TypedSection, "iface", translate("Interfaces"), translate("Interfaces that are used for Splash."))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
local uci = luci.model.uci.cursor()
zone = s:option(ListValue, "zone", translate("Firewall zone"),
translate("Splash rules are integrated in this firewall zone"))
uci:foreach("firewall", "zone",
function (section)
zone:value(section.name)
end)
iface = s:option(ListValue, "network", translate("Network"),
translate("Intercept client traffic on this Interface"))
uci:foreach("network", "interface",
function (section)
if section[".name"] ~= "loopback" then
iface:value(section[".name"])
end
end)
uci:foreach("network", "alias",
function (section)
iface:value(section[".name"])
end)
s = m:section(TypedSection, "whitelist", translate("Whitelist"),
translate("MAC addresses of whitelisted clients. These do not need to accept the splash and are not bandwidth limited."))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
s:option(Value, "mac", translate ("MAC Address"))
s = m:section(TypedSection, "blacklist", translate("Blacklist"),
translate("MAC addresses in this list are blocked."))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
s:option(Value, "mac", translate ("MAC Address"))
s = m:section(TypedSection, "subnet", translate("Allowed hosts/subnets"),
translate("Destination hosts and networks that are excluded from splashing, i.e. they are always allowed."))
s.template = "cbi/tblsection"
s.addremove = true
s.anonymous = true
s:option(Value, "ipaddr", translate("IP Address"))
s:option(Value, "netmask", translate("Netmask"), translate("optional when using host addresses")).rmempty = true
return m
| apache-2.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/wookieeRoar.lua | 3 | 2661 | --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
WookieeRoarCommand = {
name = "wookieeroar",
damageMultiplier = 0,
speedMultiplier = 1,
healthCostMultiplier = 0,
actionCostMultiplier = 0,
mindCostMultiplier = 0,
coneAngle = 90,
coneAction = true,
accuracySkillMod = "intimidate",
stateEffects = {
StateEffect(
INTIMIDATE_EFFECT,
{},
{ "intimidate_defense", "resistance_states" },
{ "jedi_state_defense" },
100,
0,
60
)
},
combatSpam = "intim",
animationCRC = hashCode("intimidate"),
effectString = "clienteffect/combat_special_attacker_intimidate.cef",
range = 15,
poolsToDamage = 0
}
AddCommand(WookieeRoarCommand)
| lgpl-3.0 |
roshan/thrift | lib/lua/TSocket.lua | 113 | 2996 | ---- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you 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
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.
--
require 'TTransport'
require 'libluasocket'
-- TSocketBase
TSocketBase = TTransportBase:new{
__type = 'TSocketBase',
timeout = 1000,
host = 'localhost',
port = 9090,
handle
}
function TSocketBase:close()
if self.handle then
self.handle:destroy()
self.handle = nil
end
end
-- Returns a table with the fields host and port
function TSocketBase:getSocketInfo()
if self.handle then
return self.handle:getsockinfo()
end
terror(TTransportException:new{errorCode = TTransportException.NOT_OPEN})
end
function TSocketBase:setTimeout(timeout)
if timeout and ttype(timeout) == 'number' then
if self.handle then
self.handle:settimeout(timeout)
end
self.timeout = timeout
end
end
-- TSocket
TSocket = TSocketBase:new{
__type = 'TSocket',
host = 'localhost',
port = 9090
}
function TSocket:isOpen()
if self.handle then
return true
end
return false
end
function TSocket:open()
if self.handle then
self:close()
end
-- Create local handle
local sock, err = luasocket.create_and_connect(
self.host, self.port, self.timeout)
if err == nil then
self.handle = sock
end
if err then
terror(TTransportException:new{
message = 'Could not connect to ' .. self.host .. ':' .. self.port
.. ' (' .. err .. ')'
})
end
end
function TSocket:read(len)
local buf = self.handle:receive(self.handle, len)
if not buf or string.len(buf) ~= len then
terror(TTransportException:new{errorCode = TTransportException.UNKNOWN})
end
return buf
end
function TSocket:write(buf)
self.handle:send(self.handle, buf)
end
function TSocket:flush()
end
-- TServerSocket
TServerSocket = TSocketBase:new{
__type = 'TServerSocket',
host = 'localhost',
port = 9090
}
function TServerSocket:listen()
if self.handle then
self:close()
end
local sock, err = luasocket.create(self.host, self.port)
if not err then
self.handle = sock
else
terror(err)
end
self.handle:settimeout(self.timeout)
self.handle:listen()
end
function TServerSocket:accept()
local client, err = self.handle:accept()
if err then
terror(err)
end
return TSocket:new({handle = client})
end
| apache-2.0 |
eraffxi/darkstar | scripts/zones/Apollyon/mobs/Fire_Elemental.lua | 14 | 2318 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
function onMobSpawn(mob)
end;
function onMobEngaged(mob,target)
end;
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local mobID = mob:getID();
-- print(mobID);
local mobX = mob:getXPos();
local mobY = mob:getYPos();
local mobZ = mob:getZPos();
local elementalday = GetServerVariable("[SW_Apollyon]ElementalTrigger") - 1;
local correctelement=false;
switch (elementalday): caseof {
[0] = function (x)
if (mobID==16932913 or mobID==16932921 or mobID==16932929) then
correctelement=true;
end
end ,
[1] = function (x)
if (mobID==16932912 or mobID==16932920 or mobID==16932928 ) then
correctelement=true;
end
end ,
[2] = function (x)
if (mobID==16932916 or mobID==16932924 or mobID==16932932 ) then
correctelement=true;
end
end ,
[3] = function (x)
if (mobID==16932910 or mobID==16932918 or mobID==16932926 ) then
correctelement=true;
end
end ,
[4] = function (x)
if (mobID==16932914 or mobID==16932922 or mobID==16932930 ) then
correctelement=true;
end
end ,
[5] = function (x)
if (mobID==16932917 or mobID==16932925 or mobID==16932933 ) then
correctelement=true;
end
end ,
[6] = function (x)
if (mobID==16932931 or mobID==16932915 or mobID==16932923 ) then
correctelement=true;
end
end ,
[7] = function (x)
if (mobID==16932911 or mobID==16932919 or mobID==16932927 ) then
correctelement=true;
end
end ,
};
if (correctelement==true and IselementalDayAreDead() == true) then
GetNPCByID(16932864+313):setPos(mobX,mobY,mobZ);
GetNPCByID(16932864+313):setStatus(dsp.status.NORMAL);
end
end; | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/totalHealOther.lua | 3 | 2135 | --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
TotalHealOtherCommand = {
name = "totalhealother",
}
AddCommand(TotalHealOtherCommand)
| lgpl-3.0 |
koreader/koreader-base | ffi/freetype.lua | 3 | 7239 | --[[--
Freetype library interface (text rendering)
@module ffi.freetype
--]]
local bit = require("bit")
local ffi = require("ffi")
local Blitbuffer = require("ffi/blitbuffer")
-- the header definitions
require("ffi/freetype_h")
local ft2
if ffi.os == "Windows" then
ft2 = ffi.load("libs/libfreetype-6.dll")
elseif ffi.os == "OSX" then
ft2 = ffi.load("libs/libfreetype.6.dylib")
else
ft2 = ffi.load("libs/libfreetype.so.6")
end
local freetypelib = ffi.new("FT_Library[1]")
assert(ft2.FT_Init_FreeType(freetypelib) == 0, "Couldn't initialize Freetype!")
freetypelib = freetypelib[0]
local FT = {}
-- metatable for BlitBuffer objects:
local FTFace_mt = {__index={}}
function FTFace_mt.__index:checkGlyph(char)
if ft2.FT_Get_Char_Index(self, char) == 0 then
return 0
else
return 1
end
end
function FTFace_mt.__index:renderGlyph(char, bold)
assert(ft2.FT_Load_Char(self, char, ft2.FT_LOAD_RENDER) == 0, "freetype error")
if bold then ft2.FT_GlyphSlot_Embolden(self.glyph) end
local bitmap = self.glyph.bitmap
-- NOTE: depending on the char, bitmap_top (bearingY) can be larger than
-- bb:getHeight(). For example: ×. This means the char needs to be drawn
-- above baseline.
local glyph = {
bb = Blitbuffer.new(bitmap.width, bitmap.rows, Blitbuffer.TYPE_BB8, bitmap.buffer, bitmap.pitch):copy(),
l = self.glyph.bitmap_left,
t = self.glyph.bitmap_top,
r = tonumber(self.glyph.metrics.horiAdvance / 64),
ax = tonumber(self.glyph.advance.x / 64),
ay = tonumber(self.glyph.advance.y / 64)
}
return glyph
end
-- For use with glyph index and metrics returned by Harfbuzz
-- These flags should be sync'ed with those used in xtext.cpp getHbFontData()
local FT_Load_Glyph_flags = bit.bor(ft2.FT_LOAD_DEFAULT, ft2.FT_LOAD_TARGET_LIGHT)
-- FT_Load_Glyph_flags = bit.bor(FT_Load_Glyph_flags, ft2.FT_LOAD_FORCE_AUTOHINT)
-- (No hinting, as it would mess synthetized bold)
FT_Load_Glyph_flags = bit.bor(FT_Load_Glyph_flags, ft2.FT_LOAD_NO_HINTING, ft2.FT_LOAD_NO_AUTOHINT)
function FTFace_mt.__index:renderGlyphByIndex(index, embolden_half_strength)
assert(ft2.FT_Load_Glyph(self, index, FT_Load_Glyph_flags) == 0, "freetype error")
-- We can't use FT_GlyphSlot_Embolden() as it updates the
-- glyph metrics from the font, and would mess the adjusments
-- provided by Harfbuzz. We need to use FT_Outline_Embolden
-- and FT_Outline_Translate in a way to not move metrics.
if embolden_half_strength and self.glyph.format == ft2.FT_GLYPH_FORMAT_OUTLINE then
ft2.FT_Outline_Embolden(self.glyph.outline, 2*embolden_half_strength);
ft2.FT_Outline_Translate(self.glyph.outline, -embolden_half_strength, -embolden_half_strength);
end
ft2.FT_Render_Glyph(self.glyph, ft2.FT_RENDER_MODE_NORMAL);
local bitmap = self.glyph.bitmap
local glyph = {
bb = Blitbuffer.new(bitmap.width, bitmap.rows, Blitbuffer.TYPE_BB8, bitmap.buffer, bitmap.pitch):copy(),
l = self.glyph.bitmap_left,
t = self.glyph.bitmap_top,
r = tonumber(self.glyph.metrics.horiAdvance / 64),
ax = tonumber(self.glyph.advance.x / 64),
ay = tonumber(self.glyph.advance.y / 64)
}
return glyph
end
function FTFace_mt.__index:getEmboldenHalfStrength(factor)
-- See crengine/src/lvfntman.cpp setEmbolden() for details
if not factor then
factor = 1/2 -- (a bit bolder than crengine which uses 3/8)
end
local strength = ft2.FT_MulFix(self.units_per_EM, self.size.metrics.y_scale) / 24
-- Note: this is a 64bit integer cdata, that we need to return
-- as such. So, we need to do C arithmetic with it, or we'll
-- have it converted to a Lua number.
local factor_int64 = ffi.new("int64_t", 1024*factor)
strength = strength * factor_int64 / 1024
return strength
end
function FTFace_mt.__index:hasKerning()
if bit.band(self.face_flags, ft2.FT_FACE_FLAG_KERNING) ~= 0 then
return 1
else
return 0
end
end
function FTFace_mt.__index:getKerning(leftcharcode, rightcharcode)
local kerning = ffi.new("FT_Vector")
assert(ft2.FT_Get_Kerning(self, leftcharcode, rightcharcode,
ft2.FT_KERNING_DEFAULT, kerning) == 0,
"freetype error when getting kerning.")
return tonumber(kerning.x / 64)
end
function FTFace_mt.__index:getHeightAndAscender()
local y_scale = self.size.metrics.y_ppem / self.units_per_EM
return self.height * y_scale, self.ascender * y_scale
end
function FTFace_mt.__index:done()
-- Note that past this point, accessing self is illegal, FT2 frees the pointer
assert(ft2.FT_Done_Face(self) == 0, "freetype error when freeing face")
end
function FTFace_mt.__index:getInfo()
local finfo = {
name = ffi.string(self.family_name),
-- Style
mono = bit.band(tonumber(self.face_flags), ft2.FT_FACE_FLAG_FIXED_WIDTH) ~= 0,
hint = bit.band(tonumber(self.face_flags), ft2.FT_FACE_FLAG_HINTER) ~= 0,
bold = bit.band(tonumber(self.style_flags), ft2.FT_STYLE_FLAG_BOLD) ~= 0,
italic = bit.band(tonumber(self.style_flags), ft2.FT_STYLE_FLAG_ITALIC) ~= 0,
serif = nil,
ui = false,
names = nil,
}
-- In practice, just going by latin name can tell us more than the depressingly absent tags
finfo.ui = finfo.name:match("UI$") ~= nil
local lname = finfo.name:lower()
if lname:match("serif") then
finfo.serif = true
elseif lname:match("sans") then
finfo.serif = false
elseif bit.band(tonumber(self.face_flags), ft2.FT_FACE_FLAG_SFNT) ~= 0 then
local os2 = ft2.FT_Get_Sfnt_Table(self, ft2.FT_SFNT_OS2)
if os2 ~= nil then
local kls = tonumber(ffi.cast("TT_OS2*", os2).sFamilyClass)
if kls ~= 0 then -- 0 is usually bogus
-- class 8 = sans, otherwise serif
finfo.serif = bit.band(kls, 0x0800) == 0
end
end
if finfo.serif == nil then
--TODO: Maybe it's worth to consult panose tables too?
finfo.serif = true
end
end
return finfo
end
local FTFaceType = ffi.metatype("struct FT_FaceRec_", FTFace_mt) -- luacheck: ignore 211
function FT.newFace(filename, pxsize, faceindex)
if pxsize == nil then pxsize = 16*64 end
if faceindex == nil then faceindex = 0 end
local facept = ffi.new("FT_Face[1]")
local err = ft2.FT_New_Face(freetypelib, filename, faceindex, facept)
if err ~= 0 then
error("Failed to load font '"..filename.."', freetype error code: "..err)
end
local face = facept[0]
if ft2.FT_Set_Pixel_Sizes(face, 0, pxsize) ~= 0 then
ft2.FT_Done_Face(face)
error("freetype error")
end
-- if face.charmap == nil then
--TODO
-- end
return face
end
function FT.getFaceCount(filename, info)
-- Probes number of faces available within the font file
local ftface = ffi.new("FT_Face[1]")
if ft2.FT_New_Face(freetypelib, filename, -1, ftface) ~= 0 then return nil end
local fp = ftface[0]
local nfaces = tonumber(ftface[0].num_faces)
fp:done()
return nfaces
end
return FT
| agpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/deed/faction_perk/turret/serverobjects.lua | 3 | 2656 | --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("tangible/deed/faction_perk/turret/base/serverobjects.lua")
-- Server Objects
includeFile("tangible/deed/faction_perk/turret/block_lg_deed.lua")
includeFile("tangible/deed/faction_perk/turret/block_med_deed.lua")
includeFile("tangible/deed/faction_perk/turret/block_sm_deed.lua")
includeFile("tangible/deed/faction_perk/turret/dish_lg_deed.lua")
includeFile("tangible/deed/faction_perk/turret/dish_sm_deed.lua")
includeFile("tangible/deed/faction_perk/turret/tower_lg_deed.lua")
includeFile("tangible/deed/faction_perk/turret/tower_med_deed.lua")
includeFile("tangible/deed/faction_perk/turret/tower_sm_deed.lua")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_queen_kylantha.lua | 3 | 2204 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_queen_kylantha = object_mobile_shared_dressed_queen_kylantha:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_queen_kylantha, "object/mobile/dressed_queen_kylantha.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/furniture/city/streetlamp_med_02.lua | 3 | 2305 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_furniture_city_streetlamp_med_02 = object_tangible_furniture_city_shared_streetlamp_med_02:new {
objectMenuComponent = "CityDecorationMenuComponent",
}
ObjectTemplates:addTemplate(object_tangible_furniture_city_streetlamp_med_02, "object/tangible/furniture/city/streetlamp_med_02.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/globals/spells/bluemagic/sheep_song.lua | 2 | 1470 | -----------------------------------------
-- Spell: Sheep Song
-- Puts all enemies within range to sleep
-- Spell cost: 22 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Light)
-- Blue Magic Points: 2
-- Stat Bonus: CHR+1, HP+5
-- Level: 16
-- Casting Time: Casting Time: 3 seconds
-- Recast Time: Recast Time: 60 seconds
-- Duration: 60 seconds
-- Magic Bursts on: Transfixion, Fusion, and Light
-- Combos: Auto Regen
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,spell)
local typeEffect = dsp.effect.SLEEP_I;
local dINT = (caster:getStat(dsp.mod.INT) - target:getStat(dsp.mod.INT));
local params = {};
params.diff = nil;
params.attribute = dsp.mod.INT;
params.skillType = dsp.skill.BLUE_MAGIC;
params.bonus = 0;
params.effect = typeEffect;
local resist = applyResistanceEffect(caster, target, spell, params);
local duration = 60 * resist;
if (resist > 0.5) then -- Do it!
if (target:addStatusEffect(typeEffect,1,0,duration)) then
spell:setMsg(dsp.msg.basic.MAGIC_ENFEEB_IS);
else
spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT);
end
else
spell:setMsg(dsp.msg.basic.MAGIC_RESIST);
end;
return typeEffect;
end;
| gpl-3.0 |
eraffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Hae_Jakhya.lua | 2 | 1427 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Hae Jakhya
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
-- "Flyers for Regine" conditional script
local FlyerForRegine = player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE);
if (FlyerForRegine == 1) then
local count = trade:getItemCount();
local MagicFlyer = trade:hasItemQty(532,1);
if (MagicFlyer == true and count == 1) then
player:messageSpecial(FLYER_REFUSED);
end
end
end;
function onTrigger(player,npc)
chasingStatus = player:getQuestStatus(WINDURST,CHASING_TALES);
if (player:getVar("CHASING_TALES_TRACK_BOOK") == 1 and player:hasKeyItem(126) == false) then
player:startEvent(611); -- Neeed CS here
elseif (player:hasKeyItem(126) == true) then
player:startEvent(612,0,126);
else
player:startEvent(610);
end
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 611) then
player:addKeyItem(126);
player:messageSpecial(KEYITEM_OBTAINED,126);
end
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/base/poi_all_lair_nest_large_evil_fire_green.lua | 2 | 2372 | --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_nest_large_evil_fire_green = object_tangible_lair_base_shared_poi_all_lair_nest_large_evil_fire_green:new {
objectMenuComponent = {"cpp", "LairMenuComponent"},
}
ObjectTemplates:addTemplate(object_tangible_lair_base_poi_all_lair_nest_large_evil_fire_green, "object/tangible/lair/base/poi_all_lair_nest_large_evil_fire_green.iff")
| lgpl-3.0 |
palmettos/cnLuCI | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 8 | 2773 | --[[
Luci statistics - interface plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
module("luci.statistics.rrdtool.definitions.interface", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- traffic diagram
--
local traffic = {
-- draw this diagram for each plugin instance
per_instance = true,
title = "%H: Transfer on %pi",
vlabel = "Bytes/s",
-- diagram data description
data = {
-- defined sources for data types, if ommitted assume a single DS named "value" (optional)
sources = {
if_octets = { "tx", "rx" }
},
-- special options for single data lines
options = {
if_octets__tx = {
total = true, -- report total amount of bytes
color = "00ff00", -- tx is green
title = "Bytes (TX)"
},
if_octets__rx = {
flip = true, -- flip rx line
total = true, -- report total amount of bytes
color = "0000ff", -- rx is blue
title = "Bytes (RX)"
}
}
}
}
--
-- packet diagram
--
local packets = {
-- draw this diagram for each plugin instance
per_instance = true,
title = "%H: Packets on %pi",
vlabel = "Packets/s",
-- diagram data description
data = {
-- data type order
types = { "if_packets", "if_errors" },
-- defined sources for data types
sources = {
if_packets = { "tx", "rx" },
if_errors = { "tx", "rx" }
},
-- special options for single data lines
options = {
-- processed packets (tx DS)
if_packets__tx = {
overlay = true, -- don't summarize
total = true, -- report total amount of bytes
color = "00ff00", -- processed tx is green
title = "Processed (tx)"
},
-- processed packets (rx DS)
if_packets__rx = {
overlay = true, -- don't summarize
flip = true, -- flip rx line
total = true, -- report total amount of bytes
color = "0000ff", -- processed rx is blue
title = "Processed (rx)"
},
-- packet errors (tx DS)
if_errors__tx = {
overlay = true, -- don't summarize
total = true, -- report total amount of packets
color = "ff5500", -- tx errors are orange
title = "Errors (tx)"
},
-- packet errors (rx DS)
if_errors__rx = {
overlay = true, -- don't summarize
flip = true, -- flip rx line
total = true, -- report total amount of packets
color = "ff0000", -- rx errors are red
title = "Errors (rx)"
}
}
}
}
return { traffic, packets }
end
| apache-2.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/item/item_tool_handheld_viewscreen_s1.lua | 3 | 2264 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_item_item_tool_handheld_viewscreen_s1 = object_static_item_shared_item_tool_handheld_viewscreen_s1:new {
}
ObjectTemplates:addTemplate(object_static_item_item_tool_handheld_viewscreen_s1, "object/static/item/item_tool_handheld_viewscreen_s1.iff")
| lgpl-3.0 |
tpn/wrk | deps/luajit/src/jit/v.lua | 88 | 5614 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This module shows verbose information about the progress of the
-- JIT compiler. It prints one line for each generated trace. This module
-- is useful to see which code has been compiled or where the compiler
-- punts and falls back to the interpreter.
--
-- Example usage:
--
-- luajit -jv -e "for i=1,1000 do for j=1,1000 do end end"
-- luajit -jv=myapp.out myapp.lua
--
-- Default output is to stderr. To redirect the output to a file, pass a
-- filename as an argument (use '-' for stdout) or set the environment
-- variable LUAJIT_VERBOSEFILE. The file is overwritten every time the
-- module is started.
--
-- The output from the first example should look like this:
--
-- [TRACE 1 (command line):1 loop]
-- [TRACE 2 (1/3) (command line):1 -> 1]
--
-- The first number in each line is the internal trace number. Next are
-- the file name ('(command line)') and the line number (':1') where the
-- trace has started. Side traces also show the parent trace number and
-- the exit number where they are attached to in parentheses ('(1/3)').
-- An arrow at the end shows where the trace links to ('-> 1'), unless
-- it loops to itself.
--
-- In this case the inner loop gets hot and is traced first, generating
-- a root trace. Then the last exit from the 1st trace gets hot, too,
-- and triggers generation of the 2nd trace. The side trace follows the
-- path along the outer loop and *around* the inner loop, back to its
-- start, and then links to the 1st trace. Yes, this may seem unusual,
-- if you know how traditional compilers work. Trace compilers are full
-- of surprises like this -- have fun! :-)
--
-- Aborted traces are shown like this:
--
-- [TRACE --- foo.lua:44 -- leaving loop in root trace at foo:lua:50]
--
-- Don't worry -- trace aborts are quite common, even in programs which
-- can be fully compiled. The compiler may retry several times until it
-- finds a suitable trace.
--
-- Of course this doesn't work with features that are not-yet-implemented
-- (NYI error messages). The VM simply falls back to the interpreter. This
-- may not matter at all if the particular trace is not very high up in
-- the CPU usage profile. Oh, and the interpreter is quite fast, too.
--
-- Also check out the -jdump module, which prints all the gory details.
--
------------------------------------------------------------------------------
-- Cache some library functions and objects.
local jit = require("jit")
assert(jit.version_num == 20004, "LuaJIT core/library version mismatch")
local jutil = require("jit.util")
local vmdef = require("jit.vmdef")
local funcinfo, traceinfo = jutil.funcinfo, jutil.traceinfo
local type, format = type, string.format
local stdout, stderr = io.stdout, io.stderr
-- Active flag and output file handle.
local active, out
------------------------------------------------------------------------------
local startloc, startex
local function fmtfunc(func, pc)
local fi = funcinfo(func, pc)
if fi.loc then
return fi.loc
elseif fi.ffid then
return vmdef.ffnames[fi.ffid]
elseif fi.addr then
return format("C:%x", fi.addr)
else
return "(?)"
end
end
-- Format trace error message.
local function fmterr(err, info)
if type(err) == "number" then
if type(info) == "function" then info = fmtfunc(info) end
err = format(vmdef.traceerr[err], info)
end
return err
end
-- Dump trace states.
local function dump_trace(what, tr, func, pc, otr, oex)
if what == "start" then
startloc = fmtfunc(func, pc)
startex = otr and "("..otr.."/"..oex..") " or ""
else
if what == "abort" then
local loc = fmtfunc(func, pc)
if loc ~= startloc then
out:write(format("[TRACE --- %s%s -- %s at %s]\n",
startex, startloc, fmterr(otr, oex), loc))
else
out:write(format("[TRACE --- %s%s -- %s]\n",
startex, startloc, fmterr(otr, oex)))
end
elseif what == "stop" then
local info = traceinfo(tr)
local link, ltype = info.link, info.linktype
if ltype == "interpreter" then
out:write(format("[TRACE %3s %s%s -- fallback to interpreter]\n",
tr, startex, startloc))
elseif link == tr or link == 0 then
out:write(format("[TRACE %3s %s%s %s]\n",
tr, startex, startloc, ltype))
elseif ltype == "root" then
out:write(format("[TRACE %3s %s%s -> %d]\n",
tr, startex, startloc, link))
else
out:write(format("[TRACE %3s %s%s -> %d %s]\n",
tr, startex, startloc, link, ltype))
end
else
out:write(format("[TRACE %s]\n", what))
end
out:flush()
end
end
------------------------------------------------------------------------------
-- Detach dump handlers.
local function dumpoff()
if active then
active = false
jit.attach(dump_trace)
if out and out ~= stdout and out ~= stderr then out:close() end
out = nil
end
end
-- Open the output file and attach dump handlers.
local function dumpon(outfile)
if active then dumpoff() end
if not outfile then outfile = os.getenv("LUAJIT_VERBOSEFILE") end
if outfile then
out = outfile == "-" and stdout or assert(io.open(outfile, "w"))
else
out = stderr
end
jit.attach(dump_trace, "trace")
active = true
end
-- Public module functions.
module(...)
on = dumpon
off = dumpoff
start = dumpon -- For -j command line option.
| apache-2.0 |
eraffxi/darkstar | scripts/zones/Dangruf_Wadi/npcs/qm4.lua | 2 | 1477 | -----------------------------------
-- NPC: ??? (QM4)
-- Type: Grasswix dice roll game part 2
-- @zone 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Dangruf_Wadi/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
local thickAsThievesGamblingCS = player:getVar("thickAsThievesGamblingCS");
if (thickAsThievesGamblingCS == 3) then
if (trade:hasItemQty(534,1) and trade:getItemCount() == 1) then -- Trade 1x gaussbit wildgrass
local rand1 = math.random(1,999);
local rand2 = math.random(1,999);
if (rand1 > rand2) then
player:startEvent(137,1092,0,rand1,rand2); -- complete 2/3 gamble mini quest
else
player:startEvent(140,0,0,rand1,rand2); -- player looses
end
end
end
end;
function onTrigger(player,npc)
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 140 and option == 1) then -- player looses dice game
player:tradeComplete();
player:setVar("thickAsThievesGamblingCS",2);
elseif (csid == 137 and option == 0) then -- player wins dice game
player:tradeComplete();
player:setVar("thickAsThievesGamblingCS",4);
end
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/space/story_loot/loot_naboo_rsf.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_tangible_space_story_loot_loot_naboo_rsf = object_tangible_space_story_loot_shared_loot_naboo_rsf:new {
}
ObjectTemplates:addTemplate(object_tangible_space_story_loot_loot_naboo_rsf, "object/tangible/space/story_loot/loot_naboo_rsf.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/deed/pet_deed/vehicular_prototype_bike.lua | 3 | 2276 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_deed_pet_deed_vehicular_prototype_bike = object_tangible_deed_pet_deed_shared_vehicular_prototype_bike:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_vehicular_prototype_bike, "object/tangible/deed/pet_deed/vehicular_prototype_bike.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_image_designer_trainer_02.lua | 2 | 2302 | --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_image_designer_trainer_02 = object_mobile_shared_dressed_image_designer_trainer_02:new {
objectMenuComponent = {"cpp", "TrainerMenuComponent"}
}
ObjectTemplates:addTemplate(object_mobile_dressed_image_designer_trainer_02, "object/mobile/dressed_image_designer_trainer_02.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/faction/rebel/senior_specforce_infiltrator.lua | 1 | 1762 | senior_specforce_infiltrator = Creature:new {
objectName = "@mob/creature_names:senior_specforce_infiltrator",
socialGroup = "rebel",
pvpFaction = "rebel",
faction = "rebel",
level = 20,
chanceHit = 0.330000,
damageMin = 190,
damageMax = 200,
baseXp = 1803,
baseHAM = 5000,
baseHAMmax = 6100,
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.000000,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER,
diet = HERBIVORE,
templates = {"object/mobile/dressed_rebel_specforce_guerilla_human_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerilla_moncal_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_human_female_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_rodian_female_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_rodian_male_01.iff",
"object/mobile/dressed_rebel_specforce_guerrilla_zabrak_female_01.iff"
},
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 100000},
{group = "junk", chance = 4700000},
{group = "rifles", chance = 1000000},
{group = "pistols", chance = 1000000},
{group = "melee_weapons", chance = 1000000},
{group = "carbines", chance = 1000000},
{group = "clothing_attachments", chance = 100000},
{group = "armor_attachments", chance = 100000},
{group = "wearables_common", chance = 1000000}
},
lootChance = 3000000
}
},
weapons = {"imperial_weapons_medium"},
attacks = merge(riflemanmaster,pistoleermaster,carbineermaster,brawlermaster)
}
CreatureTemplates:addCreatureTemplate(senior_specforce_infiltrator, "senior_specforce_infiltrator")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/flite_rasp_hill/serverobjects.lua | 3 | 2118 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/lair/flite_rasp_hill/lair_flite_rasp_hill.lua")
| lgpl-3.0 |
eraffxi/darkstar | scripts/globals/common.lua | 1 | 2895 | -----------------------------------
-- switch
-----------------------------------
function switch(c)
local swtbl = {
casevar = c,
caseof = function(self, code)
local f;
if (self.casevar) then
f = code[self.casevar] or code.default;
else
f = code.missing or code.default;
end
if (f) then
if (type(f) == "function") then
return f(self.casevar, self);
else
error("case "..tostring(self.casevar).." not a function");
end
end
end
};
return swtbl;
end;
-----------------------------------
-- printf
-----------------------------------
function printf(s,...)
print(s:format(...));
end;
-----------------------------------
-- getMidnight
-- Returns midnight for the current day in epoch format
-----------------------------------
function getMidnight(day)
-- Get time, because this is going to get ugly. Using ! for UTC won't work where we're going.
local hometime = os.date("*t");
if (day ~= nil) then
hometime = os.date("*t", day);
end
-- Set to 24:00 to get end of the day.
local midnight = os.time{year=hometime.year, month=hometime.month, day=hometime.day, hour=24};
-- And determine the timezone in seconds, because we'll need that to get UTC and LUA doesn't make it easy.
local timezone = os.difftime(os.time(), os.time(os.date("!*t")));
-- Midnight adjusted for timezone, then timezone offset * 3600 to get us where we want to be.
local finaltime = midnight + timezone - (TIMEZONE_OFFSET * 3600);
-- And make sure that the offset midnight isn't already passed
if ((day ~= nil and finaltime <= day) or (day == nil and finaltime <= os.time())) then
finaltime = finaltime + 86400;
end
return finaltime;
end;
-----------------------------------
-- getConquestTally()
-- Returns the end of the current conquest tally
-----------------------------------
function getConquestTally()
-- Get time into a handy dandy table
local weekDayNumber = tonumber(os.date("%w"));
local daysToTally = 0;
-- LUA is Sun -> Sat, conquest is Mon -> Sun, so adjustments via conditional are needed.
-- If today is Sunday (0), no additional days are necessary, so keep the 0.
-- Ex: Friday = 5, 7 - 5 = 2 days to add, all of Saturday and Sunday.
if (weekDayNumber > 0) then
daysToTally = 7 - weekDayNumber;
end
-- Midnight + daysToTally * a day worth of seconds.
return (getMidnight() + (daysToTally * 86400));
end;
-----------------------------------
-- vanaDay()
-- Small function to make it easier to store the current date
-----------------------------------
function vanaDay()
return (VanadielYear() * 360) + VanadielDayOfTheYear();
end;
| gpl-3.0 |
eraffxi/darkstar | scripts/zones/Kazham/npcs/Eron-Tomaron.lua | 2 | 3962 | -----------------------------------
-- Area: Kazham
-- NPC: Eron-Tomaron
-- Title Change NPC
-- !pos -22 -4 -24 250
-----------------------------------
require("scripts/globals/titles");
local title2 = { dsp.title.DISCERNING_INDIVIDUAL , dsp.title.VERY_DISCERNING_INDIVIDUAL , dsp.title.EXTREMELY_DISCERNING_INDIVIDUAL , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
local title3 = { dsp.title.HEIR_OF_THE_GREAT_FIRE , dsp.title.YA_DONE_GOOD , dsp.title.GULLIBLES_TRAVELS , dsp.title.KAZHAM_CALLER , dsp.title.EXCOMMUNICATE_OF_KAZHAM , dsp.title.EVEN_MORE_GULLIBLES_TRAVELS ,
dsp.title.KING_OF_THE_OPOOPOS , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
local title4 = { dsp.title.FODDERCHIEF_FLAYER , dsp.title.WARCHIEF_WRECKER , dsp.title.DREAD_DRAGON_SLAYER , dsp.title.OVERLORD_EXECUTIONER , dsp.title.DARK_DRAGON_SLAYER ,
dsp.title.ADAMANTKING_KILLER , dsp.title.BLACK_DRAGON_SLAYER , dsp.title.MANIFEST_MAULER , dsp.title.BEHEMOTHS_BANE , dsp.title.ARCHMAGE_ASSASSIN , dsp.title.HELLSBANE , dsp.title.GIANT_KILLER ,
dsp.title.LICH_BANISHER , dsp.title.JELLYBANE , dsp.title.BOGEYDOWNER , dsp.title.BEAKBENDER , dsp.title.SKULLCRUSHER , dsp.title.MORBOLBANE , dsp.title.GOLIATH_KILLER , dsp.title.MARYS_GUIDE , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
local title5 = { dsp.title.SIMURGH_POACHER , dsp.title.ROC_STAR , dsp.title.SERKET_BREAKER , dsp.title.CASSIENOVA , dsp.title.THE_HORNSPLITTER , dsp.title.TORTOISE_TORTURER , dsp.title.MON_CHERRY ,
dsp.title.BEHEMOTH_DETHRONER , dsp.title.THE_VIVISECTOR , dsp.title.DRAGON_ASHER , dsp.title.EXPEDITIONARY_TROOPER , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
local title6 = { dsp.title.ADAMANTKING_USURPER , dsp.title.OVERLORD_OVERTHROWER , dsp.title.DEITY_DEBUNKER , dsp.title.FAFNIR_SLAYER , dsp.title.ASPIDOCHELONE_SINKER , dsp.title.NIDHOGG_SLAYER ,
dsp.title.MAAT_MASHER , dsp.title.KIRIN_CAPTIVATOR , dsp.title.CACTROT_DESACELERADOR , dsp.title.LIFTER_OF_SHADOWS , dsp.title.TIAMAT_TROUNCER , dsp.title.VRTRA_VANQUISHER , dsp.title.WORLD_SERPENT_SLAYER ,
dsp.title.XOLOTL_XTRAPOLATOR , dsp.title.BOROKA_BELEAGUERER , dsp.title.OURYU_OVERWHELMER , dsp.title.VINEGAR_EVAPORATOR , dsp.title.VIRTUOUS_SAINT , dsp.title.BYEBYE_TAISAI , dsp.title.TEMENOS_LIBERATOR ,
dsp.title.APOLLYON_RAVAGER , dsp.title.WYRM_ASTONISHER , dsp.title.NIGHTMARE_AWAKENER , 0 , 0 , 0 , 0 , 0 }
local title7 = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(10013,npcUtil.genTmask(player,title2),npcUtil.genTmask(player,title3),npcUtil.genTmask(player,title4),npcUtil.genTmask(player,title5),npcUtil.genTmask(player,title6),npcUtil.genTmask(player,title7),1 ,player:getGil());
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid==10013) then
if (option > 0 and option <29) then
if (player:delGil(200)) then
player:setTitle( title2[option] )
end
elseif (option > 256 and option <285) then
if (player:delGil(300)) then
player:setTitle( title3[option - 256] )
end
elseif (option > 512 and option < 541) then
if (player:delGil(400)) then
player:setTitle( title4[option - 512] )
end
elseif (option > 768 and option <797) then
if (player:delGil(500)) then
player:setTitle( title5[option - 768] )
end
elseif (option > 1024 and option < 1053) then
if (player:delGil(600)) then
player:setTitle( title6[option - 1024] )
end
end
end
end; | gpl-3.0 |
Richard857/BadRotations | Rotations/sample rotation.lua | 1 | 8659 | local rotationName = "CuteOne" -- Change to name of profile listed in options drop down
---------------
--- Toggles ---
---------------
local function createToggles() -- Define custom toggles
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of #enemies.yards8 in range.", highlight = 0, icon = br.player.spell.whirlwind },
[2] = { mode = "Mult", value = 2 , overlay = "Multiple Target Rotation", tip = "使用多目标方式输出.", highlight = 0, icon = br.player.spell.bladestorm },
[3] = { mode = "Sing", value = 3 , overlay = "Single Target Rotation", tip = "使用单目标方式输出.", highlight = 0, icon = br.player.spell.furiousSlash },
[4] = { mode = "Off", value = 4 , overlay = "DPS Rotation Disabled", tip = "禁用DPS输出", highlight = 0, icon = br.player.spell.enragedRegeneration}
};
CreateButton("Rotation",1,0)
-- Cooldown Button
CooldownModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Cooldowns Automated", tip = "自动使用大技能 - 只在BOSS.", highlight = 1, icon = br.player.spell.battleCry },
[2] = { mode = "On", value = 2 , overlay = "Cooldowns Enabled", tip = "不管任何目标都使用大技能.", highlight = 0, icon = br.player.spell.battleCry },
[3] = { mode = "Off", value = 3 , overlay = "Cooldowns Disabled", tip = "不使用大技能.", highlight = 0, icon = br.player.spell.battleCry }
};
CreateButton("Cooldown",2,0)
-- Defensive Button
DefensiveModes = {
[1] = { mode = "On", value = 1 , overlay = "Defensive Enabled", tip = "使用保命技能.", highlight = 1, icon = br.player.spell.enragedRegeneration },
[2] = { mode = "Off", value = 2 , overlay = "Defensive Disabled", tip = "不使用保命技能.", highlight = 0, icon = br.player.spell.enragedRegeneration }
};
CreateButton("Defensive",3,0)
-- Interrupt Button
InterruptModes = {
[1] = { mode = "On", value = 1 , overlay = "Interrupts Enabled", tip = "使用打断.", highlight = 1, icon = br.player.spell.pummel },
[2] = { mode = "Off", value = 2 , overlay = "Interrupts Disabled", tip = "不使用打断.", highlight = 0, icon = br.player.spell.pummel }
};
CreateButton("Interrupt",4,0)
end
---------------
--- OPTIONS ---
---------------
local function createOptions()
local optionTable
local function rotationOptions()
-----------------------
--- GENERAL OPTIONS --- -- Define General Options
-----------------------
section = br.ui:createSection(br.ui.window.profile, "一般")
br.ui:checkSectionState(section)
------------------------
--- COOLDOWN OPTIONS --- -- Define Cooldown Options
------------------------
section = br.ui:createSection(br.ui.window.profile, "冷却技能")
br.ui:checkSectionState(section)
-------------------------
--- DEFENSIVE OPTIONS --- -- Define Defensive Options
-------------------------
section = br.ui:createSection(br.ui.window.profile, "保命")
br.ui:checkSectionState(section)
-------------------------
--- INTERRUPT OPTIONS --- -- Define Interrupt Options
-------------------------
section = br.ui:createSection(br.ui.window.profile, "打断")
-- Interrupt Percentage
br.ui:createSpinner(section, "InterruptAt", 0, 0, 95, 5, "|cffFFBB00Cast Percentage to use at.")
br.ui:checkSectionState(section)
----------------------
--- TOGGLE OPTIONS --- -- Degine Toggle Options
----------------------
section = br.ui:createSection(br.ui.window.profile, "切换快捷键")
-- Single/Multi Toggle
br.ui:createDropdown(section, "运行模式", br.dropOptions.Toggle, 4)
--Cooldown Key Toggle
br.ui:createDropdown(section, "冷却技能模式", br.dropOptions.Toggle, 3)
--Defensive Key Toggle
br.ui:createDropdown(section, "保命模式", br.dropOptions.Toggle, 6)
-- Interrupts Key Toggle
br.ui:createDropdown(section, "打断模式", br.dropOptions.Toggle, 6)
-- Pause Toggle
br.ui:createDropdown(section, "暂停模式", br.dropOptions.Toggle, 6)
br.ui:checkSectionState(section)
end
optionTable = {{
[1] = "脚本选项",
[2] = rotationOptions,
}}
return optionTable
end
----------------
--- ROTATION ---
----------------
local function runRotation()
if br.timer:useTimer("debugFury", 0.1) then --change "debugFury" to "debugSpec" (IE: debugFire)
--Print("Running: "..rotationName)
---------------
--- Toggles --- -- List toggles here in order to update when pressed
---------------
UpdateToggle("Rotation",0.25)
UpdateToggle("Cooldown",0.25)
UpdateToggle("Defensive",0.25)
UpdateToggle("Interrupt",0.25)
--------------
--- Locals ---
--------------
local artifact = br.player.artifact
local buff = br.player.buff
local cast = br.player.cast
local combatTime = getCombatTime()
local cd = br.player.cd
local charges = br.player.charges
local debuff = br.player.debuff
local enemies = br.player.enemies
local falling, swimming, flying, moving = getFallTime(), IsSwimming(), IsFlying(), GetUnitSpeed("player")>0
local gcd = br.player.gcd
local healPot = getHealthPot()
local inCombat = br.player.inCombat
local inInstance = br.player.instance=="party"
local inRaid = br.player.instance=="raid"
local level = br.player.level
local lowestHP = br.friend[1].unit
local mode = br.player.mode
local perk = br.player.perk
local php = br.player.health
local power, powmax, powgen = br.player.power, br.player.powerMax, br.player.powerRegen
local pullTimer = br.DBM:getPulltimer()
local race = br.player.race
local racial = br.player.getRacial()
local recharge = br.player.recharge
local spell = br.player.spell
local talent = br.player.talent
local ttm = br.player.timeToMax
local units = br.player.units
if leftCombat == nil then leftCombat = GetTime() end
if profileStop == nil then profileStop = false end
--------------------
--- Action Lists ---
--------------------
-----------------
--- Rotations ---
-----------------
-- Pause
if pause() or (GetUnitExists("target") and (UnitIsDeadOrGhost("target") or not UnitCanAttack("target", "player"))) or mode.rotation == 4 then
return true
else
---------------------------------
--- Out Of Combat - Rotations ---
---------------------------------
if not inCombat and GetObjectExists("target") and not UnitIsDeadOrGhost("target") and UnitCanAttack("target", "player") then
end -- End Out of Combat Rotation
-----------------------------
--- In Combat - Rotations ---
-----------------------------
if inCombat then
end -- End In Combat Rotation
end -- Pause
end -- End Timer
end -- End runRotation
local id = 000 -- Change to the spec id profile is for.
if br.rotations[id] == nil then br.rotations[id] = {} end
tinsert(br.rotations[id],{
name = rotationName,
toggles = createToggles,
options = createOptions,
run = runRotation,
}) | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/building/poi/naboo_gungwar_medium.lua | 1 | 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_poi_naboo_gungwar_medium = object_building_poi_shared_naboo_gungwar_medium:new {
}
ObjectTemplates:addTemplate(object_building_poi_naboo_gungwar_medium, "object/building/poi/naboo_gungwar_medium.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/salacious_crumb.lua | 3 | 2176 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_salacious_crumb = object_mobile_shared_salacious_crumb:new {
}
ObjectTemplates:addTemplate(object_mobile_salacious_crumb, "object/mobile/salacious_crumb.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/globals/spells/bluemagic/enervation.lua | 2 | 2122 | -----------------------------------------
-- Spell: Enervation
-- Lowers the defense and magical defense of enemies within range
-- Spell cost: 48 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 5
-- Stat Bonus: HP-5, MP+5
-- Level: 67
-- Casting Time: 6 seconds
-- Recast Time: 60 seconds
-- Magic Bursts on: Compression, Gravitation, and Darkness
-- Combos: Counter
-----------------------------------------
require("scripts/globals/bluemagic");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,spell)
local typeEffectOne = dsp.effect.DEFENSE_DOWN;
local typeEffectTwo = dsp.effect.MAGIC_DEF_DOWN;
local params = {};
params.diff = caster:getStat(dsp.mod.INT) - target:getStat(dsp.mod.INT);
params.attribute = dsp.mod.INT;
params.skillType = dsp.skill.BLUE_MAGIC;
params.bonus = 1.0;
local resist = applyResistance(caster, target, spell, params);
local duration = 30 * resist;
local returnEffect = typeEffectOne;
if (resist >= 0.5) then
if (target:hasStatusEffect(typeEffectOne) and target:hasStatusEffect(typeEffectTwo)) then -- the def/mag def down does not overwrite the same debuff from any other source
spell:setMsg(dsp.msg.basic.MAGIC_NO_EFFECT); -- no effect
elseif (target:hasStatusEffect(typeEffectOne)) then
target:addStatusEffect(typeEffectTwo,8,0,duration);
returnEffect = typeEffectTwo;
spell:setMsg(dsp.msg.basic.MAGIC_ENFEEB_IS);
elseif (target:hasStatusEffect(typeEffectTwo)) then
target:addStatusEffect(typeEffectOne,10,0,duration);
spell:setMsg(dsp.msg.basic.MAGIC_ENFEEB_IS);
else
target:addStatusEffect(typeEffectOne,10,0,duration);
target:addStatusEffect(typeEffectTwo,8,0,duration);
spell:setMsg(dsp.msg.basic.MAGIC_ENFEEB_IS);
end;
end;
return returnEffect;
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_tatooine_dim_u_cleric.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_mobile_dressed_tatooine_dim_u_cleric = object_mobile_shared_dressed_tatooine_dim_u_cleric:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_dim_u_cleric, "object/mobile/dressed_tatooine_dim_u_cleric.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/loot/loot_schematic/bottle_tall_schematic.lua | 2 | 2601 | --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_loot_schematic_bottle_tall_schematic = object_tangible_loot_loot_schematic_shared_bottle_tall_schematic:new {
templateType = LOOTSCHEMATIC,
objectMenuComponent = {"cpp", "LootSchematicMenuComponent"},
attributeListComponent = "LootSchematicAttributeListComponent",
requiredSkill = "crafting_artisan_domestic_02",
targetDraftSchematic = "object/draft_schematic/furniture/furniture_bottle_tall.iff",
targetUseCount = 1,
}
ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_bottle_tall_schematic, "object/tangible/loot/loot_schematic/bottle_tall_schematic.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_marooned_pirate_engr1_sull_m.lua | 3 | 2260 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_marooned_pirate_engr1_sull_m = object_mobile_shared_dressed_marooned_pirate_engr1_sull_m:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_marooned_pirate_engr1_sull_m, "object/mobile/dressed_marooned_pirate_engr1_sull_m.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/screenplays/caves/lok_nym_pirate_cave.lua | 1 | 11824 | NymPirateCaveScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "NymPirateCaveScreenPlay",
}
registerScreenPlay("NymPirateCaveScreenPlay", true)
function NymPirateCaveScreenPlay:start()
if (isZoneEnabled("lok")) then
self:spawnMobiles()
end
end
function NymPirateCaveScreenPlay:spawnMobiles()
-- Lok -2996 -668
-- spawnMobile( zone, mobile, respawn, x, y, z, heading, cell )
-- nym_pirate_weak CL26
-- nym_pirate_strong CL 26
-- nym_pirate_elite CL31
-- cell 5126310
spawnMobile("lok", "nym_pirate_weak", 300, -22.507, -29.527, -33.041, 10.593, 5126310)
spawnMobile("lok", "nym_pirate_weak", 300, -24.037, -29.542, -32.678, 76.703, 5126310)
spawnMobile("lok", "nym_pirate_strong", 300, -28.992, -28.804, -27.014, 84.877, 5126310)
spawnMobile("lok", "nym_pirate_strong", 300, -26.044, -28.678, -28.925, 151.278, 5126310)
-- cell 5126314
spawnMobile("lok", "nym_pirate_weak", 300, -118.569, -49.131, -55.562, 105.691, 5126314)
spawnMobile("lok", "nym_pirate_strong", 300, -118.854, -49.317, -59.401, 91.773, 5126314)
spawnMobile("lok", "nym_pirate_strong", 300, -110.311, -50.808, -65.861, 99.266, 5126314)
spawnMobile("lok", "nym_pirate_weak", 300, -108.371, -51.828, -62.559, 46.777, 5126314)
-- cell 5126316
spawnMobile("lok", "nym_pirate_weak", 300, -151.682, -50.876, -40.273, -143.347, 5126316)
spawnMobile("lok", "nym_pirate_weak", 300, -149.986, -51.006, -40.755, 106.820, 5126316)
spawnMobile("lok", "nym_pirate_strong", 300, -154.725, -51.110, -41.754, 83.341, 5126316)
-- cell 5126318
spawnMobile("lok", "nym_pirate_weak", 300, -175.886, -49.661, -72.289, 33.308, 5126318)
spawnMobile("lok", "nym_pirate_weak", 300, -175.566, -49.846, -66.372, 3.528, 5126318)
spawnMobile("lok", "nym_pirate_weak", 300, -173.209, -49.795, -68.485, 116.292, 5126318)
spawnMobile("lok", "nym_pirate_strong", 300, -161.283, -49.395, -68.428, 127.465, 5126318)
spawnMobile("lok", "nym_pirate_elite", 300, -160.702, -49.773, -72.901, 168.067, 5126318)
spawnMobile("lok", "nym_pirate_strong", 300, -159.611, -49.939, -80.932, -142.532, 5126318)
spawnMobile("lok", "nym_pirate_strong", 300, -160.840, -49.844, -84.741, 45.496, 5126318)
spawnMobile("lok", "nym_pirate_strong", 300, -163.026, -49.547, -82.952, 29.849, 5126318)
spawnMobile("lok", "nym_pirate_weak", 300, -161.717, -49.784, -88.849, 22.345, 5126318)
spawnMobile("lok", "nym_pirate_elite", 300, -166.617, -49.619, -91.654, 21.182, 5126318)
-- cell 5126320
spawnMobile("lok", "nym_pirate_weak", 300, -159.404, -55.963, -118.992, 268.777, 5126320)
spawnMobile("lok", "nym_pirate_weak", 300, -159.619, -55.652, -123.032, 269.345, 5126320)
-- cell 5126319
spawnMobile("lok", "nym_pirate_weak", 300, -141.241, -53.967, -81.423, -174.942, 5126319)
spawnMobile("lok", "nym_pirate_strong", 300, -137.861, -54.139, -82.762, 147.513, 5126319)
spawnMobile("lok", "nym_pirate_elite", 300, -125.185, -53.773, -84.779, -135.320, 5126319)
spawnMobile("lok", "nym_pirate_weak", 300, -125.809, -53.754, -86.661, 44.129, 5126319)
spawnMobile("lok", "nym_pirate_weak", 300, -102.535, -54.960, -82.728, 161.606, 5126319)
-- cell 5126322
spawnMobile("lok", "nym_pirate_weak", 300, -84.720, -57.354, -42.726, 116.234, 5126322)
spawnMobile("lok", "nym_pirate_weak", 300, -84.242, -57.385, -37.810, 109.753, 5126322)
-- cell 5126325
spawnMobile("lok", "nym_pirate_strong", 300, -107.195, -42.953, -13.692, 66.756, 5126325)
spawnMobile("lok", "nym_pirate_weak", 300, -107.649, -42.955, -11.175, 6.815, 5126325)
-- cell 5126323
spawnMobile("lok", "nym_pirate_weak", 300, -101.517, -37.508, -48.844, 0.606, 5126323)
spawnMobile("lok", "nym_pirate_weak", 300, -106.282, -37.421, -48.892, -184.412, 5126323)
-- cell 5126314
spawnMobile("lok", "nym_pirate_strong", 300, -101.205, -37.033, -61.743, 81.201, 5126314)
-- cell 5126321
spawnMobile("lok", "nym_pirate_strong", 300, -129.482, -33.582, -69.037, 2.452, 5126321)
spawnMobile("lok", "nym_pirate_strong", 300, -125.354, -33.382, -68.972, 41.872, 5126321)
-- cell 5126319
spawnMobile("lok", "nym_pirate_weak", 300, -93.973, -39.163, -86.023, -124.912, 5126319)
spawnMobile("lok", "nym_pirate_strong", 300, -93.081, -38.753, -87.891, -63.611, 5126319)
spawnMobile("lok", "nym_pirate_weak", 300, -97.511, -38.883, -89.287, 17.858, 5126319)
spawnMobile("lok", "nym_pirate_elite", 300, -101.707, -38.238, -95.142, 9.986, 5126319)
spawnMobile("lok", "nym_pirate_weak", 300, -106.264, -38.591, -95.975, -68.194, 5126319)
-- cell 5126317
spawnMobile("lok", "nym_pirate_weak", 300, -87.056, -37.264, -120.502, 4.058, 5126317)
spawnMobile("lok", "nym_pirate_weak", 300, -85.058, -37.264, -120.501, 51.576, 5126317)
-- cell 5126313
spawnMobile("lok", "nym_pirate_weak", 300, -73.449, -31.653, -60.220, -170.764, 5126313)
spawnMobile("lok", "nym_pirate_elite", 300, -74.453, -31.751, -62.189, 78.088, 5126313)
spawnMobile("lok", "nym_pirate_strong", 300, -80.296, -30.949, -43.507, 94.359, 5126313)
spawnMobile("lok", "nym_pirate_weak", 300, -77.416, -30.340, -38.742, 124.972, 5126313)
-- cell 5126311
spawnMobile("lok", "nym_pirate_weak", 300, -55.970, -30.168, -38.361, -92.563, 5126311)
spawnMobile("lok", "nym_pirate_strong", 300, -56.069, -30.309, -43.260, 87.158, 5126311)
spawnMobile("lok", "nym_pirate_weak", 300, -47.012, -29.646, -39.248, 18.264, 5126311)
spawnMobile("lok", "nym_pirate_elite", 300, -44.064, -29.468, -40.729, -170.570, 5126311)
spawnMobile("lok", "nym_pirate_weak", 300, -42.928, -29.859, -42.862, 19.876, 5126311)
spawnMobile("lok", "nym_pirate_elite", 300, -39.576, -30.192, -44.178, 81.460, 5126311)
-- cell 5126310
spawnMobile("lok", "nym_pirate_weak", 300, -8.409, -30.398, -47.800, 73.279, 5126310)
spawnMobile("lok", "nym_pirate_elite", 300, -11.520, -30.236, -49.861, -177.412, 5126310)
spawnMobile("lok", "nym_pirate_elite", 300, -10.152, -30.365, -43.723, -177.286, 5126310)
spawnMobile("lok", "nym_pirate_strong", 300, -17.257, -30.101, -40.213, 177.530, 5126310)
spawnMobile("lok", "nym_pirate_weak", 300, -12.058, -29.319, -38.272, 163.294, 5126310)
spawnMobile("lok", "nym_pirate_weak", 300, -18.518, -29.522, -36.250, 0.999, 5126310)
spawnMobile("lok", "nym_pirate_strong", 300, -12.874, -29.001, -35.671, 4.367, 5126310)
-- cell 5126328
spawnMobile("lok", "nym_pirate_strong", 300, 14.483, -35.378, -77.630, 0.281, 5126328)
spawnMobile("lok", "nym_pirate_elite", 300, 16.469, -35.164, -78.787, 6.899, 5126328)
spawnMobile("lok", "nym_pirate_weak", 300, 10.175, -35.827, -78.671, 12.550, 5126328)
spawnMobile("lok", "nym_pirate_weak", 300, -7.621, -34.929, -70.512, 98.512, 5126328)
spawnMobile("lok", "nym_pirate_strong", 300, -12.742, -34.768, -65.028, 66.416, 5126328)
spawnMobile("lok", "nym_pirate_elite", 300, -10.617, -34.892, -66.724, -157.535, 5126328)
spawnMobile("lok", "nym_pirate_strong", 300, -16.876, -34.710, -65.800, -176.949, 5126328)
-- cell 5126330
spawnMobile("lok", "nym_pirate_elite", 300, -9.750, -43.643, -94.602, 57.268, 5126330)
spawnMobile("lok", "nym_pirate_weak", 300, -10.521, -43.633, -99.816, 58.492, 5126330)
spawnMobile("lok", "nym_pirate_strong", 300, -13.799, -44.020, -101.136, 46.580, 5126330)
spawnMobile("lok", "nym_pirate_strong", 300, -18.839, -44.313, -103.013, 59.815, 5126330)
spawnMobile("lok", "nym_pirate_strong", 300, -27.344, -44.082, -97.624, 34.850, 5126330)
spawnMobile("lok", "nym_pirate_weak", 300, -62.523, -52.260, -115.315, 71.922, 5126330)
spawnMobile("lok", "nym_pirate_elite", 300, -62.465, -52.476, -110.589, 68.940, 5126330)
-- cell 5126317
spawnMobile("lok", "nym_pirate_weak", 300, -108.431, -69.582, -105.625, 52.868, 5126317)
spawnMobile("lok", "nym_pirate_elite", 300, -104.163, -69.532, -103.505, -141.757, 5126317)
spawnMobile("lok", "nym_pirate_strong", 300, -102.262, -69.705, -104.892, -103.113, 5126317)
spawnMobile("lok", "nym_pirate_strong", 300, -97.453, -70.432, -104.474, 89.353, 5126317)
spawnMobile("lok", "nym_pirate_weak", 300, -90.556, -71.460, -105.361, -105.852, 5126317)
spawnMobile("lok", "nym_pirate_elite", 300, -76.379, -70.682, -102.405, 61.243, 5126317)
spawnMobile("lok", "nym_pirate_elite", 300, -77.091, -71.311, -108.814, 80.001, 5126317)
-- Start Cage
spawnMobile("lok", "twilek_slave", 300, -70.572, -69.615, -122.314, -66.309, 5126317)
spawnMobile("lok", "twilek_slave", 300, -72.134, -70.473, -119.819, -54.116, 5126317)
spawnMobile("lok", "twilek_slave", 300, -69.814, -70.418, -115.726, -51.236, 5126317)
spawnMobile("lok", "twilek_slave", 300, -70.009, -70.314, -113.718, -144.692, 5126317)
spawnMobile("lok", "twilek_slave", 300, -74.088, -70.982, -111.165, -91.888, 5126317)
-- End Cage
-- cell 5126336
spawnMobile("lok", "nym_pirate_strong", 300, -61.648, -65.694, -147.225, 2.024, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -67.677, -65.284, -147.202, 3.446, 5126336)
spawnMobile("lok", "nym_pirate_elite", 300, -61.440, -65.506, -164.336, 0.537, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -65.271, -66.055, -164.774, 86.350, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -76.473, -65.874, -157.770, 15.728, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -47.420, -66.686, -157.356, 78.816, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -48.362, -66.326, -177.353, 18.530, 5126336)
spawnMobile("lok", "nym_pirate_elite", 300, -44.792, -66.460, -175.548, 9.645, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -41.077, -66.167, -178.641, 5.726, 5126336)
spawnMobile("lok", "nym_pirate_elite", 300, -51.955, -65.886, -198.878, 19.196, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -59.471, -66.292, -198.935, 1.413, 5126336)
spawnMobile("lok", "nym_pirate_elite", 300, -79.883, -66.002, -173.156, 38.809, 5126336)
spawnMobile("lok", "nym_pirate_elite", 300, -83.716, -66.392, -172.311, 70.377, 5126336)
spawnMobile("lok", "nym_pirate_strong", 300, -85.054, -66.365, -178.006, 7.666, 5126336)
-- cell 5126337
spawnMobile("lok", "nym_pirate_strong", 300, -56.754, -65.431, -224.578, 17.827, 5126337)
spawnMobile("lok", "nym_pirate_elite", 300, -50.633, -65.217, -223.649, 17.261, 5126337)
spawnMobile("lok", "nym_pirate_elite", 300, -52.371, -65.309, -229.234, 27.292, 5126337)
spawnMobile("lok", "nym_pirate_elite", 300, -65.073, -65.386, -225.944, 81.210, 5126337)
-- cell 5126334
spawnMobile("lok", "nym_pirate_strong", 300, 5.607, -71.955, -113.840, 64.139, 5126334)
spawnMobile("lok", "nym_pirate_weak", 300, 4.539, -71.920, -114.186, -108.265, 5126334)
spawnMobile("lok", "nym_pirate_weak", 300, 5.568, -71.858, -109.649, 129.503, 5126334)
-- cell 5126328
spawnMobile("lok", "nym_pirate_weak", 300, 15.007, -67.357, -67.588, -111.868, 5126328)
spawnMobile("lok", "nym_pirate_weak", 300, 14.820, -67.120, -73.814, -91.839, 5126328)
-- cell 5126335
spawnMobile("lok", "nym_pirate_strong", 300, 33.184, -67.059, -62.617, -160.723, 5126335)
spawnMobile("lok", "nym_pirate_weak", 300, 37.546, -67.032, -63.414, -129.393, 5126335)
spawnMobile("lok", "nym_pirate_strong", 300, 40.535, -66.836, -63.051, 70.580, 5126335)
spawnMobile("lok", "nym_pirate_weak", 300, 49.864, -67.030, -69.826, -139.248, 5126335)
spawnMobile("lok", "nym_pirate_elite", 300, 53.485, -65.643, -85.256, -170.730, 5126335)
spawnMobile("lok", "nym_pirate_weak", 300, 55.398, -66.246, -91.202, -140.704, 5126335)
spawnMobile("lok", "nym_pirate_elite", 300, 53.679, -65.967, -89.926, 68.783, 5126335)
spawnMobile("lok", "nym_pirate_weak", 300, 35.305, -69.052, -104.476, 7.544, 5126335)
spawnMobile("lok", "nym_pirate_strong", 300, 30.039, -69.028, -104.620, 62.253, 5126335)
spawnMobile("lok", "nym_pirate_weak", 300, 25.517, -66.546, -87.685, 84.165, 5126335)
spawnMobile("lok", "nym_pirate_elite", 300, 24.666, -66.085, -83.231, 167.443, 5126335)
end
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/ship/components/droid_interface/ddi_qualdex_droid_interface_mk1.lua | 3 | 2376 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_components_droid_interface_ddi_qualdex_droid_interface_mk1 = object_tangible_ship_components_droid_interface_shared_ddi_qualdex_droid_interface_mk1:new {
}
ObjectTemplates:addTemplate(object_tangible_ship_components_droid_interface_ddi_qualdex_droid_interface_mk1, "object/tangible/ship/components/droid_interface/ddi_qualdex_droid_interface_mk1.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/Buburimu_Peninsula/TextIDs.lua | 2 | 2503 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6416; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6422; -- Obtained: <item>.
GIL_OBTAINED = 6423; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6425; -- Obtained key item: <keyitem>.
BEASTMEN_BANNER = 7164; -- There is a beastmen's banner.
FISHING_MESSAGE_OFFSET = 7248; -- You can't fish here.
-- Conquest
CONQUEST = 7411; -- You've earned conquest points!
-- Logging
LOGGING_IS_POSSIBLE_HERE = 7395; -- Logging is possible here if you have
-- Dialog Texts
FIVEOFSPADES_DIALOG = 7242; -- GiMme★fIvE! FiVe is★A cArdIan★OF WiN-DuRst! FIvE★iS On★pA-tRol!≺Prompt≻
SONG_RUNES_DEFAULT = 7368; -- An old momument. A melancholy song of two separated lovers is written upon it.
SONG_RUNES_REQUIRE = 7382; -- If only you had ≺Possible Special Code: 01≻≺Possible Special Code: 01≻≺Possible Special Code: 01≻ ≺Possible Special Code: 01≻≺Possible Special Code: 05≻$≺BAD CHAR: 8280≻≺BAD CHAR: 80≻≺BAD CHAR: 80≻, you could jot down the lyrics.≺Prompt≻
SONG_RUNES_WRITING = 7383; -- You write down the lyrics on the ≺Possible Special Code: 01≻≺Possible Special Code: 05≻#≺BAD CHAR: 8280≻≺BAD CHAR: 80≻≺BAD CHAR: 80≻.≺Prompt≻
YOU_CANNOT_ENTER_DYNAMIS = 7890; -- You cannot enter Dynamis
MYSTERIOUS_VOICE = 7891; -- You hear a mysterious, floating voice: The guiding aura has not yet faded... Bring forth the
PLAYERS_HAVE_NOT_REACHED_LEVEL = 7892; -- Players who have not reached levelare prohibited from entering Dynamis.
-- Signs
SIGN_1 = 7390; -- West: Tahrongi Canyon Southeast: Mhaura
SIGN_2 = 7391; -- West: Tahrongi Canyon South: Mhaura
SIGN_3 = 7392; -- West: Tahrongi Canyon Southwest: Mhaura
SIGN_4 = 7393; -- West: Mhaura and Tahrongi Canyon
SIGN_5 = 7394; -- West: Mhaura Northwest: Tahrongi Canyon
-- conquest Base
CONQUEST_BASE = 7083; -- Tallying conquest results...
--chocobo digging
DIG_THROW_AWAY = 7261; -- You dig up$, but your inventory is full. You regretfully throw the # away.
FIND_NOTHING = 7263; -- You dig and you dig, but find nothing.
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/conversations/dungeon/death_watch_bunker/mand_bunker_technician_conv.lua | 1 | 5175 | mand_bunker_technician_convotemplate = ConvoTemplate:new {
initialScreen = "convoscreen1",
templateType = "Normal",
--luaClassHandler = "death_watch_mand_bunker_technician_handler",
screens = {}
}
mand_bunker_technician_convoscreen1 = ConvoScreen:new {
id = "convoscreen1",
leftDialog = "@conversation/death_watch_technician:s_ebfed4db",
stopConversation = "true",
options = {
--{"@conversation/death_watch_technician:s_3fb7180e", "convoscreen2"},
}
}
mand_bunker_technician_convotemplate:addScreen(mand_bunker_technician_convoscreen1);
addConversationTemplate("mand_bunker_technician_convotemplate", mand_bunker_technician_convotemplate);
--[[
option s_17aa7854 I can do that. Send in the droid and I will take care of the Mandalorians.
option s_1a05844b Hmmm, I am not going to do that. Those Mandalorians are nasty.
option s_1cc2ceff I see. So.... what sort of work do you do here?
response s_1fb416ce Give me a few minutes. I just sent out one of my droids on a dangerous mission with an escort. I am hoping that this works.
response s_25e933d3 I am an exhaust ventilation technician for the mines. It is my job to make sure that the mine's exhaust system is working correctly. Of course, that is when the Mandalorians let me do my job.
response s_32b29b58 You are going to have to give me a little while to get another droid put together. Come back and talk to me later. If I still need the help, I will be more than willing to take it.
response s_33381eda I can't thank you enough for helping me out back there. The exhaust fans are back online and the miners should be safe for a while at least. That exhaust system is pretty iffy and shorts out alot. I think the Mandalorians are breaking it on purpose just so they can have their fun.
option s_373533eb You know it. I will protect that droid.
option s_3bc0260c Those Mandalorians are to much for me.
response s_3cab69e3 Hey, you don't know how happy I am to see you again. The exhaust system went offline again and...that's right...you guessed it...those Mandalorians are at it again. You willing to give me a hand again?
option s_3f1a842c Yeah, yeah.
option s_406a4ae2 Sounds like you do have it rough.
response s_45ae332c The mines fill up with allum gas. That stuff can really mess up the men working inside the mines. So all the miners have to wear the rebreather gear in order to work down there, but those things are not always reliable.
?? s_72f8ec3a Okay, well, good luck with that.
option s_7d875e15 Give me another chance. I know I can keep that droid alive.
response s_89b80057 Can't say I blame you.
response s_8b67f49d Hmm, who are you? Actually, nevermind. I don't want to know. If the Mandalorians don't want you here, they can take care of you themselves. It's not like they ever help me. No, not them. They tell me to get a job done and then don't let me do it.
response s_9a8c12bc I knew I could count on you. Okay, I am going to unleash the droid now. Good luck to you.
option s_a0c1a32f What are the Mandalorians doing to stop you from working?
response s_a8fb8b64 The main exhaust ports are offline and I need to send in a droid to fix it. But everytime I send in one of my droids, these dumb Mandalorians shoot it to pieces. Then, they laugh about it all the while yelling at me for not having the ports back online.
response s_aad4d52 Oh, well, I am sure I will figure something else out. Thanks anyways.
?? s_bb1676fc Having problems with the Mandalorians?
response s_bb18b90f Ain't that the truth. Now, if there isn't anything else, I really need to get back to trying to figure out a way to get those dumb Mandalorians not to trash another one of my droids.
response s_bd52a08a Blast it! Lost another droid. I swear those Mandalorians are just relentless when they feel the need to torment someone.
option s_bd5476c4 Maybe I can help you out?
option s_c4446dd7 What happens if the mine's exhaust system isn't working?
response s_c74f6e65 The only thing that I can think of to help me out is if you go in with the droid and don't let the Mandalorians blow it up. If you are willing to do that, you have way more guts than I would ever have.
response s_cba682eb What are you doing back here? You are supposed to be protecting that droid. Without your protection, those Mandalorians will blow him to bits.
option s_cbf95857 I am sorry, but I can't right now.
option s_d7a232dc What sort of job do you do?
response s_ebfed4db I am sorry, but I really don't have much time to chat right now. Always too much work to do in to little time. Maybe later I will have a spare moment.
response s_f7d4b8be Now that might be a little bit of an understatement. I always have problems with the Mandalorians. They just don't deal well with others... I am thinking that they probably weren't hugged enough when they were children.
response s_fc578c95 You are not the first person to say those words.
response s_fe84832a Alright, I am going to release the droid. It has to make a stop over at the tool chest to get some extra tools before it can make the repairs. Keep those Mandalorians off it until it can finish the repairs and these air vents will kick on and clear out the allum gases.
]] | lgpl-3.0 |
eraffxi/darkstar | scripts/zones/West_Sarutabaruta_[S]/TextIDs.lua | 2 | 1335 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6381; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6387; -- Obtained: <item>.
GIL_OBTAINED = 6388; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6390; -- Obtained key item: <keyitem>.
FISHING_MESSAGE_OFFSET = 7075; -- You can't fish here.
-- Harvesting
HARVESTING_IS_POSSIBLE_HERE = 7068; -- Harvesting is possible here if you have
-- "Snake on the Plains"
DOOR_OFFSET = 7433; -- The door is sealed shut...
-- +1 7416; -- You apply ?Possible Special Code: 01??Possible Special Code: 05?3?BAD CHAR: 8280??BAD CHAR: 80??BAD CHAR: 80? to the cracks on the entrance.?Possible Special Code: 00?
-- +2 7417; -- This door has already been repaired with ?Possible Special Code: 01??Possible Special Code: 05?3?BAD CHAR: 8280??BAD CHAR: 80??BAD CHAR: 80?.?Possible Special Code: 00?
-- +3 7418; -- The door is badly cracked...?Possible Special Code: 00?
-- +4 7419; -- You apply the remaining ?Possible Special Code: 01??Possible Special Code: 05?3?BAD CHAR: 8280??BAD CHAR: 80??BAD CHAR: 80? to the cracks on the entrance.?Possible Special Code: 00?
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/draft_schematic/food/dish_wastril_bread.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_draft_schematic_food_dish_wastril_bread = object_draft_schematic_food_shared_dish_wastril_bread:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_food_dish_wastril_bread, "object/draft_schematic/food/dish_wastril_bread.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/structure/general/poi_tato_corral_half_32x32_s04.lua | 3 | 2308 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_general_poi_tato_corral_half_32x32_s04 = object_static_structure_general_shared_poi_tato_corral_half_32x32_s04:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_poi_tato_corral_half_32x32_s04, "object/static/structure/general/poi_tato_corral_half_32x32_s04.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/creature/dantooine_huurton.lua | 3 | 2220 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_creature_dantooine_huurton = object_static_creature_shared_dantooine_huurton:new {
}
ObjectTemplates:addTemplate(object_static_creature_dantooine_huurton, "object/static/creature/dantooine_huurton.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Arpevion_TK.lua | 2 | 2447 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Arpevion, T.K.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Missions and offers a list of already-delivered supplies.
-- Start an Expeditionary Force by giving an E.F. region insignia to you.
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest");
require("scripts/zones/Southern_San_dOria/TextIDs");
local guardnation = dsp.nation.SANDORIA; -- SANDORIA, BASTOK, WINDURST, JEUNO
local guardtype = 1; -- 1: city, 2: foreign, 3: outpost, 4: border
local size = #SandInv;
local inventory = SandInv;
function onTrade(player,npc,trade)
tradeConquestGuard(player,npc,trade,guardnation,guardtype);
end;
function onTrigger(player,npc)
if (player:getNation() == guardnation and player:getVar("supplyQuest_started") > 0 and supplyRunFresh(player) == 0) then
player:showText(npc,CONQUEST + 40); -- "We will dispose of those unusable supplies."
local region = player:getVar("supplyQuest_region");
player:delKeyItem(getSupplyKey(region));
player:messageSpecial(KEYITEM_OBTAINED + 1,getSupplyKey(region));
player:setVar("supplyQuest_started",0);
player:setVar("supplyQuest_region",0);
else
local Menu1 = getArg1(guardnation,player);
local Menu2 = getExForceAvailable(guardnation,player);
local Menu3 = conquestRanking();
local Menu4 = getSupplyAvailable(guardnation,player);
local Menu5 = player:getNationTeleport(guardnation);
local Menu6 = getArg6(player);
local Menu7 = player:getCP();
local Menu8 = getRewardExForce(guardnation,player);
player:startEvent(32763,Menu1,Menu2,Menu3,Menu4,Menu5,Menu6,Menu7,Menu8);
end
end;
function onEventUpdate(player,csid,option)
-- printf("onUpdateCSID: %u",csid);
-- printf("onUpdateOPTION: %u",option);
updateConquestGuard(player,csid,option,size,inventory);
end;
function onEventFinish(player,csid,option)
-- printf("onFinishCSID: %u",csid);
-- printf("onFinishOPTION: %u",option);
finishConquestGuard(player,csid,option,size,inventory,guardnation);
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/draft_schematic/structure/naboo_house_guild_hall.lua | 2 | 3680 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_draft_schematic_structure_naboo_house_guild_hall = object_draft_schematic_structure_shared_naboo_house_guild_hall:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Deed for: Naboo Guild Hall",
craftingToolTab = 1024, -- (See DraftSchemticImplementation.h)
complexity = 45,
size = 14,
xpType = "crafting_structure_general",
xp = 7800,
assemblySkill = "structure_assembly",
experimentingSkill = "structure_experimentation",
customizationSkill = "structure_customization",
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n", "craft_structure_ingredients_n"},
ingredientTitleNames = {"load_bearing_structure_and_shell", "insulation_and_covering", "foundation", "wall_sections", "power_supply_unit", "storage_space"},
ingredientSlotType = {0, 0, 0, 2, 1, 1},
resourceTypes = {"metal", "ore", "ore", "object/tangible/component/structure/shared_wall_module.iff", "object/tangible/component/structure/shared_power_core_unit.iff", "object/tangible/component/structure/shared_structure_storage_section.iff"},
resourceQuantities = {1250, 2250, 400, 15, 2, 8},
contribution = {100, 100, 100, 100, 100, 100},
targetTemplate = "object/tangible/deed/guild_deed/naboo_guild_deed.iff",
additionalTemplates = {
}
}
ObjectTemplates:addTemplate(object_draft_schematic_structure_naboo_house_guild_hall, "object/draft_schematic/structure/naboo_house_guild_hall.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/wearables/base/base_bracer_upper_l.lua | 3 | 2260 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_wearables_base_base_bracer_upper_l = object_tangible_wearables_base_shared_base_bracer_upper_l:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_base_base_bracer_upper_l, "object/tangible/wearables/base/base_bracer_upper_l.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/structure/general/cave_stalagmite_tato_s01_small.lua | 3 | 2308 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_general_cave_stalagmite_tato_s01_small = object_static_structure_general_shared_cave_stalagmite_tato_s01_small:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_cave_stalagmite_tato_s01_small, "object/static/structure/general/cave_stalagmite_tato_s01_small.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/Giddeus/npcs/Altar_of_Offerings.lua | 2 | 1199 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Alter Of Offering
-- Involved in Quest: A Crisis in the Making
-- !pos -137 17 177 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Giddeus/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/titles");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
crisisstatus = player:getQuestStatus(WINDURST,A_CRISIS_IN_THE_MAKING);
if (crisisstatus >= 1 and player:getVar("QuestCrisisMaking_var") == 1) then
player:startEvent(53); -- A Crisis in the Making: Receive Offering
else
player:startEvent(60); -- Standard Message
end
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 53 and option == 1) then
player:addKeyItem(39,dsp.ki.OFF_OFFERING);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.OFF_OFFERING);
player:setVar("QuestCrisisMaking_var",2);
end
end;
| gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_cobral_mugger_human_male_01.lua | 3 | 2256 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_dressed_cobral_mugger_human_male_01 = object_mobile_shared_dressed_cobral_mugger_human_male_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_cobral_mugger_human_male_01, "object/mobile/dressed_cobral_mugger_human_male_01.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/wearables/skirt/serverobjects.lua | 3 | 2924 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--Children folder includes
-- Server Objects
includeFile("tangible/wearables/skirt/singing_mountain_clan_skirt_s01.lua")
includeFile("tangible/wearables/skirt/singing_mountain_clan_skirt_s02.lua")
includeFile("tangible/wearables/skirt/singing_mountain_clan_skirt_s03.lua")
includeFile("tangible/wearables/skirt/skirt_s03.lua")
includeFile("tangible/wearables/skirt/skirt_s04.lua")
includeFile("tangible/wearables/skirt/skirt_s05.lua")
includeFile("tangible/wearables/skirt/skirt_s06.lua")
includeFile("tangible/wearables/skirt/skirt_s07.lua")
includeFile("tangible/wearables/skirt/skirt_s08.lua")
includeFile("tangible/wearables/skirt/skirt_s09.lua")
includeFile("tangible/wearables/skirt/skirt_s10.lua")
includeFile("tangible/wearables/skirt/skirt_s11.lua")
includeFile("tangible/wearables/skirt/skirt_s12.lua")
includeFile("tangible/wearables/skirt/skirt_s13.lua")
includeFile("tangible/wearables/skirt/skirt_s14.lua")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/medicine/crafted/medpack_disease_area_mind_c.lua | 1 | 3374 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_medicine_crafted_medpack_disease_area_mind_c = object_tangible_medicine_crafted_shared_medpack_disease_area_mind_c:new {
gameObjectType = 8240,
templateType = DOTPACK,
useCount = 10,
medicineUse = 5,
effectiveness = 100,
duration = 300,
range = 15,
rangeMod = 0.3,
pool = 6,
dotType = DISEASED,
potency = 350,
commandToExecute = "/applydisease",
area = 10,
numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 2, 2, 1},
experimentalProperties = {"XX", "XX", "OQ", "PE", "OQ", "UT", "CD", "OQ", "CD", "OQ", "OQ", "PE", "OQ", "PE", "DR", "OQ", "XX"},
experimentalWeights = {1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 2, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_effectiveness", "exp_charges", "exp_charges", "exp_effectiveness", "expEaseOfUse", "expEaseOfUse", "exp_effectiveness", "null"},
experimentalSubGroupTitles = {"null", "null", "power", "charges", "range", "area", "skillmodmin", "potency", "duration", "hitpoints"},
experimentalMin = {0, 0, 5, 15, 15, 5, 100, 25, 120, 1000},
experimentalMax = {0, 0, 50, 35, 30, 20, 70, 150, 1000, 1000},
experimentalPrecision = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 4},
}
ObjectTemplates:addTemplate(object_tangible_medicine_crafted_medpack_disease_area_mind_c, "object/tangible/medicine/crafted/medpack_disease_area_mind_c.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/puny_gackle_bat.lua | 3 | 2176 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_mobile_puny_gackle_bat = object_mobile_shared_puny_gackle_bat:new {
}
ObjectTemplates:addTemplate(object_mobile_puny_gackle_bat, "object/mobile/puny_gackle_bat.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/Lower_Jeuno/npcs/Muckvix.lua | 2 | 1075 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Muckvix
-- Involved in Mission: Magicite
-- @zone 245
-- !pos -26.824 3.601 -137.082
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
if (player:hasKeyItem(dsp.ki.SILVER_BELL) and player:hasKeyItem(dsp.ki.YAGUDO_TORCH) == false) then
if (player:getVar("YagudoTorchCS") == 1) then
player:startEvent(184);
else
player:startEvent(80);
end
else
player:startEvent(15);
end
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 184) then
player:addKeyItem(dsp.ki.YAGUDO_TORCH);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.YAGUDO_TORCH);
player:setVar("YagudoTorchCS",0);
end
end; | gpl-3.0 |
eraffxi/darkstar | scripts/zones/Cloister_of_Gales/bcnms/trial_by_wind.lua | 2 | 1877 | -----------------------------------
-- Area: Cloister of Gales
-- BCNM: Trial by Wind
-- @zone -361 1 -381 201
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/zones/Cloister_of_Gales/TextIDs");
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
end;
-- Physically entering the BCNM via bcnmEnter(bcnmid)
function onBcnmEnter(player,instance)
end;
-- Leaving the BCNM by every mean possible, given by the LeaveCode
-- 1=Select Exit on circle
-- 2=Winning the BC
-- 3=Disconnected or warped out
-- 4=Losing the BC
-- via bcnmLeave(1) or bcnmLeave(2). LeaveCodes 3 and 4 are called
-- from the core when a player disconnects or the time limit is up, etc
function onBcnmLeave(player,instance,leavecode)
-- print("leave code "..leavecode);
if (leavecode == 2) then -- play end CS. Need time and battle id for record keeping + storage
if (player:hasCompletedQuest(OUTLANDS,TRIAL_BY_WIND)) then
player:startEvent(32001,1,1,1,instance:getTimeInside(),1,0,1);
else
player:startEvent(32001,1,1,1,instance:getTimeInside(),1,0,0);
end
elseif (leavecode == 4) then
player:startEvent(32002);
end
end;
function onEventUpdate(player,csid,option)
-- print("bc update csid "..csid.." and option "..option);
end;
function onEventFinish(player,csid,option)
-- print("bc finish csid "..csid.." and option "..option);
if (csid == 32001) then
player:delKeyItem(dsp.ki.TUNING_FORK_OF_WIND);
player:addKeyItem(dsp.ki.WHISPER_OF_GALES);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.WHISPER_OF_GALES);
end
end; | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/conversations/village/old_man_conv.lua | 3 | 6697 | old_man_convotemplate = ConvoTemplate:new {
initialScreen = "init",
templateType = "Lua",
luaClassHandler = "old_man_conv_handler",
screens = {}
}
old_man_init = ConvoScreen:new {
id = "init",
leftDialog = "",
stopConversation = "false",
options = {
}
}
old_man_convotemplate:addScreen(old_man_init);
old_man_not_you = ConvoScreen:new {
id = "not_you",
leftDialog = "@conversation/fs_intro_oldman_initial:s_c7146ea8", -- I am sorry. I have nothing to discuss with you.
stopConversation = "true",
options = {
}
}
old_man_convotemplate:addScreen(old_man_not_you);
old_man_village_intro = ConvoScreen:new {
id = "village_intro",
leftDialog = "@conversation/fs_intro_oldman_initial:s_de9da426", -- Hello. I have been meaning to speak with you for some time. Do you have a moment?
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_501448da", "village_connection_force" }, -- Yes, what is it you need?
{ "@conversation/fs_intro_oldman_initial:s_e0a90395", "village_urgent" } -- I'm sorry. I really don't have time now.
}
}
old_man_convotemplate:addScreen(old_man_village_intro);
old_man_village_connection_force = ConvoScreen:new {
id = "village_connection_force",
leftDialog = "@conversation/fs_intro_oldman_initial:s_7f8604a5", -- I was wondering if you had ever considered the possibility that you might be connected with the Force?
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_a3291a29", "village_force_crystal" }, -- Yes, the thought had crossed my mind a few times.
{ "@conversation/fs_intro_oldman_initial:s_6b88daf2", "village_no_force" } -- No, I have never thought about it really.
}
}
old_man_convotemplate:addScreen(old_man_village_connection_force);
old_man_village_force_crystal = ConvoScreen:new {
id = "village_force_crystal",
leftDialog = "@conversation/fs_intro_oldman_initial:s_cf55fe01", -- So you sense it as well. I have a Force crystal here if you are interested in discovering for certain. Perhaps you could hold onto it and keep it safe?
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_b81ceeb4", "village_give_crystal" }, -- Yes, I will keep it safe for you.
{ "@conversation/fs_intro_oldman_initial:s_c6f70929", "village_another_time2" } -- No, I am not interested. Thanks.
}
}
old_man_convotemplate:addScreen(old_man_village_force_crystal);
old_man_village_give_crystal = ConvoScreen:new {
id = "village_give_crystal",
leftDialog = "@conversation/fs_intro_oldman_initial:s_3aab754", -- Very good. Here is the crystal. May the Force be with you.
stopConversation = "true",
options = {
}
}
old_man_convotemplate:addScreen(old_man_village_give_crystal);
old_man_village_urgent = ConvoScreen:new {
id = "village_urgent",
leftDialog = "@conversation/fs_intro_oldman_initial:s_383079e", -- Are you sure? It's a fairly urgent matter.
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_aa6a1756", "village_connection_force" }, -- Oh? Very well then. What is it you wanted to discuss?
{ "@conversation/fs_intro_oldman_initial:s_fb9e0b93", "village_another_time" } -- No, I am busy right now. Perhaps another time.
}
}
old_man_convotemplate:addScreen(old_man_village_urgent);
old_man_village_another_time = ConvoScreen:new {
id = "village_another_time",
leftDialog = "@conversation/fs_intro_oldman_initial:s_83e20fb8", -- Very well then. Perhaps we will meet again at another time.
stopConversation = "true",
options = {
}
}
old_man_convotemplate:addScreen(old_man_village_another_time);
old_man_village_no_force = ConvoScreen:new {
id = "village_no_force",
leftDialog = "@conversation/fs_intro_oldman_initial:s_eb24a286", -- Hmmmm. Perhaps I misjudged you. I have a Force crystal here if you are interested in discovering for certain. Perhaps you could hold onto it and keep it safe?
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_b81ceeb4", "village_give_crystal" }, -- Yes, I will keep it safe for you.
{ "@conversation/fs_intro_oldman_initial:s_c6f70929", "village_another_time" } -- No, I am not interested. Thanks.
}
}
old_man_convotemplate:addScreen(old_man_village_no_force);
old_man_village_another_time2 = ConvoScreen:new {
id = "village_another_time2",
leftDialog = "@conversation/fs_intro_oldman_initial:s_419f8694", -- Very well then. Perhaps another time.
stopConversation = "true",
options = {
}
}
old_man_convotemplate:addScreen(old_man_village_another_time2);
old_man_mellichae_intro = ConvoScreen:new {
id = "mellichae_intro",
leftDialog = "@conversation/fs_intro_oldman_initial:s_958f442", -- Hello again, my friend. Thank you for all of your help at the village. The time has come for you to hunt down and destroy Mellichae.
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_fbd984c8", "mellichae_who" }, -- Who is Mellichae? Where is his camp located?
{ "@conversation/fs_intro_oldman_initial:s_477068d1", "mellichae_later" } -- I am busy at the moment. Perhaps later.
}
}
old_man_convotemplate:addScreen(old_man_mellichae_intro);
old_man_mellichae_who = ConvoScreen:new {
id = "mellichae_who",
leftDialog = "@conversation/fs_intro_oldman_initial:s_31a054f9", -- Mellichae is the leader of the Sith Shadows. He is responsible for the attacks at the village. Scouts have reported he has set up camp near here.
stopConversation = "false",
options = {
{ "@conversation/fs_intro_oldman_initial:s_9641e6e", "mellichae_location" }, -- Where is his camp located?
{ "@conversation/fs_intro_oldman_initial:s_c6f70929", "mellichae_later" } -- No, I am not interested. Thanks.
}
}
old_man_convotemplate:addScreen(old_man_mellichae_who);
old_man_mellichae_location = ConvoScreen:new {
id = "mellichae_location",
leftDialog = "@conversation/fs_intro_oldman_initial:s_f5c5ace0", -- Although the exact location is still unknown, his camp is relatively close to here. I have given the approximate location to you as a waypoint. Be very careful. You may want to bring some friends. Defeating Mellichae will not be easy... Good luck!
stopConversation = "true",
options = {
}
}
old_man_convotemplate:addScreen(old_man_mellichae_location);
old_man_mellichae_later = ConvoScreen:new {
id = "mellichae_later",
leftDialog = "@conversation/fs_intro_oldman_initial:s_ac22e1a3", -- Very well then. I shall return later. Thanks again for all your help.
stopConversation = "true",
options = {
}
}
old_man_convotemplate:addScreen(old_man_mellichae_later);
addConversationTemplate("old_man_convotemplate", old_man_convotemplate);
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/powerup/weapon/fs_quest_sad/objects.lua | 3 | 3913 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_powerup_weapon_fs_quest_sad_shared_melee_speed_quest = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/powerup/weapon/fs_quest_sad/shared_melee_speed_quest.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_repair_melee_weapon.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 524289,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@powerup_d:weapon_melee",
gameObjectType = 524289,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@powerup_n:weapon_melee_speed_quest",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3511795045,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff", "object/tangible/powerup/base/shared_base.iff", "object/tangible/powerup/base/shared_weapon_base.iff", "object/tangible/powerup/weapon/shared_melee.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_powerup_weapon_fs_quest_sad_shared_melee_speed_quest, "object/tangible/powerup/weapon/fs_quest_sad/shared_melee_speed_quest.iff")
| lgpl-3.0 |
eraffxi/darkstar | scripts/zones/Ordelles_Caves/npcs/Treasure_Chest.lua | 2 | 3806 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Treasure Chest
-- Involved In Quest: Signed In Blood and The Goblin Tailor
-- @zone 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Ordelles_Caves/TextIDs");
local TreasureType = "Chest";
local TreasureLvL = 43;
local TreasureMinLvL = 33;
function onTrade(player,npc,trade)
--trade:hasItemQty(1030,1); -- Treasure Key
--trade:hasItemQty(1115,1); -- Skeleton Key
--trade:hasItemQty(1023,1); -- Living Key
--trade:hasItemQty(1022,1); -- Thief's Tools
local questItemNeeded = 0;
-- Player traded a key.
if ((trade:hasItemQty(1030,1) or trade:hasItemQty(1115,1) or trade:hasItemQty(1023,1) or trade:hasItemQty(1022,1)) and trade:getItemCount() == 1) then
local zone = player:getZoneID();
-- IMPORTANT ITEM: Signed In Blood Quest -----------
if (player:getQuestStatus(SANDORIA,SIGNED_IN_BLOOD) == QUEST_ACCEPTED and player:getVar("SIGNED_IN_BLOOD_Prog") >= 1 and player:hasKeyItem(dsp.ki.TORN_OUT_PAGES) == false) then
questItemNeeded = 1;
-- IMPORTANT ITEM: The Goblin Tailor Quest -----------
elseif (player:getQuestStatus(JEUNO,THE_GOBLIN_TAILOR) >= QUEST_ACCEPTED and VanadielRSELocation() == 0 and VanadielRSERace() == player:getRace() and player:hasKeyItem(dsp.ki.MAGICAL_PATTERN) == false) then
questItemNeeded = 2;
end
--------------------------------------
local pack = openChance(player,npc,trade,TreasureType,TreasureLvL,TreasureMinLvL,questItemNeeded);
local success = 0;
if (pack[2] ~= nil) then
player:messageSpecial(pack[2]);
success = pack[1];
else
success = pack[1];
end
if (success ~= -2) then
player:tradeComplete();
if (math.random() <= success) then
local respawn = false;
-- Succeded to open the coffer
player:messageSpecial(CHEST_UNLOCKED);
if (questItemNeeded == 1) then
player:addKeyItem(dsp.ki.TORN_OUT_PAGES);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.TORN_OUT_PAGES);
elseif (questItemNeeded == 2) then
respawn = true;
player:addKeyItem(dsp.ki.MAGICAL_PATTERN);
player:messageSpecial(KEYITEM_OBTAINED,dsp.ki.MAGICAL_PATTERN);
else
player:setVar("["..zone.."]".."Treasure_"..TreasureType,os.time() + math.random(CHEST_MIN_ILLUSION_TIME,CHEST_MAX_ILLUSION_TIME));
local loot = chestLoot(zone,npc);
-- print("loot array: "); -- debug
-- print("[1]", loot[1]); -- debug
-- print("[2]", loot[2]); -- debug
if (loot[1]=="gil") then
player:addGil(loot[2]*GIL_RATE);
player:messageSpecial(GIL_OBTAINED,loot[2]*GIL_RATE);
else
-- Item
player:addItem(loot[2]);
player:messageSpecial(ITEM_OBTAINED,loot[2]);
end
end
UpdateTreasureSpawnPoint(npc:getID(),respawn);
end
end
end
end;
function onTrigger(player,npc)
player:messageSpecial(CHEST_LOCKED,1030);
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
end; | gpl-3.0 |
eraffxi/darkstar | scripts/zones/Davoi/npcs/_45h.lua | 2 | 1876 | -----------------------------------
-- Area: Davoi
-- NPC: Howling Pond
-- Used In Quest: Whence Blows the Wind
-- !pos 21 0.1 -258 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/zones/Davoi/TextIDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(51);
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
if (csid == 51 and player:getVar("miniQuestForORB_CS") == 1) then
local c = player:getVar("countRedPoolForORB");
if (c == 0) then
player:setVar("countRedPoolForORB", c + 1);
player:delKeyItem(dsp.ki.WHITE_ORB);
player:addKeyItem(dsp.ki.PINK_ORB);
player:messageSpecial(KEYITEM_OBTAINED, dsp.ki.PINK_ORB);
elseif (c == 2 or c == 4 or c == 8) then
player:setVar("countRedPoolForORB", c + 1);
player:delKeyItem(dsp.ki.PINK_ORB);
player:addKeyItem(dsp.ki.RED_ORB);
player:messageSpecial(KEYITEM_OBTAINED, dsp.ki.RED_ORB);
elseif (c == 6 or c == 10 or c == 12) then
player:setVar("countRedPoolForORB", c + 1);
player:delKeyItem(dsp.ki.RED_ORB);
player:addKeyItem(dsp.ki.BLOOD_ORB);
player:messageSpecial(KEYITEM_OBTAINED, dsp.ki.BLOOD_ORB);
elseif (c == 14) then
player:setVar("countRedPoolForORB", c + 1);
player:delKeyItem(dsp.ki.BLOOD_ORB);
player:addKeyItem(dsp.ki.CURSED_ORB);
player:messageSpecial(KEYITEM_OBTAINED, dsp.ki.CURSED_ORB);
player:addStatusEffect(dsp.effect.CURSE_I,50,0,900);
end
end
end; | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/actionShot2.lua | 1 | 2566 | --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
ActionShot2Command = {
name = "actionshot2",
damageMultiplier = 2.0,
speedMultiplier = 2.0,
healthCostMultiplier = 2.0,
actionCostMultiplier = 1.25,
mindCostMultiplier = 0.5,
coneAngle = 15,
coneAction = true,
poolsToDamage = ACTION_ATTRIBUTE,
animationCRC = hashCode("fire_area_medium"),
combatSpam = "sapblast",
dotEffects = {
DotEffect(
BLEEDING,
{ "resistance_bleeding", "bleed_resist" },
ACTION,
true,
125,
100,
60,
60
)
},
range = -1
}
AddCommand(ActionShot2Command)
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/structure/general/palette_supply_04.lua | 3 | 2256 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_static_structure_general_palette_supply_04 = object_static_structure_general_shared_palette_supply_04:new {
}
ObjectTemplates:addTemplate(object_static_structure_general_palette_supply_04, "object/static/structure/general/palette_supply_04.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/loot/loot_schematic/professors_desk_schematic.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_loot_loot_schematic_professors_desk_schematic = object_tangible_loot_loot_schematic_shared_professors_desk_schematic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_professors_desk_schematic, "object/tangible/loot/loot_schematic/professors_desk_schematic.iff")
| lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/ship/crafted/shields/shield_intensifier_mk4.lua | 1 | 2883 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
object_tangible_ship_crafted_shields_shield_intensifier_mk4 = object_tangible_ship_crafted_shields_shared_shield_intensifier_mk4:new {
numberExperimentalProperties = {1, 1, 2, 2, 2},
experimentalProperties = {"XX", "XX", "OQ", "UT", "OQ", "UT", "OQ", "UT"},
experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "exp_shield_max_front_hp", "exp_shield_max_back_hp", "exp_energy_maintenance"},
experimentalSubGroupTitles = {"null", "null", "shield_max_front_hp", "shield_max_back_hp", "energy_maintenance"},
experimentalMin = {0, 0, 265, 265, 546},
experimentalMax = {0, 0, 358, 358, 404},
experimentalPrecision = {0, 0, 10, 10, 10},
experimentalCombineType = {0, 0, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_tangible_ship_crafted_shields_shield_intensifier_mk4, "object/tangible/ship/crafted/shields/shield_intensifier_mk4.iff")
| lgpl-3.0 |
devahmed2/King_2001 | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x, n) return x >> n end,
lshift = function(x, n) return x << n end,
} ]])()
else
ok,bit = pcall(require,"bit")
if not ok then bit = bit32 end
end
assert(type(bit) == "table", "module for bitops not found")
--- default sleep
local default_sleep
do
local ok, mod = pcall(require, "socket")
if ok and type(mod) == "table" then
default_sleep = mod.sleep
else
default_sleep = function(n)
local t0 = os.clock()
while true do
local delta = os.clock() - t0
if (delta < 0) or (delta > n) then break end
end
end
end
end
--- Helpers
local xdefv = function(ktype)
if ktype == "list" then
return {head = 0, tail = 0}
elseif ktype == "zset" then
return {
list = {},
set = {},
}
else return {} end
end
local xgetr = function(self, k, ktype)
if self.data[k] then
assert(
(self.data[k].ktype == ktype),
"ERR Operation against a key holding the wrong kind of value"
)
assert(self.data[k].value)
return self.data[k].value
else return xdefv(ktype) end
end
local xgetw = function(self, k, ktype)
if self.data[k] and self.data[k].value then
assert(
(self.data[k].ktype == ktype),
"ERR Operation against a key holding the wrong kind of value"
)
else
self.data[k] = {ktype = ktype, value = xdefv(ktype)}
end
return self.data[k].value
end
local empty = function(self, k)
local v, t = self.data[k].value, self.data[k].ktype
if t == nil then
return true
elseif t == "string" then
return not v[1]
elseif (t == "hash") or (t == "set") then
for _,_ in pairs(v) do return false end
return true
elseif t == "list" then
return v.head == v.tail
elseif t == "zset" then
if #v.list == 0 then
for _,_ in pairs(v.set) do error("incoherent") end
return true
else
for _,_ in pairs(v.set) do return(false) end
error("incoherent")
end
else error("unsupported") end
end
local cleanup = function(self, k)
if empty(self, k) then self.data[k] = nil end
end
local is_integer = function(x)
return (type(x) == "number") and (math.floor(x) == x)
end
local overflows = function(n)
return (n > 2^53-1) or (n < -2^53+1)
end
local is_bounded_integer = function(x)
return (is_integer(x) and (not overflows(x)))
end
local is_finite_number = function(x)
return (type(x) == "number") and (x > -math.huge) and (x < math.huge)
end
local toint = function(x)
if type(x) == "string" then x = tonumber(x) end
return is_bounded_integer(x) and x or nil
end
local tofloat = function(x)
if type(x) == "number" then return x end
if type(x) ~= "string" then return nil end
local r = tonumber(x)
if r then return r end
if x == "inf" or x == "+inf" then
return math.huge
elseif x == "-inf" then
return -math.huge
else return nil end
end
local tostr = function(x)
if is_bounded_integer(x) then
return string.format("%d", x)
else return tostring(x) end
end
local char_bitcount = function(x)
assert(
(type(x) == "number") and
(math.floor(x) == x) and
(x >= 0) and (x < 256)
)
local n = 0
while x ~= 0 do
x = bit.band(x, x-1)
n = n+1
end
return n
end
local chkarg = function(x)
if type(x) == "number" then x = tostr(x) end
assert(type(x) == "string")
return x
end
local chkargs = function(n, ...)
local arg = {...}
assert(#arg == n)
for i=1,n do arg[i] = chkarg(arg[i]) end
return unpack(arg)
end
local getargs = function(...)
local arg = {...}
local n = #arg; assert(n > 0)
for i=1,n do arg[i] = chkarg(arg[i]) end
return arg
end
local getargs_as_map = function(...)
local arg, r = getargs(...), {}
assert(#arg%2 == 0)
for i=1,#arg,2 do r[arg[i]] = arg[i+1] end
return r
end
local chkargs_wrap = function(f, n)
assert( (type(f) == "function") and (type(n) == "number") )
return function(self, ...) return f(self, chkargs(n, ...)) end
end
local lset_to_list = function(s)
local r = {}
for v,_ in pairs(s) do r[#r+1] = v end
return r
end
local nkeys = function(x)
local r = 0
for _,_ in pairs(x) do r = r + 1 end
return r
end
--- Commands
-- keys
local del = function(self, ...)
local arg = getargs(...)
local r = 0
for i=1,#arg do
if self.data[arg[i]] then r = r + 1 end
self.data[arg[i]] = nil
end
return r
end
local exists = function(self, k)
return not not self.data[k]
end
local keys = function(self, pattern)
assert(type(pattern) == "string")
-- We want to convert the Redis pattern to a Lua pattern.
-- Start by escaping dashes *outside* character classes.
-- We also need to escape percents here.
local t, p, n = {}, 1, #pattern
local p1, p2
while true do
p1, p2 = pattern:find("%[.+%]", p)
if p1 then
if p1 > p then
t[#t+1] = {true, pattern:sub(p, p1-1)}
end
t[#t+1] = {false, pattern:sub(p1, p2)}
p = p2+1
if p > n then break end
else
t[#t+1] = {true, pattern:sub(p, n)}
break
end
end
for i=1,#t do
if t[i][1] then
t[i] = t[i][2]:gsub("[%%%-]", "%%%0")
else t[i] = t[i][2]:gsub("%%", "%%%%") end
end
-- Remaining Lua magic chars are: '^$().[]*+?' ; escape them except '*?[]'
-- Then convert '\' to '%', '*' to '.*' and '?' to '.'. Leave '[]' as is.
-- Wrap in '^$' to enforce bounds.
local lp = "^" .. table.concat(t):gsub("[%^%$%(%)%.%+]", "%%%0")
:gsub("\\", "%%"):gsub("%*", ".*"):gsub("%?", ".") .. "$"
local r = {}
for k,_ in pairs(self.data) do
if k:match(lp) then r[#r+1] = k end
end
return r
end
local _type = function(self, k)
return self.data[k] and self.data[k].ktype or "none"
end
local randomkey = function(self)
local ks = lset_to_list(self.data)
local n = #ks
if n > 0 then
return ks[math.random(1, n)]
else return nil end
end
local rename = function(self, k, k2)
assert((k ~= k2) and self.data[k])
self.data[k2] = self.data[k]
self.data[k] = nil
return true
end
local renamenx = function(self, k, k2)
if self.data[k2] then
return false
else
return rename(self, k, k2)
end
end
-- strings
local getrange, incrby, set
local append = function(self, k, v)
local x = xgetw(self, k, "string")
x[1] = (x[1] or "") .. v
return #x[1]
end
local bitcount = function(self, k, i1, i2)
k = chkarg(k)
local s
if i1 or i2 then
assert(i1 and i2, "ERR syntax error")
s = getrange(self, k, i1, i2)
else
s = xgetr(self, k, "string")[1] or ""
end
local r, bytes = 0,{s:byte(1, -1)}
for i=1,#bytes do
r = r + char_bitcount(bytes[i])
end
return r
end
local bitop = function(self, op, k, ...)
assert(type(op) == "string")
op = op:lower()
assert(
(op == "and") or
(op == "or") or
(op == "xor") or
(op == "not"),
"ERR syntax error"
)
k = chkarg(k)
local arg = {...}
local good_arity = (op == "not") and (#arg == 1) or (#arg > 0)
assert(good_arity, "ERR wrong number of arguments for 'bitop' command")
local l, vals = 0, {}
local s
for i=1,#arg do
s = xgetr(self, arg[i], "string")[1] or ""
if #s > l then l = #s end
vals[i] = s
end
if l == 0 then
del(self, k)
return 0
end
local vector_mt = {__index=function() return 0 end}
for i=1,#vals do
vals[i] = setmetatable({vals[i]:byte(1, -1)}, vector_mt)
end
local r = {}
if op == "not" then
assert(#vals[1] == l)
for i=1,l do
r[i] = bit.band(bit.bnot(vals[1][i]), 0xff)
end
else
local _op = bit["b" .. op]
for i=1,l do
local t = {}
for j=1,#vals do t[j] = vals[j][i] end
r[i] = _op(unpack(t))
end
end
set(self, k, string.char(unpack(r)))
return l
end
local decr = function(self, k)
return incrby(self, k, -1)
end
local decrby = function(self, k, n)
n = toint(n)
assert(n, "ERR value is not an integer or out of range")
return incrby(self, k, -n)
end
local get = function(self, k)
local x = xgetr(self, k, "string")
return x[1]
end
local getbit = function(self, k, offset)
k = chkarg(k)
offset = toint(offset)
assert(
(offset >= 0),
"ERR bit offset is not an integer or out of range"
)
local bitpos = offset % 8 -- starts at 0
local bytepos = (offset - bitpos) / 8 -- starts at 0
local s = xgetr(self, k, "string")[1] or ""
if bytepos >= #s then return 0 end
local char = s:sub(bytepos+1, bytepos+1):byte()
return bit.band(bit.rshift(char, 7-bitpos), 1)
end
getrange = function(self, k, i1, i2)
k = chkarg(k)
i1, i2 = toint(i1), toint(i2)
assert(i1 and i2)
local x = xgetr(self, k, "string")
x = x[1] or ""
if i1 >= 0 then i1 = i1 + 1 end
if i2 >= 0 then i2 = i2 + 1 end
return x:sub(i1, i2)
end
local getset = function(self, k, v)
local r = get(self, k)
set(self, k, v)
return r
end
local incr = function(self, k)
return incrby(self, k, 1)
end
incrby = function(self, k, n)
k, n = chkarg(k), toint(n)
assert(n, "ERR value is not an integer or out of range")
local x = xgetw(self, k, "string")
local i = toint(x[1] or 0)
assert(i, "ERR value is not an integer or out of range")
i = i+n
assert(
(not overflows(i)),
"ERR increment or decrement would overflow"
)
x[1] = tostr(i)
return i
end
local incrbyfloat = function(self, k, n)
k, n = chkarg(k), tofloat(n)
assert(n, "ERR value is not a valid float")
local x = xgetw(self, k, "string")
local i = tofloat(x[1] or 0)
assert(i, "ERR value is not a valid float")
i = i+n
assert(
is_finite_number(i),
"ERR increment would produce NaN or Infinity"
)
x[1] = tostr(i)
return i
end
local mget = function(self, ...)
local arg, r = getargs(...), {}
for i=1,#arg do r[i] = get(self, arg[i]) end
return r
end
local mset = function(self, ...)
local argmap = getargs_as_map(...)
for k,v in pairs(argmap) do set(self, k, v) end
return true
end
local msetnx = function(self, ...)
local argmap = getargs_as_map(...)
for k,_ in pairs(argmap) do
if self.data[k] then return false end
end
for k,v in pairs(argmap) do set(self, k, v) end
return true
end
set = function(self, k, v)
self.data[k] = {ktype = "string", value = {v}}
return true
end
local setbit = function(self, k, offset, b)
k = chkarg(k)
offset, b = toint(offset), toint(b)
assert(
(offset >= 0),
"ERR bit offset is not an integer or out of range"
)
assert(
(b == 0) or (b == 1),
"ERR bit is not an integer or out of range"
)
local bitpos = offset % 8 -- starts at 0
local bytepos = (offset - bitpos) / 8 -- starts at 0
local s = xgetr(self, k, "string")[1] or ""
local pad = {s}
for i=2,bytepos+2-#s do pad[i] = "\0" end
s = table.concat(pad)
assert(#s >= bytepos+1)
local before = s:sub(1, bytepos)
local char = s:sub(bytepos+1, bytepos+1):byte()
local after = s:sub(bytepos+2, -1)
local old = bit.band(bit.rshift(char, 7-bitpos), 1)
if b == 1 then
char = bit.bor(bit.lshift(1, 7-bitpos), char)
else
char = bit.band(bit.bnot(bit.lshift(1, 7-bitpos)), char)
end
local r = before .. string.char(char) .. after
set(self, k, r)
return old
end
local setnx = function(self, k, v)
if self.data[k] then
return false
else
return set(self, k, v)
end
end
local setrange = function(self, k, i, s)
local k, s = chkargs(2, k, s)
i = toint(i)
assert(i and (i >= 0))
local x = xgetw(self, k, "string")
local y = x[1] or ""
local ly, ls = #y, #s
if i > ly then -- zero padding
local t = {}
for i=1, i-ly do t[i] = "\0" end
y = y .. table.concat(t) .. s
else
y = y:sub(1, i) .. s .. y:sub(i+ls+1, ly)
end
x[1] = y
return #y
end
local strlen = function(self, k)
local x = xgetr(self, k, "string")
return x[1] and #x[1] or 0
end
-- hashes
local hdel = function(self, k, ...)
k = chkarg(k)
local arg = getargs(...)
local r = 0
local x = xgetw(self, k, "hash")
for i=1,#arg do
if x[arg[i]] then r = r + 1 end
x[arg[i]] = nil
end
cleanup(self, k)
return r
end
local hget
local hexists = function(self, k, k2)
return not not hget(self, k, k2)
end
hget = function(self, k, k2)
local x = xgetr(self, k, "hash")
return x[k2]
end
local hgetall = function(self, k)
local x = xgetr(self, k, "hash")
local r = {}
for _k,v in pairs(x) do r[_k] = v end
return r
end
local hincrby = function(self, k, k2, n)
k, k2, n = chkarg(k), chkarg(k2), toint(n)
assert(n, "ERR value is not an integer or out of range")
assert(type(n) == "number")
local x = xgetw(self, k, "hash")
local i = toint(x[k2] or 0)
assert(i, "ERR value is not an integer or out of range")
i = i+n
assert(
(not overflows(i)),
"ERR increment or decrement would overflow"
)
x[k2] = tostr(i)
return i
end
local hincrbyfloat = function(self, k, k2, n)
k, k2, n = chkarg(k), chkarg(k2), tofloat(n)
assert(n, "ERR value is not a valid float")
local x = xgetw(self, k, "hash")
local i = tofloat(x[k2] or 0)
assert(i, "ERR value is not a valid float")
i = i+n
assert(
is_finite_number(i),
"ERR increment would produce NaN or Infinity"
)
x[k2] = tostr(i)
return i
end
local hkeys = function(self, k)
local x = xgetr(self, k, "hash")
local r = {}
for _k,_ in pairs(x) do r[#r+1] = _k end
return r
end
local hlen = function(self, k)
local x = xgetr(self, k, "hash")
return nkeys(x)
end
local hmget = function(self, k, k2s)
k = chkarg(k)
assert((type(k2s) == "table"))
local r = {}
local x = xgetr(self, k, "hash")
for i=1,#k2s do r[i] = x[chkarg(k2s[i])] end
return r
end
local hmset = function(self, k, ...)
k = chkarg(k)
local arg = {...}
if type(arg[1]) == "table" then
assert(#arg == 1)
local x = xgetw(self, k, "hash")
for _k,v in pairs(arg[1]) do x[chkarg(_k)] = chkarg(v) end
else
assert(#arg % 2 == 0)
local x = xgetw(self, k, "hash")
local t = getargs(...)
for i=1,#t,2 do x[t[i]] = t[i+1] end
end
return true
end
local hset = function(self, k, k2, v)
local x = xgetw(self, k, "hash")
local r = not x[k2]
x[k2] = v
return r
end
local hsetnx = function(self, k, k2, v)
local x = xgetw(self, k, "hash")
if x[k2] == nil then
x[k2] = v
return true
else
return false
end
end
local hvals = function(self, k)
local x = xgetr(self, k, "hash")
local r = {}
for _,v in pairs(x) do r[#r+1] = v end
return r
end
-- lists (head = left, tail = right)
local _l_real_i = function(x, i)
if i < 0 then
return x.tail+i+1
else
return x.head+i+1
end
end
local _l_len = function(x)
return x.tail - x.head
end
local _block_for = function(self, timeout)
if timeout > 0 then
local sleep = self.sleep or default_sleep
if type(sleep) == "function" then
sleep(timeout)
else
error("sleep function unavailable", 0)
end
else
error("operation would block", 0)
end
end
local rpoplpush
local blpop = function(self, ...)
local arg = {...}
local timeout = toint(arg[#arg])
arg[#arg] = nil
local vs = getargs(...)
local x, l, k, v
for i=1,#vs do
k = vs[i]
x = xgetw(self, k, "list")
l = _l_len(x)
if l > 0 then
v = x[x.head+1]
if l > 1 then
x.head = x.head + 1
x[x.head] = nil
else self.data[k] = nil end
return {k, v}
else self.data[k] = nil end
end
_block_for(self, timeout)
end
local brpop = function(self, ...)
local arg = {...}
local timeout = toint(arg[#arg])
arg[#arg] = nil
local vs = getargs(...)
local x, l, k, v
for i=1,#vs do
k = vs[i]
x = xgetw(self, k, "list")
l = _l_len(x)
if l > 0 then
v = x[x.tail]
if l > 1 then
x[x.tail] = nil
x.tail = x.tail - 1
else self.data[k] = nil end
return {k, v}
else self.data[k] = nil end
end
_block_for(self, timeout)
end
local brpoplpush = function(self, k1, k2, timeout)
k1, k2 = chkargs(2, k1, k2)
timeout = toint(timeout)
if not self.data[k1] then _block_for(self, timeout) end
return rpoplpush(self, k1, k2)
end
local lindex = function(self, k, i)
k = chkarg(k)
i = assert(toint(i))
local x = xgetr(self, k, "list")
return x[_l_real_i(x, i)]
end
local linsert = function(self, k, mode, pivot, v)
mode = mode:lower()
assert((mode == "before") or (mode == "after"))
if not self.data[k] then return 0 end
local x = xgetw(self, k, "list")
local p = nil
for i=x.head+1, x.tail do
if x[i] == pivot then
p = i
break
end
end
if not p then return -1 end
if mode == "after" then
for i=x.head+1, p do x[i-1] = x[i] end
x.head = x.head - 1
else
for i=x.tail, p, -1 do x[i+1] = x[i] end
x.tail = x.tail + 1
end
x[p] = v
return _l_len(x)
end
local llen = function(self, k)
local x = xgetr(self, k, "list")
return _l_len(x)
end
local lpop = function(self, k)
local x = xgetw(self, k, "list")
local l, r = _l_len(x), x[x.head+1]
if l > 1 then
x.head = x.head + 1
x[x.head] = nil
else self.data[k] = nil end
return r
end
local lpush = function(self, k, ...)
local vs = getargs(...)
local x = xgetw(self, k, "list")
for i=1,#vs do
x[x.head] = vs[i]
x.head = x.head - 1
end
return _l_len(x)
end
local lpushx = function(self, k, v)
if not self.data[k] then return 0 end
local x = xgetw(self, k, "list")
x[x.head] = v
x.head = x.head - 1
return _l_len(x)
end
local lrange = function(self, k, i1, i2)
k = chkarg(k)
i1, i2 = toint(i1), toint(i2)
assert(i1 and i2)
local x, r = xgetr(self, k, "list"), {}
i1 = math.max(_l_real_i(x, i1), x.head+1)
i2 = math.min(_l_real_i(x, i2), x.tail)
for i=i1,i2 do r[#r+1] = x[i] end
return r
end
local _lrem_i = function(x, p)
for i=p,x.tail do
x[i] = x[i+1]
end
x.tail = x.tail - 1
end
local _lrem_l = function(x, v, s)
assert(v)
if not s then s = x.head+1 end
for i=s,x.tail do
if x[i] == v then
_lrem_i(x, i)
return i
end
end
return false
end
local _lrem_r = function(x, v, s)
assert(v)
if not s then s = x.tail end
for i=s,x.head+1,-1 do
if x[i] == v then
_lrem_i(x, i)
return i
end
end
return false
end
local lrem = function(self, k, count, v)
k, v = chkarg(k), chkarg(v)
count = assert(toint(count))
if not self.data[k] then return 0 end
local x = xgetw(self, k, "list")
local n, last = 0, nil
local op = (count < 0) and _lrem_r or _lrem_l
local limited = (count ~= 0)
count = math.abs(count)
while true do
last = op(x, v, last)
if last then
n = n+1
if limited then
count = count - 1
if count == 0 then break end
end
else break end
end
return n
end
local lset = function(self, k, i, v)
k, v = chkarg(k), chkarg(v)
i = assert(toint(i))
if not self.data[k] then
error("ERR no such key")
end
local x = xgetw(self, k, "list")
local l = _l_len(x)
if i >= l or i < -l then
error("ERR index out of range")
end
x[_l_real_i(x, i)] = v
return true
end
local ltrim = function(self, k, i1, i2)
k = chkarg(k)
i1, i2 = toint(i1), toint(i2)
assert(i1 and i2)
local x = xgetw(self, k, "list")
i1, i2 = _l_real_i(x, i1), _l_real_i(x, i2)
for i=x.head+1,i1-1 do x[i] = nil end
for i=i2+1,x.tail do x[i] = nil end
x.head = math.max(i1-1, x.head)
x.tail = math.min(i2, x.tail)
assert(
(x[x.head] == nil) and
(x[x.tail+1] == nil)
)
cleanup(self, k)
return true
end
local rpop = function(self, k)
local x = xgetw(self, k, "list")
local l, r = _l_len(x), x[x.tail]
if l > 1 then
x[x.tail] = nil
x.tail = x.tail - 1
else self.data[k] = nil end
return r
end
rpoplpush = function(self, k1, k2)
local v = rpop(self, k1)
if not v then return nil end
lpush(self, k2, v)
return v
end
local rpush = function(self, k, ...)
local vs = getargs(...)
local x = xgetw(self, k, "list")
for i=1,#vs do
x.tail = x.tail + 1
x[x.tail] = vs[i]
end
return _l_len(x)
end
local rpushx = function(self, k, v)
if not self.data[k] then return 0 end
local x = xgetw(self, k, "list")
x.tail = x.tail + 1
x[x.tail] = v
return _l_len(x)
end
-- sets
local sadd = function(self, k, ...)
k = chkarg(k)
local arg = getargs(...)
local x, r = xgetw(self, k, "set"), 0
for i=1,#arg do
if not x[arg[i]] then
x[arg[i]] = true
r = r + 1
end
end
return r
end
local scard = function(self, k)
local x = xgetr(self, k, "set")
return nkeys(x)
end
local _sdiff = function(self, k, ...)
k = chkarg(k)
local arg = getargs(...)
local x = xgetr(self, k, "set")
local r = {}
for v,_ in pairs(x) do r[v] = true end
for i=1,#arg do
x = xgetr(self, arg[i], "set")
for v,_ in pairs(x) do r[v] = nil end
end
return r
end
local sdiff = function(self, k, ...)
return lset_to_list(_sdiff(self, k, ...))
end
local sdiffstore = function(self, k2, k, ...)
k2 = chkarg(k2)
local x = _sdiff(self, k, ...)
self.data[k2] = {ktype = "set", value = x}
return nkeys(x)
end
local _sinter = function(self, k, ...)
k = chkarg(k)
local arg = getargs(...)
local x = xgetr(self, k, "set")
local r = {}
local y
for v,_ in pairs(x) do
r[v] = true
for i=1,#arg do
y = xgetr(self, arg[i], "set")
if not y[v] then r[v] = nil; break end
end
end
return r
end
local sinter = function(self, k, ...)
return lset_to_list(_sinter(self, k, ...))
end
local sinterstore = function(self, k2, k, ...)
k2 = chkarg(k2)
local x = _sinter(self, k, ...)
self.data[k2] = {ktype = "set", value = x}
return nkeys(x)
end
local sismember = function(self, k, v)
local x = xgetr(self, k, "set")
return not not x[v]
end
local smembers = function(self, k)
local x = xgetr(self, k, "set")
return lset_to_list(x)
end
local smove = function(self, k, k2, v)
local x = xgetr(self, k, "set")
if x[v] then
local y = xgetw(self, k2, "set")
x[v] = nil
y[v] = true
return true
else return false end
end
local spop = function(self, k)
local x, r = xgetw(self, k, "set"), nil
local l = lset_to_list(x)
local n = #l
if n > 0 then
r = l[math.random(1, n)]
x[r] = nil
end
cleanup(self, k)
return r
end
local srandmember = function(self, k, count)
k = chkarg(k)
local x = xgetr(self, k, "set")
local l = lset_to_list(x)
local n = #l
if not count then
if n > 0 then
return l[math.random(1, n)]
else return nil end
end
count = toint(count)
if (count == 0) or (n == 0) then return {} end
if count >= n then return l end
local r = {}
if count > 0 then -- distinct elements
for i=0,count-1 do
r[#r+1] = table.remove(l, math.random(1, n-i))
end
else -- allow repetition
for i=1,-count do
r[#r+1] = l[math.random(1, n)]
end
end
return r
end
local srem = function(self, k, ...)
k = chkarg(k)
local arg = getargs(...)
local x, r = xgetw(self, k, "set"), 0
for i=1,#arg do
if x[arg[i]] then
x[arg[i]] = nil
r = r + 1
end
end
cleanup(self, k)
return r
end
local _sunion = function(self, ...)
local arg = getargs(...)
local r = {}
local x
for i=1,#arg do
x = xgetr(self, arg[i], "set")
for v,_ in pairs(x) do r[v] = true end
end
return r
end
local sunion = function(self, k, ...)
return lset_to_list(_sunion(self, k, ...))
end
local sunionstore = function(self, k2, k, ...)
k2 = chkarg(k2)
local x = _sunion(self, k, ...)
self.data[k2] = {ktype = "set", value = x}
return nkeys(x)
end
-- zsets
local _z_p_mt = {
__eq = function(a, b)
if a.v == b.v then
assert(a.s == b.s)
return true
else return false end
end,
__lt = function(a, b)
if a.s == b.s then
return (a.v < b.v)
else
return (a.s < b.s)
end
end,
}
local _z_pair = function(s, v)
assert(
(type(s) == "number") and
(type(v) == "string")
)
local r = {s = s, v = v}
return setmetatable(r, _z_p_mt)
end
local _z_pairs = function(...)
local arg = {...}
assert((#arg > 0) and (#arg % 2 == 0))
local ps = {}
for i=1,#arg,2 do
ps[#ps+1] = _z_pair(
assert(tofloat(arg[i])),
chkarg(arg[i+1])
)
end
return ps
end
local _z_insert = function(x, ix, p)
assert(
(type(x) == "table") and
(type(ix) == "number") and
(type(p) == "table")
)
local l = x.list
table.insert(l, ix, p)
for i=ix+1,#l do
x.set[l[i].v] = x.set[l[i].v] + 1
end
x.set[p.v] = ix
end
local _z_remove = function(x, v)
if not x.set[v] then return false end
local l, ix = x.list, x.set[v]
assert(l[ix].v == v)
table.remove(l, ix)
for i=ix,#l do
x.set[l[i].v] = x.set[l[i].v] - 1
end
x.set[v] = nil
return true
end
local _z_remove_range = function(x, i1, i2)
local l = x.list
i2 = i2 or i1
assert(
(i1 > 0) and
(i2 >= i1) and
(i2 <= #l)
)
local ix, n = i1, i2-i1+1
for i=1,n do
x.set[l[ix].v] = nil
table.remove(l, ix)
end
for i=ix,#l do
x.set[l[i].v] = x.set[l[i].v] - n
end
return n
end
local _z_update = function(x, p)
local l = x.list
local found = _z_remove(x, p.v)
local ix = nil
for i=1,#l do
if l[i] > p then
ix = i; break
end
end
if not ix then ix = #l+1 end
_z_insert(x, ix, p)
return found
end
local _z_coherence = function(x)
local l, s = x.list, x.set
local found, n = {}, 0
for val,pos in pairs(s) do
if found[pos] then return false end
found[pos] = true
n = n + 1
if not (l[pos] and (l[pos].v == val)) then
return false
end
end
if #l ~= n then return false end
for i=1, n-1 do
if l[i].s > l[i+1].s then return false end
end
return true
end
local _z_normrange = function(l, i1, i2)
i1, i2 = assert(toint(i1)), assert(toint(i2))
if i1 < 0 then i1 = #l+i1 end
if i2 < 0 then i2 = #l+i2 end
i1, i2 = math.max(i1+1, 1), i2+1
if (i2 < i1) or (i1 > #l) then return nil end
i2 = math.min(i2, #l)
return i1, i2
end
local _zrbs_opts = function(...)
local arg = {...}
if #arg == 0 then return {} end
local ix, opts = 1, {}
while type(arg[ix]) == "string" do
if arg[ix] == "withscores" then
opts.withscores = true
ix = ix + 1
elseif arg[ix] == "limit" then
opts.limit = {
offset = assert(toint(arg[ix+1])),
count = assert(toint(arg[ix+2])),
}
ix = ix + 3
else error("input") end
end
if type(arg[ix]) == "table" then
local _o = arg[ix]
opts.withscores = opts.withscores or _o.withscores
if _o.limit then
opts.limit = {
offset = assert(toint(_o.limit.offset or _o.limit[1])),
count = assert(toint(_o.limit.count or _o.limit[2])),
}
end
ix = ix + 1
end
assert(arg[ix] == nil)
if opts.limit then
assert(
(opts.limit.count >= 0) and
(opts.limit.offset >= 0)
)
end
return opts
end
local _z_store_params = function(dest, numkeys, ...)
dest = chkarg(dest)
numkeys = assert(toint(numkeys))
assert(numkeys > 0)
local arg = {...}
assert(#arg >= numkeys)
local ks = {}
for i=1, numkeys do ks[i] = chkarg(arg[i]) end
local ix, opts = numkeys+1,{}
while type(arg[ix]) == "string" do
if arg[ix] == "weights" then
opts.weights = {}
ix = ix + 1
for i=1, numkeys do
opts.weights[i] = assert(toint(arg[ix]))
ix = ix + 1
end
elseif arg[ix] == "aggregate" then
opts.aggregate = assert(chkarg(arg[ix+1]))
ix = ix + 2
else error("input") end
end
if type(arg[ix]) == "table" then
local _o = arg[ix]
opts.weights = opts.weights or _o.weights
opts.aggregate = opts.aggregate or _o.aggregate
ix = ix + 1
end
assert(arg[ix] == nil)
if opts.aggregate then
assert(
(opts.aggregate == "sum") or
(opts.aggregate == "min") or
(opts.aggregate == "max")
)
else opts.aggregate = "sum" end
if opts.weights then
assert(#opts.weights == numkeys)
for i=1,#opts.weights do
assert(type(opts.weights[i]) == "number")
end
else
opts.weights = {}
for i=1, numkeys do opts.weights[i] = 1 end
end
opts.keys = ks
opts.dest = dest
return opts
end
local _zrbs_limits = function(x, s1, s2, descending)
local s1_incl, s2_incl = true, true
if s1:sub(1, 1) == "(" then
s1, s1_incl = s1:sub(2, -1), false
end
s1 = assert(tofloat(s1))
if s2:sub(1, 1) == "(" then
s2, s2_incl = s2:sub(2, -1), false
end
s2 = assert(tofloat(s2))
if descending then
s1, s2 = s2, s1
s1_incl, s2_incl = s2_incl, s1_incl
end
if s2 < s1 then return nil end
local l = x.list
local i1, i2
local fst, lst = l[1].s, l[#l].s
if (fst > s2) or ((not s2_incl) and (fst == s2)) then return nil end
if (lst < s1) or ((not s1_incl) and (lst == s1)) then return nil end
if (fst > s1) or (s1_incl and (fst == s1)) then i1 = 1 end
if (lst < s2) or (s2_incl and (lst == s2)) then i2 = #l end
for i=1,#l do
if (i1 and i2) then break end
if (not i1) then
if l[i].s > s1 then i1 = i end
if s1_incl and l[i].s == s1 then i1 = i end
end
if (not i2) then
if l[i].s > s2 then i2 = i-1 end
if (not s2_incl) and l[i].s == s2 then i2 = i-1 end
end
end
assert(i1 and i2)
if descending then
return #l-i2, #l-i1
else
return i1-1, i2-1
end
end
local dbg_zcoherence = function(self, k)
local x = xgetr(self, k, "zset")
return _z_coherence(x)
end
local zadd = function(self, k, ...)
k = chkarg(k)
local ps = _z_pairs(...)
local x = xgetw(self, k, "zset")
local n = 0
for i=1,#ps do
if not _z_update(x, ps[i]) then n = n+1 end
end
return n
end
local zcard = function(self, k)
local x = xgetr(self, k, "zset")
return #x.list
end
local zcount = function(self, k, s1, s2)
local x = xgetr(self, k, "zset")
local i1, i2 = _zrbs_limits(x, s1, s2, false)
if not (i1 and i2) then return 0 end
assert(i2 >= i1)
return i2 - i1 + 1
end
local zincrby = function(self, k, n, v)
k,v = chkargs(2, k, v)
n = assert(tofloat(n))
local x = xgetw(self, k, "zset")
local p = x.list[x.set[v]]
local s = p and (p.s + n) or n
_z_update(x, _z_pair(s, v))
return s
end
local zinterstore = function(self, ...)
local params = _z_store_params(...)
local x = xdefv("zset")
local aggregate
if params.aggregate == "sum" then
aggregate = function(x, y) return x+y end
elseif params.aggregate == "min" then
aggregate = math.min
elseif params.aggregate == "max" then
aggregate = math.max
else error() end
local y = xgetr(self, params.keys[1], "zset")
local p1, p2
for j=1,#y.list do
p1 = _z_pair(y.list[j].s, y.list[j].v)
_z_update(x, p1)
end
for i=2,#params.keys do
y = xgetr(self, params.keys[i], "zset")
local to_remove, to_update = {}, {}
for j=1,#x.list do
p1 = x.list[j]
if y.set[p1.v] then
p2 = _z_pair(
aggregate(
p1.s,
params.weights[i] * y.list[y.set[p1.v]].s
),
p1.v
)
to_update[#to_update+1] = p2
else
to_remove[#to_remove+1] = p1.v
end
end
for j=1,#to_remove do _z_remove(x, to_remove[j]) end
for j=1,#to_update do _z_update(x, to_update[j]) end
end
local r = #x.list
if r > 0 then
self.data[params.dest] = {ktype = "zset", value = x}
end
return r
end
local _zranger = function(descending)
return function(self, k, i1, i2, opts)
k = chkarg(k)
local withscores = false
if type(opts) == "table" then
withscores = opts.withscores
elseif type(opts) == "string" then
assert(opts:lower() == "withscores")
withscores = true
else assert(opts == nil) end
local x = xgetr(self, k, "zset")
local l = x.list
i1, i2 = _z_normrange(l, i1, i2)
if not i1 then return {} end
local inc = 1
if descending then
i1 = #l - i1 + 1
i2 = #l - i2 + 1
inc = -1
end
local r = {}
if withscores then
for i=i1, i2, inc do r[#r+1] = {l[i].v, l[i].s} end
else
for i=i1, i2, inc do r[#r+1] = l[i].v end
end
return r
end
end
local zrange = _zranger(false)
local zrevrange = _zranger(true)
local _zrangerbyscore = function(descending)
return function(self, k, s1, s2, ...)
k, s1, s2 = chkargs(3, k, s1, s2)
local opts = _zrbs_opts(...)
local x = xgetr(self, k, "zset")
local i1, i2 = _zrbs_limits(x, s1, s2, descending)
if not (i1 and i2) then return {} end
if opts.limit then
if opts.limit.count == 0 then return {} end
i1 = i1 + opts.limit.offset
if i1 > i2 then return {} end
i2 = math.min(i2, i1+opts.limit.count-1)
end
if descending then
return zrevrange(self, k, i1, i2, opts)
else
return zrange(self, k, i1, i2, opts)
end
end
end
local zrangebyscore = _zrangerbyscore(false)
local zrevrangebyscore = _zrangerbyscore(true)
local zrank = function(self, k, v)
local x = xgetr(self, k, "zset")
local r = x.set[v]
if r then
return r-1
else return nil end
end
local zrem = function(self, k, ...)
k = chkarg(k)
local arg = getargs(...)
local x, r = xgetw(self, k, "zset"), 0
for i=1,#arg do
if _z_remove(x, arg[i]) then r = r + 1 end
end
cleanup(self, k)
return r
end
local zremrangebyrank = function(self, k, i1, i2)
k = chkarg(k)
local x = xgetw(self, k, "zset")
i1, i2 = _z_normrange(x.list, i1, i2)
if not i1 then
cleanup(self, k)
return 0
end
local n = _z_remove_range(x, i1, i2)
cleanup(self, k)
return n
end
local zremrangebyscore = function(self, k, s1, s2)
local x = xgetr(self, k, "zset")
local i1, i2 = _zrbs_limits(x, s1, s2, false)
if not (i1 and i2) then return 0 end
assert(i2 >= i1)
return zremrangebyrank(self, k, i1, i2)
end
local zrevrank = function(self, k, v)
local x = xgetr(self, k, "zset")
local r = x.set[v]
if r then
return #x.list-r
else return nil end
end
local zscore = function(self, k, v)
local x = xgetr(self, k, "zset")
local p = x.list[x.set[v]]
if p then
return p.s
else return nil end
end
local zunionstore = function(self, ...)
local params = _z_store_params(...)
local x = xdefv("zset")
local default_score, aggregate
if params.aggregate == "sum" then
default_score = 0
aggregate = function(x, y) return x+y end
elseif params.aggregate == "min" then
default_score = math.huge
aggregate = math.min
elseif params.aggregate == "max" then
default_score = -math.huge
aggregate = math.max
else error() end
local y, p1, p2
for i=1,#params.keys do
y = xgetr(self, params.keys[i], "zset")
for j=1,#y.list do
p1 = y.list[j]
p2 = _z_pair(
aggregate(
params.weights[i] * p1.s,
x.set[p1.v] and x.list[x.set[p1.v]].s or default_score
),
p1.v
)
_z_update(x, p2)
end
end
local r = #x.list
if r > 0 then
self.data[params.dest] = {ktype = "zset", value = x}
end
return r
end
-- connection
local echo = function(self, v)
return v
end
local ping = function(self)
return true
end
-- server
local flushdb = function(self)
self.data = {}
return true
end
--- Class
local methods = {
-- keys
del = del, -- (...) -> #removed
exists = chkargs_wrap(exists, 1), -- (k) -> exists?
keys = keys, -- (pattern) -> list of keys
["type"] = chkargs_wrap(_type, 1), -- (k) -> [string|list|set|zset|hash|none]
randomkey = randomkey, -- () -> [k|nil]
rename = chkargs_wrap(rename, 2), -- (k,k2) -> true
renamenx = chkargs_wrap(renamenx, 2), -- (k,k2) -> ! existed? k2
-- strings
append = chkargs_wrap(append, 2), -- (k,v) -> #new
bitcount = bitcount, -- (k,[start,end]) -> n
bitop = bitop, -- ([and|or|xor|not],k,...)
decr = chkargs_wrap(decr, 1), -- (k) -> new
decrby = decrby, -- (k,n) -> new
get = chkargs_wrap(get, 1), -- (k) -> [v|nil]
getbit = getbit, -- (k,offset) -> b
getrange = getrange, -- (k,start,end) -> string
getset = chkargs_wrap(getset, 2), -- (k,v) -> [oldv|nil]
incr = chkargs_wrap(incr, 1), -- (k) -> new
incrby = incrby, -- (k,n) -> new
incrbyfloat = incrbyfloat, -- (k,n) -> new
mget = mget, -- (k1,...) -> {v1,...}
mset = mset, -- (k1,v1,...) -> true
msetnx = msetnx, -- (k1,v1,...) -> worked? (i.e. !existed? any k)
set = chkargs_wrap(set, 2), -- (k,v) -> true
setbit = setbit, -- (k,offset,b) -> old
setnx = chkargs_wrap(setnx, 2), -- (k,v) -> worked? (i.e. !existed?)
setrange = setrange, -- (k,offset,val) -> #new
strlen = chkargs_wrap(strlen, 1), -- (k) -> [#v|0]
-- hashes
hdel = hdel, -- (k,sk1,...) -> #removed
hexists = chkargs_wrap(hexists, 2), -- (k,sk) -> exists?
hget = chkargs_wrap(hget,2), -- (k,sk) -> v
hgetall = chkargs_wrap(hgetall, 1), -- (k) -> map
hincrby = hincrby, -- (k,sk,n) -> new
hincrbyfloat = hincrbyfloat, -- (k,sk,n) -> new
hkeys = chkargs_wrap(hkeys, 1), -- (k) -> keys
hlen = chkargs_wrap(hlen, 1), -- (k) -> [#sk|0]
hmget = hmget, -- (k,{sk1,...}) -> {v1,...}
hmset = hmset, -- (k,{sk1=v1,...}) -> true
hset = chkargs_wrap(hset, 3), -- (k,sk1,v1) -> !existed?
hsetnx = chkargs_wrap(hsetnx, 3), -- (k,sk1,v1) -> worked? (i.e. !existed?)
hvals = chkargs_wrap(hvals, 1), -- (k) -> values
-- lists
blpop = blpop, -- (k1,...) -> k,v
brpop = brpop, -- (k1,...) -> k,v
brpoplpush = brpoplpush, -- (k1,k2,timeout) -> v
lindex = lindex, -- (k,i) -> v
linsert = chkargs_wrap(linsert, 4), -- (k,mode,pivot,v) -> #list (after)
llen = chkargs_wrap(llen, 1), -- (k) -> #list
lpop = chkargs_wrap(lpop, 1), -- (k) -> v
lpush = lpush, -- (k,v1,...) -> #list (after)
lpushx = chkargs_wrap(lpushx, 2), -- (k,v) -> #list (after)
lrange = lrange, -- (k,start,stop) -> list
lrem = lrem, -- (k,count,v) -> #removed
lset = lset, -- (k,i,v) -> true
ltrim = ltrim, -- (k,start,stop) -> true
rpop = chkargs_wrap(rpop, 1), -- (k) -> v
rpoplpush = chkargs_wrap(rpoplpush, 2), -- (k1,k2) -> v
rpush = rpush, -- (k,v1,...) -> #list (after)
rpushx = chkargs_wrap(rpushx, 2), -- (k,v) -> #list (after)
-- sets
sadd = sadd, -- (k,v1,...) -> #added
scard = chkargs_wrap(scard, 1), -- (k) -> [n|0]
sdiff = sdiff, -- (k1,...) -> set (of elements in k1 & not in any of ...)
sdiffstore = sdiffstore, -- (k0,k1,...) -> #set at k0
sinter = sinter, -- (k1,...) -> set
sinterstore = sinterstore, -- (k0,k1,...) -> #set at k0
sismember = chkargs_wrap(sismember, 2), -- (k,v) -> member?
smembers = chkargs_wrap(smembers, 1), -- (k) -> set
smove = chkargs_wrap(smove, 3), -- (k1,k2,v) -> moved? (i.e. !member? k1)
spop = chkargs_wrap(spop, 1), -- (k) -> [v|nil]
srandmember = srandmember, -- (k,[count]) -> v|[v1,v2,...]
srem = srem, -- (k,v1,...) -> #removed
sunion = sunion, -- (k1,...) -> set
sunionstore = sunionstore, -- (k0,k1,...) -> #set at k0
-- zsets
zadd = zadd, -- (k,score,member,[score,member,...])
zcard = chkargs_wrap(zcard, 1), -- (k) -> n
zcount = chkargs_wrap(zcount, 3), -- (k,min,max) -> count
zincrby = zincrby, -- (k,score,v) -> score
zinterstore = zinterstore, -- (k,numkeys,k1,...,[opts]) -> card
zrange = zrange, -- (k,start,stop,[opts]) -> depends on opts
zrangebyscore = zrangebyscore, -- (k,min,max,[opts]) -> depends on opts
zrank = chkargs_wrap(zrank, 2), -- (k,v) -> rank
zrem = zrem, -- (k,v1,...) -> #removed
zremrangebyrank = zremrangebyrank, -- (k,start,stop) -> #removed
zremrangebyscore = chkargs_wrap(zremrangebyscore, 3), -- (k,min,max) -> #removed
zrevrange = zrevrange, -- (k,start,stop,[opts]) -> depends on opts
zrevrangebyscore = zrevrangebyscore, -- (k,min,max,[opts]) -> depends on opts
zrevrank = chkargs_wrap(zrevrank, 2), -- (k,v) -> rank
zscore = chkargs_wrap(zscore, 2), -- (k,v) -> score
zunionstore = zunionstore, -- (k,numkeys,k1,...,[opts]) -> card
-- connection
echo = chkargs_wrap(echo, 1), -- (v) -> v
ping = ping, -- () -> true
-- server
flushall = flushdb, -- () -> true
flushdb = flushdb, -- () -> true
-- debug
dbg_zcoherence = dbg_zcoherence,
}
local new = function()
local r = {data = {}}
return setmetatable(r,{__index = methods})
end
return {
new = new,
}
| gpl-2.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/naboo/plasma_thieving_swamp_trooper.lua | 1 | 1202 | plasma_thieving_swamp_trooper = Creature:new {
objectName = "@mob/creature_names:swamp_trooper_anti_gungan",
socialGroup = "imperial",
pvpFaction = "imperial",
faction = "imperial",
level = 25,
chanceHit = 0.36,
damageMin = 240,
damageMax = 250,
baseXp = 2637,
baseHAM = 7200,
baseHAMmax = 8800,
armor = 0,
resists = {0,0,0,0,0,0,0,0,-1},
meatType = "",
meatAmount = 0,
hideType = "",
hideAmount = 0,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + KILLER,
optionsBitmask = 128,
diet = HERBIVORE,
templates = {"object/mobile/dressed_swamp_trooper.iff"},
lootGroups = {
{
groups = {
{group = "junk", chance = 2000000},
{group = "tailor_components", chance = 2000000},
{group = "loot_kit_parts", chance = 2000000},
{group = "wearables_common", chance = 2000000},
{group = "wearables_uncommon", chance = 2000000},
},
lootChance = 3200000
}
},
weapons = {"stormtrooper_weapons"},
conversationTemplate = "",
attacks = merge(brawlermaster,marksmanmaster)
}
CreatureTemplates:addCreatureTemplate(plasma_thieving_swamp_trooper, "plasma_thieving_swamp_trooper") | lgpl-3.0 |
elihugarret/Curso-AI | AV/ik.lua | 1 | 4225 | -- see http://www.math.ucsd.edu/~sbuss/ResearchWeb/ikmethods/iksurvey.pdf
local window = require "window"
local gl = require "gl"
local vec3 = require "vec3"
local quat = require "quat"
local mat4 = require "mat4"
local pow = math.pow
math.randomseed(os.time())
local NUMJOINTS = 10
local joints = {}
-- initialize first joint:
joints[1] = {
-- length of joint
len = 0,
-- axis of rotation (local coordinate space)
axis = vec3(0, 1, 0),
-- the joint rotation
angle = 0,
-- current position (global coordinate space)
pos = vec3(),
-- axis of rotation (global coordinate space)
axis_global = vec3(0, 1, 0),
-- current orientation as quaternion (global coordinate space)
quat = quat(),
}
-- initialize rest of joints:
local len = 0.3
for i = 2, NUMJOINTS do
joints[i] = {
-- length of joint
len = len,
-- axis of rotation (local coordinate space)
axis = vec3(1, 0, 0),
-- the joint rotation
angle = 0,
-- current position (global coordinate space)
pos = vec3(),
-- axis of rotation (global coordinate space)
axis_global = vec3(1, 0, 0),
-- current orientation as quaternion (global coordinate space)
quat = quat(),
}
len = len / 1.5
end
-- the "hand":
local effector = joints[NUMJOINTS]
-- the "ball"
local target = vec3.random(0.5)
-- the Jacobian:
local J = {}
-- forward transform: accumulate position and orientation from base to hand:
function fwd()
local pos = vec3()
local q = quat()
for i = 1, NUMJOINTS do
local joint = joints[i]
-- convert axis of rotation into global space:
joint.axis_global = q:rotate(joint.axis):normalize()
-- update current joint orientation:
joint.quat = quat.fromAxisAngle(joint.angle, joint.axis)
-- update current global orientation to include this joint:
q:mul(joint.quat):normalize()
-- calculate new joint unit vector:
joint.unit = q:uz()
-- apply to accumulate global position:
pos = pos + joint.unit * joint.len
-- update joint position:
joint.pos = pos
end
-- return new "hand" position in global coordinate space
return pos
end
-- update the joint angles (and orientations) to approach the ball:
function update_joints()
-- "e" is the vector from hand to ball:
local e = target - effector.pos
-- unit (direction) vector from hand to ball
local eunit = e:normalizenew()
-- Jacobian is k x n matrix (k is no. of targets, n is no. of joints)
-- derivative of effector pos as each joint angle changes
-- here k == 1 so we have 1 x n matrix
-- for each joint:
for i = 1, NUMJOINTS do
local joint = joints[i]
-- compute Jacobian
-- (for rotational joints only)
J[i] = joint.axis_global:cross(effector.pos - joint.pos)
-- (for translational joints, it would be:)
--J[i] = joint.unit
-- use component of J[i] along hand-ball vector as an approximation
-- of the desired change in joint rotation:
-- (0.1 is to make the change gradual, and avoid oscillation error)
joint.angle = joint.angle + 0.1 * eunit:dot(J[i])
-- alternative weighting per joint:
--joint.angle = joint.angle + 0.1 * pow(i, -0.25) * eunit:dot(J[i])
-- recomputing forward transform at this point might help converge faster
-- but is not necessary
--fwd()
end
end
function draw()
-- if we have reached the ball, pick a new random location:
if (target - effector.pos):length() < 0.05 then
target = vec3.random(0.5)
else
-- ball has a little random walk:
target:add(vec3.random(math.random()*0.01)):limit(0.5)
end
-- modify the joint rotations:
update_joints()
-- then update the joint positions:
fwd()
-- standard 3D perspective:
gl.MatrixMode(gl.PROJECTION)
gl.LoadMatrix(mat4.perspective(80, window.width/window.height, 0.1, 40))
gl.MatrixMode(gl.MODELVIEW)
gl.LoadMatrix(mat4.lookat(vec3(0, 0, 1), vec3(0, 0, 0), vec3(0, 1, 0)))
-- draw ball:
gl.PointSize(4)
gl.Color(1, 1, 0)
gl.Begin(gl.POINTS)
gl.Vertex(target.x, target.y, target.z)
gl.End()
-- draw arm:
gl.Begin(gl.LINE_STRIP)
gl.Color(1, 1, 1)
gl.Vertex(0, 0, 0)
for i = 1, NUMJOINTS do
local p = (i-1) / NUMJOINTS
gl.Color(J[i].x + 0.5, J[i].y + 0.5, J[i].z + 0.5)
local joint = joints[i]
gl.Vertex(joint.pos.x, joint.pos.y, joint.pos.z)
end
gl.End()
end
| mit |
eraffxi/darkstar | scripts/zones/Crawlers_Nest_[S]/mobs/Morille_Mortelle.lua | 2 | 1215 | -----------------------------------
-- Area: Crawlers nest [S] (171)
-- NM: Morille Mortelle
-- !pos 59.788 -0.939 22.316 171
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
function onMobSpawn(mob)
mob:setMod(dsp.mod.DOUBLE_ATTACK, 20);
mob:setMod(dsp.mod.STORETP, 10);
end;
function onAdditionalEffect(mob, player)
local chance = 25;
local resist = applyResistanceAddEffect(mob,player,dsp.magic.ele.WATER,dsp.effect.PLAGUE);
if (math.random(0,99) >= chance or resist <= 0.5) then
return 0,0,0;
else
local duration = 30;
if (mob:getMainLvl() > player:getMainLvl()) then
duration = duration + (mob:getMainLvl() - player:getMainLvl())
end
duration = utils.clamp(duration,1,45);
duration = duration * resist;
if (not player:hasStatusEffect(dsp.effect.PLAGUE)) then
player:addStatusEffect(dsp.effect.PLAGUE, 1, 0, duration);
end
return dsp.subEffect.PLAGUE, dsp.msg.basic.ADD_EFFECT_STATUS, dsp.effect.PLAGUE;
end
end;
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
end;
| gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.