Ir para conteúdo

GameShop in-game OTClientv8 / Downgrade Nekiro TFS 1.5 V7.72

Featured Replies

Postado

Olá Tibiakings,

Source:

https://github.com/OTCv8/forgottenserver/commit/2839d4d7a8ad3597eff6c786f4ceb9b1b4b4456b#diff-e26c2fbabf42953e9a2f3e4c5749d0699804da9406cb340cc393afd3b7be4955

 

Datapack:

creaturescripts/creaturescripts.xml

<event type="extendedopcode" name="GameStore" script="game_store.lua" />

 

creaturescripts/scripts/login.lua

player:registerEvent("GameStore")


creaturescripts/scripts/game_store.lua

https://github.com/OTCv8/otcv8-tools/blob/main/server/shop/shop.lua

 

lib/lib.lua

dofile('data/lib/core/json.lua')

 

lib/core/json.lua

https://github.com/OTCv8/otcv8-tools/blob/main/server/json.lua

 

OTClientv8:

otclient/modules/game_features/features.lua

    if(version >= 770) then
        g_game.enableFeature(GameLooktypeU16)
        g_game.enableFeature(GameMessageStatements)
        g_game.enableFeature(GameLoginPacketEncryption)
        g_game.enableFeature(GameExtendedOpcode)
    end

 

Database:

CREATE TABLE `shop_history` (
  `id` int(11) NOT NULL,
  `account` int(11) NOT NULL,
  `player` int(11) NOT NULL,
  `date` datetime NOT NULL,
  `title` varchar(100) NOT NULL,
  `cost` int(11) NOT NULL,
  `details` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `shop_history`
  ADD PRIMARY KEY (`id`);
ALTER TABLE `shop_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

 

  • 1 year later...

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo