mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
added mounts, auras, wings and shop. Packet compression does not work extendedOpCodes does not work but shop is because of extra configuration
This commit is contained in:
@@ -13,30 +13,28 @@ function updateFeatures(version)
|
||||
end
|
||||
|
||||
-- you can add custom features here, list of them is in the modules\gamelib\const.lua
|
||||
g_game.enableFeature(GameLooktypeU16)
|
||||
g_game.enableFeature(GameMessageStatements)
|
||||
g_game.enableFeature(GameLoginPacketEncryption)
|
||||
g_game.enableFeature(GamePlayerAddons)
|
||||
g_game.enableFeature(GamePlayerStamina)
|
||||
g_game.enableFeature(GameNewFluids)
|
||||
g_game.enableFeature(GameMessageLevel)
|
||||
g_game.enableFeature(GamePlayerStateU16)
|
||||
g_game.enableFeature(GameNewOutfitProtocol)
|
||||
g_game.enableFeature(GameWritableDate)
|
||||
|
||||
-- customs
|
||||
--g_game.enableFeature(GameIngameStore)
|
||||
g_game.enableFeature(GamePlayerMarket)
|
||||
--g_game.enableFeature(GameClientPing)
|
||||
--g_game.enableFeature(GameExtendedOpcode)
|
||||
--g_game.enableFeature(GameMinimapLimitedToSingleFloor) -- it will generate minimap only for current floor
|
||||
--g_game.enableFeature(GameSpritesAlphaChannel)
|
||||
|
||||
--if(version >= 770) then
|
||||
g_game.enableFeature(GameLooktypeU16)
|
||||
g_game.enableFeature(GameMessageStatements)
|
||||
g_game.enableFeature(GameLoginPacketEncryption)
|
||||
--end
|
||||
|
||||
--if(version >= 780) then
|
||||
g_game.enableFeature(GamePlayerAddons)
|
||||
g_game.enableFeature(GamePlayerStamina)
|
||||
g_game.enableFeature(GameNewFluids)
|
||||
g_game.enableFeature(GameMessageLevel)
|
||||
g_game.enableFeature(GamePlayerStateU16)
|
||||
g_game.enableFeature(GameNewOutfitProtocol)
|
||||
--end
|
||||
|
||||
--if(version >= 790) then
|
||||
g_game.enableFeature(GameWritableDate)
|
||||
--end
|
||||
|
||||
g_game.enableFeature(GamePlayerMounts)
|
||||
g_game.enableFeature(GameWingsAndAura)
|
||||
g_game.enableFeature(GameOutfitShaders)
|
||||
--g_game.enableFeature(GameExtendedOpcode)
|
||||
--g_game.enableFeature(GamePacketCompression)
|
||||
g_game.enableFeature(GameClientPing)
|
||||
g_game.enableFeature(GameExtendedClientPing)
|
||||
|
||||
if(version >= 840) then
|
||||
g_game.enableFeature(GameProtocolChecksum)
|
||||
|
@@ -12,8 +12,8 @@ function init()
|
||||
-- outfit shaders
|
||||
g_shaders.createOutfitShader("outfit_default", "/shaders/outfit_default_vertex", "/shaders/outfit_default_fragment")
|
||||
|
||||
g_shaders.createOutfitShader("outfit_rainbow", "/shaders/outfit_rainbow_vertex", "/shaders/outfit_rainbow_fragment")
|
||||
g_shaders.addTexture("outfit_rainbow", "/images/shaders/rainbow.png")
|
||||
g_shaders.createOutfitShader("Rainbow Outfit", "/shaders/outfit_rainbow_vertex", "/shaders/outfit_rainbow_fragment")
|
||||
g_shaders.addTexture("Rainbow Outfit", "/images/shaders/rainbow.png")
|
||||
|
||||
-- you can use creature:setOutfitShader("outfit_rainbow") to set shader
|
||||
|
||||
|
@@ -21,9 +21,9 @@ local AD = {}
|
||||
local selectedOffer = {}
|
||||
|
||||
local function sendAction(action, data)
|
||||
if not g_game.getFeature(GameExtendedOpcode) then
|
||||
return
|
||||
end
|
||||
--if not g_game.getFeature(GameExtendedOpcode) then
|
||||
-- return
|
||||
--end
|
||||
|
||||
local protocolGame = g_game.getProtocolGame()
|
||||
if data == nil then
|
||||
|
Reference in New Issue
Block a user