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 |
|---|---|---|---|---|---|
jstewart-amd/premake-core | tests/actions/vstudio/vc2010/test_vectorextensions.lua | 5 | 2057 | ---
-- tests/actions/vstudio/vc2010/test_vectorextensions.lua
-- Validate handling of vectorextensions() in VS 2010 C/C++ projects.
--
-- Created 26 Mar 2015 by Jason Perkins
-- Copyright (c) 2015 Jason Perkins and the Premake project
---
local suite = test.declare("vs2010_vc_vectorextensions")
local m = premake.vstudio.vc2010
local wks, prj
function suite.setup()
premake.action.set("vs2010")
wks, prj = test.createWorkspace()
end
local function prepare()
local cfg = test.getconfig(prj, "Debug")
m.enableEnhancedInstructionSet(cfg)
end
function suite.instructionSet_onNotSet()
test.isemptycapture()
end
function suite.instructionSet_onIA32_onVS2010()
vectorextensions "IA32"
prepare()
test.isemptycapture()
end
function suite.instructionSet_onIA32()
premake.action.set("vs2012")
vectorextensions "IA32"
prepare()
test.capture [[
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
]]
end
function suite.instructionSet_onSSE()
vectorextensions "SSE"
prepare()
test.capture [[
<EnableEnhancedInstructionSet>StreamingSIMDExtensions</EnableEnhancedInstructionSet>
]]
end
function suite.instructionSet_onSSE2()
vectorextensions "SSE2"
prepare()
test.capture [[
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
]]
end
function suite.instructionSet_onAVX()
premake.action.set("vs2013")
vectorextensions "AVX"
prepare()
test.capture [[
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
]]
end
function suite.instructionSet_onAVX_onVS2010()
vectorextensions "AVX"
prepare()
test.isemptycapture()
end
function suite.instructionSet_onAVX2()
premake.action.set("vs2013")
vectorextensions "AVX2"
prepare()
test.capture [[
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
]]
end
function suite.instructionSet_onAVX2_onVS2012()
premake.action.set("vs2012")
vectorextensions "AVX2"
prepare()
test.isemptycapture()
end
| bsd-3-clause |
AlexandreCA/darkstar | scripts/globals/items/kalamar.lua | 18 | 1307 | -----------------------------------------
-- ID: 5448
-- Item: Kalamar
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
result = 0
if (target:getRace() ~= 7) then
result = 247;
end
if (target:getMod(MOD_EAT_RAW_FISH) == 1) then
result = 0;
end
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,300,5448);
end;
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_DEX, 3);
target:addMod(MOD_MND, -5);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_DEX, 3);
target:delMod(MOD_MND, -5);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Mhaura/Zone.lua | 17 | 2912 | -----------------------------------
--
-- Zone: Mhaura (249)
--
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/zone");
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/missions");
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
SetExplorerMoogles(17797249);
end;
-----------------------------------
-- onZoneIn
-----------------------------------
function onZoneIn(player,prevZone)
local cs = -1;
local currentday = tonumber(os.date("%j"));
if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then
if (prevZone == 221 or prevZone == 47) then
cs = 0x00ca;
player:setPos(14.960,-3.430,18.423,192);
else
player:setPos(0.003,-6.252,117.971,65);
end
end
if (player:getCurrentMission(COP) == DAWN and player:getVar("PromathiaStatus")==3 and player:getVar("Promathia_kill_day") ~= currentday and player:getVar("COP_shikarees_story")== 0 ) then
cs=0x0142;
end
return cs;
end;
-----------------------------------
-- onConquestUpdate
-----------------------------------
function onConquestUpdate(zone, updatetype)
local players = zone:getPlayers();
for name, player in pairs(players) do
conquestUpdate(zone, player, updatetype, CONQUEST_BASE);
end
end;
-----------------------------------
-- onTransportEvent
-----------------------------------
function onTransportEvent(player,transport)
if ((transport == 47) or (transport == 46)) then
if (not(player:hasKeyItem(BOARDING_PERMIT)) or ENABLE_TOAU == 0) then
player:setPos(8.200,-1.363,3.445,192);
player:messageSpecial(DO_NOT_POSSESS, BOARDING_PERMIT);
else
player:startEvent(0x00c8);
end
else
player:startEvent(0x00c8);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x00c8) then
local DepartureTime = VanadielHour();
if (DepartureTime % 8 == 0) then
player:setPos(0,0,0,0,220); -- Boat to Selbina
elseif (DepartureTime % 8 == 4) then
player:setPos(0,0,0,0,46); -- Boat to Aht Urhgan
else
player:setPos(8,-1,5,62,249); -- Something went wrong, dump them on the dock for safety.
end
elseif (csid == 0x0142) then
player:setVar("COP_shikarees_story",1);
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Waughroon_Shrine/bcnms/shattering_stars.lua | 27 | 2040 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Shattering stars - Maat Fight
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Waughroon_Shrine/TextIDs");
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
end;
-- Physically entering the BCNM via bcnmEnter(bcnmid)
function onBcnmEnter(player,instance)
-- player:messageSpecial(107);
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
player:startEvent(0x7d01,1,1,1,instance:getTimeInside(),1,1,0);
elseif (leavecode == 4) then
player:startEvent(0x7d02);
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 == 0x7d01) then
if (player:getQuestStatus(JEUNO,SHATTERING_STARS) == QUEST_ACCEPTED and player:getFreeSlotsCount() > 0) then
player:addItem(4181);
player:messageSpecial(ITEM_OBTAINED,4181);
end
local pjob = player:getMainJob();
player:setVar("maatDefeated",pjob);
local maatsCap = player:getVar("maatsCap")
if (bit.band(maatsCap, bit.lshift(1, (pjob -1))) ~= 1) then
player:setVar("maatsCap",bit.bor(maatsCap, bit.lshift(1, (pjob -1))))
end
player:addTitle(MAAT_MASHER);
end
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/qm15.lua | 12 | 2541 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: ???
-- Involved in Quest: Knight Stalker
-- @pos 58 1 -70 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Temple_of_Uggalepih/TextIDs");
require("scripts/globals/pets");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/titles");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
local NM_Kill = player:getVar("KnightStalker_Kill");
if (player:getVar("KnightStalker_Progress") == 4 and player:getMainJob() == 14 and player:getPetID() == PET_WYVERN
and NM_Kill == 0 and GetMobAction(17428807) == 0 and GetMobAction(17428808) == 0) then
-- These mobs specifically will not engage unless aggro'd.
player:messageSpecial(SOME_SORT_OF_CEREMONY + 1); -- Your wyvern reacts violently to this spot!
SpawnMob(17428807,180);
SpawnMob(17428808,180);
elseif (NM_Kill == 1) then
player:startEvent(67);
else
player:messageSpecial(SOME_SORT_OF_CEREMONY);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 67) then
if (player:getFreeSlotsCount() < 1) then
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,12519);
else
player:addItem(12519);
player:messageSpecial(ITEM_OBTAINED,12519); -- Drachen Armet
player:addFame(SANDORIA,AF3_FAME);
player:addTitle(PARAGON_OF_DRAGOON_EXCELLENCE);
player:delKeyItem(CHALLENGE_TO_THE_ROYAL_KNIGHTS);
player:setVar("KnightStalker_Option1",1); -- Optional post-quest cutscenes.
player:setVar("KnightStalker_Option2",1);
player:setVar("KnightStalker_Kill",0);
player:setVar("KnightStalker_Progress",0);
player:completeQuest(SANDORIA,KNIGHT_STALKER);
end
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/gear_sets.lua | 17 | 26319 | -----------------------------------
-- Gear sets
-- Allows the use of gear sets with modifiers
-----------------------------------
require("scripts/globals/status");
-----------------------------------
local matchtype = {
any = 0,
earring_weapon = 1,
weapon_weapon = 2
}
-- placeholder for unknown mod types
local MOD_UNKNOWN = 0;
-- apparently these are static, so i'll leave them here
local extraDamageChance = 35;
local extraAttackChance = 25;
local nullDamageChance = 15;
local instantCastChance = 15;
-- {id, {item, ids, in, no, particular, order}, minimum matches required, match type, mods{id, value, modvalue for each additional match, additional whole set bonus}
local GearSets = {
{id = 1, items = {16092,14554,14969,15633,15719}, matches = 5, matchType = matchtype.any, mods = {{MOD_HASTE_GEAR, 50, 0, 0}} }, -- Usukane's set (5% Haste)
{id = 2, items = {16088,14550,14965,15629,15715}, matches = 5, matchType = matchtype.any, mods = {{MOD_CRITHITRATE, 5, 0, 0}} }, -- Skadi's set (5% critrate is guess)
{id = 3, items = {16084,14546,14961,15625,15711}, matches = 5, matchType = matchtype.any, mods = {{MOD_DOUBLE_ATTACK, 5, 0, 0}} }, -- Ares's set (5% DA)
{id = 4, items = {16107,14569,14984,15648,15734}, matches = 5, matchType = matchtype.any, mods = {{MOD_ACC, 20, 0, 0}} }, -- Denali Jacket Set (Increases Accuracy +20)
{id = 5, items = {16106,14568,14983,15647,15733}, matches = 5, matchType = matchtype.any, mods = {{MOD_HPP, 10, 0, 0}} }, -- Askar Korazin Set (Max HP Boost %10)
{id = 6, items = {16069,14530,14940,15609,15695}, matches = 5, matchType = matchtype.any, mods = {{MOD_SUBTLE_BLOW, 8, 0, 0}} }, -- Pahluwan Khazagand Set (8% is guess)
{id = 7, items = {16100,14562,14977,15641,15727}, matches = 5, matchType = matchtype.any, mods = {{MOD_MATT, 5, 0, 0}} }, -- Morrigan's Robe Set (+5 Magic. Atk Bonus)
{id = 8, items = {16096,14558,14973,15637,15723}, matches = 5, matchType = matchtype.any, mods = {{MOD_FASTCAST, 5, 0, 0}} }, -- Marduk's Jubbah Set (5% fastcast)
{id = 9, items = {16108,14570,14985,15649,15735}, matches = 5, matchType = matchtype.any, mods = {{MOD_MDEF, 10, 0, 0}} }, -- Goliard Saio Set - Total Set Bonus +10% Magic Def. Bonus
{id = 10, items = {16064,14527,14935,15606,15690}, matches = 5, matchType = matchtype.any, mods = {{MOD_REFRESH, 1, 0, 0}} }, -- Yigit Gomlek Set (1mp per tick) Adds "Refresh" effect
{id = 11, items = {11503,13759,12745,14210,11413}, matches = 5, matchType = matchtype.any, mods = {{MOD_HASTE_GEAR, 50, 0, 0}} }, -- Perle Hauberk Set 5% haste
{id = 12, items = {11504,13760,12746,14257,11414}, matches = 5, matchType = matchtype.any, mods = {{MOD_STORETP, 8, 0, 0}} }, -- Aurore Doublet Set store tp +8
{id = 13, items = {11505,13778,12747,14258,11415}, matches = 5, matchType = matchtype.any, mods = {{MOD_FASTCAST, 10, 0, 0}} }, -- Teal Saio Set fastcast 10%
{id = 14, items = {10890,10462,10512,11980,10610}, matches = 5, matchType = matchtype.any, mods = {{MOD_HASTE_GEAR, 60, 0, 0}} }, -- Calma Armor Set haste%6
{id = 15, items = {10892,10464,10514,11982,10612}, matches = 5, matchType = matchtype.any, mods = {{MOD_MACC, 5, 0, 0}} }, -- Magavan Armor Set magic accuracy +5
{id = 16, items = {10891,10463,10513,11981,10611}, matches = 5, matchType = matchtype.any, mods = {{MOD_CRITHITRATE, 5, 0, 0}} }, -- Mustela Harness Set crit rate 5%
{id = 17, items = {16126,15744}, matches = 2, matchType = matchtype.any, mods = {{MOD_RATT, 15, 0, 0}} }, -- Bowman's set: Ranged atk +15
{id = 18, items = {16147,14589,15010,16316,15756}, matches = 2, matchType = matchtype.any, mods = {{MOD_ATT, 1, 4.7, 0}} }, -- Fourth Division Brune Set
{id = 19, items = {16148,14590,15011,16317,15757}, matches = 2, matchType = matchtype.any, mods = {{MOD_COUNTER, 1, 1, 0}} }, -- Cobra Unit Harness Set
{id = 20, items = {16149,14591,15012,16318,15758}, matches = 2, matchType = matchtype.any, mods = {{MOD_MACC, 1, 1, 0}} }, -- Cobra Unit Robe Set
{id = 21, items = { 6141,14581,15005,16312,15749}, matches = 2, matchType = matchtype.any, mods = {{MOD_ACC, 1, 1, 0}, {MOD_ATT, 1, 1, 0}} }, -- Iron Ram Chainmail Set. Double mod here! It is why it has 2 IDs.
{id = 23, items = {16142,14582,15006,16313,15750} , matches = 2, matchType = matchtype.any, mods = {{MOD_HP, 10, 10, 0}} }, -- Fourth Division Cuirass Set
{id = 24, items = {16143,14583,15007,16314,15751} , matches = 2, matchType = matchtype.any, mods = {{MOD_MP, 10, 10, 0}} }, -- Cobra Unit Coat Set
{id = 25, items = {16062,14525,14933,15604,15688} , matches = 5, matchType = matchtype.any, mods = {{MOD_UDMGBREATH, -8, 0, 0}, {MOD_UDMGMAGIC, -8, 0, 0}} }, -- Amir Korazin Set - Double mod here! It is why it has 2 IDs.
{id = 27, items = {11281,15015,16337,11364}, matches = 2, matchType = matchtype.any, mods = {{MOD_STORETP, 5, 5, 5}} }, -- Hachiryu Haramaki Set - Store tp
{id = 28, items = {11064,11084,11104,11124,11144}, matches = 5, matchType = matchtype.any, mods = {{MOD_DA_DOUBLE_DAMAGE, 5, 0, 0}} }, -- Ravager's Armor +2 Set - Double attack double damage chance
{id = 29, items = {11808,11824,11850,11857,11858}, matches = 2, matchType = matchtype.any, mods = {{MOD_DOUBLE_ATTACK, 5, 0, 0}} }, -- Fazheluo Mail Set. Set Bonus: "Double Attack"+5%. Active with any 2 pieces.
{id = 30, items = {11809,11825,11851,11855,11859}, matches = 2, matchType = matchtype.any, mods = {{MOD_HASTE_GEAR, 80, 0, 0}} }, -- Cuauhtli Harness Set. Set Bonus: Haste+8%. Active with any 2 pieces.
{id = 31, items = {11810,11826,11852,11856,11860}, matches = 2, matchType = matchtype.any, mods = {{MOD_MACC, 5, 0, 0}} }, -- Hyskos Robe Set. Set Bonus: Magic Accuracy+5. Active with any 2 pieces.
{id = 32, items = {10876,10450,10500,11969,10600}, matches = 2, matchType = matchtype.any, mods = {{MOD_REFRESH, 1, 0.4, 0}} }, -- Ogier's Armor Set. Set Bonus: Adds "Refresh" Effect. Provides 1 mp/tick for 2-3 pieces worn, 2 mp/tick for 4-5 pieces worn.
{id = 33, items = {10877,10451,10501,11970,10601}, matches = 2, matchType = matchtype.any, mods = {{MOD_CRITHITRATE, 1, 1, 0}} }, -- Athos's Armor Set. Set Bonus: Increases rate of critical hits. Gives +3% for the first 2 pieces and +1% for every additional piece.
-- hipster set, stick it in HipsterSets below so we can handle it separately (still need to check if it's a set, though)
{id = 34, items = {10878,10452,10502,11971,10602}, matches = 5, matchType = matchtype.any, mods = {{MOD_FASTCAST, 10, 0, 0}} }, -- Rubeus Armor Set. Set Bonus: Enhances "Fast Cast" Effect. 2 or 3 pieces equipped: Fast Cast +4, 4 or 5 pieces equipped: Fast Cast +10
{id = 35, items = {11080,11100,11120,11140,11160}, matches = 5, matchType = matchtype.any, mods = {{MOD_QUICK_DRAW_TRIPLE_DAMAGE, extraDamageChance, 0, 0}} }, -- Navarch's Attire +2 Set. Set Bonus: Augments "Quick Draw". Quick Draw will occasionally deal triple damage.
{id = 36, items = {11082,11102,11122,11142,11162}, matches = 2, matchType = matchtype.any, mods = {{MOD_SAMBA_DOUBLE_DAMAGE, 1, 1.8, 0}} }, -- Charis Attire +2 Set. Set Bonus: Augments "Samba". Occasionally doubles damage with Samba up. Adds approximately 1-2% per piece past the first.
{id = 37, items = {11076,11096,11116,11136,11156}, matches = 5, matchType = matchtype.any, mods = {{MOD_EXTRA_DUAL_WIELD_ATTACK, extraAttackChance, 0, 0}} }, -- Iga Garb +2 Set. Set Bonus: Augments "Dual Wield". Attacks made while dual wielding occasionally add an extra attack
{id = 38, items = {11074,11094,11114,11134,11154}, matches = 2, matchType = matchtype.any, mods = {{MOD_RAPID_SHOT_DOUBLE_DAMAGE, extraDamageChance, 0, 0}} }, -- Sylvan Attire +2 Set. Set Bonus: Augments "Rapid Shot". Rapid Shots occasionally deal double damage.
{id = 39, items = {11070,11090,11110,11130,11150}, matches = 5, matchType = matchtype.any, mods = {{MOD_ABSORB_DMG_CHANCE, 1, 1, 0}} }, -- Creed Armor +2 Set. Set Bonus: Occasionally absorbs damage taken. Set proc believed to be somewhere around 5%, more testing needed. Verification Needed Absorb rate likely varies with # of set pieces.
{id = 40, items = {11075,11095,11115,11135,11155}, matches = 5, matchType = matchtype.any, mods = {{MOD_ZANSHIN_DOUBLE_DAMAGE, extraDamageChance, 0, 0}} }, -- Unkai Domaru +2 Set. Set Bonus: Augments "Zanshin". Zanshin attacks will occasionally deal double damage.
{id = 41, items = {11065,11085,11105,11125,11145}, matches = 5, matchType = matchtype.any, mods = {{MOD_EXTRA_KICK_ATTACK, extraAttackChance, 0, 0}} }, -- Tantra Attire +2 Set. Set Bonus: Augments "Kick Attacks". Occasionally allows a second Kick Attack during an attack round without the use of Footwork.
{id = 42, items = {11069,11089,11109,11129,11149}, matches = 2, matchType = matchtype.any, mods = {{MOD_TA_TRIPLE_DAMAGE, extraDamageChance, 0, 0}} }, -- Raider's Attire +2 Set. Set Bonus: Augments "Triple Attack". Occasionally causes the second and third hits of a Triple Attack to deal triple damage.Verification Needed Requires a minimum of two pieces.
{id = 43, items = {11066,11086,11106,11126,11146}, matches = 5, matchType = matchtype.any, mods = {{MOD_BAR_ELEMENT_NULL_CHANCE, nullDamageChance, 0, 0}} }, -- Orison Attire +2 Set. Set Bonus: Augments elemental resistance spells. Bar Elemental spells will occasionally nullify damage of the same element.
{id = 44, items = {11083,11103,11123,11143,11163}, matches = 5, matchType = matchtype.any, mods = {{MOD_GRIMOIRE_INSTANT_CAST, instantCastChance, 0, 0}} }, -- Savant's Attire +2 Set. Set Bonus: Augments Grimoire. Spells that match your current Arts will occasionally cast instantly, without recast.
{id = 45, items = {16005, 17756, 17962, 18596, 18760, 19112, 19215, 19271, 19156}, matches = 2, matchType = matchtype.earring_weapon, mods = {{MOD_HP, 30, 0, 0}, {MOD_VIT, 6, 0, 0}, {MOD_ACC, 6, 0, 0}, {MOD_RACC, 6, 0, 0}} }, -- Paramount Earring Sets. Set Bonus: HP+30, VIT+6, Accuracy+6, Ranged Accuracy+6. Set Bonus is active with any 2 items(Earring+Weapon or Weapon+Weapon)
{id = 45, items = {17756, 17962, 18596, 18760, 19112, 19215, 19271, 19156}, matches = 2, matchType = matchtype.weapon_weapon, mods = {{MOD_HP, 30, 0, 0}, {MOD_VIT, 6, 0, 0}, {MOD_ACC, 6, 0, 0}, {MOD_RACC, 6, 0, 0}} }, -- Paramount Earring Sets. Set Bonus: HP+30, VIT+6, Accuracy+6, Ranged Accuracy+6. Set Bonus is active with any 2 items(Earring+Weapon or Weapon+Weapon)
{id = 49, items = {18761,18597,17757,19218,18128,18500,16004,18951}, matches = 2, matchType = matchtype.earring_weapon, mods = {{MOD_STR, 6, 0, 0}, {MOD_ATT, 4, 0, 0}, {MOD_RATT, 4, 0, 0}, {MOD_MATT, 2, 0, 0}} }, -- Supremacy Earring Sets. Set Bonus: STR+6, Attack+4, Ranged Attack+4, "Magic Atk. Bonus"+2. Active with any 2 items(Earring+Weapon)
{id = 53, items = {16006,18450,18499,18861,18862,18952,19111,19217,19272}, matches = 2, matchType = matchtype.earring_weapon, mods = {{MOD_EVA, 10, 0, 0}, {MOD_HPHEAL, 10, 0, 0}, {MOD_ENMITY, -5, 0, 0}} }, -- Brilliant Earring Set. Set Bonus: Evasion, HP Recovered while healing, Reduces Emnity. Active with any 2 items(Earring+Weapon)
{id = 56, items = {11798,11362}, matches = 2, matchType = matchtype.any, mods = {{MOD_RERAISE_III, 1, 0, 0}} }, -- Twilight Mail Set. Set Bonus: Auto-Reraise
{id = 57, items = {18244,17595}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} }, -- Begin Jailer weapons: Set is weapon + Virtue stone, bonus 50% extra melee swing.
{id = 58, items = {18244,17710}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} },
{id = 59, items = {18244,17948}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} },
{id = 60, items = {18244,18100}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} },
{id = 61, items = {18244,18222}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} },
{id = 62, items = {18244,18360}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} },
{id = 63, items = {18244,18397}, matches = 2, matchType = matchtype.any, mods = {{MOD_AMMO_SWING, 50, 0, 0}} }, -- End Jailer weapons
{id = 71, items = {28520,28521}, matches = 2, matchType = matchtype.any, mods = {{MOD_DOUBLE_ATTACK, 7, 0, 0}} }, -- Bladeborn/Steelflash Earrings
{id = 72, items = {28522,28523}, matches = 2, matchType = matchtype.any, mods = {{MOD_DUAL_WIELD, 7, 0, 0}} }, -- Dudgeon/Heartseeker Earrings
{id = 73, items = {28524,28525}, matches = 2, matchType = matchtype.any, mods = {{MOD_MACC, 12, 0, 0}} }, -- Psystorm/Lifestorm Earrings
{id = 74, items = {26920,26921,27434,27259,27260,26762,26763,27074,27075,27433}, matches = 2, matchType = matchtype.any, mods = {{MOD_ZANSHIN_DOUBLE_DAMAGE, extraDamageChance, 0, 0}} }, -- Samurai 109/119 af3
{id = 75, items = {27414,27413,27240,27239,27055,27054,26901,26900,26743,26742}, matches = 2, matchType = matchtype.any, mods = {{MOD_EXTRA_KICK_ATTACK, extraAttackChance, 0, 0}} }, -- MNK 109/119 af3
{id = 76, items = {26740,26741,27411,27412,27238,27237,27053,27054,26899,26900}, matches = 2, matchType = matchtype.any, mods = {{MOD_DA_DOUBLE_DAMAGE, extraDamageChance, 0, 0}} }, -- 109/119 WAR AF3
{id = 77, items = {26750,26751,27421,27422,27247,27248,27063,27062,26908,26909}, matches = 2, matchType = matchtype.any, mods = {{MOD_TA_TRIPLE_DAMAGE, extraDamageChance, 0, 0}} }, -- 109/119 THF AF3
{id = 78, items = {26918,26919,26761,26762,27431,27432,27257,27258,27072,27073}, matches = 2, matchType = matchtype.any, mods = {{MOD_RAPID_SHOT_DOUBLE_DAMAGE, extraDamageChance, 0, 0}} }, -- 109/119 RNG AF3
{id = 79, items = {26910,26911,26752,26753,27424,27423,27064,27065,27249,27250}, matches = 2, matchType = matchtype.any, mods = {{MOD_ABSORB_DMG_CHANCE, nullDamageChance, 0, 0}} }, -- 109/119 PLD AF3
{id = 80, items = {26922,26923,26764,26765,27076,27077,27261,27262,27435,27436}, matches = 2, matchType = matchtype.any, mods = {{MOD_EXTRA_DUAL_WIELD_ATTACK, extraAttackChance, 0, 0}} }, -- 109/119 NIN AF3
{id = 81, items = {27443,27444,26772,26773,26930,26931,27084,27085,27269,27270}, matches = 2, matchType = matchtype.any, mods = {{MOD_QUICK_DRAW_TRIPLE_DAMAGE, extraDamageChance, 0, 0}} }, -- 109/119 COR AF3
{id = 82, items = {27275,27276,27449,27450,26778,26779,26936,26937,27090,27091}, matches = 2, matchType = matchtype.any, mods = {{MOD_GRIMOIRE_INSTANT_CAST, instantCastChance, 0, 0}} }, -- 109/119 SCH AF3
{id = 83, items = {27241,27242,27415,27416,26744,26745,26902,26903,27056,27057}, matches = 2, matchType = matchtype.any, mods = {{MOD_BAR_ELEMENT_NULL_CHANCE, nullDamageChance, 0, 0}} }, -- 109/119 WHM AF3
{id = 84, items = {11867,10868,10865}, matches = 2, matchType = matchtype.any, mods = {{MOD_REFRESH, 3, 0, 0}} }, -- Heka's body + NQ or HQ Khat = 3 tick refresh
{id = 85, items = {10868,11870,11864,10865}, matches = 2, matchType = matchtype.any, mods = {{MOD_REFRESH, 2, 0, 0}} }, -- Nefer body/head NQ/HQ combo gives Refresh +2
{id = 86, items = {15852,15853}, matches = 2, matchType = matchtype.any, mods = {{MOD_HP, 50, 0, 0},{MOD_MP, 50, 0, 0}} }, -- Dasra's/Nasatya's Ring set gives HP/MP +50
{id = 88, items = {16037,16038}, matches = 2, matchType = matchtype.any, mods = {{MOD_MATT, 5, 0, 0},{MOD_MACC, 5, 0, 0}} }, -- Helenus's/Cassandra's earring set: Mag atk bonus+5 and Mag acc +5
{id = 90, items = {15850,15851}, matches = 2, matchType = matchtype.any, mods = {{MOD_ATT, 6, 0, 0},{MOD_ACC, 12, 0, 0},{MOD_DEF, 6, 0, 0}} }, -- Lava's/Kusha's earring set: Atk+6/Acc+12
{id = 93, items = {16146,14588,15009,16315,15755}, matches = 2, matchType = matchtype.any, mods = {{MOD_FIRERES, 5, 5, 10},{MOD_ICERES, 5, 5, 10},{MOD_WINDRES, 5, 5, 10},{MOD_EARTHRES, 5, 5, 10},{MOD_THUNDERRES, 5, 5, 10},{MOD_WATERRES, 5, 5, 10},{MOD_LIGHTRES, 5, 5, 10},{MOD_DARKRES, 5, 5, 10}} }, -- Iron Ram Haubert Set
{id = 101, items = {16035,16036}, matches = 2, matchType = matchtype.any, mods = {{MOD_AGI, 8, 0, 0}} }, -- Altdorf's/Wilhelm's earring: AGI+8
{id = 102, items = {15042,11402}, matches = 2, matchType = matchtype.any, mods = {{MOD_ATT, 5, 0, 0},{MOD_RATT, 5, 0, 0}} }, -- Gothic Gauntlets/Sabatons: Atk/RAtk +5
}
-- increment id by (number of mods in previous gearset - 1)
-- {id, {item, ids, in, no, particular, order}, minimum matches required, match type, mods{id, value, modvalue for each additional match, additional whole set bonus}
local HipsterSets = {
-- stick the ids of sets that need their own handling here e.g. Rubeus
{id = 34, hipster = true}
}
------------------------------------------
-- Checks for gear sets present on a player
-------------------------------------------
function checkForGearSet(player)
-- print("---Removed existing gear set mods!---\n");
player:clearGearSetMods();
-- cause we dont want hundreds of function calls
local equip = {};
for slot = 0, MAX_SLOTID do
equip[slot+1] = player:getEquipID(slot);
end
for index, gearset in pairs(GearSets) do
local matches = 0;
if (player:hasGearSetMod(gearset.id) == false) then
local slot = 0;
local gearMatch = {};
for _, id in pairs(gearset.items) do
for slot = 1, MAX_SLOTID do
local equipId = equip[slot];
-- check the item matches
if (equipId == id) then
matches = matches + 1;
gearMatch[slot] = equipId;
break;
end
end;
end
-- doesnt count as a match if the same item is in both slots
if (gearMatch[SLOT_EAR1+1] == gearMatch[SLOT_EAR2+1] and gearMatch[SLOT_EAR1+1] ~= nil) then
matches = matches - 1;
end;
if (gearMatch[SLOT_RING1+1] == gearMatch[SLOT_RING2+1] and gearMatch[SLOT_RING1+1] ~= nil) then
matches = matches - 1;
end;
if (gearMatch[SLOT_MAIN+1] == gearMatch[SLOT_SUB+1] and gearMatch[SLOT_MAIN+1] ~= nil) then
matches = matches - 1;
end;
if (matches >= gearset.matches) then
if (FindMatchByType(gearset, gearMatch) == true) then
ApplyMod(player, gearset, matches)
end
end
end
end
end;
function FindMatchByType(gearset, gearMatch)
if (gearset.matchType == matchtype.any) then
return true;
end
for _, id in ipairs(gearMatch) do
if (gearset.matchType == matchtype.earring_weapon and (gearMatch[SLOT_MAIN+1] ~= nil or gearMatch[SLOT_SUB+1] ~= nil) and (gearMatch[SLOT_EAR1+1] ~= nil or gearMatch[SLOT_EAR2+1] ~= nil)) then
return true;
elseif (gearset.matchType == matchtype.weapon_weapon and (gearMatch[SLOT_MAIN+1] ~= nil and gearMatch[SLOT_SUB+1] ~= nil)) then
return true;
end
end
return false;
end;
---------------------------------------
-- Applys a gear set mod
---------------------------------------
function ApplyMod(player, gearset, matches)
for _, set in pairs(HipsterSets) do
if (set.id == gearset.id) then
HandleHipsterSet(player, gearset, matches);
return;
end
end
-- find any additional matches
local addMatches = matches - gearset.matches;
-- just in case some d00d decides to custom shit up and complain the script is b0rked
if (addMatches < 0) then
printf("shitbag check your code | gearset: %u", gearset.id);
return;
end;
local i = 0;
for _, mod in pairs(gearset.mods) do
local modId = mod[1];
local modValue = mod[2];
-- value/multiplier for additional pieces
local addMatchValue = mod[3];
-- additional bonus for complete set
local addSetBonus = 0;
-- cause we need all pieces to form a complete set
if (matches == #gearset.items) then
addSetBonus = mod[4];
end;
-- add bonus mods per piece
if (addMatches ~= 0 and addMatchValue ~= 0) then
modValue = modValue + (addMatchValue * addMatches);
end
-- printf("gearset: %u, mod: %u, value %u", gearset.id, modId, modValue + addSetBonus);
player:addGearSetMod(gearset.id + i, modId, modValue + addSetBonus);
i = i + 1;
end
-- print("Gear set! Mod applied: ModNameId:" .. modNameId .. " ModId:" .. modId .. " Value:" .. modValue .. "\n");
end;
-- fkin hipsters
function HandleHipsterSet(player, gearset, matches)
-- Rubeus Armor Set
if (gearset.id == 34) then
local modValue = 0;
if (matches > 1 and matches < 4) then
modValue = 4; -- 2 or 3 pieces
elseif (matches > 3) then
modValue = 10; -- 4 or 5 pieces
end;
-- printf("we have a special snowflake | gearset: %u | mod %u %u", gearset.id, MOD_FASTCAST, modValue);
player:addGearSetMod(gearset.id, MOD_FASTCAST, modValue);
return;
end
end
--[[ Unimplemented sets below
=======
Stronghold NM(WOTG)
=======
-- Molione's Sickle Set
-------------
18947 -- Molione's Sickle
15818 -- Molione's Ring
-- Set Bonus: +5 Accuracy
-- Set Bonus: Enhances "Souleater" Effect
=======
Empyrean +2
=======
--Aoidos' Attire +2 Set
-------------
11073 -- Aoidos' Calot+2
11093 -- Aoidos' Hongreline +2
11113 -- Aoidos' Manchettes +2
11133 -- Aoidos' Rhingrave +2
11153 -- Aoidos' Cothurnes +2
-- Set Bonus: Augments Songs
-- Enhancing songs add an attribute bonus that corresponds to the element of the song (i.e. Thunder-based songs add +DEX). The attribute bonus begins at +1 for 2 pieces, increases by 1 for each additional piece, up to +5 for the whole set. For Dark-based songs, there is a bonus of +10 MP for 2 pieces, and increases by 10 for each additional piece.
--Ferine' Attire +2 Set
-------------
11072 -- Ferine Cabasset+2
11092 -- Ferine Gausape+2
11112 -- Ferine Manoplas+2
11132 -- Ferine Quijotes+2
11152 -- Ferine Ocreae+2
-- Set Bonus: Attack occ. varies with pet's HP
-- Occasionally increases damage in direct proportion to the percentage of pet's current HP. At 100% HP, damage is doubled when triggered, at 50% HP, damage increases by 50%, and so on.
-- 5% Proc Rate
--Goetia Attire +2 Set
-------------
11067 -- Goetia Petasos+2
11087 -- Goetia Coat+2
11107 -- Goetia Gloves+2
11127 -- Goetia Chausses+2
11147 -- Goetia Sabots+2
-- Set Bonus: Augments "Conserve MP"
-- Occasionally increases damage of elemental spells when Conserve MP is triggered. Increased amount is proportional to twice the ratio of MP conserved.
--Mavi Attire +2 Set
-------------
11079 -- Mavi Kavuk+2
11099 -- Mavi Mintan+2
11119 -- Mavi Bazubands+2
11139 -- Mavi Tayt+2
11159 -- Mavi Basmak+2
-- Set Bonus: Occ. augments blue magic spells.
-- no damn clue!
--Bale Armor +2 Set
-------------
11071 -- Bale Burgeonet+2
11091 -- Bale Cuirass+2
11111 -- Bale Gauntlets+2
11131 -- Bale Flanchard+2
11151 -- Bale Sollerets+2
-- Set Bonus: Attack occasionally varies with HP
-- Occasionally increases damage in direct proportion to the percentage of current HP. At 100% HP, damage is doubled when triggered, at 50% HP, damage increases by 50%, and so on.
--Lancer's Armor +2 Set
-------------
11077 -- Lancer's Mezail+2
11097 -- Lancer's Plackart+2
11117 -- Lancer's Vambrace+2
11137 -- Lancer's Cuissots+2
11157 -- Lancer's Schynbalds+2
-- Set Bonus: Attack occasionally varies with wyvern's HP.
-- Damage increases proportionate to Wyvern's HP, at 100%, damage is doubled. 2+ pieces required, more pieces increase proc rate. Full +2 set is about a 10% proc rate. (Confirmation needed)
--Cirque Attire +2 Set
-------------
11081 -- Cirque Capello+2
11101 -- Cirque Farsetto+2
11121 -- Cirque Gaunti+2
11141 -- Cirque Pantaloni+2
11161 -- Cirque Scarpe+2
-- Set Bonus: Attack occasionally varies with automaton's HP.
-- Occasionally increases damage in direct proportion to the percentage of Automaton's current HP. At 100% HP, damage is doubled when triggered, at 50% HP, damage increases by 50%, and so on.
--Estoqueur's Attire +2 Set
-------------
11068 -- Estoqueur's Chappel+2
11088 -- Estoqueur's Sayon+2
11108 -- Estoqueur's Gantherots+2
11128 -- Estoqueur's Fuseau+2
11148 -- Estoqueur's Houseaux+2
-- Set Bonus: Augments "Composure"
-- Enhances duration of Enhancing Magic cast on OTHERS while under the effect of Composure by 10% for the first 2 pieces, and 15% for any additional pieces thereafter, up to 35% increase for 4 pieces and 50% for all 5 pieces. The "Increases enhancing magic effect duration" of the Estoqueur's Cape, Estoqueur's Houseaux +1 and Estoqueur's Houseaux +2 is multiplicative to this total.
--Caller's Attire +2 Set
-------------
11078 -- Caller's Horn+2
11098 -- Caller's Doublet+2
11118 -- Caller's Bracers+2
11138 -- Caller's Spats+2
11158 -- Caller's Pigaches+2
-- Set Bonus: Augments "Blood Boon"
-- Occasionally increases damage of Blood Pacts when Blood Boon is triggered. Increased amount is proportional to the ratio of MP conserved.
]]--
| gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/coloredwood/wood.lua | 1 | 6366 | -- Woods portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
-- based on my unified dyes modding template.
--
-- License: WTFPL
coloredwood.enable_stairsplus = true
if minetest.setting_getbool("coloredwood_enable_stairsplus") == false or not minetest.get_modpath("moreblocks") then
coloredwood.enable_stairsplus = false
end
local colored_block_modname = "coloredwood"
local colored_block_description = "Wood Planks"
local neutral_block = "default:wood"
local colored_block_sunlight = "false"
local colored_block_walkable = "true"
local colored_block_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2}
local colored_block_sound = "default.node_sound_wood_defaults()"
-- Show the wood planks in the crafting guide:
-- Value copy the groups table to another one to pass to stairsplus:register_all()
-- oherwise stairsplus:register_all() will add the ["not_in_creative_inventory"] = 1 key/value to the groups
-- of the original table and force the coloredwood planks to be removed from the crafting guide.
local stairsplus_groups = {}
if coloredwood.enable_stairsplus then
for k, v in pairs(colored_block_groups) do
stairsplus_groups[k] = v
end
end
for shade = 1, 3 do
local shadename = coloredwood.shades[shade]
local shadename2 = coloredwood.shades2[shade]
for hue = 1, 12 do
local huename = coloredwood.hues[hue]
local huename2 = coloredwood.hues2[hue]
local colorname = colored_block_modname..":wood_"..shadename..huename
local pngname = colored_block_modname.."_wood_"..shadename..huename..".png"
local nodedesc = shadename2..huename2..colored_block_description
local s50colorname = colored_block_modname..":wood_"..shadename..huename.."_s50"
local s50pngname = colored_block_modname.."_wood_"..shadename..huename.."_s50.png"
local s50nodedesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
minetest.register_node(colorname, {
description = nodedesc,
tiles = { pngname },
sunlight_propagates = colored_block_sunlight,
paramtype = "light",
walkable = colored_block_walkable,
groups = colored_block_groups,
sounds = colored_block_sound
})
minetest.register_node(s50colorname, {
description = s50nodedesc,
tiles = { s50pngname },
sunlight_propagates = colored_block_sunlight,
paramtype = "light",
walkable = colored_block_walkable,
groups = colored_block_groups,
sounds = colored_block_sound
})
if coloredwood.enable_stairsplus then
-- stairsplus:register_all(modname, subname, recipeitem, {fields})
stairsplus:register_all(
"coloredwood",
"wood_"..shadename..huename,
colorname,
{
groups = stairsplus_groups, -- Modif MFF
tiles = { pngname },
description = nodedesc,
drop = "wood_"..shadename..huename,
}
)
stairsplus:register_all(
"coloredwood",
"wood_"..shadename..huename.."_s50",
s50colorname,
{
groups = stairsplus_groups, -- Modif MFF
tiles = { s50pngname },
description = s50nodedesc,
drop = "wood_"..shadename..huename.."_s50",
}
)
end
minetest.register_craft({
type = "fuel",
recipe = colorname,
burntime = 7,
})
minetest.register_craft({
type = "fuel",
recipe = s50colorname,
burntime = 7,
})
minetest.register_craft( {
type = "shapeless",
output = colorname.." 2",
recipe = {
neutral_block,
neutral_block,
"unifieddyes:"..shadename..huename
},
})
minetest.register_craft( {
type = "shapeless",
output = s50colorname.." 2",
recipe = {
neutral_block,
neutral_block,
"unifieddyes:"..shadename..huename.."_s50"
},
})
end
end
-- Generate the "light" shades separately, since they don"t have a low-sat version.
for hue = 1, 12 do
local huename = coloredwood.hues[hue]
local huename2 = coloredwood.hues2[hue]
local colorname = colored_block_modname..":wood_light_"..huename
local pngname = colored_block_modname.."_wood_light_"..huename..".png"
local nodedesc = "Light "..huename2..colored_block_description
minetest.register_node(colorname, {
description = nodedesc,
tiles = { pngname },
sunlight_propagates = colored_block_sunlight,
paramtype = "light",
walkable = colored_block_walkable,
groups = colored_block_groups,
sounds = colored_block_sound
})
if coloredwood.enable_stairsplus then
stairsplus:register_all(
"coloredwood",
"wood_light_"..huename,
colorname,
{
groups = stairsplus_groups, -- Modif MFF
tiles = { pngname },
description = nodedesc,
drop = "wood_light_"..huename,
}
)
end
minetest.register_craft({
type = "fuel",
recipe = colorname,
burntime = 7,
})
minetest.register_craft( {
type = "shapeless",
output = colorname.." 2",
recipe = {
neutral_block,
neutral_block,
"unifieddyes:light_"..huename
},
})
end
-- ============================================================
-- The 5 levels of greyscale.
--
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
-- (otherwise black and white would wash out).
for grey = 1,5 do
local greyname = coloredwood.greys[grey]
local greyname2 = coloredwood.greys2[grey]
local greyname3 = coloredwood.greys3[grey]
local greyshadename = colored_block_modname..":wood_"..greyname
local pngname = colored_block_modname.."_wood_"..greyname..".png"
local nodedesc = greyname2..colored_block_description
minetest.register_node(greyshadename, {
description = nodedesc,
tiles = { pngname },
sunlight_propagates = colored_block_sunlight,
paramtype = "light",
walkable = colored_block_walkable,
groups = colored_block_groups,
sounds = colored_block_sound
})
if coloredwood.enable_stairsplus then
stairsplus:register_all(
"coloredwood",
"wood_"..greyname,
greyshadename,
{
groups = stairsplus_groups, -- Modif MFF
tiles = { pngname },
description = nodedesc,
drop = "wood_"..greyname,
}
)
end
minetest.register_craft({
type = "fuel",
recipe = greyshadename,
burntime = 7,
})
minetest.register_craft( {
type = "shapeless",
output = greyshadename.." 2",
recipe = {
neutral_block,
neutral_block,
greyname3
},
})
end
| unlicense |
virgo-agent-toolkit/rackspace-monitoring-agent | hostinfo/who.lua | 3 | 1081 | --[[
Copyright 2014 Rackspace
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
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.
--]]
local HostInfo = require('./base').HostInfo
local sigar = require('sigar')
--[[ Who is logged In ]]--
local Info = HostInfo:extend()
function Info:initialize()
HostInfo.initialize(self)
end
function Info:_run(callback)
local ctx = sigar:new()
local who = ctx:who()
for i=1, #who do
local obj = {}
for _, v in pairs({'user', 'device', 'time', 'host'}) do
obj[v] = who[i][v]
end
table.insert(self._params, obj)
end
callback()
end
function Info:getType()
return 'WHO'
end
return Info
| apache-2.0 |
AlexandreCA/darkstar | scripts/zones/RuAun_Gardens/mobs/Genbu.lua | 7 | 1547 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NM: Genbu
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EFFECT,mob:getShortID());
end;
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onAdditionalEffect
-----------------------------------
function onAdditionalEffect(mob, target, damage)
local dmg = math.random(140,160)
local params = {};
params.bonusmab = 0;
params.includemab = false;
dmg = addBonusesAbility(mob, ELE_WATER, target, dmg, params);
dmg = dmg * applyResistanceAddEffect(mob,target,ELE_WATER,0);
dmg = adjustForTarget(target,dmg,ELE_WATER);
dmg = finalMagicNonSpellAdjustments(mob,target,ELE_WATER,dmg);
return SUBEFFECT_WATER_DAMAGE, MSGBASIC_ADD_EFFECT_DMG, dmg;
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, killer, ally)
ally:showText(mob,SKY_GOD_OFFSET + 6);
end;
-----------------------------------
-- onMobDespawn
-----------------------------------
function onMobDespawn(mob)
GetNPCByID(17310099):updateNPCHideTime(FORCE_SPAWN_QM_RESET_TIME);
end; | gpl-3.0 |
yasharsa/yashartg | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return table.concat(t), code, headers, status
end]]--
local function get_google_data(text)
local url = "http://ajax.googleapis.com/ajax/services/search/images?"
url = url.."v=1.0&rsz=5"
url = url.."&q="..URL.escape(text)
url = url.."&imgsz=small|medium|large"
if google_config.api_keys then
local i = math.random(#google_config.api_keys)
local api_key = google_config.api_keys[i]
if api_key then
url = url.."&key="..api_key
end
end
local res, code = http.request(url)
if code ~= 200 then
print("HTTP Error code:", code)
return nil
end
local google = json:decode(res)
return google
end
-- Returns only the useful google data to save on cache
local function simple_google_table(google)
local new_table = {}
new_table.responseData = {}
new_table.responseDetails = google.responseDetails
new_table.responseStatus = google.responseStatus
new_table.responseData.results = {}
local results = google.responseData.results
for k,result in pairs(results) do
new_table.responseData.results[k] = {}
new_table.responseData.results[k].unescapedUrl = result.unescapedUrl
new_table.responseData.results[k].url = result.url
end
return new_table
end
local function save_to_cache(query, data)
-- Saves result on cache
if string.len(query) <= 7 then
local text_b64 = mime.b64(query)
if not cache[text_b64] then
local simple_google = simple_google_table(data)
cache[text_b64] = simple_google
end
end
end
local function process_google_data(google, receiver, query)
if google.responseStatus == 403 then
local text = 'ERROR: Reached maximum searches per day'
send_msg(receiver, text, ok_cb, false)
elseif google.responseStatus == 200 then
local data = google.responseData
if not data or not data.results or #data.results == 0 then
local text = 'Image not found.'
send_msg(receiver, text, ok_cb, false)
return false
end
-- Random image from table
local i = math.random(#data.results)
local url = data.results[i].unescapedUrl or data.results[i].url
local old_timeout = http.TIMEOUT or 10
http.TIMEOUT = 5
send_photo_from_url(receiver, url)
http.TIMEOUT = old_timeout
save_to_cache(query, google)
else
local text = 'ERROR!'
send_msg(receiver, text, ok_cb, false)
end
end
function run(msg, matches)
local receiver = get_receiver(msg)
local text = matches[1]
local text_b64 = mime.b64(text)
local cached = cache[text_b64]
if cached then
process_google_data(cached, receiver, text)
else
local data = get_google_data(text)
process_google_data(data, receiver, text)
end
end
return {
description = "Search image with Google API and sends it.",
usage = "!img [term]: Random search an image with Google API.",
patterns = {
"^!img (.*)$"
},
run = run
}
end
| gpl-2.0 |
mobinantispam/test-bot | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return table.concat(t), code, headers, status
end]]--
local function get_google_data(text)
local url = "http://ajax.googleapis.com/ajax/services/search/images?"
url = url.."v=1.0&rsz=5"
url = url.."&q="..URL.escape(text)
url = url.."&imgsz=small|medium|large"
if google_config.api_keys then
local i = math.random(#google_config.api_keys)
local api_key = google_config.api_keys[i]
if api_key then
url = url.."&key="..api_key
end
end
local res, code = http.request(url)
if code ~= 200 then
print("HTTP Error code:", code)
return nil
end
local google = json:decode(res)
return google
end
-- Returns only the useful google data to save on cache
local function simple_google_table(google)
local new_table = {}
new_table.responseData = {}
new_table.responseDetails = google.responseDetails
new_table.responseStatus = google.responseStatus
new_table.responseData.results = {}
local results = google.responseData.results
for k,result in pairs(results) do
new_table.responseData.results[k] = {}
new_table.responseData.results[k].unescapedUrl = result.unescapedUrl
new_table.responseData.results[k].url = result.url
end
return new_table
end
local function save_to_cache(query, data)
-- Saves result on cache
if string.len(query) <= 7 then
local text_b64 = mime.b64(query)
if not cache[text_b64] then
local simple_google = simple_google_table(data)
cache[text_b64] = simple_google
end
end
end
local function process_google_data(google, receiver, query)
if google.responseStatus == 403 then
local text = 'ERROR: Reached maximum searches per day'
send_msg(receiver, text, ok_cb, false)
elseif google.responseStatus == 200 then
local data = google.responseData
if not data or not data.results or #data.results == 0 then
local text = 'Image not found.'
send_msg(receiver, text, ok_cb, false)
return false
end
-- Random image from table
local i = math.random(#data.results)
local url = data.results[i].unescapedUrl or data.results[i].url
local old_timeout = http.TIMEOUT or 10
http.TIMEOUT = 5
send_photo_from_url(receiver, url)
http.TIMEOUT = old_timeout
save_to_cache(query, google)
else
local text = 'ERROR!'
send_msg(receiver, text, ok_cb, false)
end
end
function run(msg, matches)
local receiver = get_receiver(msg)
local text = matches[1]
local text_b64 = mime.b64(text)
local cached = cache[text_b64]
if cached then
process_google_data(cached, receiver, text)
else
local data = get_google_data(text)
process_google_data(data, receiver, text)
end
end
return {
description = "Search image with Google API and sends it.",
usage = "!img [term]: Random search an image with Google API.",
patterns = {
"^!img (.*)$"
},
run = run
}
end
| gpl-2.0 |
ld-test/lrexlib-gnu | test/pat2pcre.lua | 20 | 1815 | -- See Copyright Notice in the file LICENSE
-- Convert Lua regex pattern to its PCRE equivalent.
local t_esc = {
a = "[:alpha:]",
A = "[:^alpha:]",
c = "[:cntrl:]",
C = "[:^cntrl:]",
l = "[:lower:]",
L = "[:^lower:]",
p = "[:punct:]",
P = "[:^punct:]",
u = "[:upper:]",
U = "[:^upper:]",
w = "[:alnum:]",
W = "[:^alnum:]",
x = "[:xdigit:]",
X = "[:^xdigit:]",
z = "\\x00",
Z = "\\x01-\\xFF",
}
local function rep_normal (ch)
assert (ch ~= "b", "\"%b\" subpattern is not supported")
assert (ch ~= "0", "invalid capture index")
local v = t_esc[ch]
return v and ("[" .. v .. "]") or ("\\" .. ch)
end
local function rep_charclass (ch)
return t_esc[ch] or ("\\" .. ch)
end
function pat2pcre (s)
local ind = 0
local function getc ()
ind = ind + 1
return string.sub (s, ind, ind)
end
local function getnum ()
local num = string.match (s, "^\\(%d%d?%d?)", ind)
if num then
ind = ind + #num
return string.format ("\\x%02X", num)
end
end
local out, state = "", "normal"
while ind < #s do
local ch = getc ()
if state == "normal" then
if ch == "%" then
out = out .. rep_normal (getc ())
elseif ch == "-" then
out = out .. "*?"
elseif ch == "." then
out = out .. "\\C"
elseif ch == "[" then
out = out .. ch
state = "charclass"
else
local num = getnum ()
out = num and (out .. num) or (out .. ch)
end
elseif state == "charclass" then
if ch == "%" then
out = out .. rep_charclass (getc ())
elseif ch == "]" then
out = out .. ch
state = "normal"
else
local num = getnum ()
out = num and (out .. num) or (out .. ch)
end
end
end
return out
end
return pat2pcre
| mit |
AlexandreCA/update | scripts/zones/La_Vaule_[S]/Zone.lua | 12 | 1784 | -----------------------------------
--
-- Zone: La_Vaule_[S] (85)
--
-----------------------------------
package.loaded["scripts/zones/La_Vaule_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/La_Vaule_[S]/TextIDs");
require("scripts/globals/quests");
require("scripts/globals/missions");
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
-----------------------------------
function onZoneIn(player,prevZone)
local cs = -1;
if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then
player:setPos(236.547,-2.25,20,120);
end
if (prevZone == 82) then
if (player:getCurrentMission(WOTG) == A_TIMESWEPT_BUTTERFLY) then
cs = 0x0001;
end
end
return cs;
end;
-----------------------------------
-- onRegionEnter
-----------------------------------
function onRegionEnter(player,region)
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x0001) then
player:completeMission(WOTG, A_TIMESWEPT_BUTTERFLY);
player:addMission(WOTG, PURPLE,_THE_NEW_BLACK);
end
end; | gpl-3.0 |
AlexandreCA/update | scripts/zones/Beadeaux/npcs/_43b.lua | 17 | 1739 | -----------------------------------
-- Area: Beadeaux
-- NPC: Jail Door
-- Involved in Quests: The Rescue
-- @pos 56 0.1 -23 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/zones/Beadeaux/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (player:getQuestStatus(OTHER_AREAS,THE_RESCUE) == QUEST_ACCEPTED and player:hasKeyItem(TRADERS_SACK) == false) then
if (trade:hasItemQty(495,1) == true and trade:getItemCount() == 1) then
player:startEvent(0x03e8);
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getQuestStatus(OTHER_AREAS,THE_RESCUE) == QUEST_ACCEPTED and player:hasKeyItem(TRADERS_SACK) == false) then
player:messageSpecial(LOCKED_DOOR_QUADAV_HAS_KEY);
else
player:messageSpecial(NOTHING_OUT_OF_ORDINARY);
end
return 1;
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x03e8) then
player:addKeyItem(TRADERS_SACK);
player:messageSpecial(KEYITEM_OBTAINED,TRADERS_SACK);
end
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua | 13 | 3618 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Yahsra
-- Type: Assault Mission Giver
-- @pos 120.967 0.161 -44.002 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/globals/besieged");
require("scripts/globals/missions");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
local rank = getMercenaryRank(player);
local haveimperialIDtag;
local assaultPoints = player:getAssaultPoint(LEUJAOAM_ASSAULT_POINT);
if (player:hasKeyItem(IMPERIAL_ARMY_ID_TAG)) then
haveimperialIDtag = 1;
else
haveimperialIDtag = 0;
end
--[[if (rank > 0) then
player:startEvent(273,rank,haveimperialIDtag,assaultPoints,player:getCurrentAssault());
else]]
player:startEvent(279); -- no rank
--end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 273) then
local selectiontype = bit.band(option, 0xF);
if (selectiontype == 1) then
-- taken assault mission
player:addAssault(bit.rshift(option,4));
player:delKeyItem(IMPERIAL_ARMY_ID_TAG);
player:addKeyItem(LEUJAOAM_ASSAULT_ORDERS);
player:messageSpecial(KEYITEM_OBTAINED,LEUJAOAM_ASSAULT_ORDERS);
elseif (selectiontype == 2) then
-- purchased an item
local item = bit.rshift(option,14);
local itemID = 0;
local price = 0;
-- Copy/pasted from Famad, TODO: fill in the actual IDs/prices for Yahsra
--[[if (item == 1) then
itemID = 15972;
price = 3000;
elseif (item == 2) then
itemID = 15777;
price = 5000;
elseif (item == 3) then
itemID = 15523;
price = 8000;
elseif (item == 4) then
itemID = 15886;
price = 10000;
elseif (item == 5) then
itemID = 15492;
price = 10000;
elseif (item == 6) then
itemID = 18583;
price = 10000;
elseif (item == 7) then
itemID = 18388;
price = 15000;
elseif (item == 8) then
itemID = 18417;
price = 15000;
elseif (item == 9) then
itemID = 14940;
price = 15000;
elseif (item == 10) then
itemID = 15690;
price = 20000;
elseif (item == 11) then
itemID = 14525;
price = 20000;
else
return;
end
player:addItem(itemID);
player:messageSpecial(ITEM_OBTAINED,itemID);
player:delAssaultPoint(LEBROS_ASSAULT_POINT,price);]]
end
end
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Vunkerl_Inlet_[S]/npcs/Leafy_Patch.lua | 45 | 1646 | -----------------------------------
-- Area: Vunkerl Inlet (S) (F-5)
-- NPC: Leafy Patch
-- Involved in Quests
-- @pos -418 -33 576
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Vunkerl_Inlet_[S]/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getQuestStatus(CRYSTAL_WAR, BOY_AND_THE_BEAST) == QUEST_ACCEPTED and player:getVar("BoyAndTheBeast") == 2) then
if (VanadielHour() < 8) then
player:startEvent(0x006B);
elseif (VanadielHour() < 16) then
player:startEvent(0x006B,1);
else
player:startEvent(0x006B,2);
end
end
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x006B) then
if (option == 1) then
player:addKeyItem(VUNKERL_HERB);
player:messageSpecial(KEYITEM_OBTAINED, VUNKERL_HERB);
player:setVar("BoyAndTheBeast",3);
else
player:addKeyItem(VUNKERL_HERB);
player:messageSpecial(KEYITEM_OBTAINED, VUNKERL_HERB);
player:setVar("BoyAndTheBeast",4);
end
end
end;
| gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/quick_etude.lua | 18 | 1762 | -----------------------------------------
-- Spell: Quick Etude
-- Static AGI Boost, BRD 28
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,spell)
local sLvl = caster:getSkillLevel(SKILL_SNG); -- Gets skill level of Singing
local iLvl = caster:getWeaponSkillLevel(SLOT_RANGED);
local power = 0;
if (sLvl+iLvl <= 181) then
power = 3;
elseif ((sLvl+iLvl >= 182) and (sLvl+iLvl <= 235)) then
power = 4;
elseif ((sLvl+iLvl >= 236) and (sLvl+iLvl <= 288)) then
power = 5;
elseif ((sLvl+iLvl >= 289) and (sLvl+iLvl <= 342)) then
power = 6;
elseif ((sLvl+iLvl >= 343) and (sLvl+iLvl <= 396)) then
power = 7;
elseif ((sLvl+iLvl >= 397) and (sLvl+iLvl <= 449)) then
power = 8;
elseif (sLvl+iLvl >= 450) then
power = 9;
end
local iBoost = caster:getMod(MOD_ETUDE_EFFECT) + caster:getMod(MOD_ALL_SONGS_EFFECT);
power = power + iBoost;
if (caster:hasStatusEffect(EFFECT_SOUL_VOICE)) then
power = power * 2;
elseif (caster:hasStatusEffect(EFFECT_MARCATO)) then
power = power * 1.5;
end
caster:delStatusEffect(EFFECT_MARCATO);
local duration = 120;
duration = duration * ((iBoost * 0.1) + (caster:getMod(MOD_SONG_DURATION_BONUS)/100) + 1);
if (caster:hasStatusEffect(EFFECT_TROUBADOUR)) then
duration = duration * 2;
end
if not (target:addBardSong(caster,EFFECT_ETUDE,power,0,duration,caster:getID(), MOD_AGI, 1)) then
spell:setMsg(75);
end
return EFFECT_ETUDE;
end; | gpl-3.0 |
anubis34/luaGLEW | luajitglew_test/luaglew.lua | 2 | 146088 | local ffi = require( "ffi" )
ffi.cdef[[
enum {
GLX_AMD_gpu_association = 0x1,
GLX_GPU_RENDERER_STRING_AMD = 0x1F01,
GLX_GPU_OPENGL_VERSION_STRING_AMD = 0x1F02,
GLX_GPU_FASTEST_TARGET_GPUS_AMD = 0x21A2,
GLX_GPU_RAM_AMD = 0x21A3,
GLX_GPU_CLOCK_AMD = 0x21A4,
GLX_GPU_NUM_PIPES_AMD = 0x21A5,
GLX_GPU_NUM_SIMD_AMD = 0x21A6,
GLX_GPU_NUM_RB_AMD = 0x21A7,
GLX_GPU_NUM_SPI_AMD = 0x21A8,
GLX_ARB_get_proc_address = 0x1,
GLX_ATI_pixel_format_float = 0x1,
GLX_ATI_render_texture = 0x1,
GLX_BIND_TO_TEXTURE_RGBA_ATI = 0x9801,
GLX_TEXTURE_FORMAT_ATI = 0x9802,
GLX_TEXTURE_TARGET_ATI = 0x9803,
GLX_MIPMAP_TEXTURE_ATI = 0x9804,
GLX_TEXTURE_RGB_ATI = 0x9805,
GLX_TEXTURE_RGBA_ATI = 0x9806,
GLX_NO_TEXTURE_ATI = 0x9807,
GLX_TEXTURE_CUBE_MAP_ATI = 0x9808,
GLX_TEXTURE_1D_ATI = 0x9809,
GLX_TEXTURE_2D_ATI = 0x980A,
GLX_MIPMAP_LEVEL_ATI = 0x980B,
GLX_CUBE_MAP_FACE_ATI = 0x980C,
GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI = 0x980D,
GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI = 0x980E,
GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI = 0x980F,
GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI = 0x9810,
GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI = 0x9811,
GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI = 0x9812,
GLX_FRONT_LEFT_ATI = 0x9813,
GLX_FRONT_RIGHT_ATI = 0x9814,
GLX_BACK_LEFT_ATI = 0x9815,
GLX_BACK_RIGHT_ATI = 0x9816,
GLX_AUX0_ATI = 0x9817,
GLX_AUX1_ATI = 0x9818,
GLX_AUX2_ATI = 0x9819,
GLX_AUX3_ATI = 0x981A,
GLX_AUX4_ATI = 0x981B,
GLX_AUX5_ATI = 0x981C,
GLX_AUX6_ATI = 0x981D,
GLX_AUX7_ATI = 0x981E,
GLX_AUX8_ATI = 0x981F,
GLX_AUX9_ATI = 0x9820,
GLX_BIND_TO_TEXTURE_LUMINANCE_ATI = 0x9821,
GLX_BIND_TO_TEXTURE_INTENSITY_ATI = 0x9822,
GLX_EXT_fbconfig_packed_float = 0x1,
GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x00000008,
GLX_EXT_framebuffer_sRGB = 0x1,
GLX_NV_float_buffer = 0x1,
GLX_NV_vertex_array_range = 0x1,
GLX_SGIS_shared_multisample = 0x1,
GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS = 0x8027,
GLX_SGIX_hyperpipe = 0x1,
GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX = 0x1,
GLX_HYPERPIPE_DISPLAY_PIPE_SGIX = 0x00000001,
GLX_HYPERPIPE_RENDER_PIPE_SGIX = 0x00000002,
GLX_PIPE_RECT_SGIX = 0x00000001,
GLX_PIPE_RECT_LIMITS_SGIX = 0x00000002,
GLX_HYPERPIPE_STEREO_SGIX = 0x00000003,
GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX = 0x00000004,
GLX_BAD_HYPERPIPE_CONFIG_SGIX = 0x1,
GLX_BAD_HYPERPIPE_SGIX = 0x1,
GLX_SGIX_swap_barrier = 0x1,
GLX_SGIX_swap_group = 0x1,
GLX_SGI_video_sync = 0x1,
GLX_SUN_video_resize = 0x1,
GLX_VIDEO_RESIZE_SUN = 0x8171,
GLX_VERSION_1_2 = 0x1,
GLX_VERSION_1_3 = 0x1,
GLX_PIXMAP_BIT = 0x00000002,
GLX_PBUFFER_BIT = 0x00000004,
GLX_RGBA_BIT = 0x00000001,
GLX_COLOR_INDEX_BIT = 0x00000002,
GLX_PBUFFER_CLOBBER_MASK = 0x08000000,
GLX_FRONT_LEFT_BUFFER_BIT = 0x00000001,
GLX_FRONT_RIGHT_BUFFER_BIT = 0x00000002,
GLX_BACK_LEFT_BUFFER_BIT = 0x00000004,
GLX_BACK_RIGHT_BUFFER_BIT = 0x00000008,
GLX_AUX_BUFFERS_BIT = 0x00000010,
GLX_DEPTH_BUFFER_BIT = 0x00000020,
GLX_STENCIL_BUFFER_BIT = 0x00000040,
GLX_ACCUM_BUFFER_BIT = 0x00000080,
GLX_CONFIG_CAVEAT = 0x20,
GLX_X_VISUAL_TYPE = 0x22,
GLX_TRANSPARENT_TYPE = 0x23,
GLX_TRANSPARENT_INDEX_VALUE = 0x24,
GLX_TRANSPARENT_RED_VALUE = 0x25,
GLX_TRANSPARENT_GREEN_VALUE = 0x26,
GLX_TRANSPARENT_BLUE_VALUE = 0x27,
GLX_TRANSPARENT_ALPHA_VALUE = 0x28,
GLX_DONT_CARE = 0xFFFFFFFF,
GLX_NONE = 0x8000,
GLX_SLOW_CONFIG = 0x8001,
GLX_TRUE_COLOR = 0x8002,
GLX_DIRECT_COLOR = 0x8003,
GLX_PSEUDO_COLOR = 0x8004,
GLX_STATIC_COLOR = 0x8005,
GLX_GRAY_SCALE = 0x8006,
GLX_STATIC_GRAY = 0x8007,
GLX_TRANSPARENT_RGB = 0x8008,
GLX_TRANSPARENT_INDEX = 0x8009,
GLX_VISUAL_ID = 0x800B,
GLX_SCREEN = 0x800C,
GLX_NON_CONFORMANT_CONFIG = 0x800D,
GLX_DRAWABLE_TYPE = 0x8010,
GLX_RENDER_TYPE = 0x8011,
GLX_X_RENDERABLE = 0x8012,
GLX_FBCONFIG_ID = 0x8013,
GLX_RGBA_TYPE = 0x8014,
GLX_COLOR_INDEX_TYPE = 0x8015,
GLX_MAX_PBUFFER_WIDTH = 0x8016,
GLX_MAX_PBUFFER_HEIGHT = 0x8017,
GLX_MAX_PBUFFER_PIXELS = 0x8018,
GLX_PRESERVED_CONTENTS = 0x801B,
GLX_LARGEST_PBUFFER = 0x801C,
GLX_WIDTH = 0x801D,
GLX_HEIGHT = 0x801E,
GLX_EVENT_MASK = 0x801F,
GLX_DAMAGED = 0x8020,
GLX_SAVED = 0x8021,
GLX_WINDOW = 0x8022,
GLX_PBUFFER = 0x8023,
GLX_PBUFFER_HEIGHT = 0x8040,
GLX_PBUFFER_WIDTH = 0x8041,
GLX_VERSION_1_4 = 0x1,
GLX_SAMPLES = 0x1,
GL_APPLE_float_pixels = 0x1,
GL_COLOR_FLOAT_APPLE = 0x8A0F,
GL_RGBA_FLOAT32_APPLE = 0x8814,
GL_RGB_FLOAT32_APPLE = 0x8815,
GL_ALPHA_FLOAT32_APPLE = 0x8816,
GL_INTENSITY_FLOAT32_APPLE = 0x8817,
GL_LUMINANCE_FLOAT32_APPLE = 0x8818,
GL_LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819,
GL_RGBA_FLOAT16_APPLE = 0x881A,
GL_RGB_FLOAT16_APPLE = 0x881B,
GL_ALPHA_FLOAT16_APPLE = 0x881C,
GL_INTENSITY_FLOAT16_APPLE = 0x881D,
GL_LUMINANCE_FLOAT16_APPLE = 0x881E,
GL_LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F,
GL_APPLE_pixel_buffer = 0x1,
GL_APPLE_texture_range = 0x1,
GL_STORAGE_PRIVATE_APPLE = 0x85BD,
GL_STORAGE_CACHED_APPLE = 0x85BE,
GL_STORAGE_SHARED_APPLE = 0x85BF,
GL_TEXTURE_RANGE_LENGTH_APPLE = 0x85B7,
GL_TEXTURE_RANGE_POINTER_APPLE = 0x85B8,
GL_ARB_imaging = 0x1,
GL_IGNORE_BORDER = 0x8150,
GL_WRAP_BORDER = 0x8152,
GL_ARB_matrix_palette = 0x1,
GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841,
GL_MAX_PALETTE_MATRICES_ARB = 0x8842,
GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843,
GL_MATRIX_INDEX_ARRAY_ARB = 0x8844,
GL_CURRENT_MATRIX_INDEX_ARB = 0x8845,
GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846,
GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847,
GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848,
GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849,
GL_ARB_multitexture = 0x1,
GL_TEXTURE1_ARB = 0x84C1,
GL_TEXTURE2_ARB = 0x84C2,
GL_TEXTURE3_ARB = 0x84C3,
GL_TEXTURE4_ARB = 0x84C4,
GL_TEXTURE5_ARB = 0x84C5,
GL_TEXTURE6_ARB = 0x84C6,
GL_TEXTURE7_ARB = 0x84C7,
GL_TEXTURE8_ARB = 0x84C8,
GL_TEXTURE9_ARB = 0x84C9,
GL_TEXTURE10_ARB = 0x84CA,
GL_TEXTURE11_ARB = 0x84CB,
GL_TEXTURE12_ARB = 0x84CC,
GL_TEXTURE13_ARB = 0x84CD,
GL_TEXTURE14_ARB = 0x84CE,
GL_TEXTURE15_ARB = 0x84CF,
GL_TEXTURE16_ARB = 0x84D0,
GL_TEXTURE17_ARB = 0x84D1,
GL_TEXTURE18_ARB = 0x84D2,
GL_TEXTURE19_ARB = 0x84D3,
GL_TEXTURE20_ARB = 0x84D4,
GL_TEXTURE21_ARB = 0x84D5,
GL_TEXTURE22_ARB = 0x84D6,
GL_TEXTURE23_ARB = 0x84D7,
GL_TEXTURE24_ARB = 0x84D8,
GL_TEXTURE25_ARB = 0x84D9,
GL_TEXTURE26_ARB = 0x84DA,
GL_TEXTURE27_ARB = 0x84DB,
GL_TEXTURE28_ARB = 0x84DC,
GL_TEXTURE29_ARB = 0x84DD,
GL_TEXTURE30_ARB = 0x84DE,
GL_TEXTURE31_ARB = 0x84DF,
GL_ACTIVE_TEXTURE_ARB = 0x84E0,
GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1,
GL_MAX_TEXTURE_UNITS_ARB = 0x84E2,
GL_ARB_point_parameters = 0x1,
GL_POINT_SIZE_MAX_ARB = 0x8127,
GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128,
GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129,
GL_ARB_robustness = 0x1,
GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252,
GL_GUILTY_CONTEXT_RESET_ARB = 0x8253,
GL_INNOCENT_CONTEXT_RESET_ARB = 0x8254,
GL_UNKNOWN_CONTEXT_RESET_ARB = 0x8255,
GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256,
GL_NO_RESET_NOTIFICATION_ARB = 0x8261,
GL_ARB_separate_shader_objects = 0x1,
GL_FRAGMENT_SHADER_BIT = 0x00000002,
GL_GEOMETRY_SHADER_BIT = 0x00000004,
GL_TESS_CONTROL_SHADER_BIT = 0x00000008,
GL_TESS_EVALUATION_SHADER_BIT = 0x00000010,
GL_PROGRAM_SEPARABLE = 0x8258,
GL_ACTIVE_PROGRAM = 0x8259,
GL_PROGRAM_PIPELINE_BINDING = 0x825A,
GL_ALL_SHADER_BITS = 0xFFFFFFFF,
GL_ARB_vertex_attrib_64bit = 0x1,
GL_DOUBLE_MAT3 = 0x8F47,
GL_DOUBLE_MAT4 = 0x8F48,
GL_DOUBLE_VEC2 = 0x8FFC,
GL_DOUBLE_VEC3 = 0x8FFD,
GL_DOUBLE_VEC4 = 0x8FFE,
GL_ARB_vertex_blend = 0x1,
GL_ACTIVE_VERTEX_UNITS_ARB = 0x86A5,
GL_WEIGHT_SUM_UNITY_ARB = 0x86A6,
GL_VERTEX_BLEND_ARB = 0x86A7,
GL_CURRENT_WEIGHT_ARB = 0x86A8,
GL_WEIGHT_ARRAY_TYPE_ARB = 0x86A9,
GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86AA,
GL_WEIGHT_ARRAY_SIZE_ARB = 0x86AB,
GL_WEIGHT_ARRAY_POINTER_ARB = 0x86AC,
GL_WEIGHT_ARRAY_ARB = 0x86AD,
GL_MODELVIEW0_ARB = 0x1700,
GL_MODELVIEW1_ARB = 0x850A,
GL_MODELVIEW2_ARB = 0x8722,
GL_MODELVIEW3_ARB = 0x8723,
GL_MODELVIEW4_ARB = 0x8724,
GL_MODELVIEW5_ARB = 0x8725,
GL_MODELVIEW6_ARB = 0x8726,
GL_MODELVIEW7_ARB = 0x8727,
GL_MODELVIEW8_ARB = 0x8728,
GL_MODELVIEW9_ARB = 0x8729,
GL_MODELVIEW10_ARB = 0x872A,
GL_MODELVIEW11_ARB = 0x872B,
GL_MODELVIEW12_ARB = 0x872C,
GL_MODELVIEW13_ARB = 0x872D,
GL_MODELVIEW14_ARB = 0x872E,
GL_MODELVIEW15_ARB = 0x872F,
GL_MODELVIEW16_ARB = 0x8730,
GL_MODELVIEW17_ARB = 0x8731,
GL_MODELVIEW18_ARB = 0x8732,
GL_MODELVIEW19_ARB = 0x8733,
GL_MODELVIEW20_ARB = 0x8734,
GL_MODELVIEW21_ARB = 0x8735,
GL_MODELVIEW22_ARB = 0x8736,
GL_MODELVIEW23_ARB = 0x8737,
GL_MODELVIEW24_ARB = 0x8738,
GL_MODELVIEW25_ARB = 0x8739,
GL_MODELVIEW26_ARB = 0x873A,
GL_MODELVIEW27_ARB = 0x873B,
GL_MODELVIEW28_ARB = 0x873C,
GL_MODELVIEW29_ARB = 0x873D,
GL_MODELVIEW30_ARB = 0x873E,
GL_MODELVIEW31_ARB = 0x873F,
GL_ATIX_point_sprites = 0x1,
GL_TEXTURE_POINT_ONE_COORD_ATIX = 0x60B1,
GL_TEXTURE_POINT_SPRITE_ATIX = 0x60B2,
GL_POINT_SPRITE_CULL_MODE_ATIX = 0x60B3,
GL_POINT_SPRITE_CULL_CENTER_ATIX = 0x60B4,
GL_POINT_SPRITE_CULL_CLIP_ATIX = 0x60B5,
GL_ATIX_texture_env_combine3 = 0x1,
GL_MODULATE_SIGNED_ADD_ATIX = 0x8745,
GL_MODULATE_SUBTRACT_ATIX = 0x8746,
GL_ATIX_texture_env_route = 0x1,
GL_TEXTURE_OUTPUT_RGB_ATIX = 0x8748,
GL_TEXTURE_OUTPUT_ALPHA_ATIX = 0x8749,
GL_ATIX_vertex_shader_output_point_size = 0x1,
GL_ATI_envmap_bumpmap = 0x1,
GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776,
GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777,
GL_BUMP_TEX_UNITS_ATI = 0x8778,
GL_DUDV_ATI = 0x8779,
GL_DU8DV8_ATI = 0x877A,
GL_BUMP_ENVMAP_ATI = 0x877B,
GL_BUMP_TARGET_ATI = 0x877C,
GL_ATI_map_object_buffer = 0x1,
GL_ATI_pn_triangles = 0x1,
GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1,
GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87F2,
GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3,
GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4,
GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5,
GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6,
GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7,
GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8,
GL_ATI_separate_stencil = 0x1,
GL_STENCIL_BACK_FAIL_ATI = 0x8801,
GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802,
GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803,
GL_ATI_shader_texture_lod = 0x1,
GL_ATI_texture_compression_3dc = 0x1,
GL_ATI_vertex_streams = 0x1,
GL_VERTEX_SOURCE_ATI = 0x876C,
GL_VERTEX_STREAM0_ATI = 0x876D,
GL_VERTEX_STREAM1_ATI = 0x876E,
GL_VERTEX_STREAM2_ATI = 0x876F,
GL_VERTEX_STREAM3_ATI = 0x8770,
GL_VERTEX_STREAM4_ATI = 0x8771,
GL_VERTEX_STREAM5_ATI = 0x8772,
GL_VERTEX_STREAM6_ATI = 0x8773,
GL_VERTEX_STREAM7_ATI = 0x8774,
GL_EXT_bindable_uniform = 0x1,
GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3,
GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4,
GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED,
GL_UNIFORM_BUFFER_BINDING_EXT = 0x8DEF,
GL_UNIFORM_BUFFER_EXT = 0x8DEE,
GL_EXT_Cg_shader = 0x1,
GL_CG_FRAGMENT_SHADER_EXT = 0x890F,
GL_EXT_depth_bounds_test = 0x1,
GL_DEPTH_BOUNDS_EXT = 0x8891,
GL_EXT_draw_instanced = 0x1,
GL_EXT_draw_range_elements = 0x1,
GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9,
GL_EXT_fog_coord = 0x1,
GL_FOG_COORDINATE_EXT = 0x8451,
GL_FRAGMENT_DEPTH_EXT = 0x8452,
GL_CURRENT_FOG_COORDINATE_EXT = 0x8453,
GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454,
GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455,
GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456,
GL_FOG_COORDINATE_ARRAY_EXT = 0x8457,
GL_EXT_framebuffer_sRGB = 0x1,
GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA,
GL_EXT_geometry_shader4 = 0x1,
GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD,
GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE,
GL_MAX_VARYING_COMPONENTS_EXT = 0x8B4B,
GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF,
GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0,
GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1,
GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA,
GL_GEOMETRY_INPUT_TYPE_EXT = 0x8DDB,
GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC,
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29,
GL_LINES_ADJACENCY_EXT = 0xA,
GL_LINE_STRIP_ADJACENCY_EXT = 0xB,
GL_TRIANGLES_ADJACENCY_EXT = 0xC,
GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0xD,
GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7,
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8,
GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9,
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4,
GL_PROGRAM_POINT_SIZE_EXT = 0x8642,
GL_EXT_gpu_program_parameters = 0x1,
GL_EXT_gpu_shader4 = 0x1,
GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1,
GL_SAMPLER_BUFFER_EXT = 0x8DC2,
GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3,
GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4,
GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5,
GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6,
GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7,
GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8,
GL_INT_SAMPLER_1D_EXT = 0x8DC9,
GL_INT_SAMPLER_2D_EXT = 0x8DCA,
GL_INT_SAMPLER_3D_EXT = 0x8DCB,
GL_INT_SAMPLER_CUBE_EXT = 0x8DCC,
GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD,
GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE,
GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF,
GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0,
GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1,
GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2,
GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3,
GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4,
GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5,
GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6,
GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7,
GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8,
GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD,
GL_EXT_packed_float = 0x1,
GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B,
GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C,
GL_EXT_pixel_buffer_object = 0x1,
GL_PIXEL_UNPACK_BUFFER_EXT = 0x88EC,
GL_PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED,
GL_PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF,
GL_EXT_point_parameters = 0x1,
GL_POINT_SIZE_MAX_EXT = 0x8127,
GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128,
GL_DISTANCE_ATTENUATION_EXT = 0x8129,
GL_EXT_secondary_color = 0x1,
GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459,
GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A,
GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B,
GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C,
GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D,
GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E,
GL_EXT_texture_array = 0x1,
GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19,
GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A,
GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B,
GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C,
GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D,
GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF,
GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E,
GL_EXT_texture_buffer_object = 0x1,
GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B,
GL_TEXTURE_BINDING_BUFFER_EXT = 0x8C2C,
GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D,
GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E,
GL_EXT_texture_compression_latc = 0x1,
GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71,
GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72,
GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73,
GL_EXT_texture_compression_rgtc = 0x1,
GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC,
GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD,
GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE,
GL_EXT_texture_cube_map = 0x1,
GL_REFLECTION_MAP_EXT = 0x8512,
GL_TEXTURE_CUBE_MAP_EXT = 0x8513,
GL_TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514,
GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515,
GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516,
GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518,
GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A,
GL_PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B,
GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C,
GL_EXT_texture_edge_clamp = 0x1,
GL_EXT_texture_integer = 0x1,
GL_RGB32UI_EXT = 0x8D71,
GL_ALPHA32UI_EXT = 0x8D72,
GL_INTENSITY32UI_EXT = 0x8D73,
GL_LUMINANCE32UI_EXT = 0x8D74,
GL_LUMINANCE_ALPHA32UI_EXT = 0x8D75,
GL_RGBA16UI_EXT = 0x8D76,
GL_RGB16UI_EXT = 0x8D77,
GL_ALPHA16UI_EXT = 0x8D78,
GL_INTENSITY16UI_EXT = 0x8D79,
GL_LUMINANCE16UI_EXT = 0x8D7A,
GL_LUMINANCE_ALPHA16UI_EXT = 0x8D7B,
GL_RGBA8UI_EXT = 0x8D7C,
GL_RGB8UI_EXT = 0x8D7D,
GL_ALPHA8UI_EXT = 0x8D7E,
GL_INTENSITY8UI_EXT = 0x8D7F,
GL_LUMINANCE8UI_EXT = 0x8D80,
GL_LUMINANCE_ALPHA8UI_EXT = 0x8D81,
GL_RGBA32I_EXT = 0x8D82,
GL_RGB32I_EXT = 0x8D83,
GL_ALPHA32I_EXT = 0x8D84,
GL_INTENSITY32I_EXT = 0x8D85,
GL_LUMINANCE32I_EXT = 0x8D86,
GL_LUMINANCE_ALPHA32I_EXT = 0x8D87,
GL_RGBA16I_EXT = 0x8D88,
GL_RGB16I_EXT = 0x8D89,
GL_ALPHA16I_EXT = 0x8D8A,
GL_INTENSITY16I_EXT = 0x8D8B,
GL_LUMINANCE16I_EXT = 0x8D8C,
GL_LUMINANCE_ALPHA16I_EXT = 0x8D8D,
GL_RGBA8I_EXT = 0x8D8E,
GL_RGB8I_EXT = 0x8D8F,
GL_ALPHA8I_EXT = 0x8D90,
GL_INTENSITY8I_EXT = 0x8D91,
GL_LUMINANCE8I_EXT = 0x8D92,
GL_LUMINANCE_ALPHA8I_EXT = 0x8D93,
GL_RED_INTEGER_EXT = 0x8D94,
GL_GREEN_INTEGER_EXT = 0x8D95,
GL_BLUE_INTEGER_EXT = 0x8D96,
GL_ALPHA_INTEGER_EXT = 0x8D97,
GL_RGB_INTEGER_EXT = 0x8D98,
GL_RGBA_INTEGER_EXT = 0x8D99,
GL_BGR_INTEGER_EXT = 0x8D9A,
GL_BGRA_INTEGER_EXT = 0x8D9B,
GL_LUMINANCE_INTEGER_EXT = 0x8D9C,
GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D,
GL_RGBA_INTEGER_MODE_EXT = 0x8D9E,
GL_EXT_texture_rectangle = 0x1,
GL_TEXTURE_BINDING_RECTANGLE_EXT = 0x84F6,
GL_PROXY_TEXTURE_RECTANGLE_EXT = 0x84F7,
GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT = 0x84F8,
GL_EXT_texture_shared_exponent = 0x1,
GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E,
GL_TEXTURE_SHARED_SIZE_EXT = 0x8C3F,
GL_EXT_timer_query = 0x1,
GL_EXT_vertex_shader = 0x1,
GL_VERTEX_SHADER_BINDING_EXT = 0x8781,
GL_OP_INDEX_EXT = 0x8782,
GL_OP_NEGATE_EXT = 0x8783,
GL_OP_DOT3_EXT = 0x8784,
GL_OP_DOT4_EXT = 0x8785,
GL_OP_MUL_EXT = 0x8786,
GL_OP_ADD_EXT = 0x8787,
GL_OP_MADD_EXT = 0x8788,
GL_OP_FRAC_EXT = 0x8789,
GL_OP_MAX_EXT = 0x878A,
GL_OP_MIN_EXT = 0x878B,
GL_OP_SET_GE_EXT = 0x878C,
GL_OP_SET_LT_EXT = 0x878D,
GL_OP_CLAMP_EXT = 0x878E,
GL_OP_FLOOR_EXT = 0x878F,
GL_OP_ROUND_EXT = 0x8790,
GL_OP_EXP_BASE_2_EXT = 0x8791,
GL_OP_LOG_BASE_2_EXT = 0x8792,
GL_OP_POWER_EXT = 0x8793,
GL_OP_RECIP_EXT = 0x8794,
GL_OP_RECIP_SQRT_EXT = 0x8795,
GL_OP_SUB_EXT = 0x8796,
GL_OP_CROSS_PRODUCT_EXT = 0x8797,
GL_OP_MULTIPLY_MATRIX_EXT = 0x8798,
GL_OP_MOV_EXT = 0x8799,
GL_OUTPUT_VERTEX_EXT = 0x879A,
GL_OUTPUT_COLOR0_EXT = 0x879B,
GL_OUTPUT_COLOR1_EXT = 0x879C,
GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879D,
GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879E,
GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879F,
GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87A0,
GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87A1,
GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87A2,
GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87A3,
GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87A4,
GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87A5,
GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87A6,
GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87A7,
GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87A8,
GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87A9,
GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87AA,
GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87AB,
GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87AC,
GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87AD,
GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87AE,
GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87AF,
GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87B0,
GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87B1,
GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87B2,
GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87B3,
GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87B4,
GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87B5,
GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87B6,
GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87B7,
GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87B8,
GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87B9,
GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87BA,
GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87BB,
GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87BC,
GL_OUTPUT_FOG_EXT = 0x87BD,
GL_SCALAR_EXT = 0x87BE,
GL_VECTOR_EXT = 0x87BF,
GL_MATRIX_EXT = 0x87C0,
GL_VARIANT_EXT = 0x87C1,
GL_INVARIANT_EXT = 0x87C2,
GL_LOCAL_CONSTANT_EXT = 0x87C3,
GL_LOCAL_EXT = 0x87C4,
GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5,
GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6,
GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7,
GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8,
GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9,
GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA,
GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB,
GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CC,
GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CD,
GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE,
GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF,
GL_VERTEX_SHADER_VARIANTS_EXT = 0x87D0,
GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87D1,
GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2,
GL_VERTEX_SHADER_LOCALS_EXT = 0x87D3,
GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4,
GL_X_EXT = 0x87D5,
GL_Y_EXT = 0x87D6,
GL_Z_EXT = 0x87D7,
GL_W_EXT = 0x87D8,
GL_NEGATIVE_X_EXT = 0x87D9,
GL_NEGATIVE_Y_EXT = 0x87DA,
GL_NEGATIVE_Z_EXT = 0x87DB,
GL_NEGATIVE_W_EXT = 0x87DC,
GL_ZERO_EXT = 0x87DD,
GL_ONE_EXT = 0x87DE,
GL_NEGATIVE_ONE_EXT = 0x87DF,
GL_NORMALIZED_RANGE_EXT = 0x87E0,
GL_FULL_RANGE_EXT = 0x87E1,
GL_CURRENT_VERTEX_EXT = 0x87E2,
GL_MVP_MATRIX_EXT = 0x87E3,
GL_VARIANT_VALUE_EXT = 0x87E4,
GL_VARIANT_DATATYPE_EXT = 0x87E5,
GL_VARIANT_ARRAY_STRIDE_EXT = 0x87E6,
GL_VARIANT_ARRAY_TYPE_EXT = 0x87E7,
GL_VARIANT_ARRAY_EXT = 0x87E8,
GL_VARIANT_ARRAY_POINTER_EXT = 0x87E9,
GL_INVARIANT_VALUE_EXT = 0x87EA,
GL_INVARIANT_DATATYPE_EXT = 0x87EB,
GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC,
GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED,
GL_KTX_buffer_region = 0x1,
GL_KTX_BACK_REGION = 0x1,
GL_KTX_Z_REGION = 0x2,
GL_KTX_STENCIL_REGION = 0x3,
GL_NV_depth_buffer_float = 0x1,
GL_DEPTH32F_STENCIL8_NV = 0x8DAC,
GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD,
GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF,
GL_NV_depth_range_unclamped = 0x1,
GL_CURRENT_SAMPLE_COUNT_QUERY_NV = 0x8865,
GL_QUERY_RESULT_NV = 0x8866,
GL_QUERY_RESULT_AVAILABLE_NV = 0x8867,
GL_SAMPLE_COUNT_NV = 0x8914,
GL_NV_fragment_program2 = 0x1,
GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88F6,
GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7,
GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8,
GL_NV_fragment_program4 = 0x1,
GL_NV_fragment_program_option = 0x1,
GL_NV_framebuffer_multisample_coverage = 0x1,
GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10,
GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11,
GL_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12,
GL_NV_geometry_program4 = 0x1,
GL_GEOMETRY_PROGRAM_NV = 0x8C26,
GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27,
GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28,
GL_NV_geometry_shader4 = 0x1,
GL_NV_gpu_program4 = 0x1,
GL_MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905,
GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906,
GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907,
GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908,
GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909,
GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5,
GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6,
GL_NV_gpu_program5 = 0x1,
GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B,
GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C,
GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D,
GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E,
GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F,
GL_NV_parameter_buffer_object = 0x1,
GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3,
GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4,
GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0,
GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1,
GL_NV_present_video = 0x1,
GL_FIELDS_NV = 0x8E27,
GL_CURRENT_TIME_NV = 0x8E28,
GL_NUM_FILL_STREAMS_NV = 0x8E29,
GL_PRESENT_TIME_NV = 0x8E2A,
GL_PRESENT_DURATION_NV = 0x8E2B,
GL_NV_tessellation_program5 = 0x1,
GL_MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8,
GL_TESS_CONTROL_PROGRAM_NV = 0x891E,
GL_TESS_EVALUATION_PROGRAM_NV = 0x891F,
GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74,
GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75,
GL_NV_transform_feedback = 0x1,
GL_BACK_SECONDARY_COLOR_NV = 0x8C78,
GL_TEXTURE_COORD_NV = 0x8C79,
GL_CLIP_DISTANCE_NV = 0x8C7A,
GL_VERTEX_ID_NV = 0x8C7B,
GL_PRIMITIVE_ID_NV = 0x8C7C,
GL_GENERIC_ATTRIB_NV = 0x8C7D,
GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E,
GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F,
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80,
GL_ACTIVE_VARYINGS_NV = 0x8C81,
GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82,
GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83,
GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84,
GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85,
GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86,
GL_PRIMITIVES_GENERATED_NV = 0x8C87,
GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88,
GL_RASTERIZER_DISCARD_NV = 0x8C89,
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A,
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B,
GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C,
GL_SEPARATE_ATTRIBS_NV = 0x8C8D,
GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E,
GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F,
GL_NV_vdpau_interop = 0x1,
GL_SURFACE_REGISTERED_NV = 0x86FD,
GL_SURFACE_MAPPED_NV = 0x8700,
GL_WRITE_DISCARD_NV = 0x88BE,
GL_NV_vertex_program2_option = 0x1,
GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5,
GL_NV_vertex_program3 = 0x1,
GL_NV_vertex_program4 = 0x1,
GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD,
GL_SGIX_shadow = 0x1,
GL_TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B,
GL_TEXTURE_LEQUAL_R_SGIX = 0x819C,
GL_TEXTURE_GEQUAL_R_SGIX = 0x819D,
GL_SUN_read_video_pixels = 0x1,
GL_VERSION_1_2 = 0x1,
GL_VERSION_1_3 = 0x1,
GL_VERSION_1_4 = 0x1,
GL_VERSION_1_5 = 0x1,
GL_VERSION_2_0 = 0x1,
GL_VERSION_2_1 = 0x1,
GL_VERSION_3_0 = 0x1,
GL_COMPARE_R_TO_TEXTURE_ARB = 0x1,
GL_MINOR_VERSION = 0x821C,
GL_NUM_EXTENSIONS = 0x821D,
GL_CONTEXT_FLAGS = 0x821E,
GL_DEPTH_BUFFER = 0x8223,
GL_STENCIL_BUFFER = 0x8224,
GL_COMPRESSED_RED = 0x8225,
GL_COMPRESSED_RG = 0x8226,
GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x0001,
GL_RGBA32F = 0x8814,
GL_RGB32F = 0x8815,
GL_RGBA16F = 0x881A,
GL_RGB16F = 0x881B,
GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD,
GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF,
GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904,
GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905,
GL_CLAMP_VERTEX_COLOR = 0x891A,
GL_CLAMP_FRAGMENT_COLOR = 0x891B,
GL_CLAMP_READ_COLOR = 0x891C,
GL_FIXED_ONLY = 0x891D,
GL_MAX_VARYING_COMPONENTS = 0x1,
GL_TEXTURE_RED_TYPE = 0x8C10,
GL_TEXTURE_GREEN_TYPE = 0x8C11,
GL_TEXTURE_BLUE_TYPE = 0x8C12,
GL_TEXTURE_ALPHA_TYPE = 0x8C13,
GL_TEXTURE_LUMINANCE_TYPE = 0x8C14,
GL_TEXTURE_INTENSITY_TYPE = 0x8C15,
GL_TEXTURE_DEPTH_TYPE = 0x8C16,
GL_UNSIGNED_NORMALIZED = 0x8C17,
GL_TEXTURE_1D_ARRAY = 0x8C18,
GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19,
GL_TEXTURE_2D_ARRAY = 0x8C1A,
GL_PROXY_TEXTURE_2D_ARRAY = 0x8C1B,
GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C,
GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D,
GL_R11F_G11F_B10F = 0x8C3A,
GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B,
GL_RGB9_E5 = 0x8C3D,
GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E,
GL_TEXTURE_SHARED_SIZE = 0x8C3F,
GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76,
GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F,
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80,
GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83,
GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84,
GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85,
GL_PRIMITIVES_GENERATED = 0x8C87,
GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88,
GL_RASTERIZER_DISCARD = 0x8C89,
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A,
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B,
GL_INTERLEAVED_ATTRIBS = 0x8C8C,
GL_SEPARATE_ATTRIBS = 0x8C8D,
GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E,
GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F,
GL_RGBA32UI = 0x8D70,
GL_RGB32UI = 0x8D71,
GL_RGBA16UI = 0x8D76,
GL_RGB16UI = 0x8D77,
GL_RGBA8UI = 0x8D7C,
GL_RGB8UI = 0x8D7D,
GL_RGBA32I = 0x8D82,
GL_RGB32I = 0x8D83,
GL_RGBA16I = 0x8D88,
GL_RGB16I = 0x8D89,
GL_RGBA8I = 0x8D8E,
GL_RGB8I = 0x8D8F,
GL_RED_INTEGER = 0x8D94,
GL_GREEN_INTEGER = 0x8D95,
GL_BLUE_INTEGER = 0x8D96,
GL_ALPHA_INTEGER = 0x8D97,
GL_RGB_INTEGER = 0x8D98,
GL_RGBA_INTEGER = 0x8D99,
GL_BGR_INTEGER = 0x8D9A,
GL_BGRA_INTEGER = 0x8D9B,
GL_SAMPLER_1D_ARRAY = 0x8DC0,
GL_SAMPLER_2D_ARRAY = 0x8DC1,
GL_SAMPLER_1D_ARRAY_SHADOW = 0x8DC3,
GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4,
GL_SAMPLER_CUBE_SHADOW = 0x8DC5,
GL_UNSIGNED_INT_VEC2 = 0x8DC6,
GL_UNSIGNED_INT_VEC3 = 0x8DC7,
GL_UNSIGNED_INT_VEC4 = 0x8DC8,
GL_INT_SAMPLER_1D = 0x8DC9,
GL_INT_SAMPLER_2D = 0x8DCA,
GL_INT_SAMPLER_3D = 0x8DCB,
GL_INT_SAMPLER_CUBE = 0x8DCC,
GL_INT_SAMPLER_1D_ARRAY = 0x8DCE,
GL_INT_SAMPLER_2D_ARRAY = 0x8DCF,
GL_UNSIGNED_INT_SAMPLER_1D = 0x8DD1,
GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2,
GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3,
GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4,
GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6,
GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7,
GL_QUERY_WAIT = 0x8E13,
GL_QUERY_NO_WAIT = 0x8E14,
GL_QUERY_BY_REGION_WAIT = 0x8E15,
GL_QUERY_BY_REGION_NO_WAIT = 0x8E16,
GL_VERSION_3_1 = 0x1,
GL_SAMPLER_2D_RECT_SHADOW = 0x8B64,
GL_SAMPLER_BUFFER = 0x8DC2,
GL_INT_SAMPLER_2D_RECT = 0x8DCD,
GL_INT_SAMPLER_BUFFER = 0x8DD0,
GL_UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5,
GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8,
GL_TEXTURE_BUFFER = 0x8C2A,
GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B,
GL_TEXTURE_BINDING_BUFFER = 0x8C2C,
GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D,
GL_TEXTURE_BUFFER_FORMAT = 0x8C2E,
GL_TEXTURE_RECTANGLE = 0x84F5,
GL_TEXTURE_BINDING_RECTANGLE = 0x84F6,
GL_PROXY_TEXTURE_RECTANGLE = 0x84F7,
GL_MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8,
GL_RED_SNORM = 0x8F90,
GL_RG_SNORM = 0x8F91,
GL_RGB_SNORM = 0x8F92,
GL_RGBA_SNORM = 0x8F93,
GL_R8_SNORM = 0x8F94,
GL_RG8_SNORM = 0x8F95,
GL_RGB8_SNORM = 0x8F96,
GL_RGBA8_SNORM = 0x8F97,
GL_R16_SNORM = 0x8F98,
GL_RG16_SNORM = 0x8F99,
GL_RGB16_SNORM = 0x8F9A,
GL_RGBA16_SNORM = 0x8F9B,
GL_SIGNED_NORMALIZED = 0x8F9C,
GL_PRIMITIVE_RESTART = 0x8F9D,
GL_PRIMITIVE_RESTART_INDEX = 0x8F9E,
GL_BUFFER_ACCESS_FLAGS = 0x911F,
GL_BUFFER_MAP_LENGTH = 0x9120,
GL_BUFFER_MAP_OFFSET = 0x9121,
GL_VERSION_3_2 = 0x1,
GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002,
GL_LINES_ADJACENCY = 0x000A,
GL_LINE_STRIP_ADJACENCY = 0x000B,
GL_TRIANGLES_ADJACENCY = 0x000C,
GL_TRIANGLE_STRIP_ADJACENCY = 0x000D,
GL_PROGRAM_POINT_SIZE = 0x8642,
GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29,
GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7,
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8,
GL_GEOMETRY_SHADER = 0x8DD9,
GL_GEOMETRY_VERTICES_OUT = 0x8916,
GL_GEOMETRY_INPUT_TYPE = 0x8917,
GL_GEOMETRY_OUTPUT_TYPE = 0x8918,
GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF,
GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0,
GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1,
GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122,
GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123,
GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124,
GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125,
GL_CONTEXT_PROFILE_MASK = 0x9126,
GL_VERSION_3_3 = 0x1,
GL_TEXTURE_SWIZZLE_G = 0x8E43,
GL_TEXTURE_SWIZZLE_B = 0x8E44,
GL_TEXTURE_SWIZZLE_A = 0x8E45,
GL_TEXTURE_SWIZZLE_RGBA = 0x8E46,
GL_RGB10_A2UI = 0x906F,
GL_ANY_SAMPLES_PASSED = 0x8C2F,
GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE,
GL_VERSION_4_0 = 0x1,
GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37,
GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F,
GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A,
GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B,
GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C,
GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D,
GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E,
GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F,
GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS = 0x8F9F,
GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009,
GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A,
GL_PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B,
GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C,
GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D,
GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E,
GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F,
GL_VERSION_4_1 = 0x1,
GL_2D = 0x0600,
GL_2_BYTES = 0x1407,
GL_3D = 0x0601,
GL_3D_COLOR = 0x0602,
GL_3D_COLOR_TEXTURE = 0x0603,
GL_3_BYTES = 0x1408,
GL_4D_COLOR_TEXTURE = 0x0604,
GL_4_BYTES = 0x1409,
GL_ACCUM = 0x0100,
GL_ACCUM_ALPHA_BITS = 0x0D5B,
GL_ACCUM_BLUE_BITS = 0x0D5A,
GL_ACCUM_BUFFER_BIT = 0x00000200,
GL_ACCUM_CLEAR_VALUE = 0x0B80,
GL_ACCUM_GREEN_BITS = 0x0D59,
GL_ACCUM_RED_BITS = 0x0D58,
GL_ACTIVE_ATTRIBUTES = 0x8B89,
GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A,
GL_ACTIVE_TEXTURE = 0x84E0,
GL_ACTIVE_UNIFORMS = 0x8B86,
GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87,
GL_ADD = 0x0104,
GL_ADD_SIGNED = 0x8574,
GL_ALIASED_LINE_WIDTH_RANGE = 0x846E,
GL_ALIASED_POINT_SIZE_RANGE = 0x846D,
GL_ALL_ATTRIB_BITS = 0x000fffff,
GL_ALPHA = 0x1906,
GL_ALPHA12 = 0x803D,
GL_ALPHA16 = 0x803E,
GL_ALPHA4 = 0x803B,
GL_ALPHA8 = 0x803C,
GL_ALPHA_BIAS = 0x0D1D,
GL_ALPHA_BITS = 0x0D55,
GL_ALPHA_SCALE = 0x0D1C,
GL_ALPHA_TEST = 0x0BC0,
GL_ALPHA_TEST_FUNC = 0x0BC1,
GL_ALPHA_TEST_REF = 0x0BC2,
GL_ALWAYS = 0x0207,
GL_AMBIENT = 0x1200,
GL_AMBIENT_AND_DIFFUSE = 0x1602,
GL_AND = 0x1501,
GL_AND_INVERTED = 0x1504,
GL_AND_REVERSE = 0x1502,
GL_ARRAY_BUFFER = 0x8892,
GL_ARRAY_BUFFER_BINDING = 0x8894,
GL_ATTACHED_SHADERS = 0x8B85,
GL_ATTRIB_STACK_DEPTH = 0x0BB0,
GL_AUTO_NORMAL = 0x0D80,
GL_AUX0 = 0x0409,
GL_AUX1 = 0x040A,
GL_AUX2 = 0x040B,
GL_AUX3 = 0x040C,
GL_AUX_BUFFERS = 0x0C00,
GL_BACK = 0x0405,
GL_BACK_LEFT = 0x0402,
GL_BACK_RIGHT = 0x0403,
GL_BGR = 0x80E0,
GL_BGRA = 0x80E1,
GL_BITMAP = 0x1A00,
GL_BITMAP_TOKEN = 0x0704,
GL_BLEND = 0x0BE2,
GL_BLEND_COLOR = 0x8005,
GL_BLEND_DST = 0x0BE0,
GL_BLEND_DST_ALPHA = 0x80CA,
GL_BLEND_DST_RGB = 0x80C8,
GL_BLEND_EQUATION = 0x8009,
GL_BLEND_EQUATION_ALPHA = 0x883D,
GL_BLEND_EQUATION_RGB = 0x8009,
GL_BLEND_SRC = 0x0BE1,
GL_BLEND_SRC_ALPHA = 0x80CB,
GL_BLEND_SRC_RGB = 0x80C9,
GL_BLUE = 0x1905,
GL_BLUE_BIAS = 0x0D1B,
GL_BLUE_BITS = 0x0D54,
GL_BLUE_SCALE = 0x0D1A,
GL_BOOL = 0x8B56,
GL_BOOL_VEC2 = 0x8B57,
GL_BOOL_VEC3 = 0x8B58,
GL_BOOL_VEC4 = 0x8B59,
GL_BUFFER_ACCESS = 0x88BB,
GL_BUFFER_MAPPED = 0x88BC,
GL_BUFFER_MAP_POINTER = 0x88BD,
GL_BUFFER_SIZE = 0x8764,
GL_BUFFER_USAGE = 0x8765,
GL_BYTE = 0x1400,
GL_C3F_V3F = 0x2A24,
GL_C4F_N3F_V3F = 0x2A26,
GL_C4UB_V2F = 0x2A22,
GL_C4UB_V3F = 0x2A23,
GL_CCW = 0x0901,
GL_CLAMP = 0x2900,
GL_CLAMP_TO_BORDER = 0x812D,
GL_CLAMP_TO_EDGE = 0x812F,
GL_CLEAR = 0x1500,
GL_CLIENT_ACTIVE_TEXTURE = 0x84E1,
GL_CLIENT_ALL_ATTRIB_BITS = 0xffffffff,
GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1,
GL_CLIENT_PIXEL_STORE_BIT = 0x00000001,
GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002,
GL_CLIP_PLANE0 = 0x3000,
GL_CLIP_PLANE1 = 0x3001,
GL_CLIP_PLANE2 = 0x3002,
GL_CLIP_PLANE3 = 0x3003,
GL_CLIP_PLANE4 = 0x3004,
GL_CLIP_PLANE5 = 0x3005,
GL_COEFF = 0x0A00,
GL_COLOR = 0x1800,
GL_COLOR_ARRAY = 0x8076,
GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898,
GL_COLOR_ARRAY_POINTER = 0x8090,
GL_COLOR_ARRAY_SIZE = 0x8081,
GL_COLOR_ARRAY_STRIDE = 0x8083,
GL_COLOR_ARRAY_TYPE = 0x8082,
GL_COLOR_BUFFER_BIT = 0x00004000,
GL_COLOR_CLEAR_VALUE = 0x0C22,
GL_COLOR_INDEX = 0x1900,
GL_COLOR_INDEXES = 0x1603,
GL_COLOR_LOGIC_OP = 0x0BF2,
GL_COLOR_MATERIAL = 0x0B57,
GL_COLOR_MATERIAL_FACE = 0x0B55,
GL_COLOR_MATERIAL_PARAMETER = 0x0B56,
GL_COLOR_MATRIX = 0x80B1,
GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2,
GL_COLOR_SUM = 0x8458,
GL_COLOR_TABLE = 0x80D0,
GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD,
GL_COLOR_TABLE_BIAS = 0x80D7,
GL_COLOR_TABLE_BLUE_SIZE = 0x80DC,
GL_COLOR_TABLE_FORMAT = 0x80D8,
GL_COLOR_TABLE_GREEN_SIZE = 0x80DB,
GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF,
GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE,
GL_COLOR_TABLE_RED_SIZE = 0x80DA,
GL_COLOR_TABLE_SCALE = 0x80D6,
GL_COLOR_TABLE_WIDTH = 0x80D9,
GL_COLOR_WRITEMASK = 0x0C23,
GL_COMBINE = 0x8570,
GL_COMBINE_ALPHA = 0x8572,
GL_COMBINE_RGB = 0x8571,
GL_COMPARE_R_TO_TEXTURE = 0x884E,
GL_COMPILE = 0x1300,
GL_COMPILE_AND_EXECUTE = 0x1301,
GL_COMPILE_STATUS = 0x8B81,
GL_COMPRESSED_ALPHA = 0x84E9,
GL_COMPRESSED_INTENSITY = 0x84EC,
GL_COMPRESSED_LUMINANCE = 0x84EA,
GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB,
GL_COMPRESSED_RGB = 0x84ED,
GL_COMPRESSED_RGBA = 0x84EE,
GL_COMPRESSED_SLUMINANCE = 0x8C4A,
GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B,
GL_COMPRESSED_SRGB = 0x8C48,
GL_COMPRESSED_SRGB_ALPHA = 0x8C49,
GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3,
GL_CONSTANT = 0x8576,
GL_CONSTANT_ALPHA = 0x8003,
GL_CONSTANT_ATTENUATION = 0x1207,
GL_CONSTANT_BORDER = 0x8151,
GL_CONSTANT_COLOR = 0x8001,
GL_CONVOLUTION_1D = 0x8010,
GL_CONVOLUTION_2D = 0x8011,
GL_CONVOLUTION_BORDER_COLOR = 0x8154,
GL_CONVOLUTION_BORDER_MODE = 0x8013,
GL_CONVOLUTION_FILTER_BIAS = 0x8015,
GL_CONVOLUTION_FILTER_SCALE = 0x8014,
GL_CONVOLUTION_FORMAT = 0x8017,
GL_CONVOLUTION_HEIGHT = 0x8019,
GL_CONVOLUTION_WIDTH = 0x8018,
GL_COORD_REPLACE = 0x8862,
GL_COPY = 0x1503,
GL_COPY_INVERTED = 0x150C,
GL_COPY_PIXEL_TOKEN = 0x0706,
GL_CULL_FACE = 0x0B44,
GL_CULL_FACE_MODE = 0x0B45,
GL_CURRENT_BIT = 0x00000001,
GL_CURRENT_COLOR = 0x0B00,
GL_CURRENT_FOG_COORD = 0x8453,
GL_CURRENT_FOG_COORDINATE = 0x8453,
GL_CURRENT_INDEX = 0x0B01,
GL_CURRENT_NORMAL = 0x0B02,
GL_CURRENT_PROGRAM = 0x8B8D,
GL_CURRENT_QUERY = 0x8865,
GL_CURRENT_RASTER_COLOR = 0x0B04,
GL_CURRENT_RASTER_DISTANCE = 0x0B09,
GL_CURRENT_RASTER_INDEX = 0x0B05,
GL_CURRENT_RASTER_POSITION = 0x0B07,
GL_CURRENT_RASTER_POSITION_VALID = 0x0B08,
GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845F,
GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06,
GL_CURRENT_SECONDARY_COLOR = 0x8459,
GL_CURRENT_TEXTURE_COORDS = 0x0B03,
GL_CURRENT_VERTEX_ATTRIB = 0x8626,
GL_CW = 0x0900,
GL_DECAL = 0x2101,
GL_DECR = 0x1E03,
GL_DECR_WRAP = 0x8508,
GL_DELETE_STATUS = 0x8B80,
GL_DEPTH = 0x1801,
GL_DEPTH_BIAS = 0x0D1F,
GL_DEPTH_BITS = 0x0D56,
GL_DEPTH_BUFFER_BIT = 0x00000100,
GL_DEPTH_CLEAR_VALUE = 0x0B73,
GL_DEPTH_COMPONENT = 0x1902,
GL_DEPTH_COMPONENT16 = 0x81A5,
GL_DEPTH_COMPONENT24 = 0x81A6,
GL_DEPTH_COMPONENT32 = 0x81A7,
GL_DEPTH_FUNC = 0x0B74,
GL_DEPTH_RANGE = 0x0B70,
GL_DEPTH_SCALE = 0x0D1E,
GL_DEPTH_TEST = 0x0B71,
GL_DEPTH_TEXTURE_MODE = 0x884B,
GL_DEPTH_WRITEMASK = 0x0B72,
GL_DIFFUSE = 0x1201,
GL_DITHER = 0x0BD0,
GL_DOMAIN = 0x0A02,
GL_DONT_CARE = 0x1100,
GL_DOT3_RGB = 0x86AE,
GL_DOT3_RGBA = 0x86AF,
GL_DOUBLE = 0x140A,
GL_DOUBLEBUFFER = 0x0C32,
GL_DRAW_BUFFER = 0x0C01,
GL_DRAW_BUFFER0 = 0x8825,
GL_DRAW_BUFFER1 = 0x8826,
GL_DRAW_BUFFER10 = 0x882F,
GL_DRAW_BUFFER11 = 0x8830,
GL_DRAW_BUFFER12 = 0x8831,
GL_DRAW_BUFFER13 = 0x8832,
GL_DRAW_BUFFER14 = 0x8833,
GL_DRAW_BUFFER15 = 0x8834,
GL_DRAW_BUFFER2 = 0x8827,
GL_DRAW_BUFFER3 = 0x8828,
GL_DRAW_BUFFER4 = 0x8829,
GL_DRAW_BUFFER5 = 0x882A,
GL_DRAW_BUFFER6 = 0x882B,
GL_DRAW_BUFFER7 = 0x882C,
GL_DRAW_BUFFER8 = 0x882D,
GL_DRAW_BUFFER9 = 0x882E,
GL_DRAW_PIXEL_TOKEN = 0x0705,
GL_DST_ALPHA = 0x0304,
GL_DST_COLOR = 0x0306,
GL_DYNAMIC_COPY = 0x88EA,
GL_DYNAMIC_DRAW = 0x88E8,
GL_DYNAMIC_READ = 0x88E9,
GL_EDGE_FLAG = 0x0B43,
GL_EDGE_FLAG_ARRAY = 0x8079,
GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B,
GL_EDGE_FLAG_ARRAY_POINTER = 0x8093,
GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C,
GL_ELEMENT_ARRAY_BUFFER = 0x8893,
GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895,
GL_EMISSION = 0x1600,
GL_ENABLE_BIT = 0x00002000,
GL_EQUAL = 0x0202,
GL_EQUIV = 0x1509,
GL_EVAL_BIT = 0x00010000,
GL_EXP = 0x0800,
GL_EXP2 = 0x0801,
GL_EXTENSIONS = 0x1F03,
GL_EYE_LINEAR = 0x2400,
GL_EYE_PLANE = 0x2502,
GL_FALSE = 0x1,
GL_FASTEST = 0x1101,
GL_FEEDBACK = 0x1C01,
GL_FEEDBACK_BUFFER_POINTER = 0x0DF0,
GL_FEEDBACK_BUFFER_SIZE = 0x0DF1,
GL_FEEDBACK_BUFFER_TYPE = 0x0DF2,
GL_FILL = 0x1B02,
GL_FLAT = 0x1D00,
GL_FLOAT = 0x1406,
GL_FLOAT_MAT2 = 0x8B5A,
GL_FLOAT_MAT2x3 = 0x8B65,
GL_FLOAT_MAT2x4 = 0x8B66,
GL_FLOAT_MAT3 = 0x8B5B,
GL_FLOAT_MAT3x2 = 0x8B67,
GL_FLOAT_MAT3x4 = 0x8B68,
GL_FLOAT_MAT4 = 0x8B5C,
GL_FLOAT_MAT4x2 = 0x8B69,
GL_FLOAT_MAT4x3 = 0x8B6A,
GL_FLOAT_VEC2 = 0x8B50,
GL_FLOAT_VEC3 = 0x8B51,
GL_FLOAT_VEC4 = 0x8B52,
GL_FOG = 0x0B60,
GL_FOG_BIT = 0x00000080,
GL_FOG_COLOR = 0x0B66,
GL_FOG_COORD = 0x8451,
GL_FOG_COORDINATE = 0x8451,
GL_FOG_COORDINATE_ARRAY = 0x8457,
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D,
GL_FOG_COORDINATE_ARRAY_POINTER = 0x8456,
GL_FOG_COORDINATE_ARRAY_STRIDE = 0x8455,
GL_FOG_COORDINATE_ARRAY_TYPE = 0x8454,
GL_FOG_COORDINATE_SOURCE = 0x8450,
GL_FOG_COORD_ARRAY = 0x8457,
GL_FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D,
GL_FOG_COORD_ARRAY_POINTER = 0x8456,
GL_FOG_COORD_ARRAY_STRIDE = 0x8455,
GL_FOG_COORD_ARRAY_TYPE = 0x8454,
GL_FOG_COORD_SRC = 0x8450,
GL_FOG_DENSITY = 0x0B62,
GL_FOG_END = 0x0B64,
GL_FOG_HINT = 0x0C54,
GL_FOG_INDEX = 0x0B61,
GL_FOG_MODE = 0x0B65,
GL_FOG_START = 0x0B63,
GL_FRAGMENT_DEPTH = 0x8452,
GL_FRAGMENT_SHADER = 0x8B30,
GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B,
GL_FRONT = 0x0404,
GL_FRONT_AND_BACK = 0x0408,
GL_FRONT_FACE = 0x0B46,
GL_FRONT_LEFT = 0x0400,
GL_FRONT_RIGHT = 0x0401,
GL_FUNC_ADD = 0x8006,
GL_FUNC_REVERSE_SUBTRACT = 0x800B,
GL_FUNC_SUBTRACT = 0x800A,
GL_GENERATE_MIPMAP = 0x8191,
GL_GENERATE_MIPMAP_HINT = 0x8192,
GL_GEQUAL = 0x0206,
GL_GREATER = 0x0204,
GL_GREEN = 0x1904,
GL_GREEN_BIAS = 0x0D19,
GL_GREEN_BITS = 0x0D53,
GL_GREEN_SCALE = 0x0D18,
GL_HINT_BIT = 0x00008000,
GL_HISTOGRAM = 0x8024,
GL_HISTOGRAM_ALPHA_SIZE = 0x802B,
GL_HISTOGRAM_BLUE_SIZE = 0x802A,
GL_HISTOGRAM_FORMAT = 0x8027,
GL_HISTOGRAM_GREEN_SIZE = 0x8029,
GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C,
GL_HISTOGRAM_RED_SIZE = 0x8028,
GL_HISTOGRAM_SINK = 0x802D,
GL_HISTOGRAM_WIDTH = 0x8026,
GL_INCR = 0x1E02,
GL_INCR_WRAP = 0x8507,
GL_INDEX_ARRAY = 0x8077,
GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899,
GL_INDEX_ARRAY_POINTER = 0x8091,
GL_INDEX_ARRAY_STRIDE = 0x8086,
GL_INDEX_ARRAY_TYPE = 0x8085,
GL_INDEX_BITS = 0x0D51,
GL_INDEX_CLEAR_VALUE = 0x0C20,
GL_INDEX_LOGIC_OP = 0x0BF1,
GL_INDEX_MODE = 0x0C30,
GL_INDEX_OFFSET = 0x0D13,
GL_INDEX_SHIFT = 0x0D12,
GL_INDEX_WRITEMASK = 0x0C21,
GL_INFO_LOG_LENGTH = 0x8B84,
GL_INT = 0x1404,
GL_INTENSITY = 0x8049,
GL_INTENSITY12 = 0x804C,
GL_INTENSITY16 = 0x804D,
GL_INTENSITY4 = 0x804A,
GL_INTENSITY8 = 0x804B,
GL_INTERPOLATE = 0x8575,
GL_INT_VEC2 = 0x8B53,
GL_INT_VEC3 = 0x8B54,
GL_INT_VEC4 = 0x8B55,
GL_INVALID_ENUM = 0x0500,
GL_INVALID_OPERATION = 0x0502,
GL_INVALID_VALUE = 0x0501,
GL_INVERT = 0x150A,
GL_KEEP = 0x1E00,
GL_LEFT = 0x0406,
GL_LEQUAL = 0x0203,
GL_LESS = 0x0201,
GL_LIGHT0 = 0x4000,
GL_LIGHT1 = 0x4001,
GL_LIGHT2 = 0x4002,
GL_LIGHT3 = 0x4003,
GL_LIGHT4 = 0x4004,
GL_LIGHT5 = 0x4005,
GL_LIGHT6 = 0x4006,
GL_LIGHT7 = 0x4007,
GL_LIGHTING = 0x0B50,
GL_LIGHTING_BIT = 0x00000040,
GL_LIGHT_MODEL_AMBIENT = 0x0B53,
GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8,
GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51,
GL_LIGHT_MODEL_TWO_SIDE = 0x0B52,
GL_LINE = 0x1B01,
GL_LINEAR = 0x2601,
GL_LINEAR_ATTENUATION = 0x1208,
GL_LINEAR_MIPMAP_LINEAR = 0x2703,
GL_LINEAR_MIPMAP_NEAREST = 0x2701,
GL_LINES = 0x0001,
GL_LINE_BIT = 0x00000004,
GL_LINE_LOOP = 0x0002,
GL_LINE_RESET_TOKEN = 0x0707,
GL_LINE_SMOOTH = 0x0B20,
GL_LINE_SMOOTH_HINT = 0x0C52,
GL_LINE_STIPPLE = 0x0B24,
GL_LINE_STIPPLE_PATTERN = 0x0B25,
GL_LINE_STIPPLE_REPEAT = 0x0B26,
GL_LINE_STRIP = 0x0003,
GL_LINE_TOKEN = 0x0702,
GL_LINE_WIDTH = 0x0B21,
GL_LINE_WIDTH_GRANULARITY = 0x0B23,
GL_LINE_WIDTH_RANGE = 0x0B22,
GL_LINK_STATUS = 0x8B82,
GL_LIST_BASE = 0x0B32,
GL_LIST_BIT = 0x00020000,
GL_LIST_INDEX = 0x0B33,
GL_LIST_MODE = 0x0B30,
GL_LOAD = 0x0101,
GL_LOGIC_OP_MODE = 0x0BF0,
GL_LOWER_LEFT = 0x8CA1,
GL_LUMINANCE = 0x1909,
GL_LUMINANCE12 = 0x8041,
GL_LUMINANCE12_ALPHA12 = 0x8047,
GL_LUMINANCE12_ALPHA4 = 0x8046,
GL_LUMINANCE16 = 0x8042,
GL_LUMINANCE16_ALPHA16 = 0x8048,
GL_LUMINANCE4 = 0x803F,
GL_LUMINANCE4_ALPHA4 = 0x8043,
GL_LUMINANCE6_ALPHA2 = 0x8044,
GL_LUMINANCE8 = 0x8040,
GL_LUMINANCE8_ALPHA8 = 0x8045,
GL_LUMINANCE_ALPHA = 0x190A,
GL_MAP1_COLOR_4 = 0x0D90,
GL_MAP1_GRID_DOMAIN = 0x0DD0,
GL_MAP1_GRID_SEGMENTS = 0x0DD1,
GL_MAP1_INDEX = 0x0D91,
GL_MAP1_NORMAL = 0x0D92,
GL_MAP1_TEXTURE_COORD_1 = 0x0D93,
GL_MAP1_TEXTURE_COORD_2 = 0x0D94,
GL_MAP1_TEXTURE_COORD_3 = 0x0D95,
GL_MAP1_TEXTURE_COORD_4 = 0x0D96,
GL_MAP1_VERTEX_3 = 0x0D97,
GL_MAP1_VERTEX_4 = 0x0D98,
GL_MAP2_COLOR_4 = 0x0DB0,
GL_MAP2_GRID_DOMAIN = 0x0DD2,
GL_MAP2_GRID_SEGMENTS = 0x0DD3,
GL_MAP2_INDEX = 0x0DB1,
GL_MAP2_NORMAL = 0x0DB2,
GL_MAP2_TEXTURE_COORD_1 = 0x0DB3,
GL_MAP2_TEXTURE_COORD_2 = 0x0DB4,
GL_MAP2_TEXTURE_COORD_3 = 0x0DB5,
GL_MAP2_TEXTURE_COORD_4 = 0x0DB6,
GL_MAP2_VERTEX_3 = 0x0DB7,
GL_MAP2_VERTEX_4 = 0x0DB8,
GL_MAP_COLOR = 0x0D10,
GL_MAP_STENCIL = 0x0D11,
GL_MATRIX_MODE = 0x0BA0,
GL_MAX = 0x8008,
GL_MAX_3D_TEXTURE_SIZE = 0x8073,
GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35,
GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B,
GL_MAX_CLIP_PLANES = 0x0D32,
GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3,
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D,
GL_MAX_CONVOLUTION_HEIGHT = 0x801B,
GL_MAX_CONVOLUTION_WIDTH = 0x801A,
GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C,
GL_MAX_DRAW_BUFFERS = 0x8824,
GL_MAX_ELEMENTS_INDICES = 0x80E9,
GL_MAX_ELEMENTS_VERTICES = 0x80E8,
GL_MAX_EVAL_ORDER = 0x0D30,
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49,
GL_MAX_LIGHTS = 0x0D31,
GL_MAX_LIST_NESTING = 0x0B31,
GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36,
GL_MAX_NAME_STACK_DEPTH = 0x0D37,
GL_MAX_PIXEL_MAP_TABLE = 0x0D34,
GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38,
GL_MAX_TEXTURE_COORDS = 0x8871,
GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872,
GL_MAX_TEXTURE_LOD_BIAS = 0x84FD,
GL_MAX_TEXTURE_SIZE = 0x0D33,
GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39,
GL_MAX_TEXTURE_UNITS = 0x84E2,
GL_MAX_VARYING_FLOATS = 0x8B4B,
GL_MAX_VERTEX_ATTRIBS = 0x8869,
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C,
GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A,
GL_MAX_VIEWPORT_DIMS = 0x0D3A,
GL_MIN = 0x8007,
GL_MINMAX = 0x802E,
GL_MINMAX_FORMAT = 0x802F,
GL_MINMAX_SINK = 0x8030,
GL_MIRRORED_REPEAT = 0x8370,
GL_MODELVIEW = 0x1700,
GL_MODELVIEW_MATRIX = 0x0BA6,
GL_MODELVIEW_STACK_DEPTH = 0x0BA3,
GL_MODULATE = 0x2100,
GL_MULT = 0x0103,
GL_MULTISAMPLE = 0x809D,
GL_MULTISAMPLE_BIT = 0x20000000,
GL_N3F_V3F = 0x2A25,
GL_NAME_STACK_DEPTH = 0x0D70,
GL_NAND = 0x150E,
GL_NEAREST = 0x2600,
GL_NEAREST_MIPMAP_LINEAR = 0x2702,
GL_NEAREST_MIPMAP_NEAREST = 0x2700,
GL_NEVER = 0x0200,
GL_NICEST = 0x1102,
GL_NONE = 0x1,
GL_NOOP = 0x1505,
GL_NOR = 0x1508,
GL_NORMALIZE = 0x0BA1,
GL_NORMAL_ARRAY = 0x8075,
GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897,
GL_NORMAL_ARRAY_POINTER = 0x808F,
GL_NORMAL_ARRAY_STRIDE = 0x807F,
GL_NORMAL_ARRAY_TYPE = 0x807E,
GL_NORMAL_MAP = 0x8511,
GL_NOTEQUAL = 0x0205,
GL_NO_ERROR = 0x1,
GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2,
GL_OBJECT_LINEAR = 0x2401,
GL_OBJECT_PLANE = 0x2501,
GL_ONE = 0x1,
GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004,
GL_ONE_MINUS_CONSTANT_COLOR = 0x8002,
GL_ONE_MINUS_DST_ALPHA = 0x0305,
GL_ONE_MINUS_DST_COLOR = 0x0307,
GL_ONE_MINUS_SRC_ALPHA = 0x0303,
GL_ONE_MINUS_SRC_COLOR = 0x0301,
GL_OPERAND0_ALPHA = 0x8598,
GL_OPERAND0_RGB = 0x8590,
GL_OPERAND1_ALPHA = 0x8599,
GL_OPERAND1_RGB = 0x8591,
GL_OPERAND2_ALPHA = 0x859A,
GL_OPERAND2_RGB = 0x8592,
GL_OPERAND3_ALPHA = 0x859B,
GL_OPERAND3_RGB = 0x8593,
GL_OPERAND4_ALPHA = 0x859C,
GL_OPERAND4_RGB = 0x8594,
GL_OPERAND5_ALPHA = 0x859D,
GL_OPERAND5_RGB = 0x8595,
GL_OPERAND6_ALPHA = 0x859E,
GL_OPERAND6_RGB = 0x8596,
GL_OPERAND7_ALPHA = 0x859F,
GL_OPERAND7_RGB = 0x8597,
GL_OR = 0x1507,
GL_ORDER = 0x0A01,
GL_OR_INVERTED = 0x150D,
GL_OR_REVERSE = 0x150B,
GL_OUT_OF_MEMORY = 0x0505,
GL_PACK_ALIGNMENT = 0x0D05,
GL_PACK_IMAGE_HEIGHT = 0x806C,
GL_PACK_LSB_FIRST = 0x0D01,
GL_PACK_ROW_LENGTH = 0x0D02,
GL_PACK_SKIP_IMAGES = 0x806B,
GL_PACK_SKIP_PIXELS = 0x0D04,
GL_PACK_SKIP_ROWS = 0x0D03,
GL_PACK_SWAP_BYTES = 0x0D00,
GL_PASS_THROUGH_TOKEN = 0x0700,
GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50,
GL_PIXEL_MAP_A_TO_A = 0x0C79,
GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9,
GL_PIXEL_MAP_B_TO_B = 0x0C78,
GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8,
GL_PIXEL_MAP_G_TO_G = 0x0C77,
GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7,
GL_PIXEL_MAP_I_TO_A = 0x0C75,
GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5,
GL_PIXEL_MAP_I_TO_B = 0x0C74,
GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4,
GL_PIXEL_MAP_I_TO_G = 0x0C73,
GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3,
GL_PIXEL_MAP_I_TO_I = 0x0C70,
GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0,
GL_PIXEL_MAP_I_TO_R = 0x0C72,
GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2,
GL_PIXEL_MAP_R_TO_R = 0x0C76,
GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6,
GL_PIXEL_MAP_S_TO_S = 0x0C71,
GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1,
GL_PIXEL_MODE_BIT = 0x00000020,
GL_PIXEL_PACK_BUFFER = 0x88EB,
GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED,
GL_PIXEL_UNPACK_BUFFER = 0x88EC,
GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF,
GL_POINT = 0x1B00,
GL_POINTS = 0x0000,
GL_POINT_BIT = 0x00000002,
GL_POINT_DISTANCE_ATTENUATION = 0x8129,
GL_POINT_FADE_THRESHOLD_SIZE = 0x8128,
GL_POINT_SIZE = 0x0B11,
GL_POINT_SIZE_GRANULARITY = 0x0B13,
GL_POINT_SIZE_MAX = 0x8127,
GL_POINT_SIZE_MIN = 0x8126,
GL_POINT_SIZE_RANGE = 0x0B12,
GL_POINT_SMOOTH = 0x0B10,
GL_POINT_SMOOTH_HINT = 0x0C51,
GL_POINT_SPRITE = 0x8861,
GL_POINT_SPRITE_COORD_ORIGIN = 0x8CA0,
GL_POINT_TOKEN = 0x0701,
GL_POLYGON = 0x0009,
GL_POLYGON_BIT = 0x00000008,
GL_POLYGON_MODE = 0x0B40,
GL_POLYGON_OFFSET_FACTOR = 0x8038,
GL_POLYGON_OFFSET_FILL = 0x8037,
GL_POLYGON_OFFSET_LINE = 0x2A02,
GL_POLYGON_OFFSET_POINT = 0x2A01,
GL_POLYGON_OFFSET_UNITS = 0x2A00,
GL_POLYGON_SMOOTH = 0x0B41,
GL_POLYGON_SMOOTH_HINT = 0x0C53,
GL_POLYGON_STIPPLE = 0x0B42,
GL_POLYGON_STIPPLE_BIT = 0x00000010,
GL_POLYGON_TOKEN = 0x0703,
GL_POSITION = 0x1203,
GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB,
GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7,
GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA,
GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6,
GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2,
GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9,
GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5,
GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8,
GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4,
GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023,
GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F,
GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022,
GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E,
GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1,
GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021,
GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D,
GL_POST_CONVOLUTION_RED_BIAS = 0x8020,
GL_POST_CONVOLUTION_RED_SCALE = 0x801C,
GL_PREVIOUS = 0x8578,
GL_PRIMARY_COLOR = 0x8577,
GL_PROJECTION = 0x1701,
GL_PROJECTION_MATRIX = 0x0BA7,
GL_PROJECTION_STACK_DEPTH = 0x0BA4,
GL_PROXY_COLOR_TABLE = 0x80D3,
GL_PROXY_HISTOGRAM = 0x8025,
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5,
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4,
GL_PROXY_TEXTURE_1D = 0x8063,
GL_PROXY_TEXTURE_2D = 0x8064,
GL_PROXY_TEXTURE_3D = 0x8070,
GL_PROXY_TEXTURE_CUBE_MAP = 0x851B,
GL_Q = 0x2003,
GL_QUADRATIC_ATTENUATION = 0x1209,
GL_QUADS = 0x0007,
GL_QUAD_STRIP = 0x0008,
GL_QUERY_COUNTER_BITS = 0x8864,
GL_QUERY_RESULT = 0x8866,
GL_QUERY_RESULT_AVAILABLE = 0x8867,
GL_R = 0x2002,
GL_R3_G3_B2 = 0x2A10,
GL_READ_BUFFER = 0x0C02,
GL_READ_ONLY = 0x88B8,
GL_READ_WRITE = 0x88BA,
GL_RED = 0x1903,
GL_REDUCE = 0x8016,
GL_RED_BIAS = 0x0D15,
GL_RED_BITS = 0x0D52,
GL_RED_SCALE = 0x0D14,
GL_REFLECTION_MAP = 0x8512,
GL_RENDER = 0x1C00,
GL_RENDERER = 0x1F01,
GL_RENDER_MODE = 0x0C40,
GL_REPEAT = 0x2901,
GL_REPLACE = 0x1E01,
GL_REPLICATE_BORDER = 0x8153,
GL_RESCALE_NORMAL = 0x803A,
GL_RETURN = 0x0102,
GL_RGB = 0x1907,
GL_RGB10 = 0x8052,
GL_RGB10_A2 = 0x8059,
GL_RGB12 = 0x8053,
GL_RGB16 = 0x8054,
GL_RGB4 = 0x804F,
GL_RGB5 = 0x8050,
GL_RGB5_A1 = 0x8057,
GL_RGB8 = 0x8051,
GL_RGBA = 0x1908,
GL_RGBA12 = 0x805A,
GL_RGBA16 = 0x805B,
GL_RGBA2 = 0x8055,
GL_RGBA4 = 0x8056,
GL_RGBA8 = 0x8058,
GL_RGBA_MODE = 0x0C31,
GL_RGB_SCALE = 0x8573,
GL_RIGHT = 0x0407,
GL_S = 0x2000,
GL_SAMPLER_1D = 0x8B5D,
GL_SAMPLER_1D_SHADOW = 0x8B61,
GL_SAMPLER_2D = 0x8B5E,
GL_SAMPLER_2D_SHADOW = 0x8B62,
GL_SAMPLER_3D = 0x8B5F,
GL_SAMPLER_CUBE = 0x8B60,
GL_SAMPLES = 0x80A9,
GL_SAMPLES_PASSED = 0x8914,
GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E,
GL_SAMPLE_ALPHA_TO_ONE = 0x809F,
GL_SAMPLE_BUFFERS = 0x80A8,
GL_SAMPLE_COVERAGE = 0x80A0,
GL_SAMPLE_COVERAGE_INVERT = 0x80AB,
GL_SAMPLE_COVERAGE_VALUE = 0x80AA,
GL_SCISSOR_BIT = 0x00080000,
GL_SCISSOR_BOX = 0x0C10,
GL_SCISSOR_TEST = 0x0C11,
GL_SECONDARY_COLOR_ARRAY = 0x845E,
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C,
GL_SECONDARY_COLOR_ARRAY_POINTER = 0x845D,
GL_SECONDARY_COLOR_ARRAY_SIZE = 0x845A,
GL_SECONDARY_COLOR_ARRAY_STRIDE = 0x845C,
GL_SECONDARY_COLOR_ARRAY_TYPE = 0x845B,
GL_SELECT = 0x1C02,
GL_SELECTION_BUFFER_POINTER = 0x0DF3,
GL_SELECTION_BUFFER_SIZE = 0x0DF4,
GL_SEPARABLE_2D = 0x8012,
GL_SEPARATE_SPECULAR_COLOR = 0x81FA,
GL_SET = 0x150F,
GL_SHADER_SOURCE_LENGTH = 0x8B88,
GL_SHADER_TYPE = 0x8B4F,
GL_SHADE_MODEL = 0x0B54,
GL_SHADING_LANGUAGE_VERSION = 0x8B8C,
GL_SHININESS = 0x1601,
GL_SHORT = 0x1402,
GL_SINGLE_COLOR = 0x81F9,
GL_SLUMINANCE = 0x8C46,
GL_SLUMINANCE8 = 0x8C47,
GL_SLUMINANCE8_ALPHA8 = 0x8C45,
GL_SLUMINANCE_ALPHA = 0x8C44,
GL_SMOOTH = 0x1D01,
GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23,
GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22,
GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13,
GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12,
GL_SOURCE0_ALPHA = 0x8588,
GL_SOURCE0_RGB = 0x8580,
GL_SOURCE1_ALPHA = 0x8589,
GL_SOURCE1_RGB = 0x8581,
GL_SOURCE2_ALPHA = 0x858A,
GL_SOURCE2_RGB = 0x8582,
GL_SOURCE3_ALPHA = 0x858B,
GL_SOURCE3_RGB = 0x8583,
GL_SOURCE4_ALPHA = 0x858C,
GL_SOURCE4_RGB = 0x8584,
GL_SOURCE5_ALPHA = 0x858D,
GL_SOURCE5_RGB = 0x8585,
GL_SOURCE6_ALPHA = 0x858E,
GL_SOURCE6_RGB = 0x8586,
GL_SOURCE7_ALPHA = 0x858F,
GL_SOURCE7_RGB = 0x8587,
GL_SPECULAR = 0x1202,
GL_SPHERE_MAP = 0x2402,
GL_SPOT_CUTOFF = 0x1206,
GL_SPOT_DIRECTION = 0x1204,
GL_SPOT_EXPONENT = 0x1205,
GL_SRC0_ALPHA = 0x8588,
GL_SRC0_RGB = 0x8580,
GL_SRC1_ALPHA = 0x8589,
GL_SRC1_RGB = 0x8581,
GL_SRC2_ALPHA = 0x858A,
GL_SRC2_RGB = 0x8582,
GL_SRC3_ALPHA = 0x858B,
GL_SRC3_RGB = 0x8583,
GL_SRC4_ALPHA = 0x858C,
GL_SRC4_RGB = 0x8584,
GL_SRC5_ALPHA = 0x858D,
GL_SRC5_RGB = 0x8585,
GL_SRC6_ALPHA = 0x858E,
GL_SRC6_RGB = 0x8586,
GL_SRC7_ALPHA = 0x858F,
GL_SRC7_RGB = 0x8587,
GL_SRC_ALPHA = 0x0302,
GL_SRC_ALPHA_SATURATE = 0x0308,
GL_SRC_COLOR = 0x0300,
GL_SRGB = 0x8C40,
GL_SRGB8 = 0x8C41,
GL_SRGB8_ALPHA8 = 0x8C43,
GL_SRGB_ALPHA = 0x8C42,
GL_STACK_OVERFLOW = 0x0503,
GL_STACK_UNDERFLOW = 0x0504,
GL_STATIC_COPY = 0x88E6,
GL_STATIC_DRAW = 0x88E4,
GL_STATIC_READ = 0x88E5,
GL_STENCIL = 0x1802,
GL_STENCIL_BACK_FAIL = 0x8801,
GL_STENCIL_BACK_FUNC = 0x8800,
GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802,
GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803,
GL_STENCIL_BACK_REF = 0x8CA3,
GL_STENCIL_BACK_VALUE_MASK = 0x8CA4,
GL_STENCIL_BACK_WRITEMASK = 0x8CA5,
GL_STENCIL_BITS = 0x0D57,
GL_STENCIL_BUFFER_BIT = 0x00000400,
GL_STENCIL_CLEAR_VALUE = 0x0B91,
GL_STENCIL_FAIL = 0x0B94,
GL_STENCIL_FUNC = 0x0B92,
GL_STENCIL_INDEX = 0x1901,
GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95,
GL_STENCIL_PASS_DEPTH_PASS = 0x0B96,
GL_STENCIL_REF = 0x0B97,
GL_STENCIL_TEST = 0x0B90,
GL_STENCIL_VALUE_MASK = 0x0B93,
GL_STENCIL_WRITEMASK = 0x0B98,
GL_STEREO = 0x0C33,
GL_STREAM_COPY = 0x88E2,
GL_STREAM_DRAW = 0x88E0,
GL_STREAM_READ = 0x88E1,
GL_SUBPIXEL_BITS = 0x0D50,
GL_SUBTRACT = 0x84E7,
GL_T = 0x2001,
GL_T2F_C3F_V3F = 0x2A2A,
GL_T2F_C4F_N3F_V3F = 0x2A2C,
GL_T2F_C4UB_V3F = 0x2A29,
GL_T2F_N3F_V3F = 0x2A2B,
GL_T2F_V3F = 0x2A27,
GL_T4F_C4F_N3F_V4F = 0x2A2D,
GL_T4F_V4F = 0x2A28,
GL_TABLE_TOO_LARGE = 0x8031,
GL_TEXTURE = 0x1702,
GL_TEXTURE0 = 0x84C0,
GL_TEXTURE1 = 0x84C1,
GL_TEXTURE10 = 0x84CA,
GL_TEXTURE11 = 0x84CB,
GL_TEXTURE12 = 0x84CC,
GL_TEXTURE13 = 0x84CD,
GL_TEXTURE14 = 0x84CE,
GL_TEXTURE15 = 0x84CF,
GL_TEXTURE16 = 0x84D0,
GL_TEXTURE17 = 0x84D1,
GL_TEXTURE18 = 0x84D2,
GL_TEXTURE19 = 0x84D3,
GL_TEXTURE2 = 0x84C2,
GL_TEXTURE20 = 0x84D4,
GL_TEXTURE21 = 0x84D5,
GL_TEXTURE22 = 0x84D6,
GL_TEXTURE23 = 0x84D7,
GL_TEXTURE24 = 0x84D8,
GL_TEXTURE25 = 0x84D9,
GL_TEXTURE26 = 0x84DA,
GL_TEXTURE27 = 0x84DB,
GL_TEXTURE28 = 0x84DC,
GL_TEXTURE29 = 0x84DD,
GL_TEXTURE3 = 0x84C3,
GL_TEXTURE30 = 0x84DE,
GL_TEXTURE31 = 0x84DF,
GL_TEXTURE4 = 0x84C4,
GL_TEXTURE5 = 0x84C5,
GL_TEXTURE6 = 0x84C6,
GL_TEXTURE7 = 0x84C7,
GL_TEXTURE8 = 0x84C8,
GL_TEXTURE9 = 0x84C9,
GL_TEXTURE_1D = 0x0DE0,
GL_TEXTURE_2D = 0x0DE1,
GL_TEXTURE_3D = 0x806F,
GL_TEXTURE_ALPHA_SIZE = 0x805F,
GL_TEXTURE_BASE_LEVEL = 0x813C,
GL_TEXTURE_BINDING_1D = 0x8068,
GL_TEXTURE_BINDING_2D = 0x8069,
GL_TEXTURE_BINDING_3D = 0x806A,
GL_TEXTURE_BINDING_CUBE_MAP = 0x8514,
GL_TEXTURE_BIT = 0x00040000,
GL_TEXTURE_BLUE_SIZE = 0x805E,
GL_TEXTURE_BORDER = 0x1005,
GL_TEXTURE_BORDER_COLOR = 0x1004,
GL_TEXTURE_COMPARE_FUNC = 0x884D,
GL_TEXTURE_COMPARE_MODE = 0x884C,
GL_TEXTURE_COMPRESSED = 0x86A1,
GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0,
GL_TEXTURE_COMPRESSION_HINT = 0x84EF,
GL_TEXTURE_COORD_ARRAY = 0x8078,
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A,
GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092,
GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088,
GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A,
GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089,
GL_TEXTURE_CUBE_MAP = 0x8513,
GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518,
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A,
GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515,
GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517,
GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519,
GL_TEXTURE_DEPTH = 0x8071,
GL_TEXTURE_DEPTH_SIZE = 0x884A,
GL_TEXTURE_ENV = 0x2300,
GL_TEXTURE_ENV_COLOR = 0x2201,
GL_TEXTURE_ENV_MODE = 0x2200,
GL_TEXTURE_FILTER_CONTROL = 0x8500,
GL_TEXTURE_GEN_MODE = 0x2500,
GL_TEXTURE_GEN_Q = 0x0C63,
GL_TEXTURE_GEN_R = 0x0C62,
GL_TEXTURE_GEN_S = 0x0C60,
GL_TEXTURE_GEN_T = 0x0C61,
GL_TEXTURE_GREEN_SIZE = 0x805D,
GL_TEXTURE_HEIGHT = 0x1001,
GL_TEXTURE_INTENSITY_SIZE = 0x8061,
GL_TEXTURE_INTERNAL_FORMAT = 0x1003,
GL_TEXTURE_LOD_BIAS = 0x8501,
GL_TEXTURE_LUMINANCE_SIZE = 0x8060,
GL_TEXTURE_MAG_FILTER = 0x2800,
GL_TEXTURE_MATRIX = 0x0BA8,
GL_TEXTURE_MAX_LEVEL = 0x813D,
GL_TEXTURE_MAX_LOD = 0x813B,
GL_TEXTURE_MIN_FILTER = 0x2801,
GL_TEXTURE_MIN_LOD = 0x813A,
GL_TEXTURE_PRIORITY = 0x8066,
GL_TEXTURE_RED_SIZE = 0x805C,
GL_TEXTURE_RESIDENT = 0x8067,
GL_TEXTURE_STACK_DEPTH = 0x0BA5,
GL_TEXTURE_WIDTH = 0x1000,
GL_TEXTURE_WRAP_R = 0x8072,
GL_TEXTURE_WRAP_S = 0x2802,
GL_TEXTURE_WRAP_T = 0x2803,
GL_TRANSFORM_BIT = 0x00001000,
GL_TRANSPOSE_COLOR_MATRIX = 0x84E6,
GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3,
GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4,
GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5,
GL_TRIANGLES = 0x0004,
GL_TRIANGLE_FAN = 0x0006,
GL_TRIANGLE_STRIP = 0x0005,
GL_TRUE = 0x1,
GL_UNPACK_ALIGNMENT = 0x0CF5,
GL_UNPACK_IMAGE_HEIGHT = 0x806E,
GL_UNPACK_LSB_FIRST = 0x0CF1,
GL_UNPACK_ROW_LENGTH = 0x0CF2,
GL_UNPACK_SKIP_IMAGES = 0x806D,
GL_UNPACK_SKIP_PIXELS = 0x0CF4,
GL_UNPACK_SKIP_ROWS = 0x0CF3,
GL_UNPACK_SWAP_BYTES = 0x0CF0,
GL_UNSIGNED_BYTE = 0x1401,
GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362,
GL_UNSIGNED_BYTE_3_3_2 = 0x8032,
GL_UNSIGNED_INT = 0x1405,
GL_UNSIGNED_INT_10_10_10_2 = 0x8036,
GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368,
GL_UNSIGNED_INT_8_8_8_8 = 0x8035,
GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367,
GL_UNSIGNED_SHORT = 0x1403,
GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366,
GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033,
GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365,
GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034,
GL_UNSIGNED_SHORT_5_6_5 = 0x8363,
GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364,
GL_UPPER_LEFT = 0x8CA2,
GL_V2F = 0x2A20,
GL_V3F = 0x2A21,
GL_VALIDATE_STATUS = 0x8B83,
GL_VENDOR = 0x1F00,
GL_VERSION = 0x1F02,
GL_VERTEX_ARRAY = 0x8074,
GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896,
GL_VERTEX_ARRAY_POINTER = 0x808E,
GL_VERTEX_ARRAY_SIZE = 0x807A,
GL_VERTEX_ARRAY_STRIDE = 0x807C,
GL_VERTEX_ARRAY_TYPE = 0x807B,
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F,
GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622,
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A,
GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645,
GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623,
GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624,
GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625,
GL_VERTEX_PROGRAM_POINT_SIZE = 0x8642,
GL_VERTEX_PROGRAM_TWO_SIDE = 0x8643,
GL_VERTEX_SHADER = 0x8B31,
GL_VIEWPORT = 0x0BA2,
GL_VIEWPORT_BIT = 0x00000800,
GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E,
GL_WRITE_ONLY = 0x88B9,
GL_XOR = 0x1506,
GL_ZERO = 0x1,
GL_ZOOM_X = 0x0D16,
GL_ZOOM_Y = 0x0D17,
GL_WIN_swap_hint = 0x1,
WGL_ATI_render_texture_rectangle = 0x1,
WGL_EXT_framebuffer_sRGB = 0x1,
WGL_EXT_pixel_format_packed_float = 0x1,
WGL_NV_gpu_affinity = 0x1,
WGL_ERROR_MISSING_AFFINITY_MASK_NV = 0x20D1,
WGL_NV_vertex_array_range = 0x1,
};
typedef char GLchar;
typedef char GLcharARB;
typedef double GLclampd;
typedef double GLdouble;
typedef float GLclampf;
typedef float GLfloat;
typedef int GLint;
typedef int GLsizei;
typedef long GLsizeiptr;
typedef long GLsizeiptrARB;
typedef short GLshort;
typedef signed char GLbyte;
typedef unsigned char GLboolean;
typedef unsigned char GLubyte;
typedef unsigned int GLbitfield;
typedef unsigned int GLenum;
typedef unsigned int GLuint;
typedef unsigned short GLhalf;
typedef unsigned short GLhalfARB;
typedef unsigned short GLushort;
typedef void *GLhandleARB;
typedef void GLvoid;
void glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, GLvoid **params);
void glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
void glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
void glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
void glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
void glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
void glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
void glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table);
void glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
void glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
void glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
void glResetHistogram (GLenum target);
void glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
void glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
void glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
void glResetMinmax (GLenum target);
void glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
void glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
void glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
void glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
void glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
void glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
void glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
void glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
void glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
void glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
void glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
void glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
void glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
void glCurrentPaletteMatrixARB (GLint index);
void glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
void glMatrixIndexubvARB (GLint size, GLubyte *indices);
void glMatrixIndexusvARB (GLint size, GLushort *indices);
void glMatrixIndexuivARB (GLint size, GLuint *indices);
void glActiveTextureARB (GLenum texture);
void glPointParameterfARB (GLenum pname, GLfloat param);
void glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table);
void glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void* img);
void glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image);
void glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values);
void glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble* v);
void glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat* v);
void glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint* v);
void glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values);
void glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat* values);
void glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint* values);
void glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort* values);
void glGetnPolygonStippleARB (GLsizei bufSize, GLubyte* pattern);
void glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, GLvoid*column, GLvoid*span);
void glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img);
void glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble* params);
void glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat* params);
void glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint* params);
void glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint* params);
void glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data);
void glActiveShaderProgram (GLuint pipeline, GLuint program);
void glBindProgramPipeline (GLuint pipeline);
GLuint glCreateShaderProgramv (GLenum type, GLsizei count, const char ** strings);
void glDeleteProgramPipelines (GLsizei n, const GLuint* pipelines);
void glGenProgramPipelines (GLsizei n, GLuint* pipelines);
void glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei* length, char *infoLog);
void glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint* params);
GLboolean glIsProgramPipeline (GLuint pipeline);
void glProgramUniform1d (GLuint program, GLint location, GLdouble x);
void glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble* value);
void glProgramUniform1f (GLuint program, GLint location, GLfloat x);
void glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat* value);
void glProgramUniform1i (GLuint program, GLint location, GLint x);
void glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint* value);
void glProgramUniform1ui (GLuint program, GLint location, GLuint x);
void glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint* value);
void glProgramUniform2d (GLuint program, GLint location, GLdouble x, GLdouble y);
void glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble* value);
void glProgramUniform2f (GLuint program, GLint location, GLfloat x, GLfloat y);
void glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat* value);
void glProgramUniform2i (GLuint program, GLint location, GLint x, GLint y);
void glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint* value);
void glProgramUniform2ui (GLuint program, GLint location, GLuint x, GLuint y);
void glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint* value);
void glProgramUniform3d (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z);
void glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble* value);
void glProgramUniform3f (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
void glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat* value);
void glProgramUniform3i (GLuint program, GLint location, GLint x, GLint y, GLint z);
void glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint* value);
void glProgramUniform3ui (GLuint program, GLint location, GLuint x, GLuint y, GLuint z);
void glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint* value);
void glProgramUniform4d (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble* value);
void glProgramUniform4f (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat* value);
void glProgramUniform4i (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
void glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint* value);
void glProgramUniform4ui (GLuint program, GLint location, GLuint x, GLuint y, GLuint z, GLuint w);
void glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint* value);
void glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value);
void glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
void glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
void glValidateProgramPipeline (GLuint pipeline);
void glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble* params);
void glVertexAttribL1d (GLuint index, GLdouble x);
void glVertexAttribL1dv (GLuint index, const GLdouble* v);
void glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
void glVertexAttribL2dv (GLuint index, const GLdouble* v);
void glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
void glVertexAttribL3dv (GLuint index, const GLdouble* v);
void glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glVertexAttribL4dv (GLuint index, const GLdouble* v);
void glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer);
void glTexBumpParameterivATI (GLenum pname, GLint *param);
void glTexBumpParameterfvATI (GLenum pname, GLfloat *param);
void glGetTexBumpParameterivATI (GLenum pname, GLint *param);
void glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param);
void* glMapObjectBufferATI (GLuint buffer);
void glUnmapObjectBufferATI (GLuint buffer);
void glPNTrianglesiATI (GLenum pname, GLint param);
void glPNTrianglesfATI (GLenum pname, GLfloat param);
void glStencilOpSeparateATI (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
void glStencilFuncSeparateATI (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
void glClientActiveVertexStreamATI (GLenum stream);
void glVertexBlendEnviATI (GLenum pname, GLint param);
void glVertexBlendEnvfATI (GLenum pname, GLfloat param);
void glVertexStream2sATI (GLenum stream, GLshort x, GLshort y);
void glVertexStream2svATI (GLenum stream, const GLshort *v);
void glVertexStream2iATI (GLenum stream, GLint x, GLint y);
void glVertexStream2ivATI (GLenum stream, const GLint *v);
void glVertexStream2fATI (GLenum stream, GLfloat x, GLfloat y);
void glVertexStream2fvATI (GLenum stream, const GLfloat *v);
void glVertexStream2dATI (GLenum stream, GLdouble x, GLdouble y);
void glVertexStream2dvATI (GLenum stream, const GLdouble *v);
void glVertexStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z);
void glVertexStream3svATI (GLenum stream, const GLshort *v);
void glVertexStream3iATI (GLenum stream, GLint x, GLint y, GLint z);
void glVertexStream3ivATI (GLenum stream, const GLint *v);
void glVertexStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
void glVertexStream3fvATI (GLenum stream, const GLfloat *v);
void glVertexStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
void glVertexStream3dvATI (GLenum stream, const GLdouble *v);
void glVertexStream4sATI (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w);
void glVertexStream4svATI (GLenum stream, const GLshort *v);
void glVertexStream4iATI (GLenum stream, GLint x, GLint y, GLint z, GLint w);
void glVertexStream4ivATI (GLenum stream, const GLint *v);
void glVertexStream4fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glVertexStream4fvATI (GLenum stream, const GLfloat *v);
void glVertexStream4dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glVertexStream4dvATI (GLenum stream, const GLdouble *v);
void glNormalStream3bATI (GLenum stream, GLbyte x, GLbyte y, GLbyte z);
void glNormalStream3bvATI (GLenum stream, const GLbyte *v);
void glNormalStream3sATI (GLenum stream, GLshort x, GLshort y, GLshort z);
void glNormalStream3svATI (GLenum stream, const GLshort *v);
void glNormalStream3iATI (GLenum stream, GLint x, GLint y, GLint z);
void glNormalStream3ivATI (GLenum stream, const GLint *v);
void glNormalStream3fATI (GLenum stream, GLfloat x, GLfloat y, GLfloat z);
void glNormalStream3fvATI (GLenum stream, const GLfloat *v);
void glNormalStream3dATI (GLenum stream, GLdouble x, GLdouble y, GLdouble z);
void glNormalStream3dvATI (GLenum stream, const GLdouble *v);
void glUniformBufferEXT (GLuint program, GLint location, GLuint buffer);
GLint glGetUniformBufferSizeEXT (GLuint program, GLint location);
void glDepthBoundsEXT (GLclampd zmin, GLclampd zmax);
void glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
void glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
void glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
void glFramebufferTextureLayerEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
void glFramebufferTextureFaceEXT (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
void glGetUniformuivEXT (GLuint program, GLint location, GLuint *params);
GLint glGetFragDataLocationEXT (GLuint program, const GLchar *name);
void glUniform1uiEXT (GLint location, GLuint v0);
void glUniform2uiEXT (GLint location, GLuint v0, GLuint v1);
void glUniform3uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2);
void glUniform4uiEXT (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
void glUniform1uivEXT (GLint location, GLsizei count, const GLuint *value);
void glUniform2uivEXT (GLint location, GLsizei count, const GLuint *value);
void glUniform3uivEXT (GLint location, GLsizei count, const GLuint *value);
void glUniform4uivEXT (GLint location, GLsizei count, const GLuint *value);
void glVertexAttribI1iEXT (GLuint index, GLint x);
void glVertexAttribI2iEXT (GLuint index, GLint x, GLint y);
void glVertexAttribI3iEXT (GLuint index, GLint x, GLint y, GLint z);
void glVertexAttribI4iEXT (GLuint index, GLint x, GLint y, GLint z, GLint w);
void glVertexAttribI1uiEXT (GLuint index, GLuint x);
void glVertexAttribI2uiEXT (GLuint index, GLuint x, GLuint y);
void glVertexAttribI3uiEXT (GLuint index, GLuint x, GLuint y, GLuint z);
void glVertexAttribI4uiEXT (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
void glVertexAttribI1ivEXT (GLuint index, const GLint *v);
void glVertexAttribI2ivEXT (GLuint index, const GLint *v);
void glVertexAttribI3ivEXT (GLuint index, const GLint *v);
void glVertexAttribI4ivEXT (GLuint index, const GLint *v);
void glVertexAttribI1uivEXT (GLuint index, const GLuint *v);
void glVertexAttribI2uivEXT (GLuint index, const GLuint *v);
void glVertexAttribI3uivEXT (GLuint index, const GLuint *v);
void glVertexAttribI4uivEXT (GLuint index, const GLuint *v);
void glVertexAttribI4bvEXT (GLuint index, const GLbyte *v);
void glVertexAttribI4svEXT (GLuint index, const GLshort *v);
void glVertexAttribI4ubvEXT (GLuint index, const GLubyte *v);
void glVertexAttribI4usvEXT (GLuint index, const GLushort *v);
void glVertexAttribIPointerEXT (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
void glGetVertexAttribIivEXT (GLuint index, GLenum pname, GLint *params);
void glGetVertexAttribIuivEXT (GLuint index, GLenum pname, GLuint *params);
void glPointParameterfEXT (GLenum pname, GLfloat param);
void glPointParameterfvEXT (GLenum pname, const GLfloat* params);
void glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
void glBeginVertexShaderEXT (void);
void glEndVertexShaderEXT (void);
void glBindVertexShaderEXT (GLuint id);
GLuint glGenVertexShadersEXT (GLuint range);
void glDeleteVertexShaderEXT (GLuint id);
void glShaderOp1EXT (GLenum op, GLuint res, GLuint arg1);
void glShaderOp2EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2);
void glShaderOp3EXT (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3);
void glSwizzleEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
void glWriteMaskEXT (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW);
void glInsertComponentEXT (GLuint res, GLuint src, GLuint num);
void glExtractComponentEXT (GLuint res, GLuint src, GLuint num);
GLuint glGenSymbolsEXT (GLenum dataType, GLenum storageType, GLenum range, GLuint components);
void glSetInvariantEXT (GLuint id, GLenum type, GLvoid *addr);
void glSetLocalConstantEXT (GLuint id, GLenum type, GLvoid *addr);
void glVariantbvEXT (GLuint id, GLbyte *addr);
void glVariantsvEXT (GLuint id, GLshort *addr);
void glVariantivEXT (GLuint id, GLint *addr);
void glVariantfvEXT (GLuint id, GLfloat *addr);
void glVariantdvEXT (GLuint id, GLdouble *addr);
void glVariantubvEXT (GLuint id, GLubyte *addr);
void glVariantusvEXT (GLuint id, GLushort *addr);
void glVariantuivEXT (GLuint id, GLuint *addr);
void glVariantPointerEXT (GLuint id, GLenum type, GLuint stride, GLvoid *addr);
void glEnableVariantClientStateEXT (GLuint id);
void glDisableVariantClientStateEXT (GLuint id);
GLuint glBindLightParameterEXT (GLenum light, GLenum value);
GLuint glBindMaterialParameterEXT (GLenum face, GLenum value);
GLuint glBindTexGenParameterEXT (GLenum unit, GLenum coord, GLenum value);
GLuint glBindTextureUnitParameterEXT (GLenum unit, GLenum value);
GLuint glBindParameterEXT (GLenum value);
GLboolean glIsVariantEnabledEXT (GLuint id, GLenum cap);
void glGetVariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
void glGetVariantIntegervEXT (GLuint id, GLenum value, GLint *data);
void glGetVariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
void glGetVariantPointervEXT (GLuint id, GLenum value, GLvoid **data);
void glGetInvariantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
void glGetInvariantIntegervEXT (GLuint id, GLenum value, GLint *data);
void glGetInvariantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
void glGetLocalConstantBooleanvEXT (GLuint id, GLenum value, GLboolean *data);
void glGetLocalConstantIntegervEXT (GLuint id, GLenum value, GLint *data);
void glGetLocalConstantFloatvEXT (GLuint id, GLenum value, GLfloat *data);
GLuint glBufferRegionEnabledEXT (void);
GLuint glNewBufferRegionEXT (GLenum region);
void glDeleteBufferRegionEXT (GLenum region);
void glReadBufferRegionEXT (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height);
void glDrawBufferRegionEXT (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height, GLint xDest, GLint yDest);
void glDepthRangedNV (GLdouble zNear, GLdouble zFar);
void glClearDepthdNV (GLdouble depth);
void glDepthBoundsdNV (GLdouble zmin, GLdouble zmax);
void glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height);
void glProgramVertexLimitNV (GLenum target, GLint limit);
void glProgramLocalParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
void glProgramLocalParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
void glProgramLocalParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
void glProgramLocalParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
void glProgramLocalParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
void glProgramLocalParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
void glProgramEnvParameterI4iNV (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w);
void glProgramEnvParameterI4ivNV (GLenum target, GLuint index, const GLint *params);
void glProgramEnvParametersI4ivNV (GLenum target, GLuint index, GLsizei count, const GLint *params);
void glProgramEnvParameterI4uiNV (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
void glProgramEnvParameterI4uivNV (GLenum target, GLuint index, const GLuint *params);
void glProgramEnvParametersI4uivNV (GLenum target, GLuint index, GLsizei count, const GLuint *params);
void glProgramBufferParametersfvNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params);
void glProgramBufferParametersIivNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params);
void glProgramBufferParametersIuivNV (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params);
void glGetVideoivNV (GLuint video_slot, GLenum pname, GLint* params);
void glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint* params);
void glBeginTransformFeedbackNV (GLenum primitiveMode);
void glEndTransformFeedbackNV (void);
void glTransformFeedbackAttribsNV (GLuint count, const GLint *attribs, GLenum bufferMode);
void glBindBufferBaseNV (GLenum target, GLuint index, GLuint buffer);
void glTransformFeedbackVaryingsNV (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
void glActiveVaryingNV (GLuint program, const GLchar *name);
GLint glGetVaryingLocationNV (GLuint program, const GLchar *name);
void glGetActiveVaryingNV (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
void glGetTransformFeedbackVaryingNV (GLuint program, GLuint index, GLint *location);
void glVDPAUFiniNV (void);
void glVDPAUInitNV (const void* vdpDevice, const GLvoid*getProcAddress);
void glReadVideoPixelsSUN (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
void glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
void glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
void glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
void glActiveTexture (GLenum texture);
void glClientActiveTexture (GLenum texture);
void glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
void glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
void glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
void glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
void glGetCompressedTexImage (GLenum target, GLint lod, GLvoid *img);
void glMultiTexCoord1d (GLenum target, GLdouble s);
void glMultiTexCoord1dv (GLenum target, const GLdouble *v);
void glMultiTexCoord1f (GLenum target, GLfloat s);
void glMultiTexCoord1fv (GLenum target, const GLfloat *v);
void glMultiTexCoord1i (GLenum target, GLint s);
void glMultiTexCoord1iv (GLenum target, const GLint *v);
void glMultiTexCoord1s (GLenum target, GLshort s);
void glMultiTexCoord1sv (GLenum target, const GLshort *v);
void glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
void glMultiTexCoord2dv (GLenum target, const GLdouble *v);
void glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
void glMultiTexCoord2fv (GLenum target, const GLfloat *v);
void glMultiTexCoord2i (GLenum target, GLint s, GLint t);
void glMultiTexCoord2iv (GLenum target, const GLint *v);
void glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
void glMultiTexCoord2sv (GLenum target, const GLshort *v);
void glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
void glMultiTexCoord3dv (GLenum target, const GLdouble *v);
void glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
void glMultiTexCoord3fv (GLenum target, const GLfloat *v);
void glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
void glMultiTexCoord3iv (GLenum target, const GLint *v);
void glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
void glMultiTexCoord3sv (GLenum target, const GLshort *v);
void glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
void glMultiTexCoord4dv (GLenum target, const GLdouble *v);
void glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
void glMultiTexCoord4fv (GLenum target, const GLfloat *v);
void glMultiTexCoord4iv (GLenum target, const GLint *v);
void glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
void glMultiTexCoord4sv (GLenum target, const GLshort *v);
void glSampleCoverage (GLclampf value, GLboolean invert);
void glBlendEquation (GLenum mode);
void glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
void glFogCoordf (GLfloat coord);
void glFogCoordfv (const GLfloat *coord);
void glFogCoordd (GLdouble coord);
void glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
void glPointParameteri (GLenum pname, GLint param);
void glPointParameteriv (GLenum pname, const GLint *params);
void glPointParameterf (GLenum pname, GLfloat param);
void glPointParameterfv (GLenum pname, const GLfloat *params);
void glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
void glSecondaryColor3bv (const GLbyte *v);
void glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
void glSecondaryColor3dv (const GLdouble *v);
void glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
void glSecondaryColor3fv (const GLfloat *v);
void glSecondaryColor3i (GLint red, GLint green, GLint blue);
void glSecondaryColor3iv (const GLint *v);
void glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
void glSecondaryColor3sv (const GLshort *v);
void glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
void glSecondaryColor3ubv (const GLubyte *v);
void glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
void glSecondaryColor3uiv (const GLuint *v);
void glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
void glSecondaryColor3usv (const GLushort *v);
void glWindowPos2d (GLdouble x, GLdouble y);
void glWindowPos2f (GLfloat x, GLfloat y);
void glWindowPos2i (GLint x, GLint y);
void glWindowPos2s (GLshort x, GLshort y);
void glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
void glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
void glWindowPos3i (GLint x, GLint y, GLint z);
void glWindowPos3s (GLshort x, GLshort y, GLshort z);
GLboolean glIsQuery (GLuint id);
void glBeginQuery (GLenum target, GLuint id);
void glEndQuery (GLenum target);
void glBindBuffer (GLenum target, GLuint buffer);
GLboolean glIsBuffer (GLuint buffer);
GLboolean glUnmapBuffer (GLenum target);
void glAttachShader (GLuint program, GLuint shader);
void glCompileShader (GLuint shader);
GLuint glCreateProgram (void);
GLuint glCreateShader (GLenum type);
void glDeleteProgram (GLuint program);
void glDeleteShader (GLuint shader);
void glDetachShader (GLuint program, GLuint shader);
GLboolean glIsProgram (GLuint program);
GLboolean glIsShader (GLuint shader);
void glLinkProgram (GLuint program);
void glUseProgram (GLuint program);
void glUniform1f (GLint location, GLfloat v0);
void glUniform1i (GLint location, GLint v0);
void glUniform2f (GLint location, GLfloat v0, GLfloat v1);
void glUniform2i (GLint location, GLint v0, GLint v1);
void glUniform2iv (GLint location, GLsizei count, const GLint* value);
void glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
void glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
void glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
void glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
void glValidateProgram (GLuint program);
void glVertexAttrib1d (GLuint index, GLdouble x);
void glVertexAttrib1f (GLuint index, GLfloat x);
void glVertexAttrib1s (GLuint index, GLshort x);
void glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
void glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
void glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
void glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
void glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
void glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
void glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
void glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
void glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glColorMaski (GLuint param1, GLboolean param2, GLboolean param3, GLboolean param4, GLboolean param5);
void glGetBooleani_v (GLenum param1, GLuint param2, GLboolean* param3);
void glEnablei (GLenum param1, GLuint param2);
void glDisablei (GLenum param1, GLuint param2);
GLboolean glIsEnabledi (GLenum param1, GLuint param2);
void glBeginTransformFeedback (GLenum param1);
void glEndTransformFeedback (void);
void glTransformFeedbackVaryings (GLuint param1, GLsizei param2, const GLchar ** param3, GLenum param4);
void glGetTransformFeedbackVarying (GLuint param1, GLuint param2, GLint* param3);
void glClampColor (GLenum param1, GLenum param2);
void glBeginConditionalRender (GLuint param1, GLenum param2);
void glEndConditionalRender (void);
void glVertexAttribI1i (GLuint param1, GLint param2);
void glVertexAttribI2i (GLuint param1, GLint param2, GLint param3);
void glVertexAttribI3i (GLuint param1, GLint param2, GLint param3, GLint param4);
void glVertexAttribI4i (GLuint param1, GLint param2, GLint param3, GLint param4, GLint param5);
void glVertexAttribI1ui (GLuint param1, GLuint param2);
void glVertexAttribI2ui (GLuint param1, GLuint param2, GLuint param3);
void glVertexAttribI3ui (GLuint param1, GLuint param2, GLuint param3, GLuint param4);
void glVertexAttribI4ui (GLuint param1, GLuint param2, GLuint param3, GLuint param4, GLuint param5);
void glVertexAttribI1iv (GLuint param1, const GLint* param2);
void glVertexAttribI2iv (GLuint param1, const GLint* param2);
void glVertexAttribI3iv (GLuint param1, const GLint* param2);
void glVertexAttribI4iv (GLuint param1, const GLint* param2);
void glVertexAttribI1uiv (GLuint param1, const GLuint* param2);
void glVertexAttribI2uiv (GLuint param1, const GLuint* param2);
void glVertexAttribI3uiv (GLuint param1, const GLuint* param2);
void glVertexAttribI4uiv (GLuint param1, const GLuint* param2);
void glVertexAttribI4bv (GLuint param1, const GLbyte* param2);
void glVertexAttribI4sv (GLuint param1, const GLshort* param2);
void glVertexAttribI4ubv (GLuint param1, const GLubyte* param2);
void glVertexAttribI4usv (GLuint param1, const GLushort* param2);
void glVertexAttribIPointer (GLuint param1, GLint param2, GLenum param3, GLsizei param4, const GLvoid* param5);
void glGetVertexAttribIiv (GLuint param1, GLenum param2, GLint* param3);
void glGetVertexAttribIuiv (GLuint param1, GLenum param2, GLuint* param3);
void glGetUniformuiv (GLuint param1, GLint param2, GLuint* param3);
void glBindFragDataLocation (GLuint param1, GLuint param2, const GLchar* param3);
GLint glGetFragDataLocation (GLuint param1, const GLchar* param2);
void glUniform1ui (GLint param1, GLuint param2);
void glUniform2ui (GLint param1, GLuint param2, GLuint param3);
void glUniform3ui (GLint param1, GLuint param2, GLuint param3, GLuint param4);
void glUniform4ui (GLint param1, GLuint param2, GLuint param3, GLuint param4, GLuint param5);
void glUniform1uiv (GLint param1, GLsizei param2, const GLuint* param3);
void glUniform2uiv (GLint param1, GLsizei param2, const GLuint* param3);
void glUniform3uiv (GLint param1, GLsizei param2, const GLuint* param3);
void glUniform4uiv (GLint param1, GLsizei param2, const GLuint* param3);
void glTexParameterIiv (GLenum param1, GLenum param2, const GLint* param3);
void glTexParameterIuiv (GLenum param1, GLenum param2, const GLuint* param3);
void glGetTexParameterIiv (GLenum param1, GLenum param2, GLint* param3);
void glGetTexParameterIuiv (GLenum param1, GLenum param2, GLuint* param3);
void glClearBufferiv (GLenum param1, GLint param2, const GLint* param3);
void glClearBufferuiv (GLenum param1, GLint param2, const GLuint* param3);
void glClearBufferfv (GLenum param1, GLint param2, const GLfloat* param3);
void glClearBufferfi (GLenum param1, GLint param2, GLfloat param3, GLint param4);
const GLubyte* glGetStringi (GLenum param1, GLuint param2);
void glDrawArraysInstanced (GLenum param1, GLint param2, GLsizei param3, GLsizei param4);
void glDrawElementsInstanced (GLenum param1, GLsizei param2, GLenum param3, const GLvoid* param4, GLsizei param5);
void glTexBuffer (GLenum param1, GLenum param2, GLuint param3);
void glPrimitiveRestartIndex (GLuint param1);
void glFramebufferTexture (GLenum param1, GLenum param2, GLuint param3, GLint param4);
void glVertexAttribDivisor (GLuint index, GLuint divisor);
void glMinSampleShading (GLclampf value);
void glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
void glBlendEquationi (GLuint buf, GLenum mode);
void glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
void glBlendFunci (GLuint buf, GLenum src, GLenum dst);
void glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image);
GLboolean glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
GLboolean glIsBufferARB (GLuint buffer);
GLboolean glIsEnabled (GLenum cap);
GLboolean glIsEnabledIndexedEXT (GLenum target, GLuint index);
GLboolean glIsFenceAPPLE (GLuint fence);
GLboolean glIsFramebuffer (GLuint);
GLboolean glIsFramebufferEXT (GLuint framebuffer);
GLboolean glIsList (GLuint list);
GLboolean glIsProgramARB (GLuint program);
GLboolean glIsQueryARB (GLuint id);
GLboolean glIsRenderbuffer (GLuint);
GLboolean glIsRenderbufferEXT (GLuint renderbuffer);
GLboolean glIsTexture (GLuint texture);
GLboolean glIsVertexArrayAPPLE (GLuint id);
GLboolean glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname);
GLboolean glTestFenceAPPLE (GLuint fence);
GLboolean glTestObjectAPPLE (GLenum object, GLuint name);
GLboolean glUnmapBufferARB (GLenum target);
GLenum glCheckFramebufferStatus (GLenum);
GLenum glCheckFramebufferStatusEXT (GLenum target);
GLenum glGetError (void);
GLenum glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
GLenum glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
GLhandleARB glCreateProgramObjectARB (void);
GLhandleARB glCreateShaderObjectARB (GLenum shaderType);
GLhandleARB glGetHandleARB (GLenum pname);
GLint glGetAttribLocation (GLuint program, const GLchar *name);
GLint glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name);
GLint glGetUniformLocation (GLuint program, const GLchar *name);
GLint glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name);
GLint glRenderMode (GLenum mode) ;
GLuint glGenLists (GLsizei range);
GLuint glGetUniformBlockIndex (GLuint program, const GLchar* uniformBlockName);
GLvoid * glMapBuffer (GLenum target, GLenum access);
GLvoid * glMapBufferARB (GLenum target, GLenum access);
const GLubyte * glGetString (GLenum name);
void glAccum (GLenum op, GLfloat value);
void glActiveStencilFaceEXT (GLenum face);
void glAlphaFunc (GLenum func, GLclampf ref);
void glArrayElement (GLint i);
void glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj);
void glBegin (GLenum mode);
void glBeginConditionalRenderNV (GLuint id, GLenum mode);
void glBeginQueryARB (GLenum target, GLuint id);
void glBeginTransformFeedbackEXT (GLenum primitiveMode);
void glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
void glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name);
void glBindBufferARB (GLenum target, GLuint buffer);
void glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
void glBindBufferBaseEXT (GLenum target, GLuint index, GLuint buffer);
void glBindFragDataLocationEXT (GLuint program, GLuint colorNumber, const GLchar *name);
void glBindFramebuffer (GLenum, GLuint);
void glBindFramebufferEXT (GLenum target, GLuint framebuffer);
void glBindProgramARB (GLenum target, GLuint program);
void glBindRenderbuffer (GLenum, GLuint);
void glBindRenderbufferEXT (GLenum target, GLuint renderbuffer);
void glBindTexture (GLenum target, GLuint texture);
void glBindVertexArrayAPPLE (GLuint id);
void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
void glBlendColorEXT (GLclampf, GLclampf, GLclampf, GLclampf);
void glBlendEquationEXT (GLenum);
void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
void glBlendEquationSeparateATI (GLenum equationRGB, GLenum equationAlpha);
void glBlendEquationSeparateEXT (GLenum modeRGB, GLenum modeAlpha);
void glBlendFunc (GLenum sfactor, GLenum dfactor);
void glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
void glBlendFuncSeparateEXT (GLenum, GLenum, GLenum, GLenum);
void glBlitFramebuffer (GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
void glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
void glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
void glBufferDataARB (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage);
void glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param);
void glCallList (GLuint list);
void glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
void glClampColorARB (GLenum target, GLenum clamp);
void glClear (GLbitfield mask);
void glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
void glClearColorIiEXT ( GLint r, GLint g, GLint b, GLint a );
void glClearColorIuiEXT ( GLuint r, GLuint g, GLuint b, GLuint a );
void glClearDepth (GLclampd depth);
void glClearIndex (GLfloat c);
void glClearStencil (GLint s);
void glClientActiveTextureARB (GLenum);
void glClipPlane (GLenum plane, const GLdouble *equation);
void glColor3b (GLbyte red, GLbyte green, GLbyte blue);
void glColor3bv (const GLbyte *v);
void glColor3d (GLdouble red, GLdouble green, GLdouble blue);
void glColor3dv (const GLdouble *v);
void glColor3f (GLfloat red, GLfloat green, GLfloat blue);
void glColor3fv (const GLfloat *v);
void glColor3i (GLint red, GLint green, GLint blue);
void glColor3iv (const GLint *v);
void glColor3s (GLshort red, GLshort green, GLshort blue);
void glColor3sv (const GLshort *v);
void glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
void glColor3ubv (const GLubyte *v);
void glColor3ui (GLuint red, GLuint green, GLuint blue);
void glColor3uiv (const GLuint *v);
void glColor3us (GLushort red, GLushort green, GLushort blue);
void glColor3usv (const GLushort *v);
void glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
void glColor4bv (const GLbyte *v);
void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
void glColor4dv (const GLdouble *v);
void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
void glColor4fv (const GLfloat *v);
void glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
void glColor4iv (const GLint *v);
void glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
void glColor4sv (const GLshort *v);
void glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
void glColor4ubv (const GLubyte *v);
void glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
void glColor4uiv (const GLuint *v);
void glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
void glColor4usv (const GLushort *v);
void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
void glColorMaskIndexedEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
void glColorMaterial (GLenum face, GLenum mode);
void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
void glCompileShaderARB (GLhandleARB shaderObj);
void glCompressedTexImage1DARB (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *);
void glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
void glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
void glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *);
void glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
void glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
void glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
void glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
void glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
void glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
void glCullFace (GLenum mode);
void glDeleteBuffers (GLsizei n, const GLuint *buffers);
void glDeleteBuffersARB (GLsizei n, const GLuint *buffers);
void glDeleteFencesAPPLE (GLsizei n, const GLuint *fences);
void glDeleteFramebuffers (GLsizei, const GLuint *);
void glDeleteFramebuffersEXT (GLsizei n, const GLuint *framebuffers);
void glDeleteLists (GLuint list, GLsizei range);
void glDeleteObjectARB (GLhandleARB obj);
void glDeleteProgramsARB (GLsizei n, const GLuint *programs);
void glDeleteQueries (GLsizei n, const GLuint *ids);
void glDeleteQueriesARB (GLsizei n, const GLuint *ids);
void glDeleteRenderbuffers (GLsizei, const GLuint *);
void glDeleteRenderbuffersEXT (GLsizei n, const GLuint *renderbuffers);
void glDeleteTextures (GLsizei n, const GLuint *textures);
void glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *ids);
void glDepthFunc (GLenum func);
void glDepthMask (GLboolean flag);
void glDepthRange (GLclampd zNear, GLclampd zFar);
void glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj);
void glDisable (GLenum cap);
void glDisableClientState (GLenum array);
void glDisableIndexedEXT (GLenum target, GLuint index);
void glDisableVertexAttribAPPLE (GLuint index, GLenum pname);
void glDisableVertexAttribArray (GLuint index);
void glDisableVertexAttribArrayARB (GLuint index);
void glDrawArrays (GLenum mode, GLint first, GLsizei count);
void glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
void glDrawBuffer (GLenum mode);
void glDrawBuffers (GLsizei n, const GLenum *bufs);
void glDrawBuffersARB (GLsizei n, const GLenum *bufs);
void glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count);
void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
void glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
void glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
void glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
void glDrawRangeElementsEXT (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *);
void glEdgeFlag (GLboolean flag);
void glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
void glEdgeFlagv (const GLboolean *flag);
void glElementPointerAPPLE (GLenum type, const GLvoid *pointer);
void glEnable (GLenum cap);
void glEnableClientState (GLenum array);
void glEnableIndexedEXT (GLenum target, GLuint index);
void glEnableVertexAttribAPPLE (GLuint index, GLenum pname);
void glEnableVertexAttribArray (GLuint index);
void glEnableVertexAttribArrayARB (GLuint index);
void glEnd (void);
void glEndConditionalRenderNV (void);
void glEndList (void);
void glEndQueryARB (GLenum target);
void glEndTransformFeedbackEXT (void);
void glEvalCoord1d (GLdouble u);
void glEvalCoord1dv (const GLdouble *u);
void glEvalCoord1f (GLfloat u);
void glEvalCoord1fv (const GLfloat *u);
void glEvalCoord2d (GLdouble u, GLdouble v);
void glEvalCoord2dv (const GLdouble *u);
void glEvalCoord2f (GLfloat u, GLfloat v);
void glEvalCoord2fv (const GLfloat *u);
void glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
void glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
void glEvalPoint1 (GLint i);
void glEvalPoint2 (GLint i, GLint j);
void glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
void glFinish (void);
void glFinishFenceAPPLE (GLuint fence);
void glFinishObjectAPPLE (GLenum object, GLuint name);
void glFinishRenderAPPLE (void);
void glFlush (void);
void glFlushRenderAPPLE (void);
void glFlushVertexArrayRangeAPPLE (GLsizei length, const GLvoid *pointer);
void glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *);
void glFogCoorddEXT (GLdouble);
void glFogCoorddv (const GLdouble * coord);
void glFogCoorddvEXT (const GLdouble *);
void glFogCoordfEXT (GLfloat);
void glFogCoordfvEXT (const GLfloat *);
void glFogf (GLenum pname, GLfloat param);
void glFogfv (GLenum pname, const GLfloat *params);
void glFogi (GLenum pname, GLint param);
void glFogiv (GLenum pname, const GLint *params);
void glFramebufferRenderbuffer (GLenum, GLenum, GLenum, GLuint);
void glFramebufferRenderbufferEXT (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
void glFramebufferTexture1D (GLenum, GLenum, GLenum, GLuint, GLint);
void glFramebufferTexture1DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
void glFramebufferTexture2D (GLenum, GLenum, GLenum, GLuint, GLint);
void glFramebufferTexture2DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
void glFramebufferTexture3D (GLenum, GLenum, GLenum, GLuint, GLint, GLint);
void glFramebufferTexture3DEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
void glFramebufferTextureLayer (GLenum, GLenum, GLuint, GLint, GLint);
void glFrontFace (GLenum mode);
void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
void glGenBuffers (GLsizei n, GLuint *buffers);
void glGenBuffersARB (GLsizei n, GLuint *buffers);
void glGenFencesAPPLE (GLsizei n, GLuint *fences);
void glGenFramebuffers (GLsizei, GLuint *);
void glGenFramebuffersEXT (GLsizei n, GLuint *framebuffers);
void glGenProgramsARB (GLsizei n, GLuint *programs);
void glGenQueries (GLsizei n, GLuint *ids);
void glGenQueriesARB (GLsizei n, GLuint *ids);
void glGenRenderbuffers (GLsizei, GLuint *);
void glGenRenderbuffersEXT (GLsizei n, GLuint *renderbuffers);
void glGenTextures (GLsizei n, GLuint *textures);
void glGenVertexArraysAPPLE (GLsizei n, GLuint *ids);
void glGenerateMipmap (GLenum);
void glGenerateMipmapEXT (GLenum target);
void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
void glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
void glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
void glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName);
void glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params);
void glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName);
void glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params);
void glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
void glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
void glGetBooleanIndexedvEXT (GLenum param, GLuint index, GLboolean *values);
void glGetBooleanv (GLenum pname, GLboolean *params);
void glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
void glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params);
void glGetBufferPointerv (GLenum target, GLenum pname, GLvoid **params);
void glGetBufferPointervARB (GLenum target, GLenum pname, GLvoid **params);
void glGetClipPlane (GLenum plane, GLdouble *equation);
void glGetCompressedTexImageARB (GLenum, GLint, GLvoid *);
void glGetDoublev (GLenum pname, GLdouble *params);
void glGetFloatv (GLenum pname, GLfloat *params);
void glGetFramebufferAttachmentParameteriv (GLenum, GLenum, GLenum, GLint *);
void glGetFramebufferAttachmentParameterivEXT (GLenum target, GLenum attachment, GLenum pname, GLint *params);
void glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
void glGetIntegerIndexedvEXT (GLenum param, GLuint index, GLint *values);
void glGetIntegeri_v (GLenum pname, GLuint index, GLint* data);
void glGetIntegerv (GLenum pname, GLint *params);
void glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
void glGetLightiv (GLenum light, GLenum pname, GLint *params);
void glGetMapdv (GLenum target, GLenum query, GLdouble *v);
void glGetMapfv (GLenum target, GLenum query, GLfloat *v);
void glGetMapiv (GLenum target, GLenum query, GLint *v);
void glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
void glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
void glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
void glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params);
void glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint* params);
void glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params);
void glGetPixelMapfv (GLenum map, GLfloat *values);
void glGetPixelMapuiv (GLenum map, GLuint *values);
void glGetPixelMapusv (GLenum map, GLushort *values);
void glGetPointerv (GLenum pname, GLvoid* *params);
void glGetPolygonStipple (GLubyte *mask);
void glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
void glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
void glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
void glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
void glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
void glGetProgramStringARB (GLenum target, GLenum pname, GLvoid *string);
void glGetProgramiv (GLuint program, GLenum pname, GLint *params);
void glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
void glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
void glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params);
void glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
void glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params);
void glGetQueryiv (GLenum target, GLenum pname, GLint *params);
void glGetQueryivARB (GLenum target, GLenum pname, GLint *params);
void glGetRenderbufferParameteriv (GLenum, GLenum, GLint *);
void glGetRenderbufferParameterivEXT (GLenum target, GLenum pname, GLint *params);
void glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
void glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
void glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
void glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
void glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
void glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
void glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
void glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
void glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
void glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
void glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
void glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
void glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
void glGetTexParameterIivEXT ( GLenum target, GLenum pname, GLint *params);
void glGetTexParameterIuivEXT ( GLenum target, GLenum pname, GLuint *params);
void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
void glGetTransformFeedbackVaryingEXT (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
void glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar** uniformNames, GLuint* uniformIndices);
void glGetUniformfv (GLuint program, GLint location, GLfloat *params);
void glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params);
void glGetUniformiv (GLuint program, GLint location, GLint *params);
void glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params);
void glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer);
void glGetVertexAttribPointervARB (GLuint index, GLenum pname, GLvoid **pointer);
void glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
void glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params);
void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
void glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params);
void glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
void glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params);
void glHint (GLenum target, GLenum mode);
void glIndexMask (GLuint mask);
void glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
void glIndexd (GLdouble c);
void glIndexdv (const GLdouble *c);
void glIndexf (GLfloat c);
void glIndexfv (const GLfloat *c);
void glIndexi (GLint c);
void glIndexiv (const GLint *c);
void glIndexs (GLshort c);
void glIndexsv (const GLshort *c);
void glIndexub (GLubyte c);
void glIndexubv (const GLubyte *c);
void glInitNames (void);
void glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
void glLightModelf (GLenum pname, GLfloat param);
void glLightModelfv (GLenum pname, const GLfloat *params);
void glLightModeli (GLenum pname, GLint param);
void glLightModeliv (GLenum pname, const GLint *params);
void glLightf (GLenum light, GLenum pname, GLfloat param);
void glLightfv (GLenum light, GLenum pname, const GLfloat *params);
void glLighti (GLenum light, GLenum pname, GLint param);
void glLightiv (GLenum light, GLenum pname, const GLint *params);
void glLineStipple (GLint factor, GLushort pattern);
void glLineWidth (GLfloat width);
void glLinkProgramARB (GLhandleARB programObj);
void glListBase (GLuint base);
void glLoadIdentity (void);
void glLoadMatrixd (const GLdouble *m);
void glLoadMatrixf (const GLfloat *m);
void glLoadName (GLuint name);
void glLoadTransposeMatrixd (const GLdouble *m);
void glLoadTransposeMatrixdARB (const GLdouble *);
void glLoadTransposeMatrixf (const GLfloat *m);
void glLoadTransposeMatrixfARB (const GLfloat *);
void glLockArraysEXT (GLint, GLsizei);
void glLogicOp (GLenum opcode);
void glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
void glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
void glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
void glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
void glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
void glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
void glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
void glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
void glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
void glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
void glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
void glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
void glMaterialf (GLenum face, GLenum pname, GLfloat param);
void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
void glMateriali (GLenum face, GLenum pname, GLint param);
void glMaterialiv (GLenum face, GLenum pname, const GLint *params);
void glMatrixMode (GLenum mode);
void glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
void glMultMatrixd (const GLdouble *m);
void glMultMatrixf (const GLfloat *m);
void glMultTransposeMatrixd (const GLdouble *m);
void glMultTransposeMatrixdARB (const GLdouble *);
void glMultTransposeMatrixf (const GLfloat *m);
void glMultTransposeMatrixfARB (const GLfloat *);
void glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
void glMultiDrawArraysEXT (GLenum, const GLint *, const GLsizei *, GLsizei);
void glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
void glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
void glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
void glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
void glMultiTexCoord1dARB (GLenum, GLdouble);
void glMultiTexCoord1dvARB (GLenum, const GLdouble *);
void glMultiTexCoord1fARB (GLenum, GLfloat);
void glMultiTexCoord1fvARB (GLenum, const GLfloat *);
void glMultiTexCoord1iARB (GLenum, GLint);
void glMultiTexCoord1ivARB (GLenum, const GLint *);
void glMultiTexCoord1sARB (GLenum, GLshort);
void glMultiTexCoord1svARB (GLenum, const GLshort *);
void glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble);
void glMultiTexCoord2dvARB (GLenum, const GLdouble *);
void glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat);
void glMultiTexCoord2fvARB (GLenum, const GLfloat *);
void glMultiTexCoord2iARB (GLenum, GLint, GLint);
void glMultiTexCoord2ivARB (GLenum, const GLint *);
void glMultiTexCoord2sARB (GLenum, GLshort, GLshort);
void glMultiTexCoord2svARB (GLenum, const GLshort *);
void glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble, GLdouble);
void glMultiTexCoord3dvARB (GLenum, const GLdouble *);
void glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat, GLfloat);
void glMultiTexCoord3fvARB (GLenum, const GLfloat *);
void glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint);
void glMultiTexCoord3ivARB (GLenum, const GLint *);
void glMultiTexCoord3sARB (GLenum, GLshort, GLshort, GLshort);
void glMultiTexCoord3svARB (GLenum, const GLshort *);
void glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
void glMultiTexCoord4dvARB (GLenum, const GLdouble *);
void glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
void glMultiTexCoord4fvARB (GLenum, const GLfloat *);
void glMultiTexCoord4i (GLenum target, GLint, GLint s, GLint t, GLint r);
void glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint, GLint);
void glMultiTexCoord4ivARB (GLenum, const GLint *);
void glMultiTexCoord4sARB (GLenum, GLshort, GLshort, GLshort, GLshort);
void glMultiTexCoord4svARB (GLenum, const GLshort *);
void glNewList (GLuint list, GLenum mode);
void glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
void glNormal3bv (const GLbyte *v);
void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
void glNormal3dv (const GLdouble *v);
void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
void glNormal3fv (const GLfloat *v);
void glNormal3i (GLint nx, GLint ny, GLint nz);
void glNormal3iv (const GLint *v);
void glNormal3s (GLshort nx, GLshort ny, GLshort nz);
void glNormal3sv (const GLshort *v);
void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
void glPNTrianglesfATIX (GLenum pname, GLfloat param);
void glPNTrianglesiATIX (GLenum pname, GLint param);
void glPassThrough (GLfloat token);
void glPixelMapfv (GLenum map, GLint mapsize, const GLfloat *values);
void glPixelMapuiv (GLenum map, GLint mapsize, const GLuint *values);
void glPixelMapusv (GLenum map, GLint mapsize, const GLushort *values);
void glPixelStoref (GLenum pname, GLfloat param);
void glPixelStorei (GLenum pname, GLint param);
void glPixelTransferf (GLenum pname, GLfloat param);
void glPixelTransferi (GLenum pname, GLint param);
void glPixelZoom (GLfloat xfactor, GLfloat yfactor);
void glPointParameterfvARB (GLenum pname, const GLfloat *params);
void glPointParameteriNV (GLenum pname, GLint param);
void glPointParameterivNV (GLenum pname, const GLint *params);
void glPointSize (GLfloat size);
void glPolygonMode (GLenum face, GLenum mode);
void glPolygonOffset (GLfloat factor, GLfloat units);
void glPolygonStipple (const GLubyte *mask);
void glPopAttrib (void);
void glPopClientAttrib (void);
void glPopMatrix (void);
void glPopName (void);
void glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
void glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
void glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
void glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
void glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
void glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
void glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat *params);
void glProgramStringARB (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
void glProvokingVertexEXT (GLenum mode);
void glPushAttrib (GLbitfield mask);
void glPushClientAttrib (GLbitfield mask);
void glPushMatrix (void);
void glPushName (GLuint name);
void glRasterPos2d (GLdouble x, GLdouble y);
void glRasterPos2dv (const GLdouble *v);
void glRasterPos2f (GLfloat x, GLfloat y);
void glRasterPos2fv (const GLfloat *v);
void glRasterPos2i (GLint x, GLint y);
void glRasterPos2iv (const GLint *v);
void glRasterPos2s (GLshort x, GLshort y);
void glRasterPos2sv (const GLshort *v);
void glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
void glRasterPos3dv (const GLdouble *v);
void glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
void glRasterPos3fv (const GLfloat *v);
void glRasterPos3i (GLint x, GLint y, GLint z);
void glRasterPos3iv (const GLint *v);
void glRasterPos3s (GLshort x, GLshort y, GLshort z);
void glRasterPos3sv (const GLshort *v);
void glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glRasterPos4dv (const GLdouble *v);
void glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glRasterPos4fv (const GLfloat *v);
void glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
void glRasterPos4iv (const GLint *v);
void glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
void glRasterPos4sv (const GLshort *v);
void glReadBuffer (GLenum mode);
void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
void glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
void glRectdv (const GLdouble *v1, const GLdouble *v2);
void glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
void glRectfv (const GLfloat *v1, const GLfloat *v2);
void glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
void glRectiv (const GLint *v1, const GLint *v2);
void glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
void glRectsv (const GLshort *v1, const GLshort *v2);
void glRenderbufferStorage (GLenum, GLenum, GLsizei, GLsizei);
void glRenderbufferStorageEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
void glRenderbufferStorageMultisample (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
void glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
void glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
void glSampleCoverageARB (GLclampf, GLboolean);
void glSamplePass (GLenum pass);
void glSamplePassARB (GLenum);
void glScaled (GLdouble x, GLdouble y, GLdouble z);
void glScalef (GLfloat x, GLfloat y, GLfloat z);
void glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
void glSecondaryColor3bEXT (GLbyte, GLbyte, GLbyte);
void glSecondaryColor3bvEXT (const GLbyte *);
void glSecondaryColor3dEXT (GLdouble, GLdouble, GLdouble);
void glSecondaryColor3dvEXT (const GLdouble *);
void glSecondaryColor3fEXT (GLfloat, GLfloat, GLfloat);
void glSecondaryColor3fvEXT (const GLfloat *);
void glSecondaryColor3iEXT (GLint, GLint, GLint);
void glSecondaryColor3ivEXT (const GLint *);
void glSecondaryColor3sEXT (GLshort, GLshort, GLshort);
void glSecondaryColor3svEXT (const GLshort *);
void glSecondaryColor3ubEXT (GLubyte, GLubyte, GLubyte);
void glSecondaryColor3ubvEXT (const GLubyte *);
void glSecondaryColor3uiEXT (GLuint, GLuint, GLuint);
void glSecondaryColor3uivEXT (const GLuint *);
void glSecondaryColor3usEXT (GLushort, GLushort, GLushort);
void glSecondaryColor3usvEXT (const GLushort *);
void glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
void glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *);
void glSelectBuffer (GLsizei size, GLuint *buffer);
void glSetFenceAPPLE (GLuint fence);
void glShadeModel (GLenum mode);
void glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
void glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
void glStencilFunc (GLenum func, GLint ref, GLuint mask);
void glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
void glStencilMask (GLuint mask);
void glStencilMaskSeparate (GLenum face, GLuint mask);
void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
void glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
void glSwapAPPLE (void);
void glTexCoord1d (GLdouble s);
void glTexCoord1dv (const GLdouble *v);
void glTexCoord1f (GLfloat s);
void glTexCoord1fv (const GLfloat *v);
void glTexCoord1i (GLint s);
void glTexCoord1iv (const GLint *v);
void glTexCoord1s (GLshort s);
void glTexCoord1sv (const GLshort *v);
void glTexCoord2d (GLdouble s, GLdouble t);
void glTexCoord2dv (const GLdouble *v);
void glTexCoord2f (GLfloat s, GLfloat t);
void glTexCoord2fv (const GLfloat *v);
void glTexCoord2i (GLint s, GLint t);
void glTexCoord2iv (const GLint *v);
void glTexCoord2s (GLshort s, GLshort t);
void glTexCoord2sv (const GLshort *v);
void glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
void glTexCoord3dv (const GLdouble *v);
void glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
void glTexCoord3fv (const GLfloat *v);
void glTexCoord3i (GLint s, GLint t, GLint r);
void glTexCoord3iv (const GLint *v);
void glTexCoord3s (GLshort s, GLshort t, GLshort r);
void glTexCoord3sv (const GLshort *v);
void glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
void glTexCoord4dv (const GLdouble *v);
void glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
void glTexCoord4fv (const GLfloat *v);
void glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
void glTexCoord4iv (const GLint *v);
void glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
void glTexCoord4sv (const GLshort *v);
void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
void glTexEnvf (GLenum target, GLenum pname, GLfloat param);
void glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
void glTexEnvi (GLenum target, GLenum pname, GLint param);
void glTexEnviv (GLenum target, GLenum pname, const GLint *params);
void glTexGend (GLenum coord, GLenum pname, GLdouble param);
void glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
void glTexGenf (GLenum coord, GLenum pname, GLfloat param);
void glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
void glTexGeni (GLenum coord, GLenum pname, GLint param);
void glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
void glTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
void glTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
void glTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
void glTexParameterIivEXT ( GLenum target, GLenum pname, GLint *params );
void glTexParameterIuivEXT ( GLenum target, GLenum pname, GLuint *params );
void glTexParameterf (GLenum target, GLenum pname, GLfloat param);
void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
void glTexParameteri (GLenum target, GLenum pname, GLint param);
void glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
void glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
void glTextureRangeAPPLE (GLenum target, GLsizei length, const GLvoid *pointer);
void glTransformFeedbackVaryingsEXT (GLuint program, GLsizei count, const GLchar **varyings, GLenum bufferMode);
void glTranslated (GLdouble x, GLdouble y, GLdouble z);
void glTranslatef (GLfloat x, GLfloat y, GLfloat z);
void glUniform1fARB (GLint location, GLfloat v0);
void glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
void glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value);
void glUniform1iARB (GLint location, GLint v0);
void glUniform1iv (GLint location, GLsizei count, const GLint *value);
void glUniform1ivARB (GLint location, GLsizei count, const GLint *value);
void glUniform2fARB (GLint location, GLfloat v0, GLfloat v1);
void glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
void glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value);
void glUniform2iARB (GLint location, GLint v0, GLint v1);
void glUniform2ivARB (GLint location, GLsizei count, const GLint *value);
void glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
void glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
void glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value);
void glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2);
void glUniform3iv (GLint location, GLsizei count, const GLint *value);
void glUniform3ivARB (GLint location, GLsizei count, const GLint *value);
void glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
void glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
void glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value);
void glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
void glUniform4iv (GLint location, GLsizei count, const GLint *value);
void glUniform4ivARB (GLint location, GLsizei count, const GLint *value);
void glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
void glUnlockArraysEXT (void);
void glUseProgramObjectARB (GLhandleARB programObj);
void glValidateProgramARB (GLhandleARB programObj);
void glVertex2d (GLdouble x, GLdouble y);
void glVertex2dv (const GLdouble *v);
void glVertex2f (GLfloat x, GLfloat y);
void glVertex2fv (const GLfloat *v);
void glVertex2i (GLint x, GLint y);
void glVertex2iv (const GLint *v);
void glVertex2s (GLshort x, GLshort y);
void glVertex2sv (const GLshort *v);
void glVertex3d (GLdouble x, GLdouble y, GLdouble z);
void glVertex3dv (const GLdouble *v);
void glVertex3f (GLfloat x, GLfloat y, GLfloat z);
void glVertex3fv (const GLfloat *v);
void glVertex3i (GLint x, GLint y, GLint z);
void glVertex3iv (const GLint *v);
void glVertex3s (GLshort x, GLshort y, GLshort z);
void glVertex3sv (const GLshort *v);
void glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glVertex4dv (const GLdouble *v);
void glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glVertex4fv (const GLfloat *v);
void glVertex4i (GLint x, GLint y, GLint z, GLint w);
void glVertex4iv (const GLint *v);
void glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
void glVertex4sv (const GLshort *v);
void glVertexArrayParameteriAPPLE (GLenum pname, GLint param);
void glVertexArrayRangeAPPLE (GLsizei length, const GLvoid *pointer);
void glVertexAttrib1dARB (GLuint index, GLdouble x);
void glVertexAttrib1dv (GLuint index, const GLdouble *v);
void glVertexAttrib1dvARB (GLuint index, const GLdouble *v);
void glVertexAttrib1fARB (GLuint index, GLfloat x);
void glVertexAttrib1fv (GLuint index, const GLfloat *v);
void glVertexAttrib1fvARB (GLuint index, const GLfloat *v);
void glVertexAttrib1sARB (GLuint index, GLshort x);
void glVertexAttrib1sv (GLuint index, const GLshort *v);
void glVertexAttrib1svARB (GLuint index, const GLshort *v);
void glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y);
void glVertexAttrib2dv (GLuint index, const GLdouble *v);
void glVertexAttrib2dvARB (GLuint index, const GLdouble *v);
void glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y);
void glVertexAttrib2fv (GLuint index, const GLfloat *v);
void glVertexAttrib2fvARB (GLuint index, const GLfloat *v);
void glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y);
void glVertexAttrib2sv (GLuint index, const GLshort *v);
void glVertexAttrib2svARB (GLuint index, const GLshort *v);
void glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z);
void glVertexAttrib3dv (GLuint index, const GLdouble *v);
void glVertexAttrib3dvARB (GLuint index, const GLdouble *v);
void glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z);
void glVertexAttrib3fv (GLuint index, const GLfloat *v);
void glVertexAttrib3fvARB (GLuint index, const GLfloat *v);
void glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z);
void glVertexAttrib3sv (GLuint index, const GLshort *v);
void glVertexAttrib3svARB (GLuint index, const GLshort *v);
void glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
void glVertexAttrib4NbvARB (GLuint index, const GLbyte *v);
void glVertexAttrib4Niv (GLuint index, const GLint *v);
void glVertexAttrib4NivARB (GLuint index, const GLint *v);
void glVertexAttrib4Nsv (GLuint index, const GLshort *v);
void glVertexAttrib4NsvARB (GLuint index, const GLshort *v);
void glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
void glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
void glVertexAttrib4NubvARB (GLuint index, const GLubyte *v);
void glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
void glVertexAttrib4NuivARB (GLuint index, const GLuint *v);
void glVertexAttrib4Nusv (GLuint index, const GLushort *v);
void glVertexAttrib4NusvARB (GLuint index, const GLushort *v);
void glVertexAttrib4bv (GLuint index, const GLbyte *v);
void glVertexAttrib4bvARB (GLuint index, const GLbyte *v);
void glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
void glVertexAttrib4dv (GLuint index, const GLdouble *v);
void glVertexAttrib4dvARB (GLuint index, const GLdouble *v);
void glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void glVertexAttrib4fv (GLuint index, const GLfloat *v);
void glVertexAttrib4fvARB (GLuint index, const GLfloat *v);
void glVertexAttrib4iv (GLuint index, const GLint *v);
void glVertexAttrib4ivARB (GLuint index, const GLint *v);
void glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
void glVertexAttrib4sv (GLuint index, const GLshort *v);
void glVertexAttrib4svARB (GLuint index, const GLshort *v);
void glVertexAttrib4ubv (GLuint index, const GLubyte *v);
void glVertexAttrib4ubvARB (GLuint index, const GLubyte *v);
void glVertexAttrib4uiv (GLuint index, const GLuint *v);
void glVertexAttrib4uivARB (GLuint index, const GLuint *v);
void glVertexAttrib4usv (GLuint index, const GLushort *v);
void glVertexAttrib4usvARB (GLuint index, const GLushort *v);
void glVertexAttribDivisorARB (GLuint index, GLuint divisor);
void glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
void glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
void glVertexBlendARB (GLint);
void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
void glWeightPointerARB (GLint, GLenum, GLsizei, const GLvoid *);
void glWeightbvARB (GLint, const GLbyte *);
void glWeightdvARB (GLint, const GLdouble *);
void glWeightfvARB (GLint, const GLfloat *);
void glWeightivARB (GLint, const GLint *);
void glWeightsvARB (GLint, const GLshort *);
void glWeightubvARB (GLint, const GLubyte *);
void glWeightuivARB (GLint, const GLuint *);
void glWeightusvARB (GLint, const GLushort *);
void glWindowPos2dARB (GLdouble, GLdouble);
void glWindowPos2dv (const GLdouble *v);
void glWindowPos2dvARB (const GLdouble *);
void glWindowPos2fARB (GLfloat, GLfloat);
void glWindowPos2fv (const GLfloat *v);
void glWindowPos2fvARB (const GLfloat *);
void glWindowPos2iARB (GLint, GLint);
void glWindowPos2iv (const GLint *v);
void glWindowPos2ivARB (const GLint *);
void glWindowPos2sARB (GLshort, GLshort);
void glWindowPos2sv (const GLshort *v);
void glWindowPos2svARB (const GLshort *);
void glWindowPos3dARB (GLdouble, GLdouble, GLdouble);
void glWindowPos3dv (const GLdouble *v);
void glWindowPos3dvARB (const GLdouble *);
void glWindowPos3fARB (GLfloat, GLfloat, GLfloat);
void glWindowPos3fv (const GLfloat *v);
void glWindowPos3fvARB (const GLfloat *);
void glWindowPos3iARB (GLint, GLint, GLint);
void glWindowPos3iv (const GLint *v);
void glWindowPos3ivARB (const GLint *);
void glWindowPos3sARB (GLshort, GLshort, GLshort);
void glWindowPos3sv (const GLshort *v);
void glWindowPos3svARB (const GLshort *);
void glAddSwapHintRectWIN (GLint x, GLint y, GLsizei width, GLsizei height);
void * wglAllocateMemoryNV (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
void wglFreeMemoryNV (void *pointer);
]]
return ffi.load("opengl32.dll", "glew32.dll")
| mit |
AlexandreCA/update | scripts/zones/Xarcabard/npcs/Luck_Rune.lua | 34 | 1062 | -----------------------------------
-- Area: Xarcabard
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 576.117 -0.164 -16.935 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Xarcabard/TextIDs");
-----------------------------------
-- onTrade
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger
-----------------------------------
function onTrigger(player,npc)
player:messageSpecial(NOTHING_OUT_OF_THE_ORDINARY);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
AlexandreCA/update | scripts/zones/Port_Bastok/npcs/Tete.lua | 17 | 1295 | -----------------------------------
-- Area: Port Bastok
-- NPC: Tete
-- Continues Quest: The Wisdom Of Elders
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
------------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getQuestStatus(BASTOK,THE_WISDOM_OF_ELDERS) == QUEST_ACCEPTED) then
player:startEvent(0x00af);
else
player:startEvent(0x0023);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x00af) then
player:setVar("TheWisdomVar",2);
end
end; | gpl-3.0 |
AlexandreCA/update | scripts/zones/Aht_Urhgan_Whitegate/npcs/Wazyih.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Wazyih
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x02AC);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Windurst_Waters_[S]/npcs/Pahpe_Rauulih.lua | 38 | 1053 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pahpe Rauulih
-- Type: Standard NPC
-- @zone: 94
-- @pos -39.740 -4.499 53.223
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x01ab);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
martolini/Vana | scripts/npcs/ludi017.lua | 1 | 1262 | --[[
Copyright (C) 2008-2015 Vana Development Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
--]]
-- Fourth Eos Rock
dofile("scripts/utils/npcHelper.lua");
if isGm() or getItemAmount(4001020) > 0 then
addText("You can use " .. blue(itemRef(4001020)) .. " to activate " .. blue(npcRef(2040027)) .. ". ");
addText("Will you head over to " .. blue(npcRef(2040026)) .. " at the 41st floor??");
answer = askYesNo();
if answer == answer_yes then
giveItem(4001020, -1);
setMap(221021700, "go00");
end
else
addText("There's a rock that will enable you to teleport to " .. blue(npcRef(2040026)) .. ", but it cannot be activated without a scroll.");
sendOk();
end | gpl-2.0 |
AlexandreCA/update | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Claymore.lua | 16 | 1489 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Claymore
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEngaged(mob,target)
if (mob:AnimationSub() == 3) then
SetDropRate(102,1574,1000);
else
SetDropRate(102,1574,0);
end
target:showText(mob,ANIMATED_CLAYMORE_DIALOG);
SpawnMob(17330365,120):updateEnmity(target);
SpawnMob(17330366,120):updateEnmity(target);
SpawnMob(17330367,120):updateEnmity(target);
SpawnMob(17330372,120):updateEnmity(target);
SpawnMob(17330373,120):updateEnmity(target);
SpawnMob(17330374,120):updateEnmity(target);
end;
-----------------------------------
-- onMobFight Action
-----------------------------------
function onMobFight(mob,target)
-- TODO: add battle dialog
end;
-----------------------------------
-- onMobDisengage
-----------------------------------
function onMobDisengage(mob)
mob:showText(mob,ANIMATED_CLAYMORE_DIALOG+2);
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
killer:showText(mob,ANIMATED_CLAYMORE_DIALOG+1);
DespawnMob(17330365);
DespawnMob(17330366);
DespawnMob(17330367);
DespawnMob(17330372);
DespawnMob(17330373);
DespawnMob(17330374);
end; | gpl-3.0 |
open-city/clearstreets-processing | clearstreets.lua | 2 | 21526 | -- Car profile
local find_access_tag = require("lib/access").find_access_tag
local get_destination = require("lib/destination").get_destination
local set_classification = require("lib/guidance").set_classification
local get_turn_lanes = require("lib/guidance").get_turn_lanes
local Set = require('lib/set')
local Sequence = require('lib/sequence')
local Directional = require('lib/directional')
-- Begin of globals
barrier_whitelist = Set {
'cattle_grid',
'border_control',
'checkpoint',
'toll_booth',
'sally_port',
'gate',
'lift_gate',
'no',
'entrance'
}
access_tag_whitelist = Set {
'yes',
'motorcar',
'motor_vehicle',
'vehicle',
'permissive',
'designated',
'destination'
}
access_tag_blacklist = Set {
'no',
'private',
'agricultural',
'forestry',
'emergency',
'psv',
'delivery',
'alley'
}
access_tags_hierarchy = Sequence {
'motorcar',
'motor_vehicle',
'vehicle',
'access',
'service'
}
service_tag_forbidden = Set {
'emergency_access'
}
restrictions = Sequence {
'motorcar', "motor_vehicle", "vehicle" }
-- A list of suffixes to suppress in name change instructions
-- Note: a Set does not work here because it's read from C++
suffix_list = {
'N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW', 'North', 'South', 'West', 'East'
}
speed_profile = {
motorway = 90,
motorway_link = 45,
trunk = 85,
trunk_link = 40,
primary = 65,
primary_link = 30,
secondary = 55,
secondary_link = 25,
tertiary = 40,
tertiary_link = 20,
unclassified = 25,
residential = 25,
living_street = 10,
service = 15,
--track = 5,
ferry = 5,
movable = 5,
shuttle_train = 10,
default = 10
}
-- service speeds
service_speeds = {
alley = 5,
parking = 5,
parking_aisle = 5,
driveway = 5,
["drive-through"] = 5
}
-- surface/trackype/smoothness
-- values were estimated from looking at the photos at the relevant wiki pages
-- max speed for surfaces
surface_speeds = {
asphalt = nil, -- nil mean no limit. removing the line has the same effect
concrete = nil,
["concrete:plates"] = nil,
["concrete:lanes"] = nil,
paved = nil,
cement = 80,
compacted = 80,
fine_gravel = 80,
paving_stones = 60,
metal = 60,
bricks = 60,
grass = 40,
wood = 40,
sett = 40,
grass_paver = 40,
gravel = 40,
unpaved = 40,
ground = 40,
dirt = 40,
pebblestone = 40,
tartan = 40,
cobblestone = 30,
clay = 30,
earth = 20,
stone = 20,
rocky = 20,
sand = 20,
mud = 10
}
-- max speed for tracktypes
tracktype_speeds = {
grade1 = 60,
grade2 = 40,
grade3 = 30,
grade4 = 25,
grade5 = 20
}
-- max speed for smoothnesses
smoothness_speeds = {
intermediate = 80,
bad = 40,
very_bad = 20,
horrible = 10,
very_horrible = 5,
impassable = 0
}
-- http://wiki.openstreetmap.org/wiki/Speed_limits
maxspeed_table_default = {
urban = 50,
rural = 90,
trunk = 110,
motorway = 130
}
-- List only exceptions
maxspeed_table = {
["ch:rural"] = 80,
["ch:trunk"] = 100,
["ch:motorway"] = 120,
["de:living_street"] = 7,
["ru:living_street"] = 20,
["ru:urban"] = 60,
["ua:urban"] = 60,
["at:rural"] = 100,
["de:rural"] = 100,
["at:trunk"] = 100,
["cz:trunk"] = 0,
["ro:trunk"] = 100,
["cz:motorway"] = 0,
["de:motorway"] = 0,
["ru:motorway"] = 110,
["gb:nsl_single"] = (60*1609)/1000,
["gb:nsl_dual"] = (70*1609)/1000,
["gb:motorway"] = (70*1609)/1000,
["uk:nsl_single"] = (60*1609)/1000,
["uk:nsl_dual"] = (70*1609)/1000,
["uk:motorway"] = (70*1609)/1000,
["nl:rural"] = 80,
["nl:trunk"] = 100,
["none"] = 140
}
-- set profile properties
properties.u_turn_penalty = 20
properties.traffic_signal_penalty = 2
properties.max_speed_for_map_matching = 180/3.6 -- 180kmph -> m/s
properties.use_turn_restrictions = true
properties.continue_straight_at_waypoint = true
properties.left_hand_driving = false
local side_road_speed_multiplier = 0.8
local turn_penalty = 7.5
-- Note: this biases right-side driving. Should be
-- inverted for left-driving countries.
local turn_bias = properties.left_hand_driving and 1/1.075 or 1.075
local obey_oneway = true
local ignore_areas = true
local ignore_hov_ways = true
local ignore_toll_ways = false
local abs = math.abs
local min = math.min
local max = math.max
local speed_reduction = 0.8
function get_name_suffix_list(vector)
for index,suffix in ipairs(suffix_list) do
vector:Add(suffix)
end
end
function get_restrictions(vector)
for i,v in ipairs(restrictions) do
vector:Add(v)
end
end
local function parse_maxspeed(source)
if not source then
return 0
end
local n = tonumber(source:match("%d*"))
if n then
if string.match(source, "mph") or string.match(source, "mp/h") then
n = (n*1609)/1000
end
else
-- parse maxspeed like FR:urban
source = string.lower(source)
n = maxspeed_table[source]
if not n then
local highway_type = string.match(source, "%a%a:(%a+)")
n = maxspeed_table_default[highway_type]
if not n then
n = 0
end
end
end
return n
end
function node_function (node, result)
-- parse access and barrier tags
local access = find_access_tag(node, access_tags_hierarchy)
if access then
if access_tag_blacklist[access] then
result.barrier = true
end
else
local barrier = node:get_value_by_key("barrier")
if barrier then
-- make an exception for rising bollard barriers
local bollard = node:get_value_by_key("bollard")
local rising_bollard = bollard and "rising" == bollard
if not barrier_whitelist[barrier] and not rising_bollard then
result.barrier = true
end
end
end
-- check if node is a traffic light
local tag = node:get_value_by_key("highway")
if "traffic_signals" == tag then
result.traffic_lights = true
end
end
-- abort early if this way is obviouslt not routable
function initial_routability_check(way,result,data)
data.highway = way:get_value_by_key('highway')
return data.highway ~= nil or
way:get_value_by_key('route') ~= nil or
way:get_value_by_key('bridge') ~= nil
end
-- all lanes restricted to hov vehicles?
local function has_all_designated_hov_lanes(lanes)
if not lanes then
return false
end
-- This gmatch call effectively splits the string on | chars.
-- we append an extra | to the end so that we can match the final part
for lane in (lanes .. '|'):gmatch("([^|]*)|") do
if lane and lane ~= "designated" then
return false
end
end
return true
end
-- handle high occupancy vehicle tags
function handle_hov(way,result,data)
-- respect user-preference for HOV
if not ignore_hov_ways then
return
end
-- check if way is hov only
local hov = way:get_value_by_key("hov")
if "designated" == hov then
return false
end
-- check if all lanes are hov only
local hov_lanes_forward, hov_lanes_backward = Directional.get_values_by_key(way,data,'hov:lanes')
local inaccessible_forward = has_all_designated_hov_lanes(hov_lanes_forward)
local inaccessible_backward = has_all_designated_hov_lanes(hov_lanes_backward)
if inaccessible_forward then
result.forward_mode = mode.inaccessible
end
if inaccessible_backward then
result.backward_mode = mode.inaccessible
end
end
-- handle various that can block access
function is_way_blocked(way,result)
-- we dont route over areas
local area = way:get_value_by_key("area")
if ignore_areas and "yes" == area then
return false
end
-- respect user-preference for toll=yes ways
local toll = way:get_value_by_key("toll")
if ignore_toll_ways and "yes" == toll then
return false
end
-- Reversible oneways change direction with low frequency (think twice a day):
-- do not route over these at all at the moment because of time dependence.
-- Note: alternating (high frequency) oneways are handled below with penalty.
local oneway = way:get_value_by_key("oneway")
if "reversible" == oneway then
return false
end
local impassable = way:get_value_by_key("impassable")
if "yes" == impassable then
return false
end
local status = way:get_value_by_key("status")
if "impassable" == status then
return false
end
end
-- set default mode
function set_default_mode(way,result)
result.forward_mode = mode.driving
result.backward_mode = mode.driving
end
-- check accessibility by traversing our acces tag hierarchy
function handle_access(way,result,data)
data.forward_access, data.backward_access =
Directional.get_values_by_set(way,data,access_tags_hierarchy)
if access_tag_blacklist[data.forward_access] then
result.forward_mode = mode.inaccessible
end
if access_tag_blacklist[data.backward_access] then
result.backward_mode = mode.inaccessible
end
if result.forward_mode == mode.inaccessible and result.backward_mode == mode.inaccessible then
return false
end
end
-- handling ferries and piers
function handle_ferries(way,result)
local route = way:get_value_by_key("route")
if route then
local route_speed = speed_profile[route]
if route_speed and route_speed > 0 then
local duration = way:get_value_by_key("duration")
if duration and durationIsValid(duration) then
result.duration = max( parseDuration(duration), 1 )
end
result.forward_mode = mode.ferry
result.backward_mode = mode.ferry
result.forward_speed = route_speed
result.backward_speed = route_speed
end
end
end
-- handling movable bridges
function handle_movables(way,result)
local bridge = way:get_value_by_key("bridge")
if bridge then
local bridge_speed = speed_profile[bridge]
if bridge_speed and bridge_speed > 0 then
local capacity_car = way:get_value_by_key("capacity:car")
if capacity_car ~= 0 then
local duration = way:get_value_by_key("duration")
if duration and durationIsValid(duration) then
result.duration = max( parseDuration(duration), 1 )
end
result.forward_speed = bridge_speed
result.backward_speed = bridge_speed
end
end
end
end
-- handle speed (excluding maxspeed)
function handle_speed(way,result,data)
if result.forward_speed == -1 then
local highway_speed = speed_profile[data.highway]
-- Set the avg speed on the way if it is accessible by road class
if highway_speed then
result.forward_speed = highway_speed
result.backward_speed = highway_speed
else
-- Set the avg speed on ways that are marked accessible
if access_tag_whitelist[data.forward_access] then
result.forward_speed = speed_profile["default"]
end
if access_tag_whitelist[data.backward_access] then
result.backward_speed = speed_profile["default"]
end
end
end
if -1 == result.forward_speed and -1 == result.backward_speed then
return false
end
if handle_side_roads(way,result) == false then return false end
if handle_surface(way,result) == false then return false end
if handle_maxspeed(way,data,result) == false then return false end
if handle_speed_scaling(way,result) == false then return false end
if handle_alternating_speed(way,result) == false then return false end
end
-- reduce speed on special side roads
function handle_side_roads(way,result)
local sideway = way:get_value_by_key("side_road")
if "yes" == sideway or
"rotary" == sideway then
result.forward_speed = result.forward_speed * side_road_speed_multiplier
result.backward_speed = result.backward_speed * side_road_speed_multiplier
end
end
-- reduce speed on bad surfaces
function handle_surface(way,result)
local surface = way:get_value_by_key("surface")
local tracktype = way:get_value_by_key("tracktype")
local smoothness = way:get_value_by_key("smoothness")
if surface and surface_speeds[surface] then
result.forward_speed = math.min(surface_speeds[surface], result.forward_speed)
result.backward_speed = math.min(surface_speeds[surface], result.backward_speed)
end
if tracktype and tracktype_speeds[tracktype] then
result.forward_speed = math.min(tracktype_speeds[tracktype], result.forward_speed)
result.backward_speed = math.min(tracktype_speeds[tracktype], result.backward_speed)
end
if smoothness and smoothness_speeds[smoothness] then
result.forward_speed = math.min(smoothness_speeds[smoothness], result.forward_speed)
result.backward_speed = math.min(smoothness_speeds[smoothness], result.backward_speed)
end
end
-- handles name, including ref and pronunciation
function handle_names(way,result)
-- parse the remaining tags
local name = way:get_value_by_key("name")
local pronunciation = way:get_value_by_key("name:pronunciation")
local ref = way:get_value_by_key("ref")
-- Set the name that will be used for instructions
if name then
result.name = name
end
if ref then
result.ref = canonicalizeStringList(ref, ";")
end
if pronunciation then
result.pronunciation = pronunciation
end
end
-- handle turn lanes
function handle_turn_lanes(way,result,data)
local forward, backward = get_turn_lanes(way,data)
if forward then
result.turn_lanes_forward = forward
end
if backward then
result.turn_lanes_backward = backward
end
end
-- junctions
function handle_roundabouts(way,result)
local junction = way:get_value_by_key("junction");
if junction == "roundabout" then
result.roundabout = true
end
-- See Issue 3361: roundabout-shaped not following roundabout rules.
-- This will get us "At Strausberger Platz do Maneuver X" instead of multiple quick turns.
-- In a new API version we can think of having a separate type passing it through to the user.
if junction == "circular" then
result.circular = true
end
end
-- service roads
function handle_service(way,result)
local service = way:get_value_by_key("service")
if service then
-- Set don't allow access to certain service roads
if service_tag_forbidden[service] then
result.forward_mode = mode.inaccessible
result.backward_mode = mode.inaccessible
return false
end
end
end
-- scale speeds to get better average driving times
function handle_speed_scaling(way,result)
local width = math.huge
local lanes = math.huge
if result.forward_speed > 0 or result.backward_speed > 0 then
local width_string = way:get_value_by_key("width")
if width_string and tonumber(width_string:match("%d*")) then
width = tonumber(width_string:match("%d*"))
end
local lanes_string = way:get_value_by_key("lanes")
if lanes_string and tonumber(lanes_string:match("%d*")) then
lanes = tonumber(lanes_string:match("%d*"))
end
end
local is_bidirectional = result.forward_mode ~= mode.inaccessible and
result.backward_mode ~= mode.inaccessible
local service = way:get_value_by_key("service")
if result.forward_speed > 0 then
local scaled_speed = result.forward_speed * speed_reduction
local penalized_speed = math.huge
if service and service_speeds[service] then
penalized_speed = service_speeds[service]
elseif width <= 3 or (lanes <= 1 and is_bidirectional) then
penalized_speed = result.forward_speed / 2
end
result.forward_speed = math.min(penalized_speed, scaled_speed)
end
if result.backward_speed > 0 then
local scaled_speed = result.backward_speed * speed_reduction
local penalized_speed = math.huge
if service and service_speeds[service]then
penalized_speed = service_speeds[service]
elseif width <= 3 or (lanes <= 1 and is_bidirectional) then
penalized_speed = result.backward_speed / 2
end
result.backward_speed = math.min(penalized_speed, scaled_speed)
end
end
-- handle oneways tags
function handle_oneway(way,result,data)
local oneway = way:get_value_by_key("oneway")
data.oneway = oneway
if obey_oneway then
if oneway == "-1" then
data.is_reverse_oneway = true
result.forward_mode = mode.inaccessible
elseif oneway == "yes" or
oneway == "1" or
oneway == "true" then
data.is_forward_oneway = true
result.backward_mode = mode.inaccessible
else
local junction = way:get_value_by_key("junction")
if data.highway == "motorway" or
junction == "roundabout" or
junction == "circular" then
if oneway ~= "no" then
-- implied oneway
data.is_forward_oneway = true
result.backward_mode = mode.inaccessible
end
end
end
end
end
-- handle destination tags
function handle_destinations(way,result,data)
if data.is_forward_oneway or data.is_reverse_oneway then
local destination = get_destination(way, data.is_forward_oneway)
result.destinations = canonicalizeStringList(destination, ",")
end
end
-- maxspeed and advisory maxspeed
function handle_maxspeed(way,data,result)
local keys = Sequence { 'maxspeed:advisory', 'maxspeed' }
local forward, backward = Directional.get_values_by_set(way,data,keys)
forward = parse_maxspeed(forward)
backward = parse_maxspeed(backward)
if forward and forward > 0 then
result.forward_speed = forward
end
if backward and backward > 0 then
result.backward_speed = backward
end
end
-- Handle high frequency reversible oneways (think traffic signal controlled, changing direction every 15 minutes).
-- Scaling speed to take average waiting time into account plus some more for start / stop.
function handle_alternating_speed(way,result)
if "alternating" == way:get_value_by_key('oneway') then
local scaling_factor = 0.4
if result.forward_speed ~= math.huge then
result.forward_speed = result.forward_speed * scaling_factor
end
if result.backward_speed ~= math.huge then
result.backward_speed = result.backward_speed * scaling_factor
end
end
end
-- determine if this way can be used as a start/end point for routing
function handle_startpoint(way,result)
-- only allow this road as start point if it not a ferry
result.is_startpoint = result.forward_mode == mode.driving or
result.backward_mode == mode.driving
end
-- set the road classification based on guidance globals configuration
function handle_classification(way,result,data)
set_classification(data.highway,result,way)
end
-- main entry point for processsing a way
function way_function(way, result)
-- intermediate values used during processing
local data = {}
-- to optimize processing, we should try to abort as soon as
-- possible if the way is not routable, to avoid doing
-- unnecessary work. this implies we should check things that
-- commonly forbids access early, and handle complicated edge
-- cases later.
-- perform an quick initial check and abort if way is obviously
-- not routable, e.g. because it does not have any of the key
-- tags indicating routability
if initial_routability_check(way,result,data) == false then return end
-- set the default mode for this profile. if can be changed later
-- in case it turns we're e.g. on a ferry
if set_default_mode(way,result) == false then return end
-- check various tags that could indicate that the way is not
-- routable. this includes things like status=impassable,
-- toll=yes and oneway=reversible
if is_way_blocked(way,result) == false then return end
-- determine access status by checking our hierarchy of
-- access tags, e.g: motorcar, motor_vehicle, vehicle
if handle_access(way,result,data) == false then return end
-- check whether forward/backward directons are routable
if handle_oneway(way,result,data) == false then return end
-- check whether forward/backward directons are routable
if handle_destinations(way,result,data) == false then return end
-- check whether we're using a special transport mode
if handle_ferries(way,result) == false then return end
if handle_movables(way,result) == false then return end
-- handle service road restrictions
if handle_service(way,result) == false then return end
-- check high occupancy vehicle restrictions
if handle_hov(way,result,data) == false then return end
-- compute speed taking into account way type, maxspeed tags, etc.
if handle_speed(way,result,data) == false then return end
-- handle turn lanes and road classification, used for guidance
if handle_turn_lanes(way,result,data) == false then return end
if handle_classification(way,result,data) == false then return end
-- handle various other flags
if handle_roundabouts(way,result) == false then return end
if handle_startpoint(way,result) == false then return end
-- set name, ref and pronunciation
if handle_names(way,result) == false then return end
end
function turn_function (angle)
-- Use a sigmoid function to return a penalty that maxes out at turn_penalty
-- over the space of 0-180 degrees. Values here were chosen by fitting
-- the function to some turn penalty samples from real driving.
-- multiplying by 10 converts to deci-seconds see issue #1318
if angle>=0 then
return 10 * turn_penalty / (1 + 2.718 ^ - ((13 / turn_bias) * angle/180 - 6.5*turn_bias))
else
return 10 * turn_penalty / (1 + 2.718 ^ - ((13 * turn_bias) * - angle/180 - 6.5/turn_bias))
end
end
| mit |
AlexandreCA/update | scripts/zones/Windurst_Waters_[S]/npcs/Kristen.lua | 38 | 1041 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kristen
-- Type: Standard NPC
-- @zone: 94
-- @pos 2.195 -2 60.296
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x0194);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Windurst_Waters/npcs/Machitata.lua | 36 | 1704 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Machitata
-- Involved in Quest: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = 163 0 -22
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/zones/Windurst_Waters/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
function testflag(set,flag)
return (set % (2*flag) >= flag)
end
hatstatus = player:getQuestStatus(WINDURST,HAT_IN_HAND);
if ((hatstatus == 1 or player:getVar("QuestHatInHand_var2") == 1) and testflag(tonumber(player:getVar("QuestHatInHand_var")),1) == false) then
player:messageSpecial(7121); -- Show Off Hat
player:setVar("QuestHatInHand_var",player:getVar("QuestHatInHand_var")+1);
player:setVar("QuestHatInHand_count",player:getVar("QuestHatInHand_count")+1);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
ztesbot/ztesrobot | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
headers = {
referer = base,
dnt = "1",
origin = base,
["User-Agent"] = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36"
},
redirect = false
}
local arguments = {
urlparam = param,
size = "FULL"
}
request_constructor.url = url .. "?" .. helpers.url_encode_arguments(arguments)
local ok, response_code, response_headers, response_status_line = https.request(request_constructor)
if not ok or response_code ~= 200 then
return nil
end
local response = table.concat(response_body)
return string.match(response, "href='(.-)'")
end
local function run(msg, matches)
local find = get_webshot_url(matches[1])
if find then
local imgurl = base .. find
local receiver = get_receiver(msg)
send_photo_from_url(receiver, imgurl)
end
end
return {
description = "Send an screenshot of a website.",
usage = {
"!webshot [url]: Take an screenshot of the web and send it back to you."
},
patterns = {
"^!webshot (https?://[%w-_%.%?%.:/%+=&]+)$",
},
run = run
}
| gpl-2.0 |
AlexandreCA/update | scripts/zones/Attohwa_Chasm/npcs/Cradle_of_Rebirth.lua | 17 | 1967 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Cradle_of_Rebirth
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade
-----------------------------------
function onTrade(player,npc,trade)
-- Trade Flaxen Pouch
if (trade:hasItemQty(1777,1) and trade:getItemCount() == 1) then
if (player:getFreeSlotsCount() == 0) then
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED, 1778); -- Parradamo Stones
else
player:tradeComplete();
player:addItem(1778);
player:messageSpecial(ITEM_OBTAINED, 1778); -- Parradamo Stones
end
end
end;
-----------------------------------
-- onTrigger
-----------------------------------
function onTrigger(player,npc)
if (player:hasKeyItem(MIMEO_JEWEL)==true) then
player:delKeyItem(MIMEO_JEWEL);
player:messageSpecial(KEYITEM_LOST,MIMEO_JEWEL);
player:addKeyItem(MIMEO_FEATHER);
player:messageSpecial(KEYITEM_OBTAINED, MIMEO_FEATHER);
player:addKeyItem(SECOND_MIMEO_FEATHER);
player:messageSpecial(KEYITEM_OBTAINED, SECOND_MIMEO_FEATHER);
player:addKeyItem(THIRD_MIMEO_FEATHER);
player:messageSpecial(KEYITEM_OBTAINED, THIRD_MIMEO_FEATHER);
else
player:messageSpecial(NOTHING_OUT_OF_ORDINARY);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
dani-sj/mehdi | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://maps.googleapis.com/maps/api"
dateFormat = "%A %d %B - %H:%M:%S"
-- Need the utc time for the google api
function utctime()
return os.time(os.date("!*t"))
end
-- Use the geocoding api to get the lattitude and longitude with accuracy specifier
-- CHECKME: this seems to work without a key??
function get_latlong(area)
local api = base_api .. "/geocode/json?"
local parameters = "address=".. (URL.escape(area) or "")
if api_key ~= nil then
parameters = parameters .. "&key="..api_key
end
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
if (data.status == "ZERO_RESULTS") then
return nil
end
if (data.status == "OK") then
-- Get the data
lat = data.results[1].geometry.location.lat
lng = data.results[1].geometry.location.lng
acc = data.results[1].geometry.location_type
types= data.results[1].types
return lat,lng,acc,types
end
end
-- Use timezone api to get the time in the lat,
-- Note: this needs an API key
function get_time(lat,lng)
local api = base_api .. "/timezone/json?"
-- Get a timestamp (server time is relevant here)
local timestamp = utctime()
local parameters = "location=" ..
URL.escape(lat) .. "," ..
URL.escape(lng) ..
"×tamp="..URL.escape(timestamp)
if api_key ~=nil then
parameters = parameters .. "&key="..api_key
end
local res,code = https.request(api..parameters)
if code ~= 200 then return nil end
local data = json:decode(res)
if (data.status == "ZERO_RESULTS") then
return nil
end
if (data.status == "OK") then
-- Construct what we want
-- The local time in the location is:
-- timestamp + rawOffset + dstOffset
local localTime = timestamp + data.rawOffset + data.dstOffset
return localTime, data.timeZoneId
end
return localTime
end
function getformattedLocalTime(area)
if area == nil then
return "The time in nowhere is never"
end
lat,lng,acc = get_latlong(area)
if lat == nil and lng == nil then
return 'It seems that in "'..area..'" they do not have a concept of time.'
end
local localTime, timeZoneId = get_time(lat,lng)
return "The local time in "..timeZoneId.." is: ".. os.date(dateFormat,localTime)
end
function run(msg, matches)
return getformattedLocalTime(matches[1])
end
return {
description = "Displays the local time in an area",
usage = "!time [area]: Displays the local time in that area",
patterns = {"^!time (.*)$"},
run = run
}
| gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Grounds_Tome.lua | 30 | 1107 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
startGov(GOV_EVENT_LOWER_DELKFUTTS_TOWER,player);
end;
-----------------------------------
-- onEventSelection
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
updateGov(player,csid,option,777,778,779,780,781,0,0,0,0,0);
end;
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
finishGov(player,csid,option,777,778,779,780,781,0,0,0,0,0,GOV_MSG_LOWER_DELKFUTTS_TOWER);
end;
| gpl-3.0 |
gaodayihao/XBurner | Libs/DiesalGUI-1.0/Objects/Accordian.lua | 8 | 2732 | local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
local DiesalStyle = LibStub("DiesalStyle-1.0")
-- | Lua Upvalues |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- | Lua Upvalues |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- | Accordian |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local Type = "Accordian"
local Version = 2
-- ~~| StyleSheets |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local styleSheet = {
}
-- | Locals |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- | Methods |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local methods = {
['OnAcquire'] = function(self)
-- self:AddStyleSheet(styleSheet)
-- self:AddStyleSheet(wireFrameSheet)
self:ResetSettings(true)
self:Show()
end,
['OnRelease'] = function(self)
end,
['ApplySettings'] = function(self)
end,
['CollapseAll'] = function(self)
for i=1 , #self.children do
self.children[i]:Collapse()
end
end,
['ExpandAll'] = function(self)
for i=1 , #self.children do
self.children[i]:Expand()
end
end,
}
-- | Constructor |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local function Constructor()
local self = DiesalGUI:CreateObjectBase(Type)
local frame = CreateFrame('Frame',nil,UIParent)
self.frame = frame
-- ~~ Default Settings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
self.defaults = { }
-- ~~ Events ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- OnAcquire, OnRelease, OnHeightSet, OnWidthSet
-- OnHeightChange
-- ~~ Construct ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local content = self:CreateRegion("Frame", 'content', frame)
content:SetAllPoints()
-- ~~ Methods ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for method, func in pairs(methods) do self[method] = func end
-- ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return self
end
DiesalGUI:RegisterObjectConstructor(Type,Constructor,Version) | mit |
AlexandreCA/darkstar | scripts/globals/items/sweet_baked_apple.lua | 18 | 1300 | -----------------------------------------
-- ID: 4336
-- Item: sweet_baked_apple
-- Food Effect: 1hour, All Races
-----------------------------------------
-- Magic Points 25
-- Intelligence 4
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,3600,4336);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_MP, 25);
target:addMod(MOD_INT, 4);
target:addMod(MOD_MPHEAL, 2);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_MP, 25);
target:delMod(MOD_INT, 4);
target:delMod(MOD_MPHEAL, 2);
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Sharp_Tooth_IM.lua | 13 | 3338 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Sharp Tooth, I.M.
-- Type: Border Conquest Guards
-- @pos 536.291 23.517 694.063 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("scripts/zones/Pashhow_Marshlands/TextIDs");
local guardnation = BASTOK; -- SANDORIA, BASTOK, WINDURST, 4 = jeuno
local guardtype = 4; -- 1: city, 2: foreign, 3: outpost, 4: border
local region = DERFLAND;
local csid = 0x7ff8;
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
tradeConquestGuard(player,npc,trade,guardnation,guardtype);
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
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;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("OPTION: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("OPTION: %u",option);
if (option == 1) then
local duration = (player:getRank() + getNationRank(player:getNation()) + 3) * 3600;
player:delStatusEffect(EFFECT_SIGIL);
player:delStatusEffect(EFFECT_SANCTION);
player:delStatusEffect(EFFECT_SIGNET);
player:addStatusEffect(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 |
mcclure/old-Polycode | Bindings/Contents/LUA/API/Polycode/SkeletonAnimation.lua | 1 | 1184 | class "SkeletonAnimation"
function SkeletonAnimation:SkeletonAnimation(...)
for k,v in pairs(arg) do
if type(v) == "table" then
if v.__ptr ~= nil then
arg[k] = v.__ptr
end
end
end
if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
self.__ptr = Polycore.SkeletonAnimation(unpack(arg))
Polycore.__ptr_lookup[self.__ptr] = self
end
end
function SkeletonAnimation:addBoneTrack(boneTrack)
local retVal = Polycore.SkeletonAnimation_addBoneTrack(self.__ptr, boneTrack.__ptr)
end
function SkeletonAnimation:getName()
local retVal = Polycore.SkeletonAnimation_getName(self.__ptr)
return retVal
end
function SkeletonAnimation:Play()
local retVal = Polycore.SkeletonAnimation_Play(self.__ptr)
end
function SkeletonAnimation:Stop()
local retVal = Polycore.SkeletonAnimation_Stop(self.__ptr)
end
function SkeletonAnimation:Update()
local retVal = Polycore.SkeletonAnimation_Update(self.__ptr)
end
function SkeletonAnimation:setSpeed(speed)
local retVal = Polycore.SkeletonAnimation_setSpeed(self.__ptr, speed)
end
function SkeletonAnimation:__delete()
Polycore.__ptr_lookup[self.__ptr] = nil
Polycore.delete_SkeletonAnimation(self.__ptr)
end
| mit |
samboy/Oblige | games/quake/themes.lua | 1 | 5425 | ------------------------------------------------------------------------
-- QUAKE THEMES
------------------------------------------------------------------------
--
-- Copyright (C) 2006-2015 Andrew Apted
-- Copyright (C) 2011 Chris Pisarczyk
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
------------------------------------------------------------------------
QUAKE.THEMES =
{
DEFAULTS =
{
keys =
{
k_silver = 60
k_gold = 20
}
fences =
{
ROCK5_2 = 50
}
}
q1_tech =
{
worldtype = 2
skies =
{
sky4 = 80
sky1 = 20
}
liquids =
{
slime0 = 25
slime = 50
}
facades =
{
TECH14_2 = 50
}
}
q1_castle =
{
worldtype = 0
skies =
{
sky1 = 80
sky4 = 20
}
liquids =
{
lava1 = 50
}
facades =
{
BRICKA2_4 = 50
}
}
}
QUAKE.ROOM_THEMES =
{
any_Hallway =
{
env = "hallway"
walls =
{
WOOD1_5 = 30
}
floors =
{
WOODFLR1_5 = 50
}
ceilings =
{
WOODFLR1_4 = 50
}
}
----- TECH BASE ----------------------------------
q1_tech_Room =
{
env = "building"
walls =
{
TECH06_1=50, TECH08_2=50, TECH09_3=50, TECH08_1=50,
TECH13_2=50, TECH14_1=50, TWALL1_4=50, TECH14_2=50,
TWALL2_3=50, TECH03_1=50, TECH05_1=50,
}
floors =
{
FLOOR01_5=50, METAL2_4=50, METFLOR2_1=50, MMETAL1_1=50,
SFLOOR4_1=50, SFLOOR4_5=50, SFLOOR4_6=50, SFLOOR4_7=50,
WIZMET1_2=50, MMETAL1_6=50, MMETAL1_7=50, MMETAL1_8=50,
WMET4_5=50, WMET1_1=50,
}
ceilings =
{
FLOOR01_5=50, METAL2_4=50, METFLOR2_1=50, MMETAL1_1=50,
SFLOOR4_1=50, SFLOOR4_5=50, SFLOOR4_6=50, SFLOOR4_7=50,
WIZMET1_2=50, MMETAL1_6=50, MMETAL1_7=50, MMETAL1_8=50,
WMET4_5=50, WMET1_1=50,
}
}
-- TODO : these are duplicate of castle ones -- make them distinct
q1_tech_Cave =
{
env = "cave"
naturals =
{
ROCK1_2=10, ROCK5_2=40, ROCK3_8=20,
WALL11_2=10, GROUND1_6=10, GROUND1_7=10,
GRAVE01_3=10, WSWAMP1_2=20,
}
}
q1_tech_Outdoors =
{
env = "outdoor"
floors =
{
CITY4_6=30, CITY6_7=30,
CITY4_5=30, CITY4_8=30, CITY6_8=30,
WALL14_6=20, CITY4_1=30, CITY4_2=30, CITY4_7=30,
}
naturals =
{
GROUND1_2=50, GROUND1_5=50, GROUND1_6=20,
GROUND1_7=30, GROUND1_8=20,
ROCK3_7=50, ROCK3_8=50, ROCK4_2=50,
VINE1_2=50,
}
}
----- CASTLE ----------------------------------
q1_castle_Room =
{
env = "building"
walls =
{
BRICKA2_4=30, CITY5_4=30, WALL14_5=30, CITY1_4=30, METAL4_4=20, METALT1_1=15,
CITY5_8=40, CITY5_7=50, CITY6_3=50, CITY6_4=50, METAL4_3=20, METALT2_2=5,
CITY2_1=30, CITY2_2=30, CITY2_3=30, CITY2_5=30, METAL4_2=15, METALT2_3=20,
CITY2_6=30, CITY2_7=30, CITY2_8=30, CITY6_7=20, METAL4_7=20, METALT2_6=5,
CITY8_2=30, WALL3_4=30, WALL5_4=30, WBRICK1_5=30, METAL4_8=20, METALT2_7=20, WMET4_8=15,
WIZ1_4=30, WSWAMP1_4=30, WSWAMP2_1=30, WSWAMP2_2=30, ALTARC_1=20, WMET4_3=15, WMET4_7=15,
WWALL1_1=30, WALL3_4=30, ALTAR1_3=20, ALTAR1_6=5, ALTAR1_7=20, WMET4_4=15, WMET4_6=15,
}
floors =
{
AFLOOR1_4=50, AFLOOR3_1=25, AZFLOOR1_1=20, ROCK3_8=20, METAL5_4=30, FLOOR01_5=30,
CITY4_1=15, CITY4_2=25, CITY4_5=15, CITY4_6=20, ROCK3_7=20, METAL5_2=30, MMETAL1_2=15,
CITY4_7=15, CITY4_8=15, CITY5_1=30, CITY5_2=30, WALL3_4=30, CITY6_8=20,
CITY8_2=20, GROUND1_8=20, ROCK3_7=20, AFLOOR1_3=20, BRICKA2_4=30, WALL9_8=30,
AFLOOR1_8=20, WOODFLR1_5=20, BRICKA2_1=30, BRICKA2_2=30, CITY6_7=20, WOODFLR1_5=30,
}
ceilings =
{
DUNG01_4=50, DUNG01_5=50, ECOP1_8=50, ECOP1_4=50, ECOP1_6=50, WSWAMP1_4=30,
WIZMET1_1=50, WIZMET1_4=50, WIZMET1_6=50, WIZMET1_7=50, WIZ1_1=50, WSWAMP2_1=30,
GRAVE01_1=50, GRAVE01_3=50, GRAVE03_2=50, WALL3_4=30, WALL5_4=30, WALL11_2=20,
WSWAMP2_2=30, WBRICK1_5=30, WIZ1_4=20, COP1_1=30, COP1_2=30, COP1_8=30, COP2_2=30,
MET5_1=20, METAL1_1=20, METAL1_2=20, METAL1_3=20, WMET1_1=15,
}
}
q1_castle_Outdoors =
{
env = "outdoor"
floors =
{
CITY4_6=30, CITY6_7=30,
CITY4_5=30, CITY4_8=30, CITY6_8=30,
WALL14_6=20, CITY4_1=30, CITY4_2=30, CITY4_7=30,
}
naturals =
{
GROUND1_2=50, GROUND1_5=50, GROUND1_6=20,
GROUND1_7=30, GROUND1_8=20,
ROCK3_7=50, ROCK3_8=50, ROCK4_2=50,
VINE1_2=50,
}
}
q1_castle_Cave =
{
env = "cave"
naturals =
{
ROCK1_2=10, ROCK5_2=40, ROCK3_8=20,
WALL11_2=10, GROUND1_6=10, GROUND1_7=10,
GRAVE01_3=10, WSWAMP1_2=20,
}
}
}
------------------------------------------------------------------------
QUAKE.NAMES =
{
-- TODO
}
QUAKE.ROOMS =
{
GENERIC =
{
env = "any"
}
}
------------------------------------------------------------------------
OB_THEMES["q1_tech"] =
{
label = _("Tech")
game = "quake"
name_theme = "TECH"
mixed_prob = 50
}
OB_THEMES["q1_castle"] =
{
label = _("Castle")
game = "quake"
name_theme = "URBAN"
mixed_prob = 50
}
| gpl-2.0 |
nwf/openwrt-luci | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 68 | 1868 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local utl = require "luci.util"
m = Map("freifunk-widgets", translate("Widgets"),
translate("Configure installed widgets."))
wdg = m:section(TypedSection, "widget", translate("Widgets"))
wdg.addremove = true
wdg.extedit = luci.dispatcher.build_url("admin/freifunk/widgets/widget/%s")
wdg.template = "cbi/tblsection"
wdg.sortable = true
--[[
function wdg.create(...)
local sid = TypedSection.create(...)
luci.http.redirect(wdg.extedit % sid)
end
]]--
local en = wdg:option(Flag, "enabled", translate("Enable"))
en.rmempty = false
--en.default = "0"
function en.cfgvalue(self, section)
return Flag.cfgvalue(self, section) or "0"
end
local tmpl = wdg:option(ListValue, "template", translate("Template"))
local file
for file in fs.dir("/usr/lib/lua/luci/view/freifunk/widgets/") do
if file ~= "." and file ~= ".." then
tmpl:value(file)
end
end
local title = wdg:option(Value, "title", translate("Title"))
title.rmempty = true
local width = wdg:option(Value, "width", translate("Width"))
width.rmempty = true
local height = wdg:option(Value, "height", translate("Height"))
height.rmempty = true
local pr = wdg:option(Value, "paddingright", translate("Padding right"))
pr.rmempty = true
function m.on_commit(self)
-- clean custom text files whose config has been deleted
local dir = "/usr/share/customtext/"
local active = {}
uci:foreach("freifunk-widgets", "widget", function(s)
if s["template"] == "html" then
table.insert(active, s[".name"])
end
end )
local file
for file in fs.dir(dir) do
local filename = string.gsub(file, ".html", "")
if not utl.contains(active, filename) then
fs.unlink(dir .. file)
end
end
end
return m
| apache-2.0 |
AlexandreCA/darkstar | scripts/globals/mobskills/Emetic_Discharge.lua | 44 | 2025 | ---------------------------------------------
-- Emetic Discharge
-- Family: Bloodlapper and Brummbar
-- Description: Transfers all ailments to target
-- Type: Enfeebling
-- Utsusemi/Blink absorb: 2-3 shadows
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
return 0;
end;
function onMobWeaponSkill(target, mob, skill)
local removables = {EFFECT_FLASH, EFFECT_BLINDNESS, EFFECT_ELEGY, EFFECT_REQUIEM, EFFECT_PARALYSIS, EFFECT_POISON,
EFFECT_CURSE_I, EFFECT_CURSE_II, EFFECT_DISEASE, EFFECT_PLAGUE, EFFECT_WEIGHT, EFFECT_BIND,
EFFECT_BIO, EFFECT_DIA, EFFECT_BURN, EFFECT_FROST, EFFECT_CHOKE, EFFECT_RASP, EFFECT_SHOCK, EFFECT_DROWN,
EFFECT_STR_DOWN, EFFECT_DEX_DOWN, EFFECT_VIT_DOWN, EFFECT_AGI_DOWN, EFFECT_INT_DOWN, EFFECT_MND_DOWN,
EFFECT_CHR_DOWN, EFFECT_ADDLE, EFFECT_SLOW, EFFECT_HELIX, EFFECT_ACCURACY_DOWN, EFFECT_ATTACK_DOWN,
EFFECT_EVASION_DOWN, EFFECT_DEFENSE_DOWN, EFFECT_MAGIC_ACC_DOWN, EFFECT_MAGIC_ATK_DOWN, EFFECT_MAGIC_EVASION_DOWN,
EFFECT_MAGIC_DEF_DOWN, EFFECT_MAX_TP_DOWN, EFFECT_MAX_MP_DOWN, EFFECT_MAX_HP_DOWN};
local dmg = utils.takeShadows(target, 1, math.random(2,3)); --removes 2-3 shadows
--if removed more shadows than were up or there weren't any
if (dmg > 0) then
for i, effect in ipairs(removables) do
if (mob:hasStatusEffect(effect)) then
local statusEffect = mob:getStatusEffect(effect);
target:addStatusEffect(effect, statusEffect:getPower(), statusEffect:getTickCount(), statusEffect:getDuration());
mob:delStatusEffect(effect);
end;
end;
end;
skill:setMsg(MSG_NO_EFFECT); -- no effect
return 0;
end; | gpl-3.0 |
AlexandreCA/update | scripts/zones/Port_Bastok/npcs/Rosswald.lua | 36 | 1683 | -----------------------------------
-- Area: Port Bastok
-- NPC: Rosswald
-- Only sells when Bastok controlls Zulkheim Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
RegionOwner = GetRegionOwner(ZULKHEIM);
if (RegionOwner ~= BASTOK) then
player:showText(npc,ROSSWALD_CLOSED_DIALOG);
else
player:showText(npc,ROSSWALD_OPEN_DIALOG);
stock = {
0x1114, 44, --Giant Sheep Meat
0x026E, 44, --Dried Marjoram
0x0262, 55, --San d'Orian Flour
0x0263, 36, --Rye Flour
0x0730, 1840, --Semolina
0x110E, 22, --La Theine Cabbage
0x111A, 55 --Selbina Milk
}
showShop(player,BASTOK,stock);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
virgo-agent-toolkit/rackspace-monitoring-agent | features.lua | 1 | 1504 | --[[
Copyright 2015 Rackspace
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
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.
--]]
local FEATURE_UPGRADES = { name = 'upgrades', version = '1.0.0' }
local FEATURE_CONFD = { name = 'confd', version = '1.0.0' }
local FEATURE_HEALTH = { name = 'health', version = '1.0.0' }
local FEATURES = {
FEATURE_UPGRADES,
FEATURE_CONFD,
FEATURE_HEALTH
}
local function disable(name, remove)
for i, v in pairs(FEATURES) do
if v.name == name then
if remove then
table.remove(FEATURES, i)
else
v.disabled = true
end
break
end
end
end
local function get(name)
if not name then return FEATURES end
for _, v in pairs(FEATURES) do
if v.name == name then return v end
end
return
end
local function disableWithOption(option, name, remove)
if not option then return end
option = option:lower()
if option == 'disabled' or option == 'false' then
disable(name, remove)
end
end
exports.get = get
exports.disable = disable
exports.disableWithOption = disableWithOption
| apache-2.0 |
AlexandreCA/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fk.lua | 13 | 1076 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 100 -34 88 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (npc:getAnimation() == 9) then
player:messageSpecial(SOLID_STONE);
end
return 0;
end;
--
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Upper_Jeuno/npcs/Khe_Chalahko.lua | 13 | 1264 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Khe Chalahko
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:showText(npc,KHECHALAHKO_SHOP_DIALOG);
stock = {0x3080,29311, -- Sallet
0x3100,45208, -- Breastplate
0x3200,34776, -- Cuisses
0x3280,21859, -- Plate Leggins
0x320A,53130, -- Breeches
0x328A,32637} -- Sollerets
showShop(player, STATIC, stock);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/sprayhelper/server.lua | 1 | 6331 | Plugin.HasConfig = false
-- Plugin.ConfigName = "sprayhelper.json"
local lastSprays = {}
local md = TGNSMessageDisplayer.Create("SPRAYS")
local fetchedSprays = {}
function Plugin:ClientConfirmConnect(client)
TGNS.DoFor(fetchedSprays, function(s)
if s.exists == nil then
s.exists = GetFileExists(s.path)
end
if s.exists then
TGNS.ScheduleAction(0, function()
if Shine:IsValidClient(client) then
TGNS.SendNetworkMessageToPlayer(TGNS.GetPlayer(client), "SH_readyroomrave_CreateSpray", { originX = s.x, originY = s.y, originZ = s.z, yaw = s.yaw, pitch = s.pitch, roll = s.roll, path = s.path })
end
end)
end
end)
end
local function storeLastSpray(client, path, x, y, z, yaw, roll, pitch)
local spray = {}
spray.mapName = TGNS.GetCurrentMapName()
spray.path = path
spray.x = x
spray.y = y
spray.z = z
spray.yaw = yaw
spray.roll = roll
spray.pitch = pitch
spray.playerid = TGNS.GetClientSteamId(client)
lastSprays[client] = spray
end
local function updateFetchedSprays()
local url = string.format("%s&m=%s", TGNS.Config.SpraysEndpointBaseUrl, TGNS.UrlEncode(TGNS.GetCurrentMapName()))
TGNS.GetHttpAsync(url, function(responseJson)
local response = json.decode(responseJson) or {}
if response.success then
fetchedSprays = TGNS.Select(response.sprays, function(s)
s.mapName = TGNS.GetCurrentMapName()
return s
end)
else
TGNS.DebugPrint(string.format("sprayhelper ERROR: Unable to get sprays. msg: %s | response: %s | stacktrace: %s | url: %s", response.msg, responseJson, response.stacktrace, url), not TGNS.IsProduction())
end
end)
end
function Plugin:PlayerSay(client, networkMessage)
if TGNS.IsClientReadyRoom(client) then
-- local teamOnly = networkMessage.teamOnly
local message = StringTrim(networkMessage.message)
if TGNS.ToLower(message) == "keep" then
local player = TGNS.GetPlayer(client)
if TGNS.IsClientSM(client) then
local spray = lastSprays[client]
if spray then
if TGNS.Contains(spray.path, TGNS.GetClientSteamId(client)) then
local clientName = TGNS.GetClientName(client)
local url = string.format("%s&mapName=%s&path=%s&x=%s&y=%s&z=%s&yaw=%s&roll=%s&pitch=%s&playerid=%s", TGNS.Config.SpraysEndpointBaseUrl, TGNS.UrlEncode(spray.mapName), TGNS.UrlEncode(spray.path), TGNS.UrlEncode(spray.x), TGNS.UrlEncode(spray.y), TGNS.UrlEncode(spray.z), TGNS.UrlEncode(spray.yaw), TGNS.UrlEncode(spray.roll), TGNS.UrlEncode(spray.pitch), TGNS.UrlEncode(spray.playerid))
TGNS.GetHttpAsync(url, function(responseJson)
local response = json.decode(responseJson) or {}
if response.success then
if TGNS.IsGameInProgress() then
md:ToPlayerNotifyInfo(TGNS.GetPlayer(client), "Spray kept. It will appear at all times for all players.")
else
md:ToAllNotifyInfo(string.format("Spray kept for %s (and removed from other Ready Rooms). It will appear here at all times for all players.", clientName))
end
lastSprays[client] = nil
updateFetchedSprays()
else
md:ToPlayerNotifyError(player, "Spray not kept. Unexpected error.")
TGNS.DebugPrint(string.format("sprayhelper ERROR: Unable to persist spray. msg: %s | response: %s | stacktrace: %s | url: %s", response.msg, responseJson, response.stacktrace, url))
end
end)
else
md:ToPlayerNotifyError(player, "Only personalized sprays may be kept on the game server. Create a CAA thread to submit your personalized spray image.")
return ""
end
else
md:ToPlayerNotifyError(player, "No new spray. Spray and try again.")
return ""
end
else
md:ToPlayerNotifyError(player, "Only Supporting Members may keep sprays on the server.")
return ""
end
end
end
end
function Plugin:Initialise()
self.Enabled = true
-- self:CreateCommands()
TGNS.ScheduleAction(5, function()
local md = TGNSMessageDisplayer.Create()
if Shine.Commands.sh_sound then
Shine.Commands.sh_sound.Func = function(client)
md:ToPlayerNotifyError(TGNS.GetPlayer(client), "This feature is not available.")
end
end
if Shine.Commands.sh_rave then
Shine.Commands.sh_rave.Func = function(client)
md:ToPlayerNotifyError(TGNS.GetPlayer(client), "This feature is not available.")
end
end
if Shine.Commands.sh_spray then
local originalSprayFunc = Shine.Commands.sh_spray.Func
Shine.Commands.sh_spray.Func = function(client)
if TGNS.IsClientReadyRoom(client) then
local originalShineGetUserData = Shine.GetUserData
Shine.GetUserData = function(shineSelf, getUserDataClient)
local userData = {}
userData.Decal = {}
local steamId = TGNS.GetClientSteamId(client)
local customPath = string.format("ui/sprays/%s.material", steamId)
local materialPath = (TGNS.IsClientSM(client) and GetFileExists(customPath)) and customPath or "ui/sprays/tgns.material"
table.insert(userData.Decal, materialPath)
return userData, getUserDataClient
end
local originalGetEntitiesWithinRange = GetEntitiesWithinRange
GetEntitiesWithinRange = function(className, origin, range)
if className == "Player" then
range = 10000
end
return originalGetEntitiesWithinRange(className, origin, range)
end
local originalSendNetworkMessage = Shine.Plugins.readyroomrave.SendNetworkMessage
Shine.Plugins.readyroomrave.SendNetworkMessage = function(raveSelf, player, messageName, messageTable, reliable)
storeLastSpray(client, messageTable.path, messageTable.originX, messageTable.originY, messageTable.originZ, messageTable.yaw, messageTable.roll, messageTable.pitch)
originalSendNetworkMessage(raveSelf, player, messageName, messageTable, reliable)
end
originalSprayFunc(client)
GetEntitiesWithinRange = originalGetEntitiesWithinRange
Shine.GetUserData = originalShineGetUserData
Shine.Plugins.readyroomrave.SendNetworkMessage = originalSendNetworkMessage
end
end
end
end)
TGNS.HookNetworkMessage(self.SPRAY_REQUESTED, function(client)
if Shine.Commands.sh_spray then
Shine.Commands.sh_spray.Func(client)
end
end)
TGNS.DoWithConfig(updateFetchedSprays)
return true
end
function Plugin:Cleanup()
--Cleanup your extra stuff like timers, data etc.
self.BaseClass.Cleanup( self )
end | mit |
AlexandreCA/darkstar | scripts/zones/North_Gustaberg_[S]/npcs/Gebhardt.lua | 13 | 1257 | -----------------------------------
-- Area: North Gustaberg (S) (I-6)
-- NPC: Gebhardt
-- Involved in Quests: The Fighting Fourth
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/North_Gustaberg_[S]/TextIDs");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getQuestStatus(CRYSTAL_WAR,THE_FIGHTING_FOURTH) == QUEST_ACCEPTED and player:hasKeyItem(917)) == true then
player:startEvent(0x0066)
else
player:startEvent(0x006E)
end
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x0066) then
player:delKeyItem(BATTLE_RATIONS);
player:setVar("THE_FIGHTING_FOURTH",1);
end
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Northern_San_dOria/npcs/Shomo_Pochachilo.lua | 38 | 1288 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Shomo Pochachilo
-- Type: Standard Info NPC
-- @zone: 231
-- @pos 28.369 -0.199 30.061
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Northern_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
quest_FatherAndSon = player:getQuestStatus(SANDORIA,FATHER_AND_SON);
if (quest_FatherAndSon == QUEST_COMPLETED) then
player:startEvent(0x02b8);
else
player:startEvent(0x02a3);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
boundary/luvit | lib/luvit/stack.lua | 9 | 2997 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
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
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.
--]]
local url = require('url')
local stack = {}
function stack.stack(...)
local errorHandler = stack.errorHandler
local handle = errorHandler
local layers = {...}
for i = #layers, 1, -1 do
local layer = layers[i]
local child = handle
handle = function(req, res)
local success, err = pcall(function ()
layer(req, res, function (err)
if err then return errorHandler(req, res, err) end
child(req, res)
end)
end)
if not success and err then
errorHandler(req, res, err)
end
end
end
return handle
end
local function core(req, res, continue) continue() end
-- Build a composite stack made of several layers
function stack.compose(...)
local layers = {...}
-- Don't bother composing singletons
if #layers == 1 then return layers[1] end
local stack = core
for i = #layers, 1, -1 do
local layer = layers[i]
local child = stack
stack = function (req, res, continue)
local success, err = pcall(function ()
layer(req, res, function (err)
if err then return continue(err) end
child(req, res, continue)
end)
end)
if not success and err then
continue(err)
end
end
end
return stack
end
-- Mounts a substack app at a url subtree
function stack.mount(mountpoint, ...)
if mountpoint:sub(#mountpoint) == "/" then
mountpoint = mountpoint:sub(1, #mountpoint - 1)
end
local matchpoint = mountpoint .. "/"
return stack.translate(mountpoint, matchpoint, ...)
end
function stack.translate(mountpoint, matchpoint, ...)
local stack = stack.compose(...)
return function(req, res, continue)
local url = req.url
local uri = req.uri
if not (url:sub(1, #matchpoint) == matchpoint) then return continue() end
-- Modify the url
if not req.real_url then req.real_url = url end
req.url = url:sub(#mountpoint + 1)
-- We only want to set the parsed uri if there was already one there
if req.uri then req.uri = url.parse(req.url) end
stack(req, res, function (err)
req.url = url
req.uri = uri
continue(err)
end)
end
end
local Debug = require('debug')
function stack.errorHandler(req, res, err)
if err then
res:setCode(500)
res:finish(Debug.traceback(err) .. "\n")
return
end
res:setCode(404)
res:finish("Not Found\n")
end
return stack
| apache-2.0 |
AlexandreCA/update | scripts/globals/items/bowl_of_vegetable_broth.lua | 35 | 1399 | -----------------------------------------
-- ID: 4323
-- Item: bowl_of_vegetable_broth
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 5
-- Ranged Accuracy 6
-- HP Recovered While Healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,14400,4323);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_VIT, -1);
target:addMod(MOD_AGI, 5);
target:addMod(MOD_RACC, 6);
target:addMod(MOD_HPHEAL, 3);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_VIT, -1);
target:delMod(MOD_AGI, 5);
target:delMod(MOD_RACC, 6);
target:delMod(MOD_HPHEAL, 3);
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/felicifruit.lua | 18 | 1191 | -----------------------------------------
-- ID: 5964
-- Item: Felicifruit
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -7
-- Intelligence 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
result = 0;
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,300,5964);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_AGI, -7);
target:addMod(MOD_INT, 5);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_AGI, -7);
target:delMod(MOD_INT, 5);
end;
| gpl-3.0 |
Dugy/wesnoth-names | data/ai/micro_ais/cas/ca_stationed_guardian.lua | 4 | 4538 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_guardian(cfg)
local filter = H.get_child(cfg, "filter") or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", filter }
}[1]
return guardian
end
local ca_stationed_guardian = {}
function ca_stationed_guardian:evaluation(cfg)
if get_guardian(cfg) then return cfg.ca_score end
return 0
end
function ca_stationed_guardian:execution(cfg)
-- (s_x, s_y): coordinates where guardian is stationed; tries to move here if there is nobody to attack
-- (g_x, g_y): location that the guardian guards
local guardian = get_guardian(cfg)
local enemies = wesnoth.get_units {
{ "filter_side", { { "enemy_of", { side = wesnoth.current.side } } } },
{ "filter_location", { x = guardian.x, y = guardian.y, radius = cfg.distance } }
}
-- If no enemies are within cfg.distance: keep guardian from doing anything and exit
if not enemies[1] then
AH.checked_stopunit_moves(ai, guardian)
return
end
-- Otherwise, guardian will either attack or move toward station
-- Enemies must be within cfg.distance of guardian, (s_x, s_y) *and* (g_x, g_y)
-- simultaneously for guardian to attack
local min_dist, target = 9e99
for _,enemy in ipairs(enemies) do
local dist_s = H.distance_between(cfg.station_x, cfg.station_y, enemy.x, enemy.y)
local dist_g = H.distance_between(cfg.guard_x or cfg.station_x, cfg.guard_y or cfg.station_y, enemy.x, enemy.y)
-- If valid target found, save the one with the shortest distance from (g_x, g_y)
if (dist_s <= cfg.distance) and (dist_g <= cfg.distance) and (dist_g < min_dist) then
target, min_dist = enemy, dist_g
end
end
-- If a valid target was found, guardian attacks this target, or moves toward it
if target then
-- Find tiles adjacent to the target
-- Save the one with the highest defense rating that guardian can reach
local best_defense, attack_loc = -9e99
for xa,ya in H.adjacent_tiles(target.x, target.y) do
-- Only consider unoccupied hexes
local occ_hex = wesnoth.get_units { x = xa, y = ya, { "not", { id = guardian.id } } }[1]
if not occ_hex then
local defense = 100 - wesnoth.unit_defense(guardian, wesnoth.get_terrain(xa, ya))
local nh = AH.next_hop(guardian, xa, ya)
if nh then
if (nh[1] == xa) and (nh[2] == ya) and (defense > best_defense) then
best_defense, attack_loc = defense, { xa, ya }
end
end
end
end
-- If a valid hex was found: move there and attack
if attack_loc then
AH.movefull_stopunit(ai, guardian, attack_loc)
if (not guardian) or (not guardian.valid) then return end
if (not target) or (not target.valid) then return end
AH.checked_attack(ai, guardian, target)
else -- Otherwise move toward that enemy
local reach = wesnoth.find_reach(guardian)
-- Go through all hexes the guardian can reach, find closest to target
-- Cannot use next_hop here since target hex is occupied by enemy
local min_dist, nh = 9e99
for _,hex in ipairs(reach) do
-- Only consider unoccupied hexes
local occ_hex = wesnoth.get_units { x = hex[1], y = hex[2], { "not", { id = guardian.id } } }[1]
if not occ_hex then
local dist = H.distance_between(hex[1], hex[2], target.x, target.y)
if (dist < min_dist) then
min_dist, nh = dist, { hex[1], hex[2] }
end
end
end
AH.movefull_stopunit(ai, guardian, nh)
end
-- If no enemy is within the target zone, move toward station position
else
local nh = AH.next_hop(guardian, cfg.station_x, cfg.station_y)
if not nh then
nh = { guardian.x, guardian.y }
end
AH.movefull_stopunit(ai, guardian, nh)
end
if (not guardian) or (not guardian.valid) then return end
AH.checked_stopunit_moves(ai, guardian)
-- If there are attacks left and guardian ended up next to an enemy, we'll leave this to RCA AI
end
return ca_stationed_guardian
| gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fayeewah.lua | 13 | 1166 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fayeewah
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/globals/shop");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:showText(npc,FAYEEWAH_SHOP_DIALOG);
stock = {0x15c2,68, -- Cup of Chai
0x15c4,2075} -- Irmik Helvasi
showShop(player, STATIC, stock);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Grounds_Tome.lua | 30 | 1095 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
startGov(GOV_EVENT_BOYAHDA_TREE,player);
end;
-----------------------------------
-- onEventSelection
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
updateGov(player,csid,option,719,720,721,722,723,724,725,726,0,0);
end;
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
finishGov(player,csid,option,719,720,721,722,723,724,725,726,0,0,GOV_MSG_BOYAHDA_TREE);
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm18.lua | 17 | 1550 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns: Lacovie
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
--[[
if (GetMobAction(16961931) == ACTION_NONE) then -- NM not already spawned from this
if (player:hasKeyItem(OVERGROWN_MANDRAGORA_FLOWER) and player:hasKeyItem(CHIPPED_SANDWORM_TOOTH)) then
player:startEvent(1020, OVERGROWN_MANDRAGORA_FLOWER, CHIPPED_SANDWORM_TOOTH); -- Ask if player wants to use KIs
else
player:startEvent(1021, OVERGROWN_MANDRAGORA_FLOWER, CHIPPED_SANDWORM_TOOTH); -- Do not ask, because player is missing at least 1.
end
end
]]
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID2: %u",csid);
-- printf("RESULT2: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 1020 and option == 1) then
SpawnMob(16961931):updateClaim(player); -- Spawn NM, Despawn after inactive for 5 minutes (pt has to reclaim within 5 of a wipe)
player:delKeyItem(OVERGROWN_MANDRAGORA_FLOWER);
player:delKeyItem(CHIPPED_SANDWORM_TOOTH);
end
end; | gpl-3.0 |
XuJiandong/raspberrypi-toolbox | lua/main.lua | 1 | 4738 | local ffi = require("ffi")
local rt = ffi.load("librpi-toolbox.so")
ffi.cdef([[
// user defined
extern void init_gpio(void);
extern void clean_gpio(void);
extern void enable_gpio_read(int port);
extern void enable_gpio_write(int port);
extern void write_gpio(int port, int n);
extern int read_gpio(int port);
extern void init_i2c(int n);
extern void clean_i2c(void);
extern void i2c_set_addr(int n);
extern int i2c_get_file(void);
extern void i2c_write_byte(uint8_t);
extern uint8_t i2c_read_byte(void);
extern void bmp180_init(void);
extern int bmp180_get_t(void);
extern int bmp180_get_p(void);
extern void lcd_init(void);
extern void lcd_display(const char* str, int line);
extern void lcd_clear(void);
extern void lcd_write_cmd(uint8_t);
extern void lcd_write_data(uint8_t);
// std
int usleep(unsigned int usec);
]])
function main(...)
rt.bmp180_init()
print(string.format("t = %f, p = %d", rt.bmp180_get_t()/10, rt.bmp180_get_p()))
end
function msleep(m)
ffi.C.usleep(1000*m)
end
function testGpio()
rt.init_gpio()
rt.enable_gpio_write(18)
rt.write_gpio(18, 1)
ffi.C.usleep(1000*1000);
rt.write_gpio(18, 0)
end
function testing()
ffi.C.usleep(1000*1000)
print("done")
end
function testI2c(...)
local argv = {...}
local v = 1
if argv[1] then
v = tonumber(argv[1])
end
rt.init_i2c(1)
rt.i2c_set_addr(0x27)
print("write " .. tostring(v) .. " to 0x27 on i2c")
rt.i2c_write_byte(v)
end
function testI2cAdc(...)
local argv = {...}
local addr
if argv[2] then
addr = tonumber(argv[2])
else
print("specify address")
return
end
print("address is %d" .. tostring(addr))
rt.init_i2c(1)
rt.i2c_set_addr(addr)
while true do
-- 0: µçλÆ÷ 1: ¹âÃô 2: ÈÈÃô 3: input
rt.i2c_write_byte(1)
local value = rt.i2c_read_byte() -- previous measurement, discard
value = rt.i2c_read_byte()
print("reading value :" .. tostring(value))
msleep(2000)
end
end
-- LCD part
function LcdPrintln(str, line)
if not str then
print("LcdPrintln() error, specify string")
return
end
if line < 0 or line > 4 then
print("LcdPrintln() error, invalid line")
return
end
if string.len(str) > 20 then
str = string.sub(str, 1, 20)
end
rt.lcd_display(str, line)
end
function LcdWriteCmd(cmd)
if type(cmd) ~= "number" then
print("LcdWriteCmd() only accept integer")
return
end
rt.lcd_write_cmd(cmd)
end
function LcdEnableShift(e)
local v = 0x06
if e then
v = v + 1
end
LcdWriteCmd(v)
end
function LcdCursor(on, blink)
local v = 0x08 + 0x04
if on then
v = v + 2
end
if blink then
v = v + 1
end
LcdWriteCmd(v)
end
function LcdOn(on)
local v = 0x08
if on then
v = v + 0x04
end
LcdWriteCmd(v)
end
function LcdBlink(cycle, time)
local elapsed = 0
while true do
LcdOn(true)
msleep(cycle)
LcdOn(false)
msleep(500)
elapsed = elapsed + cycle + 500
if elapsed > time then
break
end
end
LcdOn(true)
end
function LcdOutput(...)
rt.lcd_init()
rt.lcd_clear()
for i, v in ipairs({...}) do
if i <= 4 then
LcdPrintln(v, i)
else
break
end
end
end
function LcdReadStdin()
local buff = {}
for line in io.lines() do
table.insert(buff, line)
if #buff > 4 then
table.remove(buff, 1)
end
LcdOutput(unpack(buff))
-- delay
msleep(1000)
end
end
function testLcd1602(...)
rt.lcd_init()
rt.lcd_clear()
LcdPrintln("-----------", 1)
LcdPrintln("hello,world, -------------------------------", 2)
LcdPrintln("FBI Warning, -------------------------------", 3)
LcdPrintln("-----------", 4)
msleep(2000)
LcdCursor(true, false)
print("show cursor")
msleep(2000)
LcdCursor(true, true)
print("cursor blink")
LcdBlink(2000, 10000)
local count = 0
while true do
msleep(1000)
io.write(".")
io.flush()
count = count + 1
if count >= 60 then
io.write("\n")
io.flush()
count = 0
end
end
end
function usage()
print("sudo bash run.sh [lcdtest|lcd|adctest]")
return 1
end
if ... then
local args = {...}
if args[1] == "lcdtest" then
testLcd1602(...)
elseif args[1] == "lcd" then
LcdReadStdin()
elseif args[1] == "adctest" then
testI2cAdc(...)
else
return usage()
end
else
return usage()
end
| mit |
AlexandreCA/darkstar | scripts/zones/Castle_Oztroja/npcs/_47w.lua | 13 | 1276 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47w (Handle)
-- Notes: Opens door _473 from behind
-- @pos -41.377 -17.084 17.036 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
require("scripts/globals/settings");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
local DoorID = npc:getID() - 1;
local DoorA = GetNPCByID(DoorID):getAnimation();
if (player:getXPos() > -43) then
if (DoorA == 9 and npc:getAnimation() == 9) then
npc:openDoor(6.5);
-- Should be a ~1 second delay here before the door opens
GetNPCByID(DoorID):openDoor(4.5);
end
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
jstewart-amd/premake-core | scripts/package.lua | 5 | 4331 | ---
-- Create a source or binary release package.
---
---
-- Helper function: run a command while hiding its output.
---
local function execQuiet(cmd, ...)
cmd = string.format(cmd, ...) .. " > _output_.log 2> _error_.log"
local z = os.execute(cmd)
os.remove("_output_.log")
os.remove("_error_.log")
return z
end
---
-- Check the command line arguments, and show some help if needed.
---
local usage = 'usage is: package <branch> <type>\n' ..
' <branch> is the name of the release branch to target\n' ..
' <type> is one of "source" or "binary"\n'
if #_ARGS ~= 2 then
error(usage, 0)
end
local branch = _ARGS[1]
local kind = _ARGS[2]
if kind ~= "source" and kind ~= "binary" then
error(usage, 0)
end
--
-- Make sure I've got what I've need to be happy.
--
local required = { "git", "make", "gcc", "premake5", "zip" }
for _, value in ipairs(required) do
local z = execQuiet("%s --version", value)
if z ~= 0 then
error("required tool '" .. value .. "' not found", 0)
end
end
--
-- Figure out what I'm making.
--
os.chdir("..")
local text = os.outputof(string.format('git show %s:src/host/premake.h', branch))
local _, _, version = text:find('VERSION%s*"([%w%p]+)"')
local pkgName = "premake-" .. version
local pkgExt = ".zip"
if not os.is("windows") and kind == "binary" then
pkgExt = ".tar.gz"
end
--
-- Make sure I'm sure.
--
printf("")
printf("I am about to create a %s package", kind:upper())
printf(" ...named release/%s%s", pkgName, pkgExt)
printf(" ...from the %s branch", branch)
printf("")
printf("Does this look right to you? If so, press [Enter] to begin.")
io.read()
--
-- Pull down the release branch.
--
print("Preparing release folder")
os.mkdir("release")
os.chdir("release")
os.rmdir(pkgName)
print("Cloning source code")
z = os.executef("git clone .. %s", pkgName)
if z ~= 0 then
error("clone failed", 0)
end
os.chdir(pkgName)
z = os.executef("git checkout %s", branch)
if z ~= 0 then
error("unable to checkout branch " .. branch, 0)
end
z = os.executef("git submodule update --init")
if z ~= 0 then
error("unable to clone submodules", 0)
end
--
-- Make absolutely sure the embedded scripts have been updated
--
print("Updating embedded scripts...")
if kind == "source" then
z = execQuiet("premake5 embed")
else
z = execQuiet("premake5 --bytecode embed")
end
if z ~= 0 then
error("failed to update the embedded scripts", 0)
end
--
-- Clear out files I don't want included in any packages.
--
print("Cleaning up the source tree...")
os.rmdir("packages")
local modules = table.join(".", os.matchdirs("modules/*"))
for _, module in ipairs(modules) do
for _, name in ipairs { ".git" } do
os.rmdir(path.join(module, name))
end
for _, name in ipairs { ".DS_Store", ".git", ".gitignore", ".gitmodules", ".travis.yml", ".editorconfig", "Bootstrap.mak" } do
os.remove(path.join(module, name))
end
end
--
-- Generate a source package.
--
if kind == "source" then
print("Generating project files...")
execQuiet("premake5 /to=build/vs2005 vs2005")
execQuiet("premake5 /to=build/vs2008 vs2008")
execQuiet("premake5 /to=build/vs2010 vs2010")
execQuiet("premake5 /to=build/vs2012 vs2012")
execQuiet("premake5 /to=build/vs2013 vs2013")
execQuiet("premake5 /to=build/vs2015 vs2015")
execQuiet("premake5 /to=build/gmake.windows /os=windows gmake")
execQuiet("premake5 /to=build/gmake.unix /os=linux gmake")
execQuiet("premake5 /to=build/gmake.macosx /os=macosx gmake")
print("Creating source code package...")
os.chdir("..")
execQuiet("zip -r9 %s-src.zip %s/*", pkgName, pkgName)
end
--
-- Create a binary package for this platform. This step requires a working
-- GNU/Make/GCC environment. I use MinGW on Windows as it produces the
-- smallest binaries.
--
if kind == "binary" then
print("Building binary...")
execQuiet("premake5 gmake")
z = execQuiet("make config=release")
if z ~= 0 then
error("build failed")
end
os.chdir("bin/release")
local name = string.format("%s-%s%s", pkgName, os.get(), pkgExt)
if os.is("windows") then
execQuiet("zip -9 %s premake5.exe", name)
else
execQuiet("tar czvf %s premake5", name)
end
os.copyfile(name, path.join("../../../", name))
os.chdir("../../..")
end
--
-- Clean up
--
os.rmdir(pkgName)
| bsd-3-clause |
linino/packages | net/luci-app-clamav/files/model/cbi/clamav-cbi.lua | 100 | 6776 | --[[
LuCI ClamAV module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj@sartura.hr>
Luka Perkov <luka.perkov@sartura.hr>
]]--
local fs = require "nixio.fs"
local sys = require "luci.sys"
require "ubus"
m = Map("clamav", translate("ClamAV"))
m.on_after_commit = function() luci.sys.call("/etc/init.d/clamav restart") end
s = m:section(TypedSection, "clamav")
s.anonymous = true
s.addremove = false
s:tab("tab_advanced", translate("Settings"))
s:tab("tab_logs", translate("Log"))
--------------- Settings --------------
LogFileMaxSize = s:taboption("tab_advanced", Value, "LogFileMaxSize", translate("Max size of log file"))
LogFileMaxSize:value("512K", translate("512K"))
LogFileMaxSize:value("1M", translate("1M"))
LogFileMaxSize:value("2M", translate("2M"))
LogFileMaxSize.default = "1M"
LogTime = s:taboption("tab_advanced", ListValue, "LogTime", translate("Log time with each message"))
LogTime:value("no", translate("No"))
LogTime:value("yes", translate("Yes"))
LogTime.default = "no"
LogVerbose = s:taboption("tab_advanced", ListValue, "LogVerbose", translate("Enable verbose logging"))
LogVerbose:value("no", translate("No"))
LogVerbose:value("yes", translate("Yes"))
LogVerbose.default = "no"
ExtendedDetectionInfo = s:taboption("tab_advanced", ListValue, "ExtendedDetectionInfo", translate("Log additional infection info"))
ExtendedDetectionInfo:value("no", translate("No"))
ExtendedDetectionInfo:value("yes", translate("Yes"))
ExtendedDetectionInfo.default = "no"
dummy3 = s:taboption("tab_advanced", DummyValue, "")
dummy4 = s:taboption("tab_advanced", DummyValue, "")
MaxDirectoryRecursion = s:taboption("tab_advanced", Value, "MaxDirectoryRecursion", translate("Max directory scan depth"))
MaxDirectoryRecursion:value("15", translate("15"))
MaxDirectoryRecursion:value("20", translate("20"))
MaxDirectoryRecursion.default = "15"
FollowDirectorySymlink = s:taboption("tab_advanced", ListValue, "FollowDirectorySymlink", translate("Follow directory symlinks"))
FollowDirectorySymlink:value("no", translate("No"))
FollowDirectorySymlink:value("yes", translate("Yes"))
FollowDirectorySymlink.default = "no"
FollowFileSymlinks = s:taboption("tab_advanced", ListValue, "FollowFileSymlinks", translate("Follow file symlinks"))
FollowFileSymlinks:value("no", translate("No"))
FollowFileSymlinks:value("yes", translate("Yes"))
FollowFileSymlinks.default = "no"
DetectPUA = s:taboption("tab_advanced", ListValue, "DetectPUA", translate("Detect possibly unwanted apps"))
DetectPUA:value("no", translate("No"))
DetectPUA:value("yes", translate("Yes"))
DetectPUA.default = "no"
ScanPE = s:taboption("tab_advanced", ListValue, "ScanPE", translate("Scan portable executables"))
ScanPE:value("no", translate("No"))
ScanPE:value("yes", translate("Yes"))
ScanPE.default = "yes"
ScanELF = s:taboption("tab_advanced", ListValue, "ScanELF", translate("Scan ELF files"))
ScanELF:value("no", translate("No"))
ScanELF:value("yes", translate("Yes"))
ScanELF.default = "yes"
DetectBrokenExecutables = s:taboption("tab_advanced", ListValue, "DetectBrokenExecutables", translate("Detect broken executables"))
DetectBrokenExecutables:value("no", translate("No"))
DetectBrokenExecutables:value("yes", translate("Yes"))
DetectBrokenExecutables.default = "no"
ScanOLE2 = s:taboption("tab_advanced", ListValue, "ScanOLE2", translate("Scan MS Office and .msi files"))
ScanOLE2:value("no", translate("No"))
ScanOLE2:value("yes", translate("Yes"))
ScanOLE2.default = "yes"
ScanPDF = s:taboption("tab_advanced", ListValue, "ScanPDF", translate("Scan pdf files"))
ScanPDF:value("no", translate("No"))
ScanPDF:value("yes", translate("Yes"))
ScanPDF.default = "yes"
ScanSWF = s:taboption("tab_advanced", ListValue, "ScanSWF", translate("Scan swf files"))
ScanSWF:value("no", translate("No"))
ScanSWF:value("yes", translate("Yes"))
ScanSWF.default = "yes"
ScanMail = s:taboption("tab_advanced", ListValue, "ScanMail", translate("Scan emails"))
ScanMail:value("no", translate("No"))
ScanMail:value("yes", translate("Yes"))
ScanMail.default = "yes"
ScanPartialMessages = s:taboption("tab_advanced", ListValue, "ScanPartialMessages", translate("Scan RFC1341 messages split over many emails"))
ScanPartialMessages:value("no", translate("No"))
ScanPartialMessages:value("yes", translate("Yes"))
ScanPartialMessages.default = "no"
ScanArchive = s:taboption("tab_advanced", ListValue, "ScanArchive", translate("Scan archives"))
ScanArchive:value("no", translate("No"))
ScanArchive:value("yes", translate("Yes"))
ScanArchive.default = "yes"
ArchiveBlockEncrypted = s:taboption("tab_advanced", ListValue, "ArchiveBlockEncrypted", translate("Block encrypted archives"))
ArchiveBlockEncrypted:value("no", translate("No"))
ArchiveBlockEncrypted:value("yes", translate("Yes"))
ArchiveBlockEncrypted.default = "no"
dummy5 = s:taboption("tab_advanced", DummyValue, "")
dummy6 = s:taboption("tab_advanced", DummyValue, "")
StreamMinPort = s:taboption("tab_advanced", Value, "StreamMinPort", translate("Port range, lowest port"))
StreamMinPort.datatype = "portrange"
StreamMinPort:value("1024",translate("1024"))
StreamMinPort.default = "1024"
StreamMaxPort = s:taboption("tab_advanced", Value, "StreamMaxPort", translate("Port range, highest port"))
StreamMaxPort.datatype = "portrange"
StreamMaxPort:value("2048",translate("2048"))
StreamMaxPort.default = "2048"
MaxThreads = s:taboption("tab_advanced", Value, "MaxThreads", translate("Max number of threads"))
MaxThreads.datatype = "and(uinteger,min(1))"
MaxThreads:value("10",translate("10"))
MaxThreads:value("20",translate("20"))
MaxThreads.default = "10"
SelfCheck = s:taboption("tab_advanced", Value, "SelfCheck", translate("Database check every N sec"))
SelfCheck.datatype = "and(uinteger,min(1))"
SelfCheck:value("600",translate("600"))
SelfCheck.default = "600"
MaxFileSize = s:taboption("tab_advanced", Value, "MaxFileSize", translate("Max size of scanned file"))
MaxFileSize.datatype = "string"
MaxFileSize:value("150M",translate("150M"))
MaxFileSize:value("50M",translate("50M"))
MaxFileSize.default = "150M"
------------------ Log --------------------
clamav_logfile = s:taboption("tab_logs", TextValue, "lines", "")
clamav_logfile.wrap = "off"
clamav_logfile.rows = 25
clamav_logfile.rmempty = true
function clamav_logfile.cfgvalue()
local uci = require "luci.model.uci".cursor_state()
local file = "/tmp/clamd.log"
if file then
return fs.readfile(file) or ""
else
return ""
end
end
function clamav_logfile.write()
end
return m
| gpl-2.0 |
AlexandreCA/update | scripts/zones/Southern_San_dOria_[S]/npcs/Dilgeur.lua | 36 | 1106 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Dilgeur -- Misnamed NPC, name is Crochepallade when it should be Dilgeur, swap pos with the NPC at -46 2 -8
-- @zone 80
-- @pos 22 2 3
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x014A);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/serving_of_menemen_+1.lua | 35 | 1540 | -----------------------------------------
-- ID: 5587
-- Item: serving_of_menemen_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 35
-- MP 35
-- Agility 2
-- Intelligence -2
-- HP recovered while healing 2
-- MP recovered while healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,14400,5587);
end;
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_HP, 35);
target:addMod(MOD_MP, 35);
target:addMod(MOD_AGI, 2);
target:addMod(MOD_INT, -3);
target:addMod(MOD_HPHEAL, 2);
target:addMod(MOD_MPHEAL, 2);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_HP, 35);
target:delMod(MOD_MP, 35);
target:delMod(MOD_AGI, 2);
target:delMod(MOD_INT, -2);
target:delMod(MOD_HPHEAL, 2);
target:delMod(MOD_MPHEAL, 2);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Windurst_Woods/npcs/Peshi_Yohnts.lua | 44 | 2158 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Peshi Yohnts
-- Type: Bonecraft Guild Master
-- @pos -6.175 -6.249 -144.667 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
require("scripts/zones/Windurst_Woods/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
local newRank = tradeTestItem(player,npc,trade,SKILL_BONECRAFT);
if (newRank ~= 0) then
player:setSkillRank(SKILL_BONECRAFT,newRank);
player:startEvent(0x2721,0,0,0,0,newRank);
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
local getNewRank = 0;
local craftSkill = player:getSkillLevel(SKILL_BONECRAFT);
local testItem = getTestItem(player,npc,SKILL_BONECRAFT);
local guildMember = isGuildMember(player,2);
if (guildMember == 1) then guildMember = 64; end
if (canGetNewRank(player,craftSkill,SKILL_BONECRAFT) == 1) then getNewRank = 100; end
player:startEvent(0x2720,testItem,getNewRank,30,guildMember,44,0,0,0);
end;
-- 0x2720 0x2721 0x02c6 0x02c7 0x02c8 0x02c9 0x02ca 0x02cb 0x02fc
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x2720 and option == 1) then
local crystal = math.random(4096,4101);
if (player:getFreeSlotsCount() == 0) then
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,crystal);
else
player:addItem(crystal);
player:messageSpecial(ITEM_OBTAINED,crystal);
signupGuild(player,4);
end
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Churacoco.lua | 13 | 1064 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Churacoco
-- Type: Standard NPC
-- @zone: 94
-- @pos -76.139 -4.499 20.986
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x01b2);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Northern_San_dOria/npcs/Antonian.lua | 17 | 2157 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Antonian
-- Regional Marchant NPC
-- Only sells when San d'Oria controlls Aragoneu.
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
require("scripts/globals/conquest");
require("scripts/zones/Northern_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
-- "Flyers for Regine" conditional script
if (player:getQuestStatus(SANDORIA,FLYERS_FOR_REGINE) == 1) then
if (trade:hasItemQty(532,1) == true and trade:getItemCount() == 1) then
player:messageSpecial(FLYER_REFUSED);
end
else
onHalloweenTrade(player,trade,npc);
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
RegionOwner = GetRegionOwner(ARAGONEU);
if (RegionOwner ~= SANDORIA) then
player:showText(npc,ANTONIAN_CLOSED_DIALOG);
else
player:showText(npc,ANTONIAN_OPEN_DIALOG);
stock = {0x0277,36, --Horo Flour
0x0275,43, --Millioncorn
0x113f,111, --Roasted Corn
0x0349,36, --Yagudo Feather
0x1199,90} --Sunflower Seeds
showShop(player,SANDORIA,stock);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Giddeus/npcs/HomePoint#1.lua | 27 | 1248 | -----------------------------------
-- Area: Giddeus
-- NPC: HomePoint#1
-- @pos -132 -3 -303 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Giddeus/TextIDs");
require("scripts/globals/homepoint");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
homepointMenu( player, 0x21fc, 54);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x21fc) then
if (option == 1) then
player:setHomePoint();
player:messageSpecial(HOMEPOINT_SET);
else
hpTeleport( player, option);
end
end
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/RuAun_Gardens/npcs/qm1.lua | 16 | 1435 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: ??? (Genbu's Spawn)
-- Allows players to spawn the HNM Genbu with a Gem of the North and a Winterstone.
-- @pos 257 -70 517 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
-- Trade Gem of the North and Winterstone
if (GetMobAction(17309980) == 0 and trade:hasItemQty(1424,1) and trade:hasItemQty(1425,1) and trade:getItemCount() == 2) then
player:tradeComplete();
SpawnMob(17309980,300):updateClaim(player); -- Spawn Genbu
player:showText(npc,SKY_GOD_OFFSET + 5);
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:messageSpecial(SKY_GOD_OFFSET);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kubhe_Ijyuhla.lua | 13 | 2462 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kubhe Ijyuhla
-- Standard Info NPC
-- @pos 23.257 0.000 21.532 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
local threeMenProg = player:getVar("threemenandaclosetCS");
local threeMenQuest = player:getQuestStatus(AHT_URHGAN,THREE_MEN_AND_A_CLOSET);
if (player:getQuestStatus(AHT_URHGAN,GOT_IT_ALL) == QUEST_COMPLETED and threeMenQuest == QUEST_AVAILABLE) then
player:startEvent(0x0344);
elseif (threeMenProg == 2) then
player:startEvent(0x0345);
elseif (threeMenProg == 3) then
player:startEvent(0x0346);
elseif (threeMenProg == 4) then
player:startEvent(0x0347);
elseif (threeMenProg == 5) then
player:startEvent(0x034a);
elseif (threeMenProg == 6) then
player:startEvent(0x034d);
elseif (threeMenQuest == QUEST_COMPLETED) then
player:startEvent(0x034e);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x0344) then
player:addQuest(AHT_URHGAN,THREE_MEN_AND_A_CLOSET);
player:setVar("threemenandaclosetCS",2);
elseif (csid == 0x0346) then
player:setVar("threemenandaclosetCS",4);
elseif (csid == 0x034d) then
if (player:getFreeSlotsCount() == 0) then
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,2184);
else
player:setVar("threemenandaclosetCS",0);
player:addItem(2184,1);
player:messageSpecial(ITEM_OBTAINEDX,2184,1);
player:completeQuest(AHT_URHGAN,THREE_MEN_AND_A_CLOSET);
end
end
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Windurst_Woods/npcs/Terude-Harude.lua | 53 | 1899 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Terude-Harude
-- Type: Clothcraft Adv. Image Support
-- @pos -32.350 -2.679 -116.450 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
require("scripts/zones/Windurst_Woods/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
local guildMember = isGuildMember(player,3);
local SkillLevel = player:getSkillLevel(SKILL_CLOTHCRAFT);
local Cost = getAdvImageSupportCost(player,SKILL_CLOTHCRAFT);
if (guildMember == 1) then
if (player:hasStatusEffect(EFFECT_CLOTHCRAFT_IMAGERY) == false) then
player:startEvent(0x271D,Cost,SkillLevel,0,511,player:getGil(),0,4095,0);
else
player:startEvent(0x271D,Cost,SkillLevel,0,511,player:getGil(),28754,0,0);
end
else
player:startEvent(0x271D); -- Standard Dialogue
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
local Cost = getAdvImageSupportCost(player,8);
if (csid == 0x271D and option == 1) then
player:delGil(Cost);
player:messageSpecial(IMAGE_SUPPORT,0,4,0);
player:addStatusEffect(EFFECT_CLOTHCRAFT_IMAGERY,3,0,480);
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/margherita_pizza.lua | 18 | 1199 | -----------------------------------------
-- ID: 5695
-- Item: margherita_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Attack 10
-- Health Points 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
local result = 0;
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,10800,5695);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_HP, 30);
target:addMod(MOD_ATT, 10);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_HP, 30);
target:delMod(MOD_ATT, 10);
end;
| gpl-3.0 |
mosavy/leaderbottg | plugins/id.lua | 1 | 2087 | local function action_by_reply(arg, data)
local cmd = arg.cmd
if not tonumber(data.sender_user_id_) then return false end
if data.sender_user_id_ then
if cmd == "id" then
local function id_cb(arg, data)
return tg.sendMessage(arg.chat_id, "", 0, "*"..data.id_.."*", 0, "md")
end
tdcli_function ({
ID = "GetUser",
user_id_ = data.sender_user_id_
}, id_cb, {chat_id=data.chat_id_,user_id=data.sender_user_id_})
end
else
return tg.sendMessage(data.chat_id_, "", 0, "*User Not Found*", 0, "md")
end
end
local function action_by_username(arg, data)
local cmd = arg.cmd
if not arg.username then return false end
if data.id_ then
if data.type_.user_.username_ then
user_name = '@'..check_markdown(data.type_.user_.username_)
else
user_name = check_markdown(data.title_)
end
if cmd == "id" then
return tg.sendMessage(arg.chat_id, "", 0, "*"..data.id_.."*", 0, "md")
end
else
return tg.sendMessage(arg.chat_id, "", 0,"*User Not Found*", 0, "md")
end
end
local function run(msg, matches)
local group = load_data('bot/group.json')
local chat = msg.chat_id_
local user = msg.sender_user_id_
if matches[1] == "id" and is_momod(msg) or is_owner(msg) then
if not matches[2] and tonumber(msg.reply_to_message_id_) == 0 then
--return "*Chat ID :* [`"..chat.."`]\n*User ID :* [`"..user.."`]\n\n*channel: *@LeaderCh"
pm = '*SuperGroup ID:* [_'..msg.chat_id_..'_]\n*User ID:* [_'..msg.sender_user_id_..'_]\n\n*Channel:* @LeaderCH'
tg.sendMessage(msg.chat_id_, 0, 1, pm, 1, 'md')
end
if not matches[2] and tonumber(msg.reply_to_message_id_) ~= 0 then
tdcli_function ({
ID = "GetMessage",
chat_id_ = msg.chat_id_,
message_id_ = msg.reply_to_message_id_
}, action_by_reply, {chat_id=msg.chat_id_,cmd="id"})
end
if matches[2] and tonumber(msg.reply_to_message_id_) == 0 then
tdcli_function ({
ID = "SearchPublicChat",
username_ = matches[2]
}, action_by_username, {chat_id=msg.chat_id_,username=matches[2],cmd="id"})
end
end
end
return {
patterns ={
"^[!/#](id)$",
"^[!/#](id) (.*)$",
},
run=run,
}
| gpl-3.0 |
AlexandreCA/update | scripts/globals/abilities/fire_maneuver.lua | 35 | 1604 | -----------------------------------
-- Ability: Fire Maneuver
-- Enhances the effect of fire attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAbilityCheck
-----------------------------------
function onAbilityCheck(player,target,ability)
if (player:getWeaponSubSkillType(SLOT_RANGED) == 10 and
not player:hasStatusEffect(EFFECT_OVERLOAD)) then
return 0,0;
else
return 71,0;
end
end;
-----------------------------------
-- onUseAbility
-----------------------------------
function onUseAbility(player,target,ability)
local burden = 15;
if (target:getStat(MOD_STR) < target:getPet():getStat(MOD_STR)) then
burden = 20;
end
local overload = target:addBurden(ELE_FIRE-1, burden);
if (overload ~= 0) then
target:removeAllManeuvers();
target:addStatusEffect(EFFECT_OVERLOAD, 0, 0, overload);
else
local level;
if (target:getMainJob() == JOB_PUP) then
level = target:getMainLvl()
else
level = target:getSubLvl()
end
local bonus = 1 + (level/15) + target:getMod(MOD_MANEUVER_BONUS);
if (target:getActiveManeuvers() == 3) then
target:removeOldestManeuver();
end
target:addStatusEffect(EFFECT_FIRE_MANEUVER, bonus, 0, 60);
end
return EFFECT_FIRE_MANEUVER;
end; | gpl-3.0 |
niedzielski/premake-4.4-beta4 | src/actions/make/make_cpp.lua | 2 | 8910 | --
-- make_cpp.lua
-- Generate a C/C++ project makefile.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
premake.make.cpp = { }
local cpp = premake.make.cpp
local make = premake.make
function premake.make_cpp(prj)
-- create a shortcut to the compiler interface
local cc = premake.gettool(prj)
-- build a list of supported target platforms that also includes a generic build
local platforms = premake.filterplatforms(prj.solution, cc.platforms, "Native")
premake.gmake_cpp_header(prj, cc, platforms)
for _, platform in ipairs(platforms) do
for cfg in premake.eachconfig(prj, platform) do
premake.gmake_cpp_config(cfg, cc)
end
end
-- list intermediate files
_p('OBJECTS := \\')
for _, file in ipairs(prj.files) do
if path.iscppfile(file) then
_p('\t$(OBJDIR)/%s.o \\', _MAKE.esc(path.getbasename(file)))
end
end
_p('')
_p('RESOURCES := \\')
for _, file in ipairs(prj.files) do
if path.isresourcefile(file) then
_p('\t$(OBJDIR)/%s.res \\', _MAKE.esc(path.getbasename(file)))
end
end
_p('')
-- identify the shell type
_p('SHELLTYPE := msdos')
_p('ifeq (,$(ComSpec)$(COMSPEC))')
_p(' SHELLTYPE := posix')
_p('endif')
_p('ifeq (/bin,$(findstring /bin,$(SHELL)))')
_p(' SHELLTYPE := posix')
_p('endif')
_p('')
-- main build rule(s)
_p('.PHONY: clean prebuild prelink')
_p('')
if os.is("MacOSX") and prj.kind == "WindowedApp" then
_p('all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir $(TARGETDIR))Info.plist')
else
_p('all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)')
end
_p('\t@:')
_p('')
-- target build rule
_p('$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)')
_p('\t@echo Linking %s', prj.name)
_p('\t$(SILENT) $(LINKCMD)')
_p('\t$(POSTBUILDCMDS)')
_p('')
-- Create destination directories. Can't use $@ for this because it loses the
-- escaping, causing issues with spaces and parenthesis
_p('$(TARGETDIR):')
premake.make_mkdirrule("$(TARGETDIR)")
_p('$(OBJDIR):')
premake.make_mkdirrule("$(OBJDIR)")
-- Mac OS X specific targets
if os.is("MacOSX") and prj.kind == "WindowedApp" then
_p('$(dir $(TARGETDIR))PkgInfo:')
_p('$(dir $(TARGETDIR))Info.plist:')
_p('')
end
-- clean target
_p('clean:')
_p('\t@echo Cleaning %s', prj.name)
_p('ifeq (posix,$(SHELLTYPE))')
_p('\t$(SILENT) rm -f $(TARGET)')
_p('\t$(SILENT) rm -rf $(OBJDIR)')
_p('else')
_p('\t$(SILENT) if exist $(subst /,\\\\,$(TARGET)) del $(subst /,\\\\,$(TARGET))')
_p('\t$(SILENT) if exist $(subst /,\\\\,$(OBJDIR)) rmdir /s /q $(subst /,\\\\,$(OBJDIR))')
_p('endif')
_p('')
-- custom build step targets
_p('prebuild:')
_p('\t$(PREBUILDCMDS)')
_p('')
_p('prelink:')
_p('\t$(PRELINKCMDS)')
_p('')
-- precompiler header rule
cpp.pchrules(prj)
-- per-file rules
for _, file in ipairs(prj.files) do
if path.iscppfile(file) then
_p('$(OBJDIR)/%s.o: %s', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file))
_p('\t@echo $(notdir $<)')
cpp.buildcommand(path.iscfile(file))
elseif (path.getextension(file) == ".rc") then
_p('$(OBJDIR)/%s.res: %s', _MAKE.esc(path.getbasename(file)), _MAKE.esc(file))
_p('\t@echo $(notdir $<)')
_p('\t$(SILENT) $(RESCOMP) $< -O coff -o "$@" $(RESFLAGS)')
end
end
_p('')
-- include the dependencies, built by GCC (with the -MMD flag)
_p('-include $(OBJECTS:%%.o=%%.d)')
end
--
-- Write the makefile header
--
function premake.gmake_cpp_header(prj, cc, platforms)
_p('# %s project makefile autogenerated by Premake', premake.action.current().shortname)
-- set up the environment
_p('ifndef config')
_p(' config=%s', _MAKE.esc(premake.getconfigname(prj.solution.configurations[1], platforms[1], true)))
_p('endif')
_p('')
_p('ifndef verbose')
_p(' SILENT = @')
_p('endif')
_p('')
_p('ifndef CC')
_p(' CC = %s', cc.cc)
_p('endif')
_p('')
_p('ifndef CXX')
_p(' CXX = %s', cc.cxx)
_p('endif')
_p('')
_p('ifndef AR')
_p(' AR = %s', cc.ar)
_p('endif')
_p('')
_p('ifndef RESCOMP')
_p(' ifdef WINDRES')
_p(' RESCOMP = $(WINDRES)')
_p(' else')
_p(' RESCOMP = windres')
_p(' endif')
_p('endif')
_p('')
end
--
-- Write a block of configuration settings.
--
function premake.gmake_cpp_config(cfg, cc)
_p('ifeq ($(config),%s)', _MAKE.esc(cfg.shortname))
-- if this platform requires a special compiler or linker, list it here
cpp.platformtools(cfg, cc)
_p(' OBJDIR = %s', _MAKE.esc(cfg.objectsdir))
_p(' TARGETDIR = %s', _MAKE.esc(cfg.buildtarget.directory))
_p(' TARGET = $(TARGETDIR)/%s', _MAKE.esc(cfg.buildtarget.name))
_p(' DEFINES += %s', table.concat(cc.getdefines(cfg.defines), " "))
_p(' INCLUDES += %s', table.concat(cc.getincludedirs(cfg.includedirs), " "))
-- CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS, and RESFLAGS
cpp.flags(cfg, cc)
-- set up precompiled headers
cpp.pchconfig(cfg)
_p(' LIBS += %s', table.concat(cc.getlinkflags(cfg), " "))
_p(' LDDEPS += %s', table.concat(_MAKE.esc(premake.getlinks(cfg, "siblings", "fullpath")), " "))
if cfg.kind == "StaticLib" then
if cfg.platform:startswith("Universal") then
_p(' LINKCMD = libtool -o $(TARGET) $(OBJECTS)')
else
_p(' LINKCMD = $(AR) -rcs $(TARGET) $(OBJECTS)')
end
else
-- this was $(TARGET) $(LDFLAGS) $(OBJECTS)
-- but had trouble linking to certain static libs so $(OBJECTS) moved up
-- then $(LDFLAGS) moved to end
-- https://sourceforge.net/tracker/?func=detail&aid=3430158&group_id=71616&atid=531880
_p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(LIBS) $(LDFLAGS)', iif(cfg.language == "C", "CC", "CXX"))
end
_p(' define PREBUILDCMDS')
if #cfg.prebuildcommands > 0 then
_p('\t@echo Running pre-build commands')
_p('\t%s', table.implode(cfg.prebuildcommands, "", "", "\n\t"))
end
_p(' endef')
_p(' define PRELINKCMDS')
if #cfg.prelinkcommands > 0 then
_p('\t@echo Running pre-link commands')
_p('\t%s', table.implode(cfg.prelinkcommands, "", "", "\n\t"))
end
_p(' endef')
_p(' define POSTBUILDCMDS')
if #cfg.postbuildcommands > 0 then
_p('\t@echo Running post-build commands')
_p('\t%s', table.implode(cfg.postbuildcommands, "", "", "\n\t"))
end
_p(' endef')
-- write out config-level makesettings blocks
make.settings(cfg, cc)
_p('endif')
_p('')
end
--
-- Platform support
--
function cpp.platformtools(cfg, cc)
local platform = cc.platforms[cfg.platform]
if platform.cc then
_p(' CC = %s', platform.cc)
end
if platform.cxx then
_p(' CXX = %s', platform.cxx)
end
if platform.ar then
_p(' AR = %s', platform.ar)
end
end
--
-- Configurations
--
function cpp.flags(cfg, cc)
_p(' CPPFLAGS += %s $(DEFINES) $(INCLUDES)', table.concat(cc.getcppflags(cfg), " "))
_p(' CFLAGS += $(CPPFLAGS) $(ARCH) %s', table.concat(table.join(cc.getcflags(cfg), cfg.buildoptions), " "))
_p(' CXXFLAGS += $(CFLAGS) %s', table.concat(cc.getcxxflags(cfg), " "))
-- Patch #3401184 changed the order
_p(' LDFLAGS += %s', table.concat(table.join(cc.getlibdirflags(cfg), cc.getldflags(cfg), cfg.linkoptions), " "))
_p(' RESFLAGS += $(DEFINES) $(INCLUDES) %s',
table.concat(table.join(cc.getdefines(cfg.resdefines),
cc.getincludedirs(cfg.resincludedirs), cfg.resoptions), " "))
end
--
-- Precompiled header support
--
function cpp.pchconfig(cfg)
-- GCC needs the full path to the PCH, while Visual Studio needs
-- only the name (or rather, the name as specified in the #include
-- statement). Try to locate the PCH in the project.
local pchheader = cfg.pchheader
for _, incdir in ipairs(cfg.includedirs) do
local testname = path.join(incdir, cfg.pchheader)
if os.isfile(testname) then
pchheader = testname
break
end
end
if not cfg.flags.NoPCH and cfg.pchheader then
_p(' PCH = %s', _MAKE.esc(path.getrelative(cfg.location, cfg.pchheader)))
_p(' GCH = $(OBJDIR)/%s.gch', _MAKE.esc(path.getname(cfg.pchheader)))
_p(' CPPFLAGS += -I$(OBJDIR) -include $(OBJDIR)/%s', _MAKE.esc(path.getname(cfg.pchheader)))
end
end
function cpp.pchrules(prj)
_p('ifneq (,$(PCH))')
_p('$(GCH): $(PCH)')
_p('\t@echo $(notdir $<)')
_p('ifeq (posix,$(SHELLTYPE))')
_p('\t-$(SILENT) cp $< $(OBJDIR)')
_p('else')
_p('\t$(SILENT) xcopy /D /Y /Q "$(subst /,\\,$<)" "$(subst /,\\,$(OBJDIR))" 1>nul')
_p('endif')
cpp.buildcommand(prj.language == "C")
_p('endif')
_p('')
end
--
-- Build command for a single file.
--
function cpp.buildcommand(iscfile)
local flags = iif(iscfile, '$(CC) $(CFLAGS)', '$(CXX) $(CXXFLAGS)')
_p('\t$(SILENT) %s -o "$@" -MF $(@:%%.o=%%.d) -c "$<"', flags)
end
| bsd-3-clause |
AlexandreCA/update | scripts/zones/Cape_Teriggan/npcs/HomePoint#1.lua | 19 | 1196 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: HomePoint#1
-- @pos -303 -8 526 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Cape_Teriggan/TextIDs");
require("scripts/globals/homepoint");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
homepointMenu( player, 0x21fc, 91);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
if (csid == 0x21fc) then
if (option == 1) then
player:setHomePoint();
player:messageSpecial(HOMEPOINT_SET);
else
hpTeleport( player, option);
end
end
end; | gpl-3.0 |
nwf/openwrt-luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/iptables.lua | 68 | 3415 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys.iptparser")
ip = luci.sys.iptparser.IptParser()
chains = { }
targets = { }
for i, rule in ipairs( ip:find() ) do
if rule.chain and rule.target then
chains[rule.chain] = true
targets[rule.target] = true
end
end
m = Map("luci_statistics",
translate("Iptables Plugin Configuration"),
translate(
"The iptables plugin will monitor selected firewall rules and " ..
"collect informations about processed bytes and packets per rule."
))
-- collectd_iptables config section
s = m:section( NamedSection, "collectd_iptables", "luci_statistics" )
-- collectd_iptables.enable
enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
-- collectd_iptables_match config section (Chain directives)
rule = m:section( TypedSection, "collectd_iptables_match",
translate("Add matching rule"),
translate(
"Here you can define various criteria by which the monitored " ..
"iptables rules are selected."
))
rule.addremove = true
rule.anonymous = true
-- collectd_iptables_match.name
rule_table = rule:option( Value, "name",
translate("Name of the rule"), translate("max. 16 chars") )
-- collectd_iptables_match.table
rule_table = rule:option( ListValue, "table", translate("Table") )
rule_table.default = "filter"
rule_table.rmempty = true
rule_table.optional = true
rule_table:value("")
rule_table:value("filter")
rule_table:value("nat")
rule_table:value("mangle")
-- collectd_iptables_match.chain
rule_chain = rule:option( ListValue, "chain", translate("Chain") )
rule_chain.rmempty = true
rule_chain.optional = true
rule_chain:value("")
for chain, void in pairs( chains ) do
rule_chain:value( chain )
end
-- collectd_iptables_match.target
rule_target = rule:option( ListValue, "target", translate("Action (target)") )
rule_target.rmempty = true
rule_target.optional = true
rule_target:value("")
for target, void in pairs( targets ) do
rule_target:value( target )
end
-- collectd_iptables_match.protocol
rule_protocol = rule:option( ListValue, "protocol", translate("Network protocol") )
rule_protocol.rmempty = true
rule_protocol.optional = true
rule_protocol:value("")
rule_protocol:value("tcp")
rule_protocol:value("udp")
rule_protocol:value("icmp")
-- collectd_iptables_match.source
rule_source = rule:option( Value, "source", translate("Source ip range") )
rule_source.default = "0.0.0.0/0"
rule_source.rmempty = true
rule_source.optional = true
-- collectd_iptables_match.destination
rule_destination = rule:option( Value, "destination", translate("Destination ip range") )
rule_destination.default = "0.0.0.0/0"
rule_destination.rmempty = true
rule_destination.optional = true
-- collectd_iptables_match.inputif
rule_inputif = rule:option( Value, "inputif",
translate("Incoming interface"), translate("e.g. br-lan") )
rule_inputif.rmempty = true
rule_inputif.optional = true
-- collectd_iptables_match.outputif
rule_outputif = rule:option( Value, "outputif",
translate("Outgoing interface"), translate("e.g. br-ff") )
rule_outputif.rmempty = true
rule_outputif.optional = true
-- collectd_iptables_match.options
rule_options = rule:option( Value, "options",
translate("Options"), translate("e.g. reject-with tcp-reset") )
rule_options.rmempty = true
rule_options.optional = true
return m
| apache-2.0 |
AlexandreCA/darkstar | scripts/globals/zone.lua | 30 | 3876 | ------------------------------------
--
-- Contains global functions and variables
-- related to area specific things
--
------------------------------------
------------------------------------
-- zone related IDs
------------------------------------
-- Zone Types
ZONETYPE_NONE = 0
ZONETYPE_CITY = 1
ZONETYPE_OUTDOORS = 2
ZONETYPE_DUNGEON = 3
ZONETYPE_BATTLEFIELD = 4
ZONETYPE_DYNAMIS = 5
ZONETYPE_INSTANCED = 6
-- Continent Type
THE_MIDDLE_LANDS = 1
THE_ARADJIAH_CONTINENT = 2
THE_SHADOWREIGN_ERA = 3
OTHER_AREAS = 4
-- Region Types
REGION_RONFAURE = 0
REGION_ZULKHEIM = 1
REGION_NORVALLEN = 2
REGION_GUSTABERG = 3
REGION_DERFLAND = 4
REGION_SARUTABARUTA = 5
REGION_KOLSHUSHU = 6
REGION_ARAGONEU = 7
REGION_FAUREGANDI = 8
REGION_VALDEAUNIA = 9
REGION_QUFIMISLAND = 10
REGION_LITELOR = 11
REGION_KUZOTZ = 12
REGION_VOLLBOW = 13
REGION_ELSHIMOLOWLANDS = 14
REGION_ELSHIMOUPLANDS = 15
REGION_TULIA = 16
REGION_MOVALPOLOS = 17
REGION_TAVNAZIA = 18
REGION_SANDORIA = 19
REGION_BASTOK = 20
REGION_WINDURST = 21
REGION_JEUNO = 22
REGION_DYNAMIS = 23
REGION_TAVNAZIAN_MARQ = 24
REGION_PROMYVION = 25
REGION_LUMORIA = 26
REGION_LIMBUS = 27
REGION_WEST_AHT_URHGAN = 28
REGION_MAMOOL_JA_SAVAGE = 29
REGION_HALVUNG = 30
REGION_ARRAPAGO = 31
REGION_ALZADAAL = 32
REGION_RONFAURE_FRONT = 33
REGION_NORVALLEN_FRONT = 34
REGION_GUSTABERG_FRONT = 35
REGION_DERFLAND_FRONT = 36
REGION_SARUTA_FRONT = 37
REGION_ARAGONEAU_FRONT = 38
REGION_FAUREGANDI_FRONT = 39
REGION_VALDEAUNIA_FRONT = 40
REGION_ABYSSEA = 41
REGION_THE_THRESHOLD = 42
REGION_ABDHALJS = 43
REGION_ADOULIN_ISLANDS = 44
REGION_EAST_ULBUKA = 45
REGION_UNKNOWN = 255
-----------------------------------
-- SetExplorerMoogles
----------------------------------
function SetExplorerMoogles(moogle)
if (EXPLORER_MOOGLE == 1) then
local npc = GetNPCByID(moogle);
if (npc == nil) then
printf("'SetExplorerMoogles' Error trying to load undefined npc (%d)", moogle);
else
npc:setStatus(0);
end
end
end;
-----------------------------------
-- SetFieldManual
----------------------------------
function SetFieldManual(manuals)
if (FIELD_MANUALS == 1) then
for i,id in ipairs(manuals) do
local npc = GetNPCByID(id);
if (npc ~= nil) then
npc:setStatus(0);
end
end
end
end;
-----------------------------------
-- SetGroundsTome
----------------------------------
function SetGroundsTome(tome)
if (GROUNDS_TOMES == 1) then
for i,id in ipairs(tome) do
local npc = GetNPCByID(id);
if (npc ~= nil) then
npc:setStatus(0);
end
end
end
end;
-----------------------------------
-- SetRespawnTime
----------------------------------
function SetRespawnTime(id, minTime, maxTime)
-- This function is redundant should place the mob:setRespawnTime() and UpdateNMSpawnPoint back in the individual zones.
-- Having this global just uses 3 functions where only 2 were needed.
local mob = GetMobByID(id);
if (mob == nil) then
printf("'SetTimedSpawns' Error trying to load undefined mob (%d)", id);
else
UpdateNMSpawnPoint(id);
mob:setRespawnTime(math.random((minTime),(maxTime)));
end
end | gpl-3.0 |
AlexandreCA/update | scripts/zones/Nashmau/npcs/Awaheen.lua | 17 | 1932 | -----------------------------------
-- Area: Nashmau
-- NPC: Awaheen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
-- Trade: Receive:
-- 1 x Imperial Gold Piece (2187) 5 x Imperial Mythril Piece(2186)
-- 1 x Imperial Mythril Piece(2186) 2 x Imperial Silver Piece(2185)
-- 1 x Imperial Silver Piece (2185) 5 x Imperial Bronze Piece(2184)
local nbr = 0;
local reward = 0;
if (trade:getItemCount() == 1) then
if (trade:hasItemQty(2187,1)) then nbr = 5 ; reward = 2186;
elseif (trade:hasItemQty(2186,1)) then nbr = 2 ; reward = 2185;
elseif (trade:hasItemQty(2185,1)) then nbr = 5 ; reward = 2184;
end
end
if (reward > 0) then
local boucle;
if (player:getFreeSlotsCount() >= 1) then
player:tradeComplete();
player:addItem(reward,nbr);
for boucle=1,nbr,1 do player:messageSpecial(ITEM_OBTAINED,reward);
end
else
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,reward);
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x00F0);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
thezimmee/os-zimmee | hammerspoon/hammerspoon.link/Spoons/WindowScreenLeftAndRight.spoon/init.lua | 2 | 3016 | --- === WindowScreenLeftAndRight ===
---
--- Move windows to other screens
---
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowScreenLeftAndRight.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowScreenLeftAndRight.spoon.zip)
local obj={}
obj.__index = obj
-- Metadata
obj.name = "WindowScreenLeftAndRight"
obj.version = "0.1"
obj.author = "Diego Zamboni <diego@zzamboni.org>"
obj.homepage = "https://github.com/Hammerspoon/Spoons"
obj.license = "MIT - https://opensource.org/licenses/MIT"
--- WindowScreenLeftAndRight.logger
--- Variable
--- Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.
obj.logger = hs.logger.new('WindowScreenLeftAndRight')
--- WindowScreenLeftAndRight.defaultHotkeys
--- Variable
--- Table containing a sample set of hotkeys that can be
--- assigned to the different operations. These are not bound
--- by default - if you want to use them you have to call:
--- `spoon.WindowScreenLeftAndRight:bindHotkeys(spoon.WindowScreenLeftAndRight.defaultHotkeys)`
--- after loading the spoon. Value:
--- ```
--- {
--- screen_left = { {"ctrl", "alt", "cmd"}, "Left" },
--- screen_right= { {"ctrl", "alt", "cmd"}, "Right" },
--- }
--- ```
obj.defaultHotkeys = {
screen_left = { {"ctrl", "alt", "cmd"}, "Left" },
screen_right= { {"ctrl", "alt", "cmd"}, "Right" },
}
-- Internal functions to store/restore the current value of setFrameCorrectness.
local function _setFC()
obj._savedFC = hs.window.setFrameCorrectness
hs.window.setFrameCorrectness = obj.use_frame_correctness
end
local function _restoreFC()
hs.window.setFrameCorrectness = obj._savedFC
end
-- Move current window to a different screen
function obj.moveCurrentWindowToScreen(how)
local win = hs.window.focusedWindow()
if win == nil then
return
end
_setFC()
if how == "left" then
win:moveOneScreenWest()
elseif how == "right" then
win:moveOneScreenEast()
end
_restoreFC()
end
-- --------------------------------------------------------------------
-- Shortcut functions for those above, for the hotkeys
-- --------------------------------------------------------------------
obj.oneScreenLeft = hs.fnutils.partial(obj.moveCurrentWindowToScreen, "left")
obj.oneScreenRight = hs.fnutils.partial(obj.moveCurrentWindowToScreen, "right")
--- WindowScreenLeftAndRight:bindHotkeys(mapping)
--- Method
--- Binds hotkeys for WindowScreenLeftAndRight
---
--- Parameters:
--- * mapping - A table containing hotkey objifier/key details for the following items:
--- * screen_left, screen_right - move the window to the left/right screen (if you have more than one monitor connected, does nothing otherwise)
function obj:bindHotkeys(mapping)
local hotkeyDefinitions = {
screen_left = self.oneScreenLeft,
screen_right = self.oneScreenRight,
}
hs.spoons.bindHotkeysToSpec(hotkeyDefinitions, mapping)
return self
end
return obj
| mit |
samboy/Oblige | attic/oblige_V2/x_doom1.lua | 1 | 58718 | ----------------------------------------------------------------
-- GAME DEF : Doom 1
----------------------------------------------------------------
--
-- Oblige Level Maker (C) 2006,2007 Andrew Apted
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
----------------------------------------------------------------
DM_LINE_TYPES =
{
--- general ---
A1_scroll_left = { kind=48 },
S1_exit = { kind=11 },
W1_exit = { kind=52 },
S1_secret_exit = { kind=51 },
W1_secret_exit = { kind=124 },
WR_teleport = { kind=97 },
MR_teleport = { kind=126 }, -- monster only
S1_bars = { kind=23 },
--- doors ---
PR_door = { kind=1 },
PR_blaze_door = { kind=117 },
W1_door = { kind=2 },
S1_door = { kind=103 },
SR_door = { kind=63 },
SR_blaze_door = { kind=114 },
P1_blue_door = { kind=32 },
PR_blue_door = { kind=26 },
P1_yellow_door = { kind=34 },
PR_yellow_door = { kind=27 },
P1_red_door = { kind=33 },
PR_red_door = { kind=28 },
--- lifts ---
SR_lift = { kind=62 },
WR_lift = { kind=88 },
SR_blaze_lift = { kind=123 },
WR_blaze_lift = { kind=120 },
}
DM_SECTOR_TYPES =
{
secret = { kind=9 },
random_off = { kind=1 },
blink_fast = { kind=2 },
blink_slow = { kind=3 },
glow = { kind=8 },
flicker = { kind=17 },
damage_5 = { kind=7 },
damage_10 = { kind=5 },
damage_20 = { kind=16 },
}
----------------------------------------------------------------
DM_COMBOS =
{
---- TECH ------------
TECH_BASE =
{
theme_probs = { TECH=80 },
mat_pri = 8,
wall = "STARTAN3",
floor = "FLOOR4_8",
ceil = "CEIL3_6",
pic_wd = "COMPSTA2", -- "COMP2" for Doom 1 !!
pic_wd_h = 64,
lift = "PLAT1",
step = "STEP1",
step_floor = "STEP2",
scenery = "lamp",
good_liquid = "blood",
sc_fabs = { pillar_COMPWERD=50, other=30 },
},
TECH_BASE2 =
{
theme_probs = { TECH=40 },
mat_pri = 8,
wall = "STARG3",
floor = "FLOOR5_1",
ceil = "FLOOR4_5",
lift = "PLAT1",
step = "STEP1",
step_floor = "STEP1",
scenery = "tech_column",
sc_fabs = { pillar_COMPWERD=50, other=30 },
},
TECH_SILVER =
{
theme_probs = { TECH=40 },
mat_pri = 8,
wall = "STARGR2",
floor = "FLOOR0_1",
ceil = "FLAT3",
lift = "PLAT1",
step = "STEP1",
step_floor = "STEP1",
scenery = "tech_column",
},
TECH_BROWN =
{
theme_probs = { TECH=60 },
mat_pri = 8,
wall = "STARBR2",
floor = "FLOOR5_1",
ceil = "CEIL4_3",
lift = "PLAT1",
step = "STEP1",
step_floor = "STEP1",
scenery = "tech_column",
},
---- HELL ----------
HELL_MARBLE =
{
theme_probs = { HELL=70 },
mat_pri = 6,
wall = "MARBLE2",
void = "SP_DUDE5",
step = "STEP1",
pic_wd = "SP_DUDE1",
lift = "SKSPINE1",
lift_floor = "FLAT5_6",
floor = "FLOOR7_2",
ceil = "FLOOR7_1",
scenery = { red_pillar=5, red_column=5, red_column_skl=5 },
bad_liquid = "nukage",
good_liquid = "blood",
sc_fabs = { pillar_GSTLION=50, other=30 },
},
HELL_HOT =
{
theme_probs = { HELL=60 },
mat_pri = 6,
wall = "SP_HOT1",
step = "STEP6", -- STEP4
floor = "FLAT5_1", -- was: FLAT5_7
ceil = "FLAT5_3", -- was: FLOOR6_1
lift = "SKSPINE1",
lift_floor = "FLAT5_6",
scenery = "red_torch",
bad_liquid = "blood",
good_liquid = "lava",
},
HELL_VINE =
{
theme_probs = { HELL=20 },
mat_pri = 1,
wall = "GSTVINE1",
floor = "SFLR6_1",
ceil = "FLOOR7_1",
step = "STONE3",
lift = "SKSPINE1",
lift_floor = "FLAT5_6",
scenery = "red_torch",
},
---- URBAN --------
URBAN_STONE =
{
theme_probs = { URBAN=70 },
outdoor = true,
mat_pri = 5,
wall = "STONE",
floor = "MFLR8_1",
ceil = "MFLR8_1",
-- void = "STONE3",
step = "STEP4",
piller = "STONE5",
scenery = { blue_torch=5, blue_torch_sm=3 },
door_probs = { out_diff=75, combo_diff=10, normal=5 }
},
URBAN_BROWN =
{
theme_probs = { URBAN=50 },
outdoor = true,
mat_pri = 3,
wall = "BROWN1",
floor = "MFLR8_2", -- "RROCK16" (not in doom 1)
ceil = "MFLR8_2",
-- void = "BROWNPIP",
step = "STEP5",
lift = "SUPPORT3",
pillar = "BROWN96", -- was "BRONZE2" (not in doom 1)
-- lift_floor = "FLOOR4_8",
scenery = { skull_pole=5, skull_kebab=5 },
good_liquid = "blood",
door_probs = { out_diff=75, combo_diff=10, normal=5 }
},
URBAN_WOOD =
{
theme_probs = { URBAN=30 },
mat_pri = 7,
wall = "WOOD1",
floor = "FLAT5_1",
ceil = "CEIL1_1",
-- void = "WOOD3",
step = "STEP1",
pillar = "WOODGARG", -- "WOODMET4" not in doom 1
pic_wd = "MARBFACE",
scenery = { impaled_human=5, hang_twitching=5 },
},
---- INDUSTRIAL --------
INDY_CEMENT =
{
theme_probs = { INDUSTRIAL=50 },
mat_pri = 1,
wall = "CEMENT6",
floor = "FLAT9",
ceil = "CEIL3_5", -- "SLIME14" not in doom 1
step = "STEP1",
pillar = "BROWNGRN", -- "CEMENT8" not in doom 1
lift = "SUPPORT3",
-- lift_floor = "FLOOR4_8",
wall_fabs = { solid_CEMENT4=20, solid_CEMENT5=20, other=50 },
},
INDY_SLAD =
{
theme_probs = { INDUSTRIAL=50, TECH=10 },
mat_pri = 4,
wall = "SLADWALL",
floor = "FLOOR0_5",
ceil = "CEIL5_1",
-- void = "SLADSKUL",
step = "STEP1",
vista_support = "DOORSTOP",
scenery = "burning_barrel",
good_liquid = "nukage",
sc_fabs = { pillar_rnd_sm_POIS=50, other=30 },
wall_fabs = { solid_SLADSKUL=30, other=50 },
},
INDY_GRAY =
{
theme_probs = { INDUSTRIAL=50 },
mat_pri = 3,
wall = "GRAY7",
floor = "FLOOR0_5",
ceil = "FLAT1",
lift = "SUPPORT3",
pic_wd = "REDWALL",
-- lift_floor = "FLOOR4_8",
scenery = { green_pillar=5, green_column=5, green_column_hrt=5 },
sc_fabs = { crate_rotnar_GRAY2=30, other=50 },
},
INDY_PIPES =
{
theme_probs = { INDUSTRIAL=45 },
mat_pri = 4,
wall = "PIPE2",
floor = "FLAT1_1",
ceil = "FLAT1_1",
step = "STEP1",
lift = "SUPPORT3",
pic_wd = "REDWALL",
-- lift_floor = "FLOOR4_8",
scenery = { green_pillar=5, green_column=5, green_column_hrt=5 },
wall_fabs = { solid_PIPE4=20, other=30 },
},
INDY_ICKY =
{
theme_probs = { INDUSTRIAL=25 },
mat_pri = 4,
wall = "ICKWALL3",
floor = "FLAT4",
ceil = "CEIL3_1", -- CEIL1_3
step = "STEP4",
lift = "SUPPORT3",
pic_wd = "REDWALL",
-- lift_floor = "FLOOR4_8",
scenery = { green_pillar=5, green_column=5, green_column_hrt=5 },
wall_fabs = { solid_ICKWALL4=20, solid_ICKWALL5=20,
solid_ICKWALL7=20, other=60 },
},
---- CAVE ----------
CAVE_BROWN =
{
theme_probs = { CAVE=50 },
mat_pri = 3,
wall = "BROWNHUG",
floor = "FLAT10",
ceil = "FLAT10",
arch = "arch_hole",
sc_fabs = { stalagmite_MED=90, other=10 },
},
-- FIXME: SP_ROCK1
}
DM_EXITS =
{
TECH =
{
mat_pri = 9,
wall = "TEKWALL1",
floor = "CEIL4_3",
ceil = "TLITE6_5",
sign = "EXITSIGN",
sign_ceil="CEIL5_2",
switch =
{
prefab="SWITCH_NICHE",
add_mode="wall",
skin =
{
switch_w="SW1COMP", switch_h=64,
lite_w="LITE5",
-- frame_f="FLAT14", frame_c="FLAT14",
x_offset=0, y_offset=64, kind=11, tag=0,
}
},
door = { wall="EXITDOOR", w=64, h=72,
frame_ceil="TLITE6_5", -- frame_wall="BROWN96"
},
},
STONE =
{
mat_pri = 9,
wall = "STONE2",
void = "STONE",
floor = "FLOOR7_2",
ceil = "FLAT1",
hole_tex = "MARBLE1",
front_mark = "EXITSTON",
switch =
{
prefab="SWITCH_FLOOR",
skin =
{
switch_w="SW1HOT", side_w="SP_HOT1",
switch_f="FLAT5_3", switch_h=64,
x_offset=0, y_offset=56, kind=11, tag=0,
}
},
door = { wall="EXITDOOR", w=64, h=72,
frame_ceil="TLITE6_6", frame_wall="LITE5" },
},
BROWN =
{
mat_pri = 6,
wall = "BROWN96",
void = "BROWN1",
floor = "FLOOR3_3",
ceil = "CEIL5_2",
sign = "EXITSIGN",
sign_ceil="CEIL5_2",
switch =
{
prefab="SWITCH_WIDE",
add_mode="wall",
skin =
{
switch_w="SW1BRCOM", wall="BROWN96",
kind=11, tag=0,
}
},
door = { wall="EXITDOOR", w=64, h=72,
frame_ceil="TLITE6_5",
frame_floor="FLOOR3_3"
},
},
--- Small Exits ---
BLUE =
{
small_exit = true,
mat_pri = 9,
wall = "TEKWALL1",
floor = "FLAT14",
ceil = "FLAT22",
--- void = "COMPBLUE",
sign = "EXITSIGN",
sign_ceil="CEIL5_2",
switch =
{
prefab="SWITCH_FLOOR",
skin =
{
switch_w="SW1COMM", side_w="SHAWN2",
switch_f="FLAT23", switch_h=64,
x_offset=0, y_offset=0, kind=11, tag=0,
}
},
door = { wall="EXITDOOR", w=64, h=72, frame_ceil="TLITE6_5" },
},
STARTAN =
{
small_exit = true,
mat_pri = 6,
wall = "STARTAN2",
floor = "FLOOR5_2",
ceil = "TLITE6_4",
sign = "EXITSIGN",
sign_ceil="CEIL5_2",
switch =
{
prefab="SWITCH_FLUSH",
add_mode="wall",
skin =
{
switch_w="SW1STRTN", wall="STARTAN2",
kind=11, tag=0,
}
},
door = { wall="EXITDOOR", w=64, h=72,
frame_ceil="TLITE6_5",
frame_floor="FLOOR5_2",
frame_wall="LITE3"
},
},
BLOODY =
{
secret_exit = true,
small_exit = true,
mat_pri = 9,
exit_h = 128,
wall = "GSTVINE2",
floor = "BLOOD1",
ceil = "FLOOR7_2",
-- void = "GSTONE2",
liquid_prob = 0,
sign = "EXITSIGN",
sign_ceil="CEIL5_2",
flush = true,
flush_left = "GSTFONT1",
flush_right = "GSTFONT2",
switch =
{
prefab="SWITCH_FLUSH",
add_mode="wall",
skin =
{
switch_w="SW1GSTON", wall="GSTONE2",
left_w="GSTFONT1", right_w="GSTFONT2",
kind=51, tag=0,
}
},
door = { wall="EXITDOOR", w=64, h=72,
frame_ceil="FLOOR7_2",
frame_floor="FLOOR7_2" },
},
}
DM_HALLWAYS =
{
BROWN1 =
{
mat_pri = 0,
wall = "BROWNPIP",
void = "BROWN1",
step = "BROWN1",
pillar = "BROVINE2",
floor = "FLOOR5_1",
ceil = "CEIL5_2",
theme_probs = { INDUSTRIAL=50,URBAN=20 },
trim_mode = "guillotine",
},
SP_ROCK =
{
mat_pri = 0,
wall = "SP_ROCK1",
void = "SP_ROCK1",
step = "STEP6",
pillar = "GRAYVINE",
floor = "MFLR8_3",
ceil = "FLOOR6_2",
arch = "arch_arched",
theme_probs = { HELL=70,CAVE=30 },
trim_mode = "rough_hew",
},
BLUECARPET =
{
mat_pri = 0,
wall = "STARTAN2",
void = "STARTAN3",
step = "STEP1",
pillar = "STARGR2", -- or STARBR2
floor = "FLAT14",
ceil = "TLITE6_4",
arch_floor = "FLAT20",
arch_ceil = "CEIL3_2",
theme_probs = { TECH=80,INDUSTRIAL=30 },
well_lit = true,
trim_mode = "guillotine",
},
}
---- BASE MATERIALS ------------
DM_MATS =
{
METAL =
{
mat_pri = 5,
wall = "METAL",
void = "METAL1",
floor = "CEIL5_2",
ceil = "CEIL5_2",
},
ARCH =
{
wall = "METAL",
void = "METAL1",
floor = "CEIL5_2",
ceil = "CEIL5_2",
},
SHINY =
{
wall = "SHAWN2",
void = "SHAWN1",
floor = "FLAT23",
ceil = "FLAT23",
},
STEP =
{
wall = "STEP1",
floor = "FLAT1",
},
LIFT =
{
wall = "SUPPORT2",
floor = "STEP2"
},
CAGE =
{
wall = "METAL",
floor = "CEIL5_2",
ceil = "TLITE6_4",
},
TRACK =
{
wall = "DOORTRAK",
floor = "FLOOR6_2",
},
DOOR_FRAME =
{
wall = "LITE5",
floor = "FLAT1",
ceil = "TLITE6_6",
},
SW_FRAME =
{
wall = "LITE5",
floor = "TLITE6_6",
},
}
--- PEDESTALS --------------
DM_PEDESTALS =
{
PLAYER =
{
wall = "SHAWN2", void = "SHAWN2",
floor = "FLAT22", ceil = "FLAT22",
h = 8,
},
QUEST =
{
wall = "METAL", void = "METAL",
floor = "GATE4", ceil = "GATE4",
h = 24,
},
WEAPON =
{
wall = "METAL", void = "METAL",
floor = "CEIL1_2", ceil = "CEIL1_2",
h = 12,
},
}
---- OVERHANGS ------------
DM_OVERHANGS =
{
METAL =
{
ceil = "CEIL5_1",
upper = "METAL",
thin = "METAL",
},
MARBLE =
{
thin = "MARBLE1",
upper = "MARBLE3",
ceil = "DEM1_6",
},
STONE =
{
thin = "STONE",
upper = "STONE",
ceil = "FLAT5_4",
},
WOOD =
{
thin = "WOOD1",
upper = "WOOD1",
ceil = "FLAT5_1",
},
}
---- CRATES ------------
DM_CRATES =
{
CRATE1 =
{
wall = "CRATE1", h=64, floor = "CRATOP2"
},
CRATE2 =
{
wall = "CRATE2", h=64, floor = "CRATOP1"
},
CRATELIT =
{
wall = "CRATELIT", h=128, floor = "CRATOP1"
},
GRAY =
{
wall = "GRAY2", h=64, floor = "FLAT5_4", can_rotate=true
},
ICKWALL =
{
wall = "ICKWALL4", h=64, floor = "FLAT19",
can_rotate=true, can_yshift=64
},
SHAWN =
{
wall = "SHAWN3", h=64, floor = "FLAT23", can_rotate=true
},
WOOD3A =
{
wall = "WOOD3", h=64, floor = "CEIL1_1",
side_x_offset=64
},
WOOD3B =
{
wall = "WOOD3", h=64, floor = "CEIL1_1",
x_offset=128, y_offset=59, side_x_offset=64
},
WOODSKUL =
{
wall = "WOOD4", h=64, floor = "CEIL1_1",
can_rotate=true, can_yshift=59
},
}
---- ARCH STUFF ------------
DM_LIQUIDS =
{
water = { floor="FWATER1", wall="FIREMAG1" },
blood = { floor="BLOOD1", wall="BFALL1", sec_kind=7 }, -- 5% damage
nukage= { floor="NUKAGE1", wall="SFALL1", sec_kind=5 }, -- 10% damage
lava = { floor="LAVA1", wall="ROCKRED1", sec_kind=16, add_light=64 }, -- 20% damage
}
DM_SWITCHES =
{
sw_blue =
{
switch =
{
prefab = "SWITCH_FLOOR",
skin =
{
switch_w="SW1BLUE", side_w="COMPBLUE",
switch_f="FLAT14", switch_h=64,
beam_w="WOOD1", beam_f="FLAT5_2",
x_offset=0, y_offset=56, kind=103,
}
},
switch2 =
{
prefab = "SWITCH_FLOOR_BEAM",
skin =
{
switch_w="SW1BLUE", side_w="COMPBLUE",
switch_f="FLAT14", switch_h=64,
beam_w="WOOD1", beam_f="FLAT5_2",
x_offset=0, y_offset=56, kind=103,
}
},
door =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="COMPBLUE",
door_w="BIGDOOR3", door_c="FLOOR7_2",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=0,
}
},
},
sw_hot =
{
switch =
{
prefab = "SWITCH_PILLAR",
skin =
{
switch_w="SW1HOT", wall="SP_HOT1", kind=103,
}
},
door =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="SP_HOT1",
door_w="BIGDOOR3", door_c="FLOOR7_2",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=0,
}
},
bars =
{
w=128, h=112,
prefab = "BARS_FENCE_DOOR",
environment = "outdoor",
skin =
{
door_w="BIGDOOR7", door_f="CEIL5_2",
side_w="METAL",
-- beam_w="SP_HOT1", beam_f="FLAT5_3",
door_kind=0,
}
},
},
sw_skin =
{
--FIXME: SKINBORD is doom1 only
switch =
{
prefab = "SWITCH_PILLAR",
skin =
{
switch_w="SW1SKIN", wall="SKINBORD", kind=103,
}
},
door =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="SKINFACE",
door_w="BIGDOOR3", door_c="FLOOR7_2",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=0,
}
},
},
sw_vine =
{
switch =
{
prefab = "SWITCH_PILLAR",
skin =
{
switch_w="SW1VINE", wall="GRAYVINE", kind=103,
}
},
door =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="GRAYVINE",
door_w="BIGDOOR3", door_c="FLOOR7_2",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=0,
}
},
},
sw_metl =
{
switch =
{
prefab = "SWITCH_CEILING",
environment = "indoor",
skin =
{
switch_w="SW1GARG", side_w="METAL",
switch_c="CEIL5_2", switch_h=56,
beam_w="SUPPORT3", beam_c="CEIL5_2",
x_offset=0, y_offset=64, kind=23,
}
},
door =
{
w=128, h=128,
prefab = "BARS_1",
skin =
{
bar_w="SUPPORT3", bar_f="CEIL5_2",
door_kind=0,
}
},
},
sw_gray =
{
switch =
{
prefab = "SWITCH_PILLAR",
skin =
{
switch_w="SW1GRAY1", wall="GRAY1", kind=23,
}
},
door =
{
w=128, h=128,
prefab = "BARS_2",
skin =
{
bar_w="GRAY7", bar_f="FLAT19",
door_kind=0
},
},
},
--FIXME: (not in doom1) sw_rock = { wall="ROCK3", switch="SW1ROCK", floor="RROCK13", bars=true },
--FIXME: sw_wood = { wall="WOODMET1", switch="SW1WDMET", floor="FLAT5_1", bars=true, stand_h=128 },
}
DM_DOORS =
{
-- Note: most of these with h=112 are really 128 pixels
-- tall, but work fine when truncated.
d_big2 = { prefab="DOOR_LIT", w=128, h=112,
skin =
{
door_w="BIGDOOR2", door_c="FLAT1",
lite_w="LITE5", step_w="STEP1",
frame_f="FLAT1", frame_c="TLITE6_6",
track_w="DOORTRAK",
door_h=112,
}
},
--[[ !!! DM_DOORS
d_uac = { wall="BIGDOOR1", w=128, h=72 }, -- actual height is 96
d_big1 = { wall="BIGDOOR2", w=128, h=112 },
d_big2 = { wall="BIGDOOR3", w=128, h=112 },
d_big3 = { wall="BIGDOOR4", w=128, h=112 },
d_wood1 = { wall="BIGDOOR5", ceil="CEIL5_2", w=128, h=112 },
d_wood2 = { wall="BIGDOOR6", ceil="CEIL5_2", w=128, h=112 }, -- this is the real height!
d_wood3 = { wall="BIGDOOR7", ceil="CEIL5_2", w=128, h=112 },
--]]
d_small1 = { wall="DOOR1", w=64, h=72 },
d_small2 = { wall="DOOR3", w=64, h=72 },
}
DM_KEY_DOORS =
{
k_blue =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="DOORBLU2",
door_w="BIGDOOR4", door_c="FLOOR3_3",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=26, tag=0, -- kind_once=32
}
},
k_yellow =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="DOORYEL2",
door_w="BIGDOOR4", door_c="FLOOR3_3",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=27, tag=0, -- kind_once=34
}
},
k_red =
{
w=128, h=112,
prefab = "DOOR_LIT_LOCKED",
skin =
{
key_w="DOORRED2",
door_w="BIGDOOR4", door_c="FLOOR3_3",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="FLAT1",
door_h=112,
door_kind=28, tag=0, -- kind_once=33
}
},
}
DM_LIFTS =
{
slow = { kind=62, walk=88 },
fast = { kind=123, walk=120 },
}
DM_IMAGES =
{
{ wall = "CEMENT1", w=128, h=128, glow=true },
{ wall = "CEMENT2", w=64, h=64, floor="MFLR8_3" }
}
DM_LIGHTS =
{
metal = { floor="CEIL1_2", side="METAL" },
wood = { floor="CEIL1_3", side="WOOD1" },
star = { floor="CEIL3_4", side="STARTAN2" },
gray1 = { floor="FLAT2", side="GRAY5" },
gray2 = { floor="FLAT17", side="GRAY5" },
hot = { floor="FLOOR1_7", side="SP_HOT1" },
tl61 = { floor="TLITE6_1", side="METAL" },
tl64 = { floor="TLITE6_4", side="METAL" },
tl65 = { floor="TLITE6_5", side="METAL" },
tl66 = { floor="TLITE6_6", side="METAL" },
}
DM_SCENERY_PREFABS =
{
pillar_COMPWERD =
{
prefab = "PILLAR", add_mode = "island",
environment = "indoor",
skin = { wall="COMPWERD" },
},
pillar_GSTLION =
{
prefab = "PILLAR", add_mode = "island",
environment = "indoor",
skin = { wall="GSTLION" },
},
pillar_SPDUDE5 =
{
prefab = "PILLAR", add_mode = "island",
environment = "indoor",
skin = { wall="SP_DUDE5" },
},
pillar_light1_METAL =
{
prefab = "PILLAR_LIGHT1",
add_mode = "island",
environment = "indoor",
skin = { beam_w="METAL", beam_f="CEIL5_2",
lite_w="LITE5" },
theme_probs = { TECH=5, INDUSTRIAL=12 },
},
pillar_rnd_sm_POIS =
{
prefab = "PILLAR_ROUND_SMALL",
add_mode = "island",
environment = "indoor",
skin = { wall="BRNPOIS" },
},
stalagmite_MED =
{
prefab = "STALAGMITE",
add_mode = "island",
environment = "indoor",
min_height = 128,
skin = {},
},
billboard_lit_SHAWN =
{
prefab = "BILLBOARD_LIT",
environment = "outdoor",
add_mode = "extend",
min_height = 160,
skin =
{
pic_w = "SHAWN1", pic_back = "SHAWN2",
pic_f = "CEIL3_5", pic_h = 88,
corn_w = "SHAWN2", corn2_w = "DOORSTOP",
corn_f = "FLAT19", corn_h = 112,
step_w = "STEP4", step_f = "CEIL3_5",
lite_w = "LITE5",
},
theme_probs = { NATURE=20, URBAN=10 },
},
ground_light_SILVER =
{
prefab = "GROUND_LIGHT",
environment = "outdoor",
min_height = 96,
skin =
{
shawn_w = "SHAWN3", shawn_f = "FLAT1",
lite_w = "LITE5", lite_f = "CEIL5_1",
},
theme_probs = { NATURE=50, URBAN=5 },
force_dir = 2, -- optimisation
},
rock_pieces_BROWN =
{
prefab = "ROCK_PIECES",
environment = "outdoor",
theme_probs = { NATURE=60 },
skin = { rock_w="BROWNHUG", rock_f="FLAT1_2", rock_h=12 },
},
rock_pieces_WHITE =
{
prefab = "ROCK_PIECES",
environment = "outdoor",
theme_probs = { NATURE=20 },
skin = { rock_w="GRAYBIG", rock_f="MFLR8_3", rock_h=6 },
},
rock_pieces_ASH_HOLE =
{
prefab = "ROCK_PIECES",
environment = "outdoor",
theme_probs = { NATURE=60 },
skin = { rock_f="FLAT5_7", rock_h=-6 },
},
pentagram_RED =
{
prefab = "PENTAGRAM",
add_mode = "island",
theme_probs = { HELL=30 },
skin =
{
gram_w="REDWALL", gram_f="FLAT5_3",
gram_h=12, gram_lt=240, kind=8,
gram_t="candle",
}
},
pentagram_LAVA =
{
prefab = "PENTAGRAM",
add_mode = "island",
theme_probs = { HELL=20 },
skin =
{
gram_f="LAVA1", gram_h=-10, gram_lt=192, kind=0,
gram_t="none"
}
},
skylight_cross_sm_METAL =
{
prefab = "SKYLIGHT_CROSS_SMALL",
environment = "indoor",
add_mode = "island",
min_height = 80,
skin =
{
sky_c = "F_SKY1",
frame_w = "METAL", frame_c = "CEIL5_2",
},
prob = 10,
},
crate_CRATE1 =
{
prefab = "CRATE",
skin =
{
crate_h = 64,
crate_w = "CRATE1",
crate_f = "CRATOP2",
}
},
crate_CRATE2 =
{
prefab = "CRATE",
skin =
{
crate_h = 64,
crate_w = "CRATE2",
crate_f = "CRATOP1",
}
},
crate_WIDE =
{
prefab = "CRATE_BIG",
skin =
{
crate_h = 128,
crate_w = "CRATWIDE",
crate_f = "CRATOP1",
},
force_dir = 2, -- optimisation
},
crate_WOODSKUL =
{
prefab = "CRATE",
skin =
{
crate_h = 64,
crate_w = "WOOD4",
crate_f = "CEIL1_1",
}
},
crate_rotate_CRATE1 =
{
prefab = "CRATE_ROTATE",
skin =
{
crate_h = 64,
crate_w = "CRATE1",
crate_f = "CRATOP2",
}
},
crate_rotate_CRATE2 =
{
prefab = "CRATE_ROTATE",
skin =
{
crate_h = 128,
crate_w = "CRATE2",
crate_f = "CRATOP1",
}
},
crate_rot22_CRATE1 =
{
prefab = "CRATE_ROTATE_22DEG",
skin =
{
crate_h = 64,
crate_w = "CRATE1",
crate_f = "CRATOP2",
}
},
crate_rot22_CRATE2 =
{
prefab = "CRATE_ROTATE_22DEG",
skin =
{
crate_h = 128,
crate_w = "CRATE2",
crate_f = "CRATOP1",
}
},
crate_triple_A =
{
prefab = "CRATE_TRIPLE",
add_mode = "island",
min_height = 144,
skin =
{
crate_w1 = "CRATE1", crate_f1 = "CRATOP2",
crate_w2 = "CRATE1", crate_f2 = "CRATOP2",
crate_w3 = "CRATE2", crate_f3 = "CRATOP1",
small_w = "CRATELIT", small_f = "CRATOP1",
},
},
crate_triple_B =
{
prefab = "CRATE_TRIPLE",
add_mode = "island",
min_height = 144,
skin =
{
crate_w1 = "CRATE2", crate_f1 = "CRATOP1",
crate_w2 = "CRATE1", crate_f2 = "CRATOP2",
crate_w3 = "CRATE1", crate_f3 = "CRATOP2",
small_w = "CRATELIT", small_f = "CRATOP1",
},
},
crate_rotnar_GRAY2 =
{
prefab = "CRATE_ROTATE_NARROW",
add_mode = "island",
skin =
{
crate_h = 58,
crate_w = "GRAY2",
crate_f = "FLAT5_4"
}
},
cage_pillar_METAL =
{
prefab = "CAGE_PILLAR",
add_mode = "island",
min_height = 160,
is_cage = true,
skin =
{
cage_w = "METAL",
cage_f = "CEIL5_2", cage_c = "TLITE6_4",
rail_w = "MIDGRATE", rail_h = 72,
},
prob = 3
},
}
DM_FEATURE_PREFABS =
{
pillar_rnd_med_COMPSTA =
{
prefab = "PILLAR_ROUND_MEDIUM",
add_mode = "island",
skin = { wall="COMPSTA1" },
},
pillar_rnd_bg_COMPSTA =
{
prefab = "PILLAR_ROUND_LARGE",
add_mode = "island",
skin = { wall="COMPSTA2" },
theme_probs = { TECH=30, INDUSTRIAL=10 },
},
overhang1_WOOD =
{
prefab = "OVERHANG_1",
environment = "outdoor",
add_mode = "island",
min_height = 128,
max_height = 320,
skin =
{
beam_w = "WOOD1",
hang_u = "WOOD1",
hang_c = "FLAT5_1",
},
pickup_specialness = 35,
theme_probs = { NATURE=40, URBAN=15 },
},
overhang1_MARBLE =
{
prefab = "OVERHANG_1",
environment = "outdoor",
add_mode = "island",
min_height = 128,
max_height = 320,
skin =
{
beam_w = "MARBLE1",
hang_u = "MARBLE3",
hang_c = "DEM1_6",
},
pickup_specialness = 35,
theme_probs = { HELL=25, NATURE=10 },
},
street_lamp_1 =
{
prefab = "STREET_LAMP_TWO_SIDED",
environment = "outdoor",
add_mode = "island",
min_height = 160,
max_height = 512,
theme_probs = { URBAN=25, NATURE=5 },
skin =
{
lite_w="METAL", lite_c="CEIL1_2",
arm_w="BROWN1", arm_f="FLOOR3_3",
arm_u="BROWN96", arm_c="CEIL5_2",
beam_w="METAL"
},
},
stalagmite_HUGE =
{
prefab = "STALAGMITE_HUGE",
environment = "indoor",
min_height = 144,
theme_probs = { CAVE=150 },
skin = {},
},
cave_in_FLOOR7 =
{
prefab = "CAVE_IN_SMALL",
environment = "indoor",
theme_probs = { CAVE=90 },
skin =
{
rock_f="FLOOR7_1", -- rock_w="BROWN144",
sky_c="F_SKY1",
},
},
pond_small_LAVA =
{
prefab = "POND_SMALL",
theme_probs = { CAVE=30 },
skin =
{
pond_f="LAVA1", pond_w="ROCKRED1",
liquid_f="LAVA1", -- outer_w
kind=16
},
},
--[[
rock_volcano_SPROCK_LAVA =
{
prefab = "ROCK_VOLCANO",
environment = "outdoor",
theme_probs = { NATURE=40 },
min_height = 256,
skin =
{
rock_w="SP_ROCK1", rock_f="MFLR8_3",
liquid_w="ROCKRED1", liquid_f="LAVA1",
},
},
--]]
leakage_pool_LAVA =
{
prefab = "LEAKAGE_POOL",
environment = "indoor",
min_height = 128,
max_height = 192,
theme_probs = { CAVE=90 },
skin = { liquid_f="LAVA1", liquid_w="ROCKRED1", kind=16 },
},
pump_vat_NUKAGE =
{
prefab = "PUMP_INTO_VAT",
environment = "indoor",
min_height = 160,
max_height = 256,
theme_probs = { INDUSTRIAL=40 },
skin =
{
vat_w="SHAWN2", vat_f="FLAT23",
hose_w="PIPE2", hose_c="FLAT5",
liquid_w="SFALL1", liquid_f="NUKAGE1",
kind=16
}
},
pump_vat_WATER =
{
prefab = "PUMP_INTO_VAT",
environment = "indoor",
min_height = 160,
max_height = 256,
theme_probs = { INDUSTRIAL=2 },
skin =
{
vat_w="METAL", vat_f="CEIL5_2",
hose_w="METAL", hose_c="CEIL5_2",
liquid_w="FIREMAG1", liquid_f="FWATER1",
kind=0
}
},
launch_pad_big_H =
{
prefab = "LAUNCH_PAD_LARGE",
environment = "outdoor",
add_mode = "island",
skin =
{
pad_f="FLAT1", letter_f="CRATOP1",
outer_w="METAL1", outer_f="FLOOR4_8",
step_w="STEP1", side_w="METAL1", step_f="FLOOR4_8",
},
prob = 5,
pickup_specialness = 90,
force_dir = 2, -- optimisation
},
launch_pad_med_F =
{
prefab = "LAUNCH_PAD_MEDIUM",
environment = "outdoor",
add_mode = "island",
skin =
{
pad_f="FLAT1", letter_f="CRATOP1",
outer_w="METAL1", outer_f="FLOOR4_8",
step_w="STEP1", side_w="METAL1", step_f="FLOOR4_8",
},
prob = 5,
pickup_specialness = 80,
force_dir = 4, -- optimisation
},
launch_pad_sml_S =
{
prefab = "LAUNCH_PAD_SMALL",
environment = "outdoor",
add_mode = "island",
skin =
{
pad_f="FLAT1", letter_f="CRATOP1",
outer_w="METAL1", outer_f="FLOOR4_8",
step_w="STEP1", side_w="METAL1", step_f="FLOOR4_8",
},
prob = 5,
pickup_specialness = 80,
force_dir = 2, -- optimisation
},
tech_pickup_STONE =
{
prefab = "TECH_PICKUP_LARGE",
environment = "indoor",
add_mode = "island",
min_height = 224,
max_height = 320,
skin =
{
wall="STONE2", floor="CEIL5_2", ceil="CEIL3_5",
lite_w="LITE5", sky_c="F_SKY1",
step_w="STEP1", carpet_f="FLOOR1_1",
},
prob = 5,
pickup_specialness = 100,
force_dir = 2, -- optimisation
},
liquid_pickup_NUKAGE =
{
prefab = "LIQUID_PICKUP",
min_height = 144,
max_height = 384,
skin =
{
wall="METAL", floor="CEIL5_2", ceil="CEIL5_2",
liquid_f="NUKAGE1", sky_c="F_SKY1",
},
prob = 5,
pickup_specialness = 95,
},
light_groovy_RED =
{
prefab = "LIGHT_GROOVY",
environment = "indoor",
add_mode = "island",
theme_probs = { TECH=50 },
force_dir = 2,
skin =
{
frame_c="CEIL5_2", frame_w="SKINSYMB",
lite_c="FLOOR1_7",
lite_lt=255, frame_lt=168, kind=8,
}
},
skylight_mega_METAL =
{
prefab = "SKYLIGHT_MEGA_1",
environment = "indoor",
add_mode = "island",
min_height = 96,
-- max_height = 304, ???
skin =
{
sky_c = "F_SKY1",
frame_w = "METAL", frame_c = "CEIL5_2",
beam_w = "METAL", beam_c = "CEIL5_2",
},
prob = 10,
},
crate_jumble =
{
prefab = "CRATE_JUMBLE",
add_mode = "island",
min_height = 224,
skin =
{
tall_w = "CRATE1", tall_f = "CRATOP2",
wide_w = "CRATWIDE", wide_f = "CRATOP1",
crate_w1 = "CRATE1", crate_f1 = "CRATOP2",
crate_w2 = "CRATE2", crate_f2 = "CRATOP1",
},
theme_probs = { INDUSTRIAL=20 },
},
fountain_STONE =
{
prefab = "FOUNTAIN_SQUARE",
environment = "outdoor",
add_mode = "island",
skin =
{
edge_w="STONE", edge_f="FLAT19",
beam_w="STONE", beam_f="FLAT1",
liquid_f="FWATER1", liquid_w="FIREMAG1",
},
theme_probs = { URBAN=90, NATURE=50, HELL=5 },
},
cage_w_posts_WOOD_MIDGRATE =
{
prefab = "CAGE_OPEN_W_POSTS",
add_mode = "island",
min_height = 208,
is_cage = true,
skin =
{
beam_w="SUPPORT3", beam_f="CEIL5_2",
cage_w="WOOD1", cage_f="FLAT5_2",
rail_w="MIDGRATE", rail_h=128,
},
prob = 4
},
}
DM_WALL_PREFABS =
{
solid_CEMENT4 =
{
prefab = "SOLID_WIDE", skin = { wall="CEMENT4" },
},
solid_CEMENT5 =
{
prefab = "SOLID_WIDE", skin = { wall="CEMENT5" },
},
solid_ICKWALL4 =
{
prefab = "SOLID", skin = { wall="ICKWALL4" },
},
solid_ICKWALL5 =
{
prefab = "SOLID", skin = { wall="ICKWALL5" },
},
solid_ICKWALL7 =
{
prefab = "SOLID", skin = { wall="ICKWALL7" },
},
solid_PIPE4 =
{
prefab = "SOLID_WIDE", skin = { wall="PIPE4" },
},
solid_SLADSKUL =
{
prefab = "SOLID", skin = { wall="SLADSKUL" },
},
wall_lamp_RED_TORCH =
{
prefab = "WALL_LAMP",
skin = { lamp_t="red_torch_sm" },
theme_probs = { CAVE=90, HELL=70 },
},
wall_lamp_GREEN_TORCH =
{
prefab = "WALL_LAMP",
skin = { lamp_t="green_torch_sm" },
theme_probs = { CAVE=90, HELL=30, URBAN=10 },
},
wall_lamp_BLUE_TORCH =
{
prefab = "WALL_LAMP",
skin = { lamp_t="blue_torch_sm" },
theme_probs = { CAVE=90, URBAN=20 },
},
wall_pic_MARBFACE =
{
prefab = "WALL_PIC",
min_height = 160,
skin = { pic_w="MARBFACE", pic_h=128 },
theme_probs = { HELL=90 },
},
wall_pic_MARBFAC2 =
{
prefab = "WALL_PIC",
min_height = 160,
skin = { pic_w="MARBFAC2", pic_h=128 },
theme_probs = { HELL=60, CAVE=10 },
},
wall_pic_MARBFAC3 =
{
prefab = "WALL_PIC",
min_height = 160,
skin = { pic_w="MARBFAC3", pic_h=128 },
theme_probs = { HELL=50, URBAN=5 },
},
wall_pic_FIREWALL =
{
prefab = "WALL_PIC_SHALLOW",
min_height = 144,
skin = { pic_w="FIREWALL", pic_h=112 },
theme_probs = { HELL=120 },
},
wall_pic_SPDUDE1 =
{
prefab = "WALL_PIC",
min_height = 160,
skin = { pic_w="SP_DUDE1", pic_h=128 },
},
wall_pic_SPDUDE2 =
{
prefab = "WALL_PIC",
min_height = 160,
skin = { pic_w="SP_DUDE2", pic_h=128 },
},
wall_scroll_FACES =
{
prefab = "WALL_PIC_SCROLLER",
min_height = 144,
theme_probs = { HELL=4 },
skin = { pic_w="SP_FACE1", pic_h=96, kind=48 },
},
wall_scroll_SPINE =
{
prefab = "WALL_PIC_SCROLLER",
min_height = 144,
theme_probs = { HELL=8 },
skin = { pic_w="SKSPINE2", pic_h=96, kind=48 },
},
wall_cross_RED =
{
prefab = "WALL_CROSS",
min_height = 160,
theme_probs = { HELL=200 },
skin =
{
cross_w="REDWALL", back_w="REDWALL",
cross_f="FLAT5_3",
cross_lt=255, kind=0,
},
},
lights_thin_LITE5 =
{
prefab = "WALL_LIGHTS_THIN",
min_height = 128,
theme_probs = { TECH=40, INDUSTRIAL=10 },
skin =
{
lite_w="LITE5", lite_side="LITE5",
frame_f="FLAT20",
wall_lt=255, kind=8,
},
},
lights_wide_LITEBLU4 =
{
prefab = "WALL_LIGHTS_WIDE",
min_height = 128,
theme_probs = { INDUSTRIAL=40 },
skin =
{
lite_w="LITEBLU4", lite_side="LITEBLU4",
frame_f="FLAT22",
wall_lt=255, kind=8,
},
},
}
DM_ARCH_PREFABS =
{
arch_fence =
{
prefab = "ARCH_FENCE",
-- environment = "outdoor",
skin = {},
},
arch_wire_fence =
{
prefab = "ARCH_WIRE_FENCE",
-- environment = "outdoor",
skin = {},
},
}
DM_DOOR_PREFABS =
{
backup_plan =
{
w=64, h=112, prefab="DOOR_SUPER_NARROW",
skin =
{
door_w="SPCDOOR1", door_c="FLAT1",
track_w="DOORTRAK",
door_h=112,
door_kind=1, tag=0,
},
},
silver_lit =
{
w=128, h=112, prefab="DOOR_LIT",
skin =
{
door_w="BIGDOOR2", door_c="FLAT1",
lite_w="LITE5", step_w="STEP1",
frame_f="FLAT1", frame_c="TLITE6_6",
track_w="DOORTRAK",
door_h=112,
door_kind=1, tag=0,
},
theme_probs = { INDUSTRIAL=70,TECH=70,URBAN=10 },
},
uac_lit = -- actual height is 96
{
w=128, h=72, prefab="DOOR_LIT",
skin =
{
door_w="BIGDOOR1", door_c="FLAT23",
lite_w="LITE5", step_w="STEP1",
frame_f="FLAT1", frame_c="TLITE6_6",
track_w="DOORTRAK",
door_h=72,
door_kind=1, tag=0,
},
theme_probs = { INDUSTRIAL=20,TECH=50 },
},
wooden =
{
w=128, h=112, prefab="DOOR",
skin =
{
door_w="BIGDOOR5", door_c="FLAT5_2",
lite_w="LITE5", step_w="STEP1",
frame_f="FLAT1", frame_c="FLAT1",
track_w="DOORTRAK",
door_h=112,
door_kind=1, tag=0,
},
theme_probs = { URBAN=70,CAVE=30,HELL=5,NATURE=1 }
},
wood_garg =
{
w=128, h=112, prefab="DOOR",
skin =
{
door_w="BIGDOOR6", door_c="CEIL5_2",
lite_w="LITE5", step_w="STEP1",
frame_f="FLAT1", frame_c="FLAT1",
track_w="DOORTRAK",
door_h=112,
door_kind=1, tag=0,
},
theme_probs = { CAVE=50,HELL=30 },
},
wood_skull =
{
w=128, h=112, prefab="DOOR",
skin =
{
door_w="BIGDOOR7", door_c="CEIL5_2",
lite_w="LITE5", step_w="STEP1",
frame_f="FLAT1", frame_c="FLAT1",
track_w="DOORTRAK",
door_h=112,
door_kind=1, tag=0,
},
theme_probs = { HELL=90,CAVE=5 },
},
}
DM_WINDOW_PREFABS =
{
window_narrow =
{
prefab = "WINDOW_NARROW",
skin = { },
},
window_rail_nar_MIDGRATE =
{
prefab = "WINDOW_RAIL_NARROW",
skin = { rail_w="MIDGRATE" },
},
window_cross_big =
{
prefab = "WINDOW_CROSS_BIG",
skin = { },
},
}
DM_MISC_PREFABS =
{
pedestal_PLAYER =
{
prefab = "PEDESTAL",
skin = { wall="SHAWN2", floor="FLAT22", ped_h=8 },
},
pedestal_ITEM =
{
prefab = "PEDESTAL",
skin = { wall="METAL", floor="CEIL1_2", ped_h=12 },
},
fence_wire_STD =
{
prefab = "FENCE_RAIL",
skin = { rail_w="BRNSMALC" },
},
arch_arched =
{
prefab = "ARCH_ARCHED", skin = {},
},
arch_hole =
{
prefab = "ARCH_HOLE1", skin = {},
},
arch_russian_WOOD =
{
prefab = "ARCH_RUSSIAN",
skin = { beam_w="WOOD1", beam_c="FLAT5_2" },
},
fence_beam_BLUETORCH =
{
prefab = "FENCE_BEAM_W_LAMP",
skin = { lamp_t="blue_torch", beam_h=72,
beam_w="METAL", beam_f="CEIL5_2",
},
},
image_1 =
{
prefab = "CRATE",
add_mode = "island",
skin = { crate_h=64, crate_w="CEMENT2", crate_f="MFLR8_3" },
},
image_2 =
{
prefab = "WALL_PIC_SHALLOW",
add_mode = "wall",
min_height = 144,
skin = { pic_w="CEMENT1", pic_h=128 },
},
exit_DOOR =
{
w=64, h=72,
prefab = "EXIT_DOOR",
skin =
{
door_w = "EXITDOOR", door_c = "CEIL5_2",
exit_w = "EXITSIGN", exit_c = "CEIL5_2",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="TLITE6_5",
door_h=72,
door_kind=1, tag=0,
}
},
exit_DOOR_WIDE =
{
w=64, h=72,
prefab = "EXIT_DOOR_WIDE",
skin =
{
front_w = "EXITSTON",
door_w = "EXITDOOR", door_c = "CEIL5_2",
exit_w = "EXITSIGN", exit_c = "CEIL5_2",
step_w="STEP1", track_w="DOORTRAK",
frame_f="FLAT1", frame_c="TLITE6_5",
door_h=72,
door_kind=1, tag=0,
}
},
secret_DOOR =
{
w=128, h=128, prefab = "DOOR",
skin = { track_w="DOORSTOP", door_h=128,
door_kind=31, tag=0,
}
},
}
DM_DEATHMATCH_EXITS =
{
exit_deathmatch_TECH =
{
prefab = "EXIT_DEATHMATCH",
skin = { wall="TEKWALL4", front_w="TEKWALL4",
floor="CEIL4_3", ceil="TLITE6_5",
switch_w="SW1COMM", side_w="SHAWN2", switch_f="FLAT23",
frame_f="FLAT1", frame_c="FLAT1", step_w="STEP1",
door_w="EXITDOOR", door_c="FLAT1", track_w="DOORTRAK",
inside_h=80, door_h=72,
switch_yo=0,
door_kind=1, tag=0, switch_kind=11
},
},
exit_deathmatch_METAL =
{
prefab = "EXIT_DEATHMATCH",
skin = { wall="METAL1", front_w="METAL1",
floor="FLOOR5_1", ceil="CEIL5_1",
switch_w="SW1BLUE", side_w="COMPBLUE", switch_f="FLAT14",
frame_f="FLOOR5_1", frame_c="TLITE6_6", step_w="STEP1",
door_w="EXITDOOR", door_c="FLAT1", track_w="DOORTRAK",
inside_h=80, door_h=72,
switch_yo=56,
door_kind=1, tag=0, switch_kind=11
},
},
exit_deathmatch_STONE =
{
prefab = "EXIT_DEATHMATCH",
skin = { wall="STONE2", front_w="EXITSTON",
floor="FLOOR7_2", ceil="FLAT1",
switch_w="SW1HOT", side_w="SP_HOT1", switch_f="FLAT5_3",
frame_f="FLOOR5_1", frame_c="TLITE6_6", step_w="STEP1",
door_w="EXITDOOR", door_c="FLAT1", track_w="DOORTRAK",
inside_h=80, door_h=72,
switch_yo=56,
door_kind=1, tag=0, switch_kind=11
},
},
}
DM_ROOMS =
{
PLAIN =
{
},
HALLWAY =
{
liquid_prob = 0,
room_heights = { [96]=50, [128]=50 },
door_probs = { out_diff=75, combo_diff=50, normal=5 },
window_probs = { out_diff=1, combo_diff=1, normal=1 },
space_range = { 33, 66 },
},
SCENIC =
{
},
WAREHOUSE =
{
space_range = { 80, 99 },
pf_count = { 4,8 },
-- crate it up baby!
sc_fabs =
{
crate_CRATE1 = 50, crate_triple_A = 40,
crate_CRATE2 = 50, crate_triple_B = 40,
crate_WIDE = 20,
crate_rotate_CRATE1 = 10, crate_rot22_CRATE1 = 20,
crate_rotate_CRATE2 = 20, crate_rot22_CRATE2 = 10,
other = 20
},
},
WAREHOUSE2 =
{
},
}
DM_THEMES =
{
--[[
(a) nature (outdoor, grassy/rocky/muddy, water)
(b) urban (outdoor, bricks/concrete, slime)
(c) gothic (indoor, gstone, blood, castles)
(d) tech (indoor, computers, lights, lifts)
(e) cave (indoor, rocky/ashy, darkness, lava)
(f) industrial (indoor, machines, lifts, crates, nukage)
(h) hell (indoor+outdoor, fire/lava, bodies, blood)
--]]
URBAN =
{
room_probs=
{
PLAIN=40, WAREHOUSE2=10, WAREHOUSE=10, PRISON=5,
},
exit_probs=
{
STONE=70, BROWN=50,
},
monster_prefs =
{
zombie=2.0, shooter=2.0, gunner=2.0,
},
},
INDUSTRIAL =
{
room_probs=
{
PLAIN=30, PLANT=90, WAREHOUSE=50, COMPUTER=5,
},
exit_probs=
{
BROWN=50, TECH=20, STONE=10, BLUE=5,
},
monster_prefs =
{
caco=2.0, barrel=4.0,
},
},
TECH =
{
room_probs=
{
PLAIN=20, COMPUTER=25, WAREHOUSE=5,
},
exit_probs=
{
TECH=50, BLUE=50, STARTAN=50, BROWN=5,
},
monster_prefs =
{
zombie=2.0, shooter=2.0, gunner=2.0,
barrel=2.7,
},
},
NATURE =
{
room_probs=
{
PLAIN=50,
},
exit_probs=
{
STONE=40, BROWN=20,
},
monster_prefs =
{
demon=2.5, knight=2.0, baron=2.0, pain=2.0,
barrel=0.5,
},
door_probs = { out_diff=75, combo_diff=10, normal=5 },
window_probs = { out_diff=75, combo_diff=40, normal=40 },
space_range = { 50, 90 },
prefer_stairs = true,
trim_mode = "rough_hew",
},
CAVE =
{
room_probs=
{
PLAIN=25, WAREHOUSE2=10, TORTURE=5, PRISON=20
},
exit_probs=
{
BROWN=50, STONE=10,
},
room_heights = { [96]=50, [128]=50 },
monster_prefs =
{
imp=3.0, skull=2.0, revenant=2.0,
barrel=0.5,
},
diff_probs = { [0]=10, [16]=40, [32]=80, [64]=60, [96]=20 },
bump_probs = { [0]=5, [16]=30, [32]=30, [64]=20 },
door_probs = { out_diff=10, combo_diff= 3, normal=1 },
window_probs = { out_diff=20, combo_diff=30, normal=5 },
space_range = { 1, 50 },
prefer_stairs = true,
trim_mode = "rough_hew",
},
HELL =
{
room_probs=
{
PLAIN=20, TORTURE=25, PRISON=10,
},
exit_probs=
{
STONE=10, BROWN=10, BLOODY=50,
},
monster_prefs =
{
zombie=0.2, shooter=0.5, gunner=0.5,
spectre=2.0, vile=2.0, arach=2.0,
},
},
WOLF =
{
room_probs=
{
PLAIN=50,
},
monster_prefs =
{
-- the SS guard normally has a very low probability, hence
-- we need a very large multiplier to make him dominant.
ss_dude=5000,
},
},
}
DM_QUEST_LEN_PROBS =
{
---------- 2 3 4 5 6 7 8 9 10 -------
key = { 0, 17, 50, 90, 65, 30, 10, 2 },
exit = { 0, 17, 50, 90, 65, 30, 10, 2 },
switch = { 0, 50, 90, 50, 25, 5, 1 },
weapon = { 25, 90, 50, 10, 2 },
item = { 15, 70, 70, 15, 2 },
}
------------------------------------------------------------
-- Monster list
-- ============
--
-- r : radius
-- h : height
-- hp : health-points
-- dm : damage can inflict per second (rough approx)
-- fp : firepower needed by player
DM_MONSTERS =
{
-- FIXME: probs for CLOSET/DEPOT
zombie = { prob=60, hp=20, dm=4, fp=1.0, cage_fallback=14, hitscan=true, },
shooter = { prob=40, hp=30, dm=10, fp=1.3, cage_prob= 8, hitscan=true, },
imp = { prob=80, hp=60, dm=20, fp=1.6, cage_prob=50, },
caco = { prob=80, hp=400, dm=45, fp=2.0, cage_prob=14, float=true },
baron = { prob=50, hp=1000,dm=45, fp=3.8, cage_prob= 3, },
-- MELEE only monsters
demon = { prob=45, hp=150, dm=25, fp=2.3, cage_prob=66,melee=true },
spectre = { prob=20, hp=150, dm=25, fp=2.3, cage_prob=40,melee=true },
skull = { prob=14, hp=100, dm=7, fp=2.6, cage_prob= 2, melee=true, float=true },
barrel = { prob=17, hp=10, dm=2, fp=1.0, melee=true, passive=true },
-- FIXME: HACK! we lie here about Cybies' true power otherwise
-- he would never get added into a map.
cyber = { prob=10, hp=1600,dm=75, fp=3.8, boss=true },
}
DM_BOSSES =
{
-- special monsters (only for boss levels)
cyber = { hp=4000,dm=150, fp=4.0 },
spider = { hp=3000,dm=200, fp=4.0, hitscan=true },
-- FIXME: added just for kicks
keen = { hp=300, dm=1, fp=2.0 },
}
D2_MONSTERS =
{
gunner = { prob=17, hp=70, dm=40, fp=2.5, hitscan=true, cage_prob=70, },
ss_dude = { prob=0.1,hp=50, dm=15, fp=2.4, hitscan=true, cage_prob=1 },
revenant = { prob=70, hp=300, dm=55, fp=2.9, cage_prob=50, },
knight = { prob=70, hp=500, dm=45, fp=2.9, cage_prob=50, },
mancubus = { prob=95, hp=600, dm=80, fp=3.5, cage_prob=88, },
arach = { prob=36, hp=500, dm=70, fp=2.5, cage_prob=95, },
vile = { prob=20, hp=700, dm=50, fp=3.7, cage_prob=12, hitscan=true },
pain = { prob=14, hp=400, dm=88, fp=3.0, float=true },
}
DM_MONSTER_GIVE =
{
zombie = { { ammo="bullet", give=10 } },
shooter = { { weapon="shotty" } },
gunner = { { weapon="chain" } }
}
-- Weapon list
-- ===========
--
-- fp : firepower level
-- per : ammo per shot
-- rate : firing rate (shots per second)
-- dm : damage can inflict per shot
-- freq : usage frequency (in the ideal)
-- held : already held at level start
DM_WEAPONS =
{
fist = { fp=0, melee=true, rate=1.5, dm=10, freq=0.1, held=true },
saw = { fp=1, melee=true, rate=8.7, dm=10, freq=3 },
berserk = { fp=1, melee=true, rate=1.5, dm=50, freq=6 },
pistol = { fp=1, ammo="bullet", per=1, rate=1.8, dm=10 , freq=10, held=true },
shotty = { fp=2, ammo="shell", give=8, per=1, rate=0.9, dm=70 , freq=81 },
super = { fp=3, ammo="shell", give=8, per=2, rate=0.6, dm=170, freq=50 },
chain = { fp=3, ammo="bullet", give=20,per=1, rate=8.5, dm=10 , freq=91 },
launch = { fp=4, ammo="rocket", give=2, per=1, rate=1.7, dm=90, freq=50, dangerous=true },
plasma = { fp=4, ammo="cell", give=40,per=1, rate=11, dm=22 , freq=80 },
bfg = { fp=5, ammo="cell", give=40,per=40,rate=0.8, dm=450, freq=30 },
-- Note: Berserk is not really an extra weapon, but a powerup
-- which makes fist do much more damage. The effect lasts till
-- the end of the level, so a weapon is a pretty good fit.
}
-- sometimes a certain weapon is preferred against a certain monster.
-- These values are multiplied with the weapon's "freq" field.
DM_MONSTER_WEAPON_PREFS =
{
zombie = { shotty=6.0 },
shooter = { shotty=6.0 },
imp = { shotty=6.0 },
demon = { super=3.0, launch=0.3 },
spectre = { super=3.0, launch=0.3 },
pain = { launch=0.1 },
skull = { launch=0.1 },
cyber = { launch=3.0, bfg=6.0 },
spider = { launch=3.0, bfg=9.0 },
}
-- Pickup List
-- ===========
DM_PICKUPS =
{
bullets = { stat="bullet", give=10, prob=10 },
bullet_box = { stat="bullet", give=50, prob=70, clu_max=1 },
shells = { stat="shell", give= 4, prob=30 },
shell_box = { stat="shell", give=20, prob=70, clu_max=3 },
rockets = { stat="rocket", give= 1, prob=20 },
rocket_box = { stat="rocket", give= 5, prob=70, clu_max=1 },
cells = { stat="cell", give=20, prob=30 },
cell_pack = { stat="cell", give=100,prob=70, clu_max=1 },
potion = { stat="health", give=1, prob=20 },
stimpack = { stat="health", give=10, prob=40 },
medikit = { stat="health", give=25, prob=70, clu_max=1 },
soul = { stat="health", give=100,prob=15, clu_max=1, limit=200 },
-- BERSERK and MEGA are quest items
helmet = { stat="health", give=1, prob=5 }, -- FIXME: not health
green_armor = { stat="armor", give= 100, limit=100, clu_max=1 },
blue_armor = { stat="armor", give= 200, limit=200, clu_max=1 },
-- Note: armor is handled with special code, since
-- BLUE ARMOR is a quest item.
-- Note 2: the BACKPACK is a quest item
}
DM_NICENESS =
{
w1 = { weapon="shotty", quest=1, prob=70, always=true },
w2 = { weapon="chain", quest=3, prob=20, always=false },
w3 = { weapon="plasma", quest=5, prob=35, always=true },
p1 = { pickup="green_armor", prob=2.0 },
}
-- DeathMatch stuff
-- ================
DM_DEATHMATCH =
{
weapons =
{
shotty=60, super=40, chain=40, launch=40,
plasma=20, saw=10, bfg=3
},
health =
{
potion=30, stimpack=60, medikit=20,
helmet=20
},
ammo =
{
bullets=5, bullet_box=30,
shells=60, shell_box=5,
rockets=10, rocket_box=20,
cells=40, cell_pack=1,
},
items =
{
invis=40, goggle=10, berserk=50,
soul=5, green_armor=40, blue_armor=5,
},
max_clu =
{
potion = 8, helmet = 8,
stimpack = 4, medikit = 2,
bullets = 4, shells = 4,
rockets = 4,
},
min_clu =
{
potion = 3, helmet = 3,
bullets = 2, rockets = 2,
},
}
DM_INITIAL_MODEL =
{
doomguy =
{
-- Note: bullet numbers are understated (should be 50)
-- so that the player isn't forced to empty the pistol.
health=100, armor=0,
bullet=20, shell=0, rocket=0, cell=0,
fist=true, pistol=true,
}
}
-----==============######################==============-----
---- QUEST STUFF ----------------
D1_QUESTS =
{
key =
{
k_blue=50, k_red=50, k_yellow=50
},
switch =
{
sw_blue=50, sw_hot=30,
sw_vine=10, sw_skin=40,
sw_metl=50, sw_gray=20,
},
weapon =
{
saw=10, launch=80, plasma=60, bfg=5
},
item =
{
blue_armor=40, invis=40, backpack=25,
berserk=20, goggle=5, invul=2, map=3
},
}
D1_COMBOS =
{
---- TECH ------------
TECH_TRON =
{
theme_probs = { TECH=20 },
mat_pri = 12,
wall = "COMPOHSO",
floor = "CEIL3_2",
ceil = "CEIL5_2",
lift = "PLAT1",
step = "STEP1",
step_floor = "STEP1",
},
---- CAVE ---------------
CAVE_ASH =
{
theme_probs = { CAVE=30 },
mat_pri = 2,
wall = "ASHWALL",
floor = "FLAT5_8", -- FLOOR6_2
ceil = "FLAT5_8",
arch = "arch_russian_WOOD",
sc_fabs = { stalagmite_MED=40, other=10 },
},
}
D1_EXITS =
{
}
D1_HALLWAYS =
{
}
D1_CRATES =
{
COMPUTER =
{
wall = "COMPUTE1", h=128, floor = "FLAT23",
side_x_offset=67
},
PLANET1 =
{
wall = "PLANET1", h=128, floor = "FLAT23",
side_x_offset=64
},
PLANET2 =
{
wall = "PLANET1", h=64, floor = "FLAT23",
x_offset=128, side_y_offset=64
},
SKIN =
{
wall = "SKINBORD", h=64, floor = "CEIL3_3", can_rotate=true
},
}
D1_RAILS =
{
r_1 = { wall="BRNSMALC", w=128, h=64 },
r_2 = { wall="MIDGRATE", w=128, h=128 },
}
D1_WALL_PREFABS =
{
wall_pic_COMP2 =
{
prefab = "WALL_PIC",
min_height = 160,
theme_probs = { TECH=90, INDUSTRIAL=30 },
skin = { pic_w="COMP2", lite_w="SUPPORT2", pic_h=128 },
},
wall_pic_TEKWALL2 =
{
prefab = "WALL_PIC_SHALLOW",
min_height = 144,
skin = { pic_w="TEKWALL2", lite_w="METAL", pic_h=128 },
theme_probs = { TECH=10 },
},
wall_pic_TEKWALL3 =
{
prefab = "WALL_PIC_SHALLOW",
min_height = 144,
skin = { pic_w="TEKWALL3", lite_w="METAL", pic_h=128 },
theme_probs = { TECH=10 },
},
wall_pic_TEKWALL5 =
{
prefab = "WALL_PIC_SHALLOW",
min_height = 144,
skin = { pic_w="TEKWALL5", lite_w="METAL", pic_h=128 },
theme_probs = { TECH=10 },
},
lights_thin_LITERED =
{
prefab = "WALL_LIGHTS_THIN",
min_height = 128,
theme_probs = { TECH=90, HELL=2 },
skin =
{
lite_w="LITERED", lite_side="LITERED",
frame_f="FLOOR1_6",
wall_lt=255, kind=8,
},
},
}
D1_ROOMS =
{
PLANT =
{
wall_fabs =
{
wall_pic_COMP2 = 30,
other = 100
},
},
COMPUTER =
{
wall_fabs =
{
wall_pic_COMP2 = 30,
other = 100
},
},
TORTURE =
{
space_range = { 60, 90 },
sc_count = { 5,10 },
scenery =
{
impaled_human = 40, impaled_twitch = 40,
hang_arm_pair = 40, hang_leg_pair = 40,
hang_leg_gone = 40, hang_leg = 40,
hang_twitching = 40,
other = 50
},
sc_fabs =
{
pillar_SPDUDE5=30, other=50
},
wall_fabs =
{
wall_pic_SPDUDE1 = 20, wall_pic_SPDUDE2 = 20,
other = 50
},
},
PRISON =
{
},
}
------------------------------------------------------------
D1_EPISODE_THEMES =
{
{ URBAN=5, INDUSTRIAL=5, TECH=9, CAVE=2, HELL=2 },
{ URBAN=9, INDUSTRIAL=5, TECH=4, CAVE=2, HELL=4 },
{ URBAN=1, INDUSTRIAL=1, TECH=1, CAVE=5, HELL=9 },
{ URBAN=4, INDUSTRIAL=2, TECH=2, CAVE=4, HELL=7 },
-- this entry used for a single episode or level
{ URBAN=5, INDUSTRIAL=4, TECH=6, CAVE=4, HELL=6 },
}
D1_SECRET_EXITS =
{
E1M3 = true,
E2M5 = true,
E3M6 = true,
E4M2 = true,
}
D1_EPISODE_BOSSES =
{
"baron", -- the Bruiser Brothers
"cyber",
"spider",
"spider",
}
D1_SKY_INFO =
{
{ color="white", light=192 },
{ color="red", light=176 },
{ color="red", light=192 },
{ color="orange", light=192 },
}
function doom1_get_levels(episode)
local level_list = {}
local theme_probs = D1_EPISODE_THEMES[episode]
if SETTINGS.length ~= "full" then
theme_probs = D1_EPISODE_THEMES[5]
end
for map = 1,9 do
local Level =
{
name = string.format("E%dM%d", episode, map),
episode = episode,
ep_along = map,
ep_length = 9,
theme_probs = theme_probs,
sky_info = D1_SKY_INFO[episode],
boss_kind = (map == 8) and D1_EPISODE_BOSSES[episode],
secret_kind = (map == 9) and "plain",
toughness_factor = sel(map==9, 1.2, 1 + (map-1) / 5),
}
if D1_SECRET_EXITS[Level.name] then
Level.secret_exit = true
end
std_decide_quests(Level, D1_QUESTS, DM_QUEST_LEN_PROBS)
table.insert(level_list, Level)
end
return level_list
end
------------------------------------------------------------
function doom_common_factory()
return
{
doom_format = true,
plan_size = 10,
cell_size = 9,
cell_min_size = 6,
caps = { heights=true, sky=true,
fragments=true, move_frag=true, rails=true,
closets=true, depots=true,
switches=true, liquids=true,
teleporters=true,
},
SKY_TEX = "F_SKY1",
ERROR_TEX = "FIREBLU1",
ERROR_FLAT = "SFLR6_4",
classes = { "doomguy" },
monsters = DM_MONSTERS,
bosses = DM_BOSSES,
weapons = DM_WEAPONS,
things = DM_THINGS,
mon_give = DM_MONSTER_GIVE,
mon_weap_prefs = DM_MONSTER_WEAPON_PREFS,
initial_model = DM_INITIAL_MODEL,
pickups = DM_PICKUPS,
pickup_stats = { "health", "bullet", "shell", "rocket", "cell" },
niceness = DM_NICENESS,
dm = DM_DEATHMATCH,
dm_exits = DM_DEATHMATCH_EXITS,
combos = DM_COMBOS,
exits = DM_EXITS,
hallways = DM_HALLWAYS,
hangs = DM_OVERHANGS,
pedestals = DM_PEDESTALS,
mats = DM_MATS,
crates = DM_CRATES,
liquids = DM_LIQUIDS,
switches = DM_SWITCHES,
doors = DM_DOORS,
key_doors = DM_KEY_DOORS,
lifts = DM_LIFTS,
images = DM_IMAGES,
lights = DM_LIGHTS,
rooms = DM_ROOMS,
themes = DM_THEMES,
sc_fabs = DM_SCENERY_PREFABS,
feat_fabs = DM_FEATURE_PREFABS,
wall_fabs = DM_WALL_PREFABS,
door_fabs = DM_DOOR_PREFABS,
arch_fabs = DM_ARCH_PREFABS,
win_fabs = DM_WINDOW_PREFABS,
misc_fabs = DM_MISC_PREFABS,
toughness_factor = 1.00,
depot_info = { teleport_kind=97 },
room_heights = { [96]=5, [128]=25, [192]=70, [256]=70, [320]=12 },
space_range = { 20, 90 },
diff_probs = { [0]=20, [16]=20, [32]=80, [64]=60, [96]=20 },
bump_probs = { [0]=40, [16]=20, [32]=20, [64]=10 },
door_probs = { out_diff=75, combo_diff=50, normal=15 },
window_probs = { out_diff=75, combo_diff=60, normal=35 },
hallway_probs = { 20, 30, 41, 53, 66 },
shack_prob = 25,
}
end
GAME_FACTORIES["doom1"] = function()
local T = doom_common_factory()
T.episodes = 4
T.level_func = doom1_get_levels
T.quests = D1_QUESTS
T.rooms = copy_and_merge(T.rooms, D1_ROOMS)
T.combos = copy_and_merge(T.combos, D1_COMBOS)
T.exits = copy_and_merge(T.exits, D1_EXITS)
T.hallways = copy_and_merge(T.hallways, D1_HALLWAYS)
T.crates = copy_and_merge(T.crates, D1_CRATES)
T.sc_fabs = copy_and_merge(T.sc_fabs, D1_SCENERY_PREFABS)
T.wall_fabs = copy_and_merge(T.wall_fabs, D1_WALL_PREFABS)
T.rails = D1_RAILS
-- remove DOOM2-only weapons and items --
T.weapons = copy_table(T.weapons)
T.weapons["super"] = nil
T.dm = copy_table(T.dm)
T.dm.weapons = copy_table(T.dm.weapons)
T.dm.weapons["super"] = nil
return T
end
| gpl-2.0 |
AlexandreCA/update | scripts/zones/Dynamis-Valkurm/mobs/Goblin_Replica.lua | 4 | 1117 | -----------------------------------
-- Area: Dynamis Valkurm
-- NPC: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setMobMod(MOBMOD_SUPERLINK, mob:getShortID());
end;
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEngaged(mob,target)
dynamis.spawnGroup(mob, ValkurmGoblinList);
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
local mobID = mob:getID();
if (mobID ==16937283) then --hp
killer:messageBasic(024,(killer:getMaxHP()-killer:getHP()));
killer:restoreHP(3000);
elseif (mobID ==16937284) then --mp
killer:messageBasic(025,(killer:getMaxMP()-killer:getMP()));
killer:restoreMP(3000);
end
end;
| gpl-3.0 |
virgo-agent-toolkit/rackspace-monitoring-agent | remote/index.lua | 1 | 1269 | local uv = require('uv')
local modules = {
tcp = require('./tcp'),
http = require('./http'),
ping = require('./ping'),
}
return function (attributes, config, callback)
local fn = assert(modules[attributes.module], "Missing module")
local done
local handles = {}
local result = { id = attributes.id }
-- Register a uv_handle to be cleaned up when done.
local function register(handle)
if done then
return handle:close()
end
handles[#handles + 1] = handle
end
-- Set part of the result data.
local function set(key, value)
result[key] = value
end
-- Called when done with optional error reason
local function finish(err)
if done then return end
done = true
for i = 1, #handles do
if not handles[i]:is_closing() then handles[i]:close() end
end
result.error = err
return callback(err, result)
end
local timer = uv.new_timer()
register(timer)
timer:start(attributes.timeout, 0, function ()
return finish("ETIMEOUT: Check did not finish within " .. attributes.timeout .. "ms")
end)
coroutine.wrap(function ()
local success, err = pcall(fn, attributes, config, register, set)
if not success then
return finish(err)
end
return finish()
end)()
end
| apache-2.0 |
AlexandreCA/update | scripts/commands/checkvar.lua | 38 | 1130 | ---------------------------------------------------------------------------------------------------
-- func: @checkvar <varType> <varName>
-- desc: checks player or server variable and returns result value.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "ss"
};
function onTrigger(player, varType, varName)
if (varType == nil or varName == nil) then
player:PrintToPlayer("Incorrect command syntax or missing paramters.");
player:PrintToPlayer("@checkvar <player name or server> <variable name>");
return;
end
if (varType == "server") then
player:PrintToPlayer(string.format("Server Variable '%s' : %u ", varName, GetServerVariable(varName)));
else
local targ = GetPlayerByName(varType);
if (targ ~= nil) then
player:PrintToPlayer(string.format("Player '%s' variable '%s' : %u ", varType, varName, targ:getVar(varName)));
else
player:PrintToPlayer(string.format( "Player named '%s' not found!", varType));
end
end
end | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/effects/healing.lua | 10 | 1837 | -----------------------------------
--
-- EFFECT_HEALING
--
-- Activated through the /heal command
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:setAnimation(33);
end;
-----------------------------------
-- onEffectTick Action
-----------------------------------
function onEffectTick(target,effect)
local healtime = effect:getTickCount();
if (healtime > 1) then
-- curse II also known as "zombie"
if (not(target:hasStatusEffect(EFFECT_DISEASE)) and target:hasStatusEffect(EFFECT_PLAGUE) == false and target:hasStatusEffect(EFFECT_CURSE_II) == false) then
local healHP = 0;
if (target:getContinentID() == 1 and target:hasStatusEffect(EFFECT_SIGNET)) then
healHP = 10+(3*math.floor(target:getMainLvl()/10))+(healtime-2)*(1+math.floor(target:getMaxHP()/300))+(target:getMod(MOD_HPHEAL));
else
target:addTP(-100);
healHP = 10+(healtime-2)+(target:getMod(MOD_HPHEAL));
end
target:addHP(healHP);
target:updateEnmityFromCure(target, healHP);
-- Each rank of Clear Mind provides +3 hMP (via MOD_MPHEAL)
-- Each tic of healing should be +1mp more than the last
-- Clear Mind III increases this to +2, and Clear Mind V to +3 (via MOD_CLEAR_MIND)
target:addMP(12+((healtime-2) * (1+target:getMod(MOD_CLEAR_MIND)))+(target:getMod(MOD_MPHEAL)));
end
end
end;
-----------------------------------
-- onEffectLose Action
-----------------------------------
function onEffectLose(target,effect)
target:setAnimation(0);
target:delStatusEffect(EFFECT_LEAVEGAME);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Behemoths_Dominion/mobs/King_Behemoth.lua | 23 | 1825 | -----------------------------------
-- Area: Behemoth's Dominion
-- HNM: King Behemoth
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_MAGIC_COOL, 60);
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, killer)
killer:addTitle(BEHEMOTH_DETHRONER);
if (math.random((1),(100)) <= 5) then -- Hardcoded "this or this item" drop rate until implemented.
SetDropRate(1936,13566,1000); -- Defending Ring
SetDropRate(1936,13415,0);
else
SetDropRate(1936,13566,0);
SetDropRate(1936,13415,1000); -- Pixie Earring
end
-- Set King_Behemoth's Window Open Time
if (LandKingSystem_HQ == 0 or LandKingSystem_HQ == 2) then
local wait = 72 * 3600
SetServerVariable("[POP]King_Behemoth", os.time(t) + wait); -- 3 days
DeterMob(mob:getID(), true);
end
-- Set Behemoth's spawnpoint and respawn time (21-24 hours)
if (LandKingSystem_NQ == 0 or LandKingSystem_NQ == 2) then
SetServerVariable("[PH]King_Behemoth", 0);
local Behemoth = 17297440;
DeterMob(Behemoth, false);
UpdateNMSpawnPoint(Behemoth);
GetMobByID(Behemoth):setRespawnTime(math.random((75600),(86400)));
end
end;
function onSpellPrecast(mob, spell)
if (spell:getID() == 218) then
spell:setAoE(SPELLAOE_RADIAL);
spell:setFlag(SPELLFLAG_HIT_ALL);
spell:setRadius(30);
spell:setAnimation(280);
spell:setMPCost(1);
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Kazham/npcs/Mitti_Haplihza.lua | 15 | 1054 | -----------------------------------
-- Area: Kazham
-- NPC: Mitti Haplihza
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getVar("BathedInScent") == 1) then
player:startEvent(0x00B8); -- scent from Blue Rafflesias
else
player:startEvent(0x005E);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Mhaura/npcs/Rycharde.lua | 17 | 16001 | -----------------------------------
-- Area: Mhaura
-- NPC: Rycharde
-- Standard Info NPC
-- Starts & Finishes non Repeatable Quest: Rycharde the Chef,
-- WAY_OF_THE_COOK, UNENDING_CHASE
-- his name is Valgeir (not completed correctly, ferry not implemented)
-- the clue (100%)
-- the basics (not completed correctly, ferry not implemented)
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Mhaura/TextIDs");
-- player:startEvent(0x4a); -- first quest completed ok
-- player:startEvent(0x4b); -- nothing to do
-- player:startEvent(0x4c); -- second quest start --WAY_OF_THE_COOK
-- player:startEvent(0x4e); -- you have x hours left
-- player:startEvent(0x4f); -- not yet done
-- player:startEvent(0x50); -- second quest completed
-- player:startEvent(0x51); -- too late second quest
-- player:startEvent(0x52);-- third quest
-- player:startEvent(0x53);-- third quest completed
-- player:startEvent(0x54);-- third quest said no, ask again
-- player:startEvent(0x55);-- third quest comment no hurry
-- player:startEvent(0x56);-- forth quest His Name is Valgeir
-- player:startEvent(0x57);-- forth quest not done yet
-- player:startEvent(0x58);-- forth quest done!
-- player:startEvent(0x59);-- nothing to do
-- player:startEvent(0x5a);-- fifth quest The Clue
-- player:startEvent(0x5b);-- fifth quest The Clue asked again
-- player:startEvent(0x5c);-- fifth quest completed
-- player:startEvent(0x5d);-- fifth quest not enogh
-- player:startEvent(0x5e);-- sixth quest The Basics
-- player:startEvent(0x5f);-- sixth quest not done yet
-- player:startEvent(0x60);-- sixth quest completed
-- player:startEvent(0x61);-- sixth quest completed commentary
-- player:startEvent(0x62);-- sixth quest completed commentary 2
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (player:getQuestStatus(OTHER_AREAS,RYCHARDE_THE_CHEF)== QUEST_ACCEPTED) then
local count = trade:getItemCount();
local DhalmelMeat = trade:hasItemQty(4359,trade:getItemCount()); --4359 - slice_of_dhalmel_meat
if (DhalmelMeat == true and count == 2) then
player:startEvent(0x4a); -- completed ok
elseif (DhalmelMeat == true and count == 1) then
player:startEvent(0x49); -- that's not enogh!
end
elseif (player:getQuestStatus(OTHER_AREAS,WAY_OF_THE_COOK) == QUEST_ACCEPTED) then
local count = trade:getItemCount();
local DhalmelMeat = trade:hasItemQty(4359,1); --4359 - slice_of_dhalmel_meat
local BeehiveChip = trade:hasItemQty(912,1); --4359 - slice_of_dhalmel_meat
if (DhalmelMeat == true and BeehiveChip == true and count == 2) then
local Dayspassed=VanadielDayOfTheYear()-player:getVar("QuestRychardeTCDayStarted_var");
local TotalHourLeft=72-(VanadielHour()+Dayspassed*24)+player:getVar("QuestWayotcHourStarted_var");
if (TotalHourLeft>0) then
player:startEvent(0x50); -- second quest completed
else
player:startEvent(0x51); -- too late second quest
end
end
elseif (player:getQuestStatus(OTHER_AREAS,UNENDING_CHASE) == QUEST_ACCEPTED) then
local puffball = trade:hasItemQty(4448,1); --4448 - puffball
if (puffball == true) then
player:startEvent(0x53); -- completed quest 3 UNENDING_CHASE
end
elseif (player:getQuestStatus(OTHER_AREAS,THE_CLUE) == QUEST_ACCEPTED) then
local count = trade:getItemCount();
local DhalmelMeat = trade:hasItemQty(4357,trade:getItemCount()); --4357 - crawler egg
if (DhalmelMeat == true and count > 3) then
player:startEvent(0x5c);
elseif (DhalmelMeat == true) then
player:startEvent(0x5d); -- that's not enogh!
end
elseif (player:getQuestStatus(OTHER_AREAS,THE_BASICS) == QUEST_ACCEPTED) then
local BackedPototo = trade:hasItemQty(4436,1); --4436 - baked_popoto
if (BackedPototo == true) then
player:startEvent(0x60);
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
------------------------------------ QUEST RYCHARDE_THE_CHEF-----------------------------------------
if (player:getQuestStatus(OTHER_AREAS,RYCHARDE_THE_CHEF)==QUEST_AVAILABLE) then
QuestStatus = player:getVar("QuestRychardetheChef_var");
if (QuestStatus == 2 ) then -- seconnd stage one quest
player:startEvent(0x46,4359); -- ask if player would do quest
elseif (QuestStatus == 3 ) then
player:startEvent(0x47,4359); -- said no, ask again if player would do quest
else
player:startEvent(0x45); -- talk about something else
end
elseif (player:getQuestStatus(OTHER_AREAS,RYCHARDE_THE_CHEF)==QUEST_ACCEPTED) then
player:startEvent(0x48); -- not done yet huh?
--------------------------------------------- quest WAY_OF_THE_COOK
elseif (player:getQuestStatus(OTHER_AREAS,WAY_OF_THE_COOK)==QUEST_AVAILABLE and player:getFameLevel(WINDURST)>2) then -- quest WAY_OF_THE_COOK
if (player:getVar("QuestRychardeTCCompDay_var")+ 7 < VanadielDayOfTheYear() or player:getVar("QuestRychardeTCCompYear_var") < VanadielYear()) then --8 days or so after the completition of the last quest ... and required fame
player:startEvent(0x4c,4359,912);-- second quest WAY_OF_THE_COOK
else
player:startEvent(0x4b); -- nothing to do
end
elseif (player:getQuestStatus(OTHER_AREAS,WAY_OF_THE_COOK)==QUEST_ACCEPTED) then
Dayspassed=VanadielDayOfTheYear()-player:getVar("QuestRychardeTCDayStarted_var");
TotalHourLeft=72-(VanadielHour()+Dayspassed*24)+player:getVar("QuestWayotcHourStarted_var");
if (TotalHourLeft>0) then
player:startEvent(0x4e,TotalHourLeft); -- you have x hours left
else
player:startEvent(0x4f); -- not yet done
end
---------------------------QUEST UNENDING_CHASE--------------------------------------------------
elseif (player:getQuestStatus(OTHER_AREAS,UNENDING_CHASE)==QUEST_AVAILABLE and player:getFameLevel(WINDURST) > 2) then
if (player:getVar("QuestWayofTCCompDay_var")+7 < VanadielDayOfTheYear() or player:getVar("QuestWayofTCCompYear_var") < VanadielYear()) then -- days between quest
if (player:getVar("QuestUnendingCAskedAlready_var")==2) then
player:startEvent(0x54,4448);-- third quest said no, ask again
else
player:startEvent(0x52,4448);-- third quest UNENDING_CHASE 4448 - puffball
end
else
player:startEvent(0x4b); -- nothing to do
end
elseif (player:getQuestStatus(OTHER_AREAS,UNENDING_CHASE)==QUEST_ACCEPTED) then
player:startEvent(0x55);-- third quest comment no hurry
-------------------------QUEST HIS_NAME_IS_VALGEIR--------------------------------------------------
elseif (player:getQuestStatus(OTHER_AREAS,HIS_NAME_IS_VALGEIR)==QUEST_AVAILABLE and player:getFameLevel(WINDURST)>2) then
if (player:getVar("QuestUnendingCCompDay_var")+2< VanadielDayOfTheYear() or player:getVar("QuestUnendingCCompYear_var")< VanadielYear()) then
player:startEvent(0x56);-- forth quest His Name is Valgeir
else
player:startEvent(0x4b); -- nothing to do
end
elseif (player:getQuestStatus(OTHER_AREAS,HIS_NAME_IS_VALGEIR)==QUEST_ACCEPTED) then
if (player:hasKeyItem(90)) then
player:startEvent(0x57);-- forth quest not done yet
else
player:startEvent(0x58);-- forth quest done!
end
---------------------------QUEST THE CLUE--------------------------------------------------------
elseif (player:getQuestStatus(OTHER_AREAS,THE_CLUE)==QUEST_AVAILABLE and player:getFameLevel(WINDURST)>4) then
if (player:getQuestStatus(OTHER_AREAS,EXPERTISE)==QUEST_COMPLETED) then
if (player:getVar("QuestExpertiseCompDay_var")+7 < VanadielDayOfTheYear() or player:getVar("QuestExpertiseCompYear_var") < VanadielYear()) then
if (player:getVar("QuestTheClueStatus_var")==1) then
player:startEvent(0x5b,4357);-- fifth quest The Clue asked again 4357 - crawler_egg
else
player:startEvent(0x5a,4357);-- fifth quest The Clue 4357 - crawler_egg
end;
else
player:startEvent(0x4b); -- nothing to do
end
else
player:startEvent(0x4b); -- nothing to do
end
elseif (player:getQuestStatus(OTHER_AREAS,THE_CLUE)==QUEST_ACCEPTED) then
player:startEvent(0x55);-- third quest comment no hurry
---------------------------QUEST THE Basics--------------------------------------------------------
elseif (player:getQuestStatus(OTHER_AREAS,THE_BASICS)==QUEST_AVAILABLE and player:getFameLevel(WINDURST) > 4) then
if (player:getVar("QuestTheClueCompDay_var")+7 < VanadielDayOfTheYear() or player:getVar("QuestTheClueCompYear_var") < VanadielYear()) then
player:startEvent(0x5e);-- sixth quest The Basics
else
player:startEvent(0x4b); -- nothing to do standar dialog
end
elseif (player:getQuestStatus(OTHER_AREAS,THE_BASICS)==QUEST_ACCEPTED) then
player:startEvent(0x5f);-- sixth quest not done yet
else
if (player:getVar("QuestTheBasicsComentary_var")==1) then
player:startEvent(0x61);-- sixth quest completed commentary
else
player:startEvent(0x62);-- sixth quest completed commentary 2
end
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x46 or csid == 0x47) then --accept quest 1
player:setVar("QuestRychardetheChef_var",3); --
if (option == 71 or option == 72) then --70 = answer no 71 answer yes!
player:addQuest(OTHER_AREAS,RYCHARDE_THE_CHEF);
end
elseif (csid == 0x4a) then -- end quest 1 RYCHARDE_THE_CHEF
player:tradeComplete();
player:addFame(WINDURST,WIN_FAME*120);
player:addTitle(PURVEYOR_IN_TRAINING);
player:addGil(GIL_RATE*1500);
player:messageSpecial(GIL_OBTAINED,GIL_RATE*1500);
player:setVar("QuestRychardetheChef_var",0);
player:setVar("QuestRychardeTCCompDay_var",VanadielDayOfTheYear());
player:setVar("QuestRychardeTCCompYear_var",VanadielYear());
player:completeQuest(OTHER_AREAS,RYCHARDE_THE_CHEF);
elseif (csid == 0x4c) then -- accept quest 2
if (option == 74 ) then -- answer yes!
player:setVar("QuestWayotcHourStarted_var",VanadielHour());
player:setVar("QuestRychardeTCDayStarted_var",VanadielDayOfTheYear());
player:addQuest(OTHER_AREAS,WAY_OF_THE_COOK);
end
elseif (csid == 0x50) then --end quest 2 WAY_OF_THE_COOK
player:tradeComplete();
player:addFame(WINDURST,WIN_FAME*120);
player:addTitle(ONESTAR_PURVEYOR);
player:addGil(GIL_RATE*1500);
player:messageSpecial(GIL_OBTAINED,GIL_RATE*1500);
player:setVar("QuestWayotcHourStarted_var",0);
player:setVar("QuestRychardeTCDayStarted_var",0);
player:setVar("QuestRychardeTCCompDay_var",0);
player:setVar("QuestRychardeTCCompYear_var",0);
player:setVar("QuestWayofTCCompDay_var",VanadielDayOfTheYear()); -- completition day of WAY_OF_THE_COOK
player:setVar("QuestWayofTCCompYear_var",VanadielYear());
player:completeQuest(OTHER_AREAS,WAY_OF_THE_COOK);
elseif (csid == 0x51) then --end quest 2 WAY_OF_THE_COOK
player:tradeComplete();
player:addFame(WINDURST,WIN_FAME*120);
player:addTitle(PURVEYOR_IN_TRAINING);
player:addGil(GIL_RATE*1000);
player:messageSpecial(GIL_OBTAINED,GIL_RATE*1000);
player:setVar("QuestWayotcHourStarted_var",0);
player:setVar("QuestRychardeTCDayStarted_var",0);
player:setVar("QuestRychardeTCCompDay_var",0);
player:setVar("QuestRychardeTCCompYear_var",0);
player:setVar("QuestWayofTCCompDay_var",VanadielDayOfTheYear()); -- completition day of WAY_OF_THE_COOK
player:setVar("QuestWayofTCCompYear_var",VanadielYear());
player:completeQuest(OTHER_AREAS,WAY_OF_THE_COOK);
elseif (csid == 0x52) then -- accept quest 3 UNENDING_CHASE
player:setVar("QuestUnendingCAskedAlready_var",2);
if (option == 77 ) then -- answer yes!
player:addQuest(OTHER_AREAS,UNENDING_CHASE);
end
elseif (csid == 0x54) then -- accept quest 3 UNENDING_CHASE
if (option == 78 ) then -- answer yes!
player:addQuest(OTHER_AREAS,UNENDING_CHASE);
end
elseif (csid == 0x53) then -- end quest 3 UNENDING_CHASE
player:tradeComplete();
player:addFame(WINDURST,WIN_FAME*120);
player:addTitle(TWOSTAR_PURVEYOR);
player:addGil(GIL_RATE*2100);
player:messageSpecial(GIL_OBTAINED,GIL_RATE*2100);
player:setVar("QuestUnendingCAskedAlready_var",0);
player:setVar("QuestWayofTCCompDay_var",0); -- completition day of WAY_OF_THE_COOK delete variable
player:setVar("QuestWayofTCCompYear_var",0);
player:setVar("QuestUnendingCCompDay_var",VanadielDayOfTheYear()); -- completition day of unending chase
player:setVar("QuestUnendingCCompYear_var",VanadielYear());
player:completeQuest(OTHER_AREAS,UNENDING_CHASE);
elseif (csid == 0x56) then -- accept quest 4 HIS_NAME_IS_VALGEIR
if (option == 80 ) then -- answer yes!
player:addKeyItem(ARAGONEU_PIZZA); --give pizza to player
player:messageSpecial(KEYITEM_OBTAINED,ARAGONEU_PIZZA);
player:addQuest(OTHER_AREAS,HIS_NAME_IS_VALGEIR);
end
elseif (csid == 0x58) then -- end quest 4 his name is Valgeir
player:addFame(WINDURST,WIN_FAME*120);
player:addKeyItem(MAP_OF_THE_TORAIMARAI_CANAL); --reward Map of the Toraimarai Canal
player:messageSpecial(KEYITEM_OBTAINED,MAP_OF_THE_TORAIMARAI_CANAL);
player:setVar("QuestUnendingCCompDay_var",0); -- completition day of unending chase delete
player:setVar("QuestUnendingCCompYear_var",0);
player:setVar("QuestHNIVCCompDay_var",VanadielDayOfTheYear()); -- completition day of unending chase
player:setVar("QuestHNIVCCompYear_var",VanadielYear());
player:completeQuest(OTHER_AREAS,HIS_NAME_IS_VALGEIR);
elseif (csid == 0x5a or csid == 0x5b) then --accept quest the clue
player:setVar("QuestTheClueStatus_var",1);
if (option == 83 ) then
player:addQuest(OTHER_AREAS,THE_CLUE);
end
elseif (csid == 0x5c) then -- end quest THE CLUE
player:tradeComplete();
player:addFame(WINDURST,WIN_FAME*120);
player:addTitle(FOURSTAR_PURVEYOR);
player:addGil(GIL_RATE*3000);
player:messageSpecial(GIL_OBTAINED,GIL_RATE*3000);
player:setVar("QuestTheClueStatus_var",0);
player:setVar("QuestExpertiseCompDay_var",0); -- completition day of expertice quest
player:setVar("QuestExpertiseCompYear_var",0);
player:setVar("QuestTheClueCompDay_var",VanadielDayOfTheYear()); -- completition day of THE CLUE
player:setVar("QuestTheClueCompYear_var",VanadielYear());
player:completeQuest(OTHER_AREAS,THE_CLUE);
elseif (csid == 0x5e) then --accept quest the basics
if (option == 85 ) then
--TODO pay for ferry
player:addKeyItem(MHAURAN_COUSCOUS); --MHAURAN_COUSCOUS = 92;
player:messageSpecial(KEYITEM_OBTAINED,MHAURAN_COUSCOUS);
player:addQuest(OTHER_AREAS,THE_BASICS);
end
elseif (csid == 0x60) then -- end quest the basics
player:tradeComplete();
player:addFame(WINDURST,WIN_FAME*120);
player:addTitle(FIVESTAR_PURVEYOR);
if (player:getFreeSlotsCount() <= 1) then
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,133);
else
player:addItem(133);
player.messageSpecial(ITEM_OBTAINED,133);
player:setVar("QuestTheClueCompDay_var",0); -- completition day of THE CLUE
player:setVar("QuestTheClueCompYear_var",0);
player:setVar("QuestTheBasicsComentary_var",1);
player:completeQuest(OTHER_AREAS,THE_BASICS);
end
elseif (csid == 0x61) then --end commentary quest the basics
player:setVar("QuestTheBasicsComentary_var",0);
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Giddeus/npcs/Quu_Bokye.lua | 13 | 2020 | -----------------------------------
-- Area: Giddeus
-- NPC: Quu Bokye
-- Involved in Quest: Dark Legacy
-- @pos -159 16 181 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Giddeus/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (player:getVar("darkLegacyCS") == 3 and trade:hasItemQty(4445,1) and trade:getItemCount() == 1) then -- Trade Yagudo Cherries
player:startEvent(0x003e);
elseif (player:getVar("EARLY_BIRD_TRACK_BOOK") == 1 and trade:hasItemQty(750,1) and trade:getItemCount() == 1) then
player:startEvent(0x003a);
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getVar("darkLegacyCS") == 3) then
player:startEvent(0x003d);
elseif (player:getVar("EARLY_BIRD_TRACK_BOOK") == 1) then
player:startEvent(0x0039);
elseif (player:getVar("EARLY_BIRD_TRACK_BOOK") == 2) then
player:startEvent(0x003b);
else
player:startEvent(0x0038);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x003e) then
player:tradeComplete();
player:setVar("darkLegacyCS",4);
elseif (csid == 0x003a) then
player:tradeComplete();
player:setVar("EARLY_BIRD_TRACK_BOOK",2);
player:addKeyItem(ART_FOR_EVERYONE);
player:messageSpecial(KEYITEM_OBTAINED,ART_FOR_EVERYONE);
end
end; | gpl-3.0 |
lucgagnon/ntopng | scripts/lua/user_stats.lua | 8 | 2859 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
mode = _GET["mode"]
host = _GET["host"]
user = _GET["user"]
interface.select(ifname)
flows = interface.getFlowsInfo()
-- flows = interface.findUserFlows(user)
local debug = false
if (debug) then io.write("Host:"..host.."\n") end
if(flows == nil) then
print('[ { "label": "Other", "value": 1 } ]') -- No flows found
else
if(mode == nil) then mode = "apps" end
apps = {}
tot = 0
for k,f in pairs(flows) do
process = 1
-- Filer users
if (debug) then io.write("Client:"..f["cli.ip"]..", Server:"..f["srv.ip"].."\n") end
if((host ~= nil) and ((f["cli.ip"] ~= host) and (f["srv.ip"] ~= host))) then
process = 0
end
-- Prepare aggregation parameter
if(mode == "apps") then
if ((f["cli.ip"] == host) and (f["client_process"] ~= nil) and (f["client_process"]["user_name"] == user)) then
key = f["client_process"]["name"]
if (debug) then io.write("User:"..f["client_process"]["user_name"]..", Process:"..f["client_process"]["name"].."\n") end
elseif ((f["srv.ip"] == host) and (f["server_process"] ~= nil) and (f["server_process"]["user_name"] == user)) then
key = f["server_process"]["name"]
if (debug) then io.write("User:"..f["server_process"]["user_name"]..", Process:"..f["server_process"]["name"].."\n") end
end
elseif(mode == "l7") then
key = f["proto.ndpi"]
elseif(mode == "l4") then
key = f["proto.l4"]
end
-- Do aggregation
if((key ~= nil) and (process == 1))then
if(apps[key] == nil) then apps[key] = 0 end
v = f["cli2srv.bytes"] + f["srv2cli.bytes"]
apps[key] = apps[key] + v
tot = tot + v
end
end
-- Print up to this number of entries
max_num_entries = 10
-- Print entries whose value >= 5% of the total
threshold = (tot * 5) / 100
print "[\n"
num = 0
accumulate = 0
for key, value in pairs(apps) do
if ((value < threshold) and (num ~= 0)) then
break
end
if(num > 0) then
print ",\n"
end
print("\t { \"label\": \"" .. key .."\", \"value\": ".. value .." }")
accumulate = accumulate + value
num = num + 1
if(num == max_num_entries) then
break
end
end
if((num == 0) and (top_key ~= nil)) then
print("\t { \"label\": \"" .. top_key .."\", \"value\": ".. top_value ..", \"url\": \""..ntop.getHttpPrefix().."/lua/host_details.lua?host=".. top_key .."\" }")
accumulate = accumulate + top_value
end
-- In case there is some leftover do print it as "Other"
if(accumulate < tot) then
if(num > 0) then print(",") end
print("\n\t { \"label\": \"Other\", \"value\": ".. (tot-accumulate) .." }")
end
print "\n]"
end
| gpl-3.0 |
AlexandreCA/update | scripts/globals/mobskills/Hex_Palm.lua | 3 | 1072 | ---------------------------------------------------
-- Hex Palm
-- Family: Qutrub
-- Description: Steals HP from targets in front.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Front cone
-- Notes: Used only when wielding no weapon.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(target,mob,skill)
if (mob:AnimationSub() == 1 or mob:AnimationSub() == 3) then
return 0;
else
return 1;
end
end;
function onMobWeaponSkill(target, mob, skill)
local dmgmod = 1.1;
local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg()*2,ELE_DARK,dmgmod,TP_MAB_BONUS,1);
local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_DARK,MOBPARAM_WIPE_SHADOWS);
skill:setMsg(MobPhysicalDrainMove(mob, target, skill, MOBDRAIN_HP, dmg));
return dmg;
end; | gpl-3.0 |
AlexandreCA/update | scripts/zones/Metalworks/npcs/Grohm.lua | 19 | 2699 | -----------------------------------
-- Area: Metalworks
-- NPC: Grohm
-- Involved In Mission: Journey Abroad
-- @pos -18 -11 -27 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Metalworks/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (player:getCurrentMission(SANDORIA) == JOURNEY_TO_BASTOK) then
if (player:getVar("notReceivePickaxe") == 1) then
player:startEvent(0x01a9);
elseif (player:getVar("MissionStatus") == 4) then
player:startEvent(0x01a7);
elseif (player:getVar("MissionStatus") == 5 and player:hasItem(599) == false) then
player:startEvent(0x01a8);
else
player:startEvent(0x01a6);
end
elseif (player:getCurrentMission(SANDORIA) == JOURNEY_TO_BASTOK2) then
if (player:getVar("MissionStatus") == 9) then
player:startEvent(0x01aa);
else
player:startEvent(0x01ab);
end
elseif (player:getCurrentMission(WINDURST) == THE_THREE_KINGDOMS_BASTOK) then
if (player:getVar("notReceivePickaxe") == 1) then
player:startEvent(0x01a9,1);
elseif (player:getVar("MissionStatus") == 4) then
player:startEvent(0x01a7,1);
elseif (player:getVar("MissionStatus") == 5 and player:hasItem(599) == false) then
player:startEvent(0x01a8,1);
else
player:startEvent(0x01a6);
end
elseif (player:getCurrentMission(WINDURST) == THE_THREE_KINGDOMS_BASTOK2) then
if (player:getVar("MissionStatus") == 9) then
player:startEvent(0x01aa,1);
else
player:startEvent(0x01ab,1);
end
else
player:startEvent(0x01ab);--0x01a6
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
if (csid == 0x01a7 or csid == 0x01a9) then
if (player:getFreeSlotsCount() == 0) then
player:messageSpecial(ITEM_CANNOT_BE_OBTAINED,605); -- Pickaxes
player:setVar("notReceivePickaxe",1);
else
player:addItem(605,5);
player:messageSpecial(ITEM_OBTAINED,605); -- Pickaxes
player:setVar("MissionStatus",5);
player:setVar("notReceivePickaxe",0);
end
elseif (csid == 0x01aa) then
player:setVar("MissionStatus",10);
end
end; | gpl-3.0 |
AlexandreCA/update | scripts/zones/Temple_of_Uggalepih/TextIDs.lua | 3 | 2339 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtained key item: <keyitem>
FISHING_MESSAGE_OFFSET = 7202; -- You can't fish here
BITS_OF_VEGETABLE = 7488; -- Bits of vegetable matter are strewn around. They appear to have been gnawed on by insects...
-- Treasure Coffer/Chest Dialog
CHEST_UNLOCKED = 7304; -- You unlock the chest!
CHEST_FAIL = 7305; -- Fails to open the chest.
CHEST_TRAP = 7306; -- The chest was trapped!
CHEST_WEAK = 7307; -- You cannot open the chest when you are in a weakened state.
CHEST_MIMIC = 7308; -- The chest was a mimic!
CHEST_MOOGLE = 7309; -- You cannot open the chest while participating in the moogle event.
CHEST_ILLUSION = 7310; -- The chest was but an illusion...
CHEST_LOCKED = 7311; -- The chest appears to be locked.
-- Dialog Texts
NO_REASON_TO_INVESTIGATE = 7312; -- There is no reason to investigate further.
THE_BOX_IS_LOCKED = 7313; -- The box is locked.
PAINTBRUSH_OFFSET = 7316; -- projects the deepest, darkest corner of your soul onto the blank canvas...only then will the doors to rancor open
FALLS_FROM_THE_BOOK = 7326; -- falls from the book!
THE_DOOR_IS_LOCKED = 7340; -- The door is locked. You might be able to open it with
PROTECTED_BY_UNKNOWN_FORCE = 7341; -- The door is protected by some unknown force.
YOUR_KEY_BREAKS = 7343; -- breaks!
DOOR_LOCKED = 7361; -- The door is locked.
SOME_SORT_OF_CEREMONY = 7433; -- Some sort of ceremony was performed here...
NM_OFFSET = 7483; -- It looks like some sort of device. A thin thread leads down to the floor...
IT_IS_A_BEEHIVE = 7487; -- It is a beehive...
NOTHING_HAPPENS = 119; -- Nothing happens...
NOTHING_OUT_OF_ORDINARY = 6398; -- There is nothing out of the ordinary here.
-- Other
HATE_RESET = 7414; -- The built-up hate has been cleansed...!
DOOR_SHUT = 7416; -- The door is firmly shut.
NO_HATE = 7417; -- You have no built-up hate to cleanse.
-- conquest Base
CONQUEST_BASE = 7043; -- Tallying conquest results...
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Al_Zahbi/npcs/Bjibar.lua | 13 | 1039 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Bjibar
-- Type: Standard NPC
-- @zone: 48
-- @pos -105.178 0.999 60.115
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x0107);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fubruhn.lua | 13 | 5845 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fubruhn
-- Mog Locker NPC
--
-- Event IDs:
-- 0x0258 = Not a mercenary + mog locker options
-- 1st arg = Amount of time left on lease, as seconds past 2001/12/31 15:00:00.
-- If this is 0, it shows the not a mecenary message instead.
-- If this is -1, it shows the lease as expired.
-- 2nd arg = Valid areas, 0=alzahbi only, 1=all areas
-- 3rd arg = The number of earth days a lease extension is valid for (7)
-- 4th arg = How big your locker is
-- 5th arg =
-- 6th arg =
-- 7th arg =
-- 8th arg = The number of days your lease is currently valid for
--
-- 0x0259 = Lease increased
-- 1st arg = number of seconds from 2001/12/31 15:00:00 it is valid till.
--
-- 0x025A = Expansion increased
-- 4th arg = new size of locker
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/globals/moghouse");
function getNumberOfCoinsToUpgradeSize(size)
if (size == 30) then
return 4;
elseif (size == 40) then
return 2;
elseif (size == 50) then
return 3;
elseif (size == 60) then
return 5;
elseif (size == 70) then
return 10;
elseif (size == 80) then
return 0;
end
end
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
local numBronze = trade:getItemQty(2184);
local numMythril = trade:getItemQty(2186);
local numGold = trade:getItemQty(2187);
if (player:getCurrentMission(TOAU) >= 2) then
if (numBronze > 0 and numMythril == 0 and numGold == 0) then
if (addMogLockerExpiryTime(player, numBronze)) then
-- remove bronze
player:tradeComplete();
-- send event
player:startEvent(0x0259, getMogLockerExpiryTimestamp(player));
-- print("Expanded lease with "..numBronze.." bronze.");
end
elseif (numGold > 0 or numMythril > 0) then
-- see if we can expand the size
local slotSize = player:getContainerSize(LOC_MOGLOCKER);
if (slotSize == 30 and numMythril == 4 and numGold == 0) then
player:changeContainerSize(LOC_MOGLOCKER, 10);
player:tradeComplete();
player:startEvent(0x025A,0,0,0,40);
elseif (slotSize == 40 and numMythril == 0 and numGold == 2) then
player:changeContainerSize(LOC_MOGLOCKER, 10);
player:tradeComplete();
player:startEvent(0x025A,0,0,0,50);
elseif (slotSize == 50 and numMythril == 0 and numGold == 3) then
player:changeContainerSize(LOC_MOGLOCKER, 10);
player:tradeComplete();
player:startEvent(0x025A,0,0,0,60);
elseif (slotSize == 60 and numMythril == 0 and numGold == 5) then
player:changeContainerSize(LOC_MOGLOCKER, 10);
player:tradeComplete();
player:startEvent(0x025A,0,0,0,70);
elseif (slotSize == 70 and numMythril == 0 and numGold == 10) then
player:changeContainerSize(LOC_MOGLOCKER, 10);
player:tradeComplete();
player:startEvent(0x025A,0,0,0,80);
end
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
-- TODO: Check if they are >= Mission 2
-- if < mission 2 then
-- player:startEvent(0x0258);
-- else
if (player:getCurrentMission(TOAU) >= 2) then
local accessType = getMogLockerAccessType(player);
local mogLockerExpiryTimestamp = getMogLockerExpiryTimestamp(player);
if (mogLockerExpiryTimestamp == nil) then
-- a nil timestamp means they haven't unlocked it yet. We're going to unlock it by merely talking to this NPC.
--print("Unlocking mog locker for "..player:getName());
mogLockerExpiryTimestamp = unlockMogLocker(player);
accessType = setMogLockerAccessType(player, MOGLOCKER_ACCESS_TYPE_ALLAREAS);
end
player:startEvent(0x0258,mogLockerExpiryTimestamp,accessType,
MOGLOCKER_ALZAHBI_VALID_DAYS,player:getContainerSize(LOC_MOGLOCKER),
getNumberOfCoinsToUpgradeSize(player:getContainerSize(LOC_MOGLOCKER)),2,3,
MOGLOCKER_ALLAREAS_VALID_DAYS);
else
player:startEvent(0x0258);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("fCSID: %u",csid);
--printf("fRESULT: %u",option);
if (csid == 600 and option == 3) then
local accessType = player:getVar(MOGLOCKER_PLAYERVAR_ACCESS_TYPE);
if (accessType == MOGLOCKER_ACCESS_TYPE_ALLAREAS) then
-- they want to restrict their access to alzahbi only
setMogLockerAccessType(player, MOGLOCKER_ACCESS_TYPE_ALZAHBI);
elseif (accessType == MOGLOCKER_ACCESS_TYPE_ALZAHBI) then
-- they want to expand their access to all areas.
setMogLockerAccessType(player, MOGLOCKER_ACCESS_TYPE_ALLAREAS);
else
print("Unknown mog locker access type: "..accessType);
end
end
end;
| gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/windstorm.lua | 31 | 1153 | --------------------------------------
-- Spell: Windstorm
-- Changes the weather around target party member to "windy."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,spell)
target:delStatusEffectSilent(EFFECT_FIRESTORM);
target:delStatusEffectSilent(EFFECT_SANDSTORM);
target:delStatusEffectSilent(EFFECT_RAINSTORM);
target:delStatusEffectSilent(EFFECT_WINDSTORM);
target:delStatusEffectSilent(EFFECT_HAILSTORM);
target:delStatusEffectSilent(EFFECT_THUNDERSTORM);
target:delStatusEffectSilent(EFFECT_AURORASTORM);
target:delStatusEffectSilent(EFFECT_VOIDSTORM);
local merit = caster:getMerit(MERIT_STORMSURGE);
local power = 0;
if merit > 0 then
power = merit + caster:getMod(MOD_STORMSURGE_EFFECT) + 2;
end
target:addStatusEffect(EFFECT_WINDSTORM,power,0,180);
return EFFECT_WINDSTORM;
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Batallia_Downs/npcs/Stone_Monument.lua | 13 | 1272 | -----------------------------------
-- Area: Batallia Downs
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 185.669 9.049 -614.025 105
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/TextIDs");
-----------------------------------
-- onTrigger
-----------------------------------
function onTrigger(player,npc)
player:startEvent(0x0384);
end;
-----------------------------------
-- onTrade
-----------------------------------
function onTrade(player,npc,trade)
if (trade:getItemCount() == 1 and trade:hasItemQty(571,1)) then
player:tradeComplete();
player:addItem(570);
player:messageSpecial(ITEM_OBTAINED,570);
player:setVar("anExplorer-CurrentTablet",0x10000);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
LuaDist2/gumbo | test/dom/Node-insertBefore.lua | 3 | 2464 | local gumbo = require "gumbo"
local assert, pcall = assert, pcall
local _ENV = nil
local input = [[
<header id=header></header>
<div id="main" class="foo bar baz etc">
<h1 id="h1">Title <!--comment --></h1>
</div>
<footer id=footer>...</footer>
]]
local document = assert(gumbo.parse(input))
local body = assert(document.body)
local main = assert(document:getElementById("main"))
local h1 = assert(document:getElementById("h1"))
local header = assert(document:getElementById("header"))
local footer = assert(document:getElementById("footer"))
assert(body.childElementCount == 3)
assert(body.children[1] == header)
assert(body.children[2] == main)
assert(body.children[3] == footer)
assert(body:insertBefore(main, header) == main)
assert(body.childElementCount == 3)
assert(body.children[1] == main)
assert(body.children[2] == header)
assert(body.children[3] == footer)
assert(body:insertBefore(header, header) == header)
assert(body.childElementCount == 3)
assert(body.children[1] == main)
assert(body.children[2] == header)
assert(body.children[3] == footer)
assert(body:insertBefore(h1, main) == h1)
assert(body.childElementCount == 4)
assert(body.firstElementChild == h1)
local p = assert(document:createElement("p"))
assert(p.parentNode == nil)
assert(body:insertBefore(p, h1) == p)
assert(p.parentNode == body)
assert(body.childElementCount == 5)
assert(body.firstElementChild == p)
assert(footer.childNodes.length == 1)
assert(main.parentNode == body)
assert(footer:insertBefore(main, footer.childNodes[1]) == main)
assert(main.parentNode == footer)
assert(body.childElementCount == 4)
assert(footer.childNodes.length == 2)
assert(footer.firstElementChild == main)
assert(body.children[3] == header)
assert(body.children[4] == footer)
local append = assert(document:createElement("a"))
assert(body:insertBefore(append) == append)
assert(body.childElementCount == 5)
assert(body.children[5] == append)
-- TODO: Add test coverage for every assertion in ensurePreInsertionValidity()
assert(not pcall(header.insertBefore, main, footer.childNodes[1]))
assert(not pcall(body.insertBefore, body, 9))
assert(not pcall(body.insertBefore, body, "string"))
assert(not pcall(body.insertBefore, body, true))
assert(not pcall(body.insertBefore, body, false))
assert(not pcall(body.insertBefore, body, nil))
assert(not pcall(body.insertBefore, body, body))
assert(not pcall(body.insertBefore, body, document))
assert(not pcall(main.insertBefore, main, body))
| isc |
paly2/minetest-minetestforfun-server | mods/plantlife_modpack/cavestuff/mapgen.lua | 9 | 1721 | --Map Generation Stuff
minetest.register_on_generated(function(minp, maxp, seed)
if maxp.y >= 2 and minp.y <= 0 then
-- Generate pebbles
local perlin1 = minetest.get_perlin(329, 3, 0.6, 100)
-- Assume X and Z lengths are equal
local divlen = 16
local divs = (maxp.x-minp.x)/divlen+1;
for divx=0,divs-1 do
for divz=0,divs-1 do
local x0 = minp.x + math.floor((divx+0)*divlen)
local z0 = minp.z + math.floor((divz+0)*divlen)
local x1 = minp.x + math.floor((divx+1)*divlen)
local z1 = minp.z + math.floor((divz+1)*divlen)
-- Determine pebble amount from perlin noise
local pebble_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 2 * 2)
-- Find random positions for pebbles based on this random
local pr = PseudoRandom(seed+1)
for i=0,pebble_amount do
local x = pr:next(x0, x1)
local z = pr:next(z0, z1)
-- Find ground level (0...15)
local ground_y = nil
for y=30,0,-1 do
if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then
ground_y = y
break
end
end
if ground_y then
local p = {x=x,y=ground_y+1,z=z}
local nn = minetest.get_node(p).name
-- Check if the node can be replaced
if minetest.registered_nodes[nn] and
minetest.registered_nodes[nn].buildable_to then
nn = minetest.get_node({x=x,y=ground_y,z=z}).name
-- If desert sand, add dry shrub
if nn == "default:dirt_with_grass" then
minetest.set_node(p,{name="cavestuff:pebble_"..pr:next(1,2), param2=math.random(0,3)})
elseif nn == "default:desert_sand" then
minetest.set_node(p,{name="cavestuff:desert_pebble_"..pr:next(1,2), param2=math.random(0,3)})
end
end
end
end
end
end
end
end)
| unlicense |
AlexandreCA/update | scripts/zones/Davoi/npcs/Treasure_Chest.lua | 19 | 2551 | -----------------------------------
-- Area: Davoi
-- NPC: Treasure Chest
-- @zone 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Davoi/TextIDs");
local TreasureType = "Chest";
local TreasureLvL = 43;
local TreasureMinLvL = 33;
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
-- trade:hasItemQty(1033,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(1033,1) or trade:hasItemQty(1115,1) or trade:hasItemQty(1023,1) or trade:hasItemQty(1022,1)) and trade:getItemCount() == 1) then
local zone = player:getZoneID();
local pack = openChance(player,npc,trade,TreasureType,TreasureLvL,TreasureMinLvL,questItemNeeded);
local success = 0;
if (pack[2] ~= nil) then
player:messageSpecial(pack[2]);
success = pack[1];
else
success = pack[1];
end
if (success ~= -2) then
player:tradeComplete();
if (math.random() <= success) then
-- Succeded to open the coffer
player:messageSpecial(CHEST_UNLOCKED);
player:setVar("["..zone.."]".."Treasure_"..TreasureType,os.time() + math.random(CHEST_MIN_ILLUSION_TIME,CHEST_MAX_ILLUSION_TIME));
local loot = chestLoot(zone,npc);
-- print("loot array: "); -- debug
-- print("[1]", loot[1]); -- debug
-- print("[2]", loot[2]); -- debug
if (loot[1]=="gil") then
player:addGil(loot[2]*GIL_RATE);
player:messageSpecial(GIL_OBTAINED,loot[2]*GIL_RATE);
else
-- Item
player:addItem(loot[2]);
player:messageSpecial(ITEM_OBTAINED,loot[2]);
end
UpdateTreasureSpawnPoint(npc:getID());
end
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:messageSpecial(CHEST_LOCKED,1033);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Giddeus/npcs/Treasure_Chest.lua | 13 | 3093 | -----------------------------------
-- Area: Giddeus
-- NPC: Treasure Chest
--
-- @pos -158.563 0.999 -226.058 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/treasure");
require("scripts/globals/quests");
require("scripts/zones/Giddeus/TextIDs");
local TreasureType = "Chest";
local TreasureLvL = 43;
local TreasureMinLvL = 33;
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--trade:hasItemQty(1026,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(1026,1) or trade:hasItemQty(1115,1) or trade:hasItemQty(1023,1) or trade:hasItemQty(1022,1)) and trade:getItemCount() == 1) then
local zone = player:getZoneID();
local pack = openChance(player,npc,trade,TreasureType,TreasureLvL,TreasureMinLvL,questItemNeeded);
local success = 0;
if (pack[2] ~= nil) then
player:messageSpecial(pack[2]);
success = pack[1];
else
success = pack[1];
end
if (success ~= -2) then
player:tradeComplete();
if (math.random() <= success) then
-- Succeded to open the coffer
player:messageSpecial(CHEST_UNLOCKED);
player:setVar("["..zone.."]".."Treasure_"..TreasureType,os.time() + math.random(CHEST_MIN_ILLUSION_TIME,CHEST_MAX_ILLUSION_TIME));
local loot = chestLoot(zone,npc);
-- print("loot array: "); -- debug
-- print("[1]", loot[1]); -- debug
-- print("[2]", loot[2]); -- debug
if (loot[1]=="gil") then
player:addGil(loot[2]*GIL_RATE);
player:messageSpecial(GIL_OBTAINED,loot[2]*GIL_RATE);
else
-- Item
player:addItem(loot[2]);
player:messageSpecial(ITEM_OBTAINED,loot[2]);
end
UpdateTreasureSpawnPoint(npc:getID());
end
end
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:messageSpecial(CHEST_LOCKED,1026);
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end; | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/loach_gruel.lua | 35 | 1674 | -----------------------------------------
-- ID: 5670
-- Item: loach_soup
-- Food Effect: 4Hour,Group Food, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Accuracy % 7
-- Accuracy Cap 30
-- HP % 7
-- HP Cap 30
-- Evasion 4
-- (Did Not Add Group Food Effect)
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCheck(target)
result = 0;
if (target:hasStatusEffect(EFFECT_FOOD) == true or target:hasStatusEffect(EFFECT_FIELD_SUPPORT_FOOD) == true) then
result = 246;
end
return result;
end;
-----------------------------------------
-- OnItemUse
-----------------------------------------
function onItemUse(target)
target:addStatusEffect(EFFECT_FOOD,0,0,14400,5670);
end;
-----------------------------------------
-- onEffectGain Action
-----------------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_DEX, 2);
target:addMod(MOD_AGI, 2);
target:addMod(MOD_FOOD_ACCP, 7);
target:addMod(MOD_FOOD_ACC_CAP, 30);
target:addMod(MOD_FOOD_HPP, 7);
target:addMod(MOD_FOOD_HP_CAP, 30);
target:addMod(MOD_EVA, 4);
end;
-----------------------------------------
-- onEffectLose Action
-----------------------------------------
function onEffectLose(target,effect)
target:delMod(MOD_DEX, 2);
target:delMod(MOD_AGI, 2);
target:delMod(MOD_FOOD_ACCP, 7);
target:delMod(MOD_FOOD_ACC_CAP, 30);
target:delMod(MOD_FOOD_HPP, 7);
target:delMod(MOD_FOOD_HP_CAP, 30);
target:delMod(MOD_EVA, 4);
end;
| gpl-3.0 |
AlexandreCA/update | scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua | 17 | 2216 | -----------------------------------
-- Area: Waughroon Shrine
-- NPC: Burning Circle
-- Waughroon Shrine Burning Circle
-- @pos -345 104 -260 144
-------------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/missions");
require("scripts/zones/Waughroon_Shrine/TextIDs");
---- 0: Rank 2 Final Mission for Bastok "The Emissary" and Sandy "Journey Abroad"
---- 1: Worms Turn
---- 2: Grimshell Shocktroopers
---- 3: On my Way
---- 4: Thief in Norg
---- 5: 3, 2, 1
---- 6: Shattering Stars (RDM)
---- 7: Shattering Stars (THF)
---- 8: Shattering Stars (BST)
---- 9: Birds of the feather
---- 10: Crustacean Conundrum
---- 11: Grove Gardians
---- 12: The Hills are alive
---- 13: Royal Jelly
---- 14: The Final Bout
---- 15: Up in arms
---- 16: Copy Cat
---- 17: Operation Desert Swarm
---- 18: Prehistoric Pigeons
---- 19: The Palborough Project
---- 20: Shell Shocked
---- 21: Beyond infinity
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:getZoneID(),trade,npc)) then
return;
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (EventTriggerBCNM(player,npc)) then
return;
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("onUpdate CSID: %u",csid);
--printf("onUpdate RESULT: %u",option);
if (EventUpdateBCNM(player,csid,option)) then
return;
end
end;
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player,csid,option)
--printf("onFinish CSID: %u",csid);
--printf("onFinish RESULT: %u",option);
if (EventFinishBCNM(player,csid,option)) then
return;
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Sacrificial_Chamber/npcs/_4j0.lua | 13 | 1471 | -----------------------------------
-- Area: Sacrificial Chamber
-- NPC: Mahogany Door
-- @pos 299 0.1 349 163
-------------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
require("scripts/zones/Sacrificial_Chamber/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:getZoneID(),trade,npc)) then
return;
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if (EventTriggerBCNM(player,npc)) then
return 1;
else
player:messageSpecial(DOOR_SHUT);
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("onUpdate CSID: %u",csid);
--printf("onUpdate RESULT: %u",option);
if (EventUpdateBCNM(player,csid,option)) then
return;
end
end;
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player,csid,option)
--printf("onFinish CSID: %u",csid);
--printf("onFinish RESULT: %u",option);
if (EventFinishBCNM(player,csid,option)) then
return;
end
end; | gpl-3.0 |
AlexandreCA/update | scripts/globals/abilities/chaos_roll.lua | 9 | 3293 | -----------------------------------
-- Ability: Chaos Roll
-- Enhances attack for party members within area of effect
-- Optimal Job: Dark Knight
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 14
--
-- Die Roll |No DRK |With DRK
-- -------- -------- -----------
-- 1 |6% |16%
-- 2 |8% |18%
-- 3 |9% |19%
-- 4 |25% |35%
-- 5 |11% |21%
-- 6 |13% |23%
-- 7 |16% |26%
-- 8 |3% |13%
-- 9 |17% |27%
-- 10 |19% |29%
-- 11 |31% |41%
-- Bust |-10% |-10%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbilityCheck
-----------------------------------
function onAbilityCheck(player,target,ability)
local effectID = getCorsairRollEffect(ability:getID());
ability:setRange(ability:getRange() + player:getMod(MOD_ROLL_RANGE));
if (player:hasStatusEffect(effectID) or player:hasBustEffect(effectID)) then
return MSGBASIC_ROLL_ALREADY_ACTIVE,0;
else
player:setLocalVar("DRK_roll_bonus", 0); -- reset the variable for job bonus - this is only called on the first roll and only once
return 0,0;
end
end;
-----------------------------------
-- onUseAbilityRoll
-----------------------------------
function onUseAbilityRoll(caster,target,ability,total)
local duration = 300 + caster:getMerit(MERIT_WINNING_STREAK)
local effectpowers = {6, 8, 9, 25, 11, 13, 16, 3, 17, 19, 31, 10}
local effectpower = effectpowers[total];
local jobBonus = caster:getLocalVar("DRK_roll_bonus");
if (total < 12) then
if (jobBonus == 0) then -- this happens on the first roll only, and only for the roller
if (caster:hasPartyJob(JOB_DRK) or math.random(0, 99) < caster:getMod(MOD_JOB_BONUS_CHANCE)) then
jobBonus = 1; -- enables job boost
-- print("first roll w/ bonus")
else
jobBonus = 2; -- setting this to 2 so it doesn't allow for another attempt to apply the job bonus with the modifier upon double-up.
-- print("first roll")
end
end
if (jobBonus == 1) then
effectpower = effectpower + 10;
-- print("activate job bonus");
end
if (target:getID() == caster:getID()) then -- only need to set the variable for the caster, and just once.
caster:setLocalVar("DRK_roll_bonus", jobBonus);
end
-- print(caster:getLocalVar("DRK_roll_bonus"));
end
if (caster:getMainJob() == JOB_COR and caster:getMainLvl() < target:getMainLvl()) then
effectpower = effectpower * (caster:getMainLvl() / target:getMainLvl());
elseif (caster:getSubJob() == JOB_COR and caster:getSubLvl() < target:getMainLvl()) then
effectpower = effectpower * (caster:getSubLvl() / target:getMainLvl());
end
if (target:addCorsairRoll(caster:getMainJob(), caster:getMerit(MERIT_BUST_DURATION), EFFECT_CHAOS_ROLL, effectpower, 0, duration, caster:getID(), total, MOD_ATTP) == false) then
ability:setMsg(423);
end
end; | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Markets/npcs/Khonzon.lua | 13 | 1054 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Khonzon
-- Type: Item Deliverer
-- @zone: 235
-- @pos -323.744 -16.001 -88.698
--
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:showText(npc, ITEM_DELIVERY_DIALOG);
player:openSendBox();
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
-----------------------------------
-- onEventFinish
-----------------------------------
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
end;
| gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.