-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,013 additions
and
365 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -401,5 +401,8 @@ otxserver.old | |
# VCPKG | ||
vcpkg_installed | ||
|
||
# DB Backups | ||
database_backup | ||
|
||
# CLION | ||
cmake-build-* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,31 +12,25 @@ We are trying to create the perfect custom OpenTibia server. | |
We currently provide build instructions for the following systems: | ||
* [Windows Tutorial for OTX 6](https://github.com/mattyx14/otxserver/wiki/Compiling-on-Windows-(OTX-6-)) | ||
|
||
## OpenTibia Comunity: | ||
With downloads, support, tutorials, Lua scripts, C++ codes, PHP codes and more ... | ||
* [OTServ Brasil](https://docs.opentibiabr.com/) - [Português/English] | ||
* [Tibiaking](https://tibiaking.com/) - [Português] | ||
* [OTLand](https://otland.net/) - [English] | ||
* [Tibia Face](https://tibiaface.foroactivo.com/) - [Español] | ||
|
||
## Old Server Series: | ||
Server created with TFS 0.3.7-(AKA 0.4) with endless improvements that make it ideal for old school servers based on 8.6, clearly it should be used completely with its data defined there. | ||
* [OTX Server 2](https://github.com/mattyx14/otxserver/tree/otxserv2) | ||
|
||
## OpenTibia Comunity: | ||
With downloads, support, tutorials, Lua scripts, C++ codes, PHP codes and more ... | ||
* [OTServ Brasil](https://docs.opentibiabr.com/) - [Português/English] | ||
* [Tibiaking](https://tibiaking.com/) - [Português] | ||
* [OTLand](https://otland.net/) - [English] | ||
* [Tibia Face](https://tibiaface.foroactivo.com/) - [Español] | ||
|
||
## Contacts OTX Server 2: | ||
- <b>Matty(English & Spanish):</b><br> | ||
Facebook: https://www.facebook.com/Mattyx14/<br> | ||
E-mail: [email protected]<br> | ||
Whatsapp: +5213173832937<br> | ||
|
||
Whatsapp: +523211136700<br><br> | ||
- <b>Reason(English & Portuguese):</b><br> | ||
Discord: Reason#2913 | ||
|
||
- <b>FeeTads(Portuguese):</b><br> | ||
E-mail: [email protected]<br> | ||
Whatsapp: +55 41 9 84036942<br> | ||
Discord: FeeTads#0246 | ||
|
||
## Special Thanks | ||
|
||
- Our contributors ([Canary](https://github.com/opentibiabr/canary/graphs/contributors) | [OTServBR-Global](https://github.com/opentibiabr/otservbr-global/graphs/contributors)). | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dofile(DATA_DIRECTORY .. "/lib/functions/players.lua") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
function Player.getCookiesDelivered(self) | ||
local storage, amount = | ||
{ | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.SimonTheBeggar, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Markwin, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Ariella, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Hairycles, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Djinn, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.AvarTar, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.OrcKing, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Lorbas, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Wyda, | ||
Storage.Quest.U8_1.WhatAFoolishQuest.CookieDelivery.Hjaern, | ||
}, 0 | ||
for i = 1, #storage do | ||
if self:getStorageValue(storage[i]) == 1 then | ||
amount = amount + 1 | ||
end | ||
end | ||
return amount | ||
end | ||
|
||
function Player.checkGnomeRank(self) | ||
local points = self:getStorageValue(Storage.Quest.U9_60.BigfootsBurden.Rank) | ||
local questProgress = self:getStorageValue(Storage.Quest.U9_60.BigfootsBurden.QuestLine) | ||
if points >= 30 and points < 120 then | ||
if questProgress <= 25 then | ||
self:setStorageValue(Storage.Quest.U9_60.BigfootsBurden.QuestLine, 26) | ||
self:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
self:addAchievement("Gnome Little Helper") | ||
end | ||
elseif points >= 120 and points < 480 then | ||
if questProgress <= 26 then | ||
self:setStorageValue(Storage.Quest.U9_60.BigfootsBurden.QuestLine, 27) | ||
self:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
self:addAchievement("Gnome Little Helper") | ||
self:addAchievement("Gnome Friend") | ||
end | ||
elseif points >= 480 and points < 1440 then | ||
if questProgress <= 27 then | ||
self:setStorageValue(Storage.Quest.U9_60.BigfootsBurden.QuestLine, 28) | ||
self:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
self:addAchievement("Gnome Little Helper") | ||
self:addAchievement("Gnome Friend") | ||
self:addAchievement("Gnomelike") | ||
end | ||
elseif points >= 1440 then | ||
if questProgress <= 29 then | ||
self:setStorageValue(Storage.Quest.U9_60.BigfootsBurden.QuestLine, 30) | ||
self:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) | ||
self:addAchievement("Gnome Little Helper") | ||
self:addAchievement("Gnome Friend") | ||
self:addAchievement("Gnomelike") | ||
self:addAchievement("Honorary Gnome") | ||
end | ||
end | ||
return true | ||
end | ||
|
||
function Player.addFamePoint(self) | ||
local points = self:getStorageValue(Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points) | ||
local current = math.max(0, points) | ||
self:setStorageValue(Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points, current + 1) | ||
self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have received a fame point.") | ||
end | ||
|
||
function Player.getFamePoints(self) | ||
local points = self:getStorageValue(Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points) | ||
return math.max(0, points) | ||
end | ||
|
||
function Player.removeFamePoints(self, amount) | ||
local points = self:getStorageValue(Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points) | ||
local current = math.max(0, points) | ||
self:setStorageValue(Storage.Quest.U10_20.SpikeTaskQuest.Constants.Spike_Fame_Points, current - amount) | ||
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
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
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
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
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
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
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
Oops, something went wrong.