• 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!

Is it possible to make targetable instant spell?

miens

Combos and Freedom
Joined
Nov 6, 2016
Messages
61
Reaction score
8
Hello,
I was toying with spells recently and I came to conclusion that I need instant spells that need target. Similarly to runes. So as the title says: is it possible to make spells that turn your mouse cursor to crosshair so that you have to select target? All ideas are welcome even if it would make me create additional invisible item slot on player and then the spell would create an item in this slot and "right click it".
So, any ideas? :)
 
I asked otland for it long time ago. After long discusion, the solution is:
1. Source edit in your OTS
2. OTClient with edited networking, real tibia client wont work even if you decide to use crazy alternetives
 
Ok thanks for quick reply :) one las question is it possible to read cursor's location from lua's perspective? Are there any functions to do it or is it possible to implement function like this?
 
Ok thanks for quick reply :) one las question is it possible to read cursor's location from lua's perspective? Are there any functions to do it or is it possible to implement function like this?

Yes, you can read the cursor's location in LUA with the OTClient.
You cannot do it in TFS, if that is what you are asking.


To do what you want, you'd have to change how tibia works from a ground-level.

Currently, the OTClient will send either text, or item uses, or movement/turning to TFS. That's basically it.

You would need to add a NEW thing for instant spells to work.
#1 - OTClient would need to know what words are spells. Currently the OTClient has no idea if a word is a spell, or just a word.
#2 - When you say the specific "Instant Target Spell" OTClient would then cache the spellword, and wait for you to choose a location/target with your crosshairs.
#3 - After choosing a location/target, it would send the spellname and targetposition to TFS, and TFS would have to know what to do with this information.

The easiest way to do what you want to do, is just make an item be your spell (such as a rune).
You can save a rune on a character and make in un-moveable. If you are using OTClient, you can make new inventory slots just for the "Instant Spells" That you want to use with crosshairs.
What you want to do seems cool at first, but it requires a lot of work to implement.
 
Yea I'm using OTClient and TFS. I think I will just make player use invisible items from invisible inventory slots. It seems like the easiest option.

Thanks for saving my time once again Flatlander :)
 
Yea I'm using OTClient and TFS. I think I will just make player use invisible items from invisible inventory slots.
If you decided to this method - My proposition is:
Make one item (which have 'use with' option), after you cast a spell action id of this item will change. Then, if you use this item it will send a spell at your crosshairs.
There is only one cons, player will have to use two hotkeys. Example: F2 for fireball (action id changes to fireball id) and F1 (use item with) to cast it somewhere, or F6 (aid changes to ava) for avalanche and F1 to cast is somewhere.
You can set exhaustion on item to be equal to 0. So, it wont slow down playing.

I'm using similar method on my server. The item is just a spellbook, so it looks like you casts spells from spellbook. :)
 
on my server i am using a spellbook like andu, but the spellbook its a container, where you receive your spells when you reach xxx level.
the spells are like runes, some spells like avalanches where you need to select a sqm to shoot, and other are like exori flam, only clicking the icon of the spell.
icons are like =
VBwq9Vz.png
 
Alternatively you could use a rune or any other use-with item and make the usage cost mana.
 
Alternatively you could use a rune or any other use-with item and make the usage cost mana.
This

The first thing I thought is custom use-with items, and action scripts. Don' t think source-edit is a first option.
 
Back
Top