oen432
Legendary OT User
Hello,
I'll post here (or edit this post once in a while) new modifications I've made to OTClient and TFS.
I'm trying to use Lua as little as possible and make most modifications using C++ for better performance and easier usage.
At some point I'll post tutorials on how to create some of these modifications.
1. Items Tooltip WORK IN PROGRESS
- Displays item sprite, name, item type (sword, armor etc.), base stats (attack, defense, armor, range, hit chance etc.), abilities (elemental damage and protection) and item weight.
2. Advanced Trading WORK IN PROGRESS
- Replaces old trading system with new one, allowing to add and remove items from trading window.
3. Combo Spells
New attributes to add in
comboTo - next spell to cast
comboFrom - allow casting only if spell of that id was cast in last 3 seconds
Example with
4. Friendly Monsters
They are not summons, they won't harm players or NPCs but they will attack monsters and monsters can attack them. Can be customized as any other monster - look, stats, attacks etc.
5. Incantation Spells
Special spells that have to be cast in specific order to work. This is close to Combo Spells but not exactly. Combo Spells are used on cast while Incantation are used after X seconds or after last Incantation spell is used. I hope this video will explain it better.
6. Player Progressbar
White bar below players health bar. Can be used on server side and sent to the player via lua
7. Teleportation Crystal
Teleports back to your city temple after 8 seconds. Movement, attacking or being attacked will cancel teleportation.
8. Shrines (Download Here)
Can be placed on the map with Action ID that is connected to specific effect, like bonus damage. Upon activation by player, shrine is deactivated and player gets whatever bonus is assigned to that shrine. Every 1 minute, shrines will try to recharge (% chance per shrine, everything is configurable). Shrines that are not active are indicated by smoke (poof) effect. Right now there are 4 shrines - Damage Bonus, Protection Bonus, Regeneration and Experience Bonus. Upon Logout or Death, shrine effects are removed from the player.
More coming soon! Follow this thread as this post will be edited with more stuff.
I'll post here (or edit this post once in a while) new modifications I've made to OTClient and TFS.
I'm trying to use Lua as little as possible and make most modifications using C++ for better performance and easier usage.
At some point I'll post tutorials on how to create some of these modifications.
1. Items Tooltip WORK IN PROGRESS
- Displays item sprite, name, item type (sword, armor etc.), base stats (attack, defense, armor, range, hit chance etc.), abilities (elemental damage and protection) and item weight.
2. Advanced Trading WORK IN PROGRESS
- Replaces old trading system with new one, allowing to add and remove items from trading window.
3. Combo Spells
New attributes to add in
spells.xml
- comboTo
and comboFrom
.comboTo - next spell to cast
comboFrom - allow casting only if spell of that id was cast in last 3 seconds
Example with
combo one > combo two > combo three
.
XML:
<instant group="attack" spellid="200" comboTo="201" name="Combo Spell One" words="combo one" level="1" mana="0" premium="0" range="6" casterTargetOrDirection="1" blockwalls="1" cooldown="2000" groupcooldown="2000" needlearn="0" script="combo/one.lua">
<vocation name="Sorcerer" />
</instant>
<instant group="attack" spellid="201" comboTo="202" comboFrom="200" name="Combo Spell Two" words="combo two" level="1" mana="0" premium="0" range="6" direction="1" blockwalls="1" cooldown="2000" groupcooldown="2000" needlearn="0" script="combo/two.lua">
<vocation name="Sorcerer" />
</instant>
<instant group="attack" spellid="202" comboFrom="201" name="Combo Spell Three" words="combo three" level="1" mana="0" premium="0" range="6" casterTargetOrDirection="1" blockwalls="1" cooldown="2000" groupcooldown="2000" needlearn="0" script="combo/three.lua">
<vocation name="Sorcerer" />
</instant>
Sorry for the sound, forgot to mute OBS.
4. Friendly Monsters
They are not summons, they won't harm players or NPCs but they will attack monsters and monsters can attack them. Can be customized as any other monster - look, stats, attacks etc.
5. Incantation Spells
Special spells that have to be cast in specific order to work. This is close to Combo Spells but not exactly. Combo Spells are used on cast while Incantation are used after X seconds or after last Incantation spell is used. I hope this video will explain it better.
6. Player Progressbar
White bar below players health bar. Can be used on server side and sent to the player via lua
player:setProgressbar(duration)
where duration is time (in ms) for the bar to shrink (0 = remove bar). That allows for various usage that you will see in the future.7. Teleportation Crystal
Teleports back to your city temple after 8 seconds. Movement, attacking or being attacked will cancel teleportation.
8. Shrines (Download Here)
Can be placed on the map with Action ID that is connected to specific effect, like bonus damage. Upon activation by player, shrine is deactivated and player gets whatever bonus is assigned to that shrine. Every 1 minute, shrines will try to recharge (% chance per shrine, everything is configurable). Shrines that are not active are indicated by smoke (poof) effect. Right now there are 4 shrines - Damage Bonus, Protection Bonus, Regeneration and Experience Bonus. Upon Logout or Death, shrine effects are removed from the player.
More coming soon! Follow this thread as this post will be edited with more stuff.
Last edited by a moderator: