This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LuaScriptInterface::luaPlayerAddWing(lua_State* L) | |
{ | |
// player:addWing(wingId or wingName) | |
Player* player = getUserdata<Player>(L, 1); | |
if (!player) { | |
lua_pushnil(L); | |
return 1; | |
} | |
Wing* wing = nullptr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 91cb163ade94b80abe4a31d8b7cea2cdfea74e97 Tue, 27 Sep 2016 09:45:40 +0200 | |
From: Daniel Björkholm <[email protected]> | |
Date: Tue, 27 Sep 2016 09:45:40 +0200 | |
Subject: [PATCH] [TFS 1.x] KD Ratio | |
--- | |
global.lua | 5 ++++- | |
playedeath.lua | 24 +++++++++++++++++++++++- | |
player.lua | 16 +++++++++++++++- | |
3 files changed, 42 insertions(+), 3 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function getTopPlayers(maxPlayers) | |
local topPlayers = { } | |
for _, tmpPlayer in ipairs(Game.getPlayers()) do | |
if not tmpPlayer:getGroup():getAccess() then | |
topPlayers[#topPlayers + 1] = { | |
name = tmpPlayer:getName(), | |
level = tmpPlayer:getLevel() | |
} | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local keywordHandler = KeywordHandler:new() | |
local npcHandler = NpcHandler:new(keywordHandler) | |
NpcSystem.parseParameters(npcHandler) | |
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end | |
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end | |
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end | |
local CURRENCY_GOLD_COIN = 1 | |
local CURRENCY_GOLD_NUGGET = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Functions: | |
Game.createMonsters(identifier, monsters) | |
Game.removeMonsters(identifier) | |
Game.createObjects(identifier, objects) | |
Game.removeObjects(identifier) | |
Usage: | |
-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fe7907f85fcbbab3957213cf68e5f38ee0b2ebf4 Sun, 8 May 2016 19:10:38 +0200 | |
From: Daniel Björkholm <[email protected]> | |
Date: Sun, 8 May 2016 19:10:38 +0200 | |
Subject: [PATCH] Test | |
--- | |
creature.cpp | 4 ++- | |
creature.h | 3 +- | |
luascript.cpp | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- | |
luascript.h | 9 +++++- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MonsterArena = { | |
fromPosition = { Position(32075, 32286, 8), Position(32077, 32286, 8) }, --Player Start by lever | |
toPosition = { Position(32074, 32277, 8), Position(32076, 32277, 8) }, --Player Teleport Arena Positions | |
spawnPosition = { Position(32074, 32278, 8), Position(32076, 32276, 8) }, --Monster Spawns | |
area = { | |
from = Position(32070, 32273, 8), | |
to = Position(32082, 32282, 8) | |
}, | |
exitPosition = Position(32075, 32284, 8), --Teleported once its over | |
reward = {itemId = 10530, count = 1}, --Reward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local config = { | |
rewards = { | |
{itemId = 2195, count = 1}, | |
{itemId = 2472, count = 1}, | |
{itemId = 2493, count = 1} | |
} | |
} | |
function onTime(interval) | |
local players = Game.getPlayers() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local CHANNEL_GUILD = 0x00 | |
function Guild.broadcastMessage(self, message) | |
for _, member in ipairs(self:getMembersOnline()) do | |
member:sendTextMessage(MESSAGE_INFO_DESCR, message) | |
member:sendChannelMessage("", message, TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 01482b2ce8ff82213ff85d5b7097ec5f403aa967 Thu, 21 Jan 2016 15:54:46 2001 | |
From: Daniel Björkholm <[email protected]> | |
Date: Thu, 21 Jan 2016 15:54:46 +0100 | |
Subject: [PATCH] test | |
--- | |
combat.cpp | 11 ++++++++++- | |
combat.h | 5 ++++- | |
enums.h | 3 ++- | |
luascript.cpp | 3 ++- |
NewerOlder