This file contains 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
<?php | |
if(!defined('INITIALIZED')) | |
exit; | |
if($action == 'login') | |
{ | |
if(check_guild_name($_REQUEST['guild'])) | |
$guild = $_REQUEST['guild']; | |
if($_REQUEST['redirect'] == 'guild' || $_REQUEST['redirect'] == 'guilds') | |
$redirect = $_REQUEST['redirect']; |
This file contains 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
function Creature:onTargetCombat(target) | |
if not self then | |
return true | |
end | |
if self:isPlayer() and target:isPlayer() then | |
local party = self:getParty() | |
if party then | |
local targetParty = target:getParty() | |
if targetParty and targetParty == party then |
This file contains 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 storage = 3100 -- storageID to use. | |
local maxPoints = 1 -- maximum amount of saved points a player can have | |
local givePoints = 1 -- amount of points to give player | |
local creatureName = '[b] willow' -- creaturename (must be lowercase letters) | |
function onKill(creature, target) | |
if not target:isMonster() or target:getMaster() then | |
return true | |
end |
This file contains 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 01be417776d2ab41036a12fac49da0fb5a68b85f Mon Oct 10 00:00:00 2001 | |
From: Daniel Björkholm <danielbjorkholm@gmail.com> | |
Date: Sat, 10 Oct 2015 12:25:24 +0200 | |
Subject: [PATCH] 1041 downgrade | |
--- | |
const.h | 39 +++++++++++++++------------------------ | |
definitions.h | 6 +++--- | |
itemloader.h | 1 - | |
items.cpp | 2 +- |
This file contains 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
function onKill(creature, target) | |
if not target:isMonster or target:getMaster() then | |
return true | |
end | |
local targetName = target:getName():lower() | |
if targetName ~= 'demon' then | |
return true | |
end | |
This file contains 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
-- Guild | |
local guild = player:getGuild() | |
guild = guild and guild:getId() or 0 | |
if guild ~= 0 then | |
-- Display Active Wars | |
local resultId = db.storeQuery("SELECT `guild_wars`.*, `g`.`name` AS `guild_name`, `e`.`name` AS `enemy_name`, (SELECT COUNT(1) FROM `guildwar_kills` WHERE `guildwar_kills`.`warid` = `guild_wars`.`id` AND `guildwar_kills`.`killerguild` = `guild_wars`.`guild1`) guild1_kills, (SELECT COUNT(1) FROM `guildwar_kills` WHERE `guildwar_kills`.`warid` = `guild_wars`.`id` AND `guildwar_kills`.`killerguild` = `guild_wars`.`guild2`) guild2_kills FROM `guild_wars` LEFT JOIN `guilds` AS `g` ON `g`.`id` = `guild_wars`.`guild1` LEFT JOIN `guilds` AS `e` ON `e`.`id` = `guild_wars`.`guild2` WHERE (`guild1` = " .. guild .. " OR `guild2` = " .. guild .. ") AND `status` = 1") | |
if resultId ~= false then | |
repeat | |
local guild1 = result.getNumber(resultId, "guild1") |
This file contains 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 78f6fef7a9083f28d06b203cd9d863a9f6f7dc6d Tue, 15 Mar 2016 00:08:42 +0100 | |
From: Daniel Björkholm <danielbjorkholm@gmail.com> | |
Date: Tue, 15 Mar 2016 00:08:42 +0100 | |
Subject: [PATCH] Equip Hotkey | |
--- | |
creature.h | 11 +++++++++++ | |
player.cpp | 47 ++++++++++++++++++++++++++++++++++++++++++++ | |
player.h | 7 +++++++ | |
protocolgame.cpp | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
This file contains 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
function onPrepareDeath(player, killer) | |
if not ZombieEvent.running or not ZombieEvent:isInRange(player:getPosition()) or player:getStorageValue(ZombieEvent.eventStorage) ~= 1 then | |
return true | |
end | |
local killerName = "a field item" | |
if killer then | |
local master = killer:getMaster() | |
if master and master ~= killer and master:isPlayer() then | |
killer = master |
This file contains 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
function onThink(interval, lastExecution, thinkInterval) | |
if #Game.getPlayers() < PaintballEvent.minPlayers or PaintballEvent.startingUp or PaintballEvent.running then | |
return true | |
end | |
PaintballEvent:init() | |
return true | |
end |
This file contains 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 = { | |
time = 2, | |
storage = 200011 | |
} | |
function onUse(player, item, fromPosition, target, toPosition, isHotkey) | |
if player:getStorageValue(config.storage) >= os.time() then | |
player:sendTextMessage(MESSAGE_INFO_DESCR, "You still have extra experience time left.") | |
return true | |
end |
OlderNewer