• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Wing and Aura

DarkRUSH

New Member
Joined
Dec 15, 2018
Messages
21
Reaction score
2
is it possible to add wings and aura to otclient from mehah? if so, how? can anyone help?
1716919523789.png
 
is it possible to add wings and aura to otclient from mehah? if so, how? can anyone help?
If you are using the OTClient from Mehah, then you need to follow the tutorial for error 502 specifically for the Mehah OTClient and TFS sides.
 
1) [C++]Server 10.98 (1.4.2):
I just copied and pasted the mount, I'm not good at cpp.


1.5) [lua] (opcode version)

was never realized


2) Client:

+
enable this features

LUA:
g_game.enableFeature(GameWingsAurasEffectsShader)
g_game.enableFeature(GameFormatCreatureName)
g_game.enableFeature(GameCreatureShader)
g_game.enableFeature(GameCreatureAttachedEffect)
g_game.enableFeature(GameItemShader)
--g_game.enableFeature(GameItemTooltipV8);


3) DataBase:

SQL:
ALTER TABLE `players`
ADD COLUMN `currentwing` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizewing` tinyint NOT NULL DEFAULT '0',
ADD COLUMN `currentaura` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizeaura` tinyint NOT NULL DEFAULT '0',
ADD COLUMN `currenteffect` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizeeffect` tinyint NOT NULL DEFAULT '0',
ADD COLUMN `currentshader` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizeshader` tinyint NOT NULL DEFAULT '0';

SQL:
CREATE TABLE IF NOT EXISTS `player_wings` (
  `player_id` int NOT NULL DEFAULT '0',
  `wing_id` smallint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`player_id`,`wing_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;


CREATE TABLE IF NOT EXISTS `player_effects` (
  `player_id` int NOT NULL DEFAULT '0',
  `effect_id` smallint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`player_id`,`effect_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;


CREATE TABLE IF NOT EXISTS `player_auras` (
  `player_id` int NOT NULL DEFAULT '0',
  `aura_id` smallint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`player_id`,`aura_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;


CREATE TABLE IF NOT EXISTS `player_shaders` (
  `player_id` int(11) NOT NULL DEFAULT 0,
  `shader_id` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (`player_id`, `shader_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;

4) Demo:

 
Last edited:
Do you mind sharing these aura sprites? I really liked them, I think they're beautiful, kkkkkkkkkkkkk.
is mehah default

I have tfs 1.3, will it work?
is almost the same

I wanted to make a version with opcode(lua), but I left the project.
 
1) [C++]Server 10.98 (1.4.2):
I just copied and pasted the mount, I'm not good at cpp.


1.5) [lua] (opcode version)

was never realized


2) Client:

+
enable this features

LUA:
g_game.enableFeature(GameWingsAurasEffectsShader)
g_game.enableFeature(GameFormatCreatureName)
g_game.enableFeature(GameCreatureShader)
g_game.enableFeature(GameCreatureAttachedEffect)
g_game.enableFeature(GameItemShader)
--g_game.enableFeature(GameItemTooltipV8);


3) DataBase:

SQL:
ALTER TABLE `players`
ADD COLUMN `currentwing` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizewing` tinyint NOT NULL DEFAULT '0',
ADD COLUMN `currentaura` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizeaura` tinyint NOT NULL DEFAULT '0',
ADD COLUMN `currenteffect` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizeeffect` tinyint NOT NULL DEFAULT '0',
ADD COLUMN `currentshader` smallint UNSIGNED NOT NULL DEFAULT '0',
ADD COLUMN `randomizeshader` tinyint NOT NULL DEFAULT '0';

SQL:
CREATE TABLE IF NOT EXISTS `player_wings` (
  `player_id` int NOT NULL DEFAULT '0',
  `wing_id` smallint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`player_id`,`wing_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;


CREATE TABLE IF NOT EXISTS `player_effects` (
  `player_id` int NOT NULL DEFAULT '0',
  `effect_id` smallint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`player_id`,`effect_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;


CREATE TABLE IF NOT EXISTS `player_auras` (
  `player_id` int NOT NULL DEFAULT '0',
  `aura_id` smallint unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`player_id`,`aura_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;


CREATE TABLE IF NOT EXISTS `player_shaders` (
  `player_id` int(11) NOT NULL DEFAULT 0,
  `shader_id` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (`player_id`, `shader_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;

4) Demo:

I have many errors

1716923259409.png
 
1)
Code:
string_view
to
Code:
string
2)

1716923720278.png


3)
1716923549636.png
1716923557793.png
.cpp
Code:
if (operatingSystem == CLIENTOS_OTCLIENT_WINDOWS) {
        isMehah = true;
    }
.h
LUA:
bool isMehah = false;
 
Back
Top