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

[ Request ] Letters above Teleports, Orange Spell Names, etc

Trader

New Member
Joined
Aug 12, 2009
Messages
219
Reaction score
2
Hello,

Does anyone have the script where above the Teleports there are words coming above it and how to set effects on tp's

Also does anyone have a script for making the words of the spell you say come in orange, plus when you heal it will say the ammount in green "ie +100"

If someone can post them here, that would be great
Will add rep!
Thanks
 
Put his code in data/globalevents/globalevents.xml
Code:
 <globalevent name="effects" interval="0.7" event="script" value="effects.lua"/>


Make a new file called effects.lua in data/globalevents/scritps

Then put this code
Code:
--[[ 
        Talking Tp/signs/tiles for TFS 0.3+
        by Maxi (Shawak)
]]--

        local text = {
        --X pos,Y pos, Z pos, text
        [1] = {pos = {745,715,7}, text = {"Tp Room"}},
        [3] = {pos = {746,712,7}, text = {"Tempel"}},
        [4] = {pos = {838,701,7}, text = {"Warzone"}},
        [5] = {pos = {826,742,15}, text = {"City"}},
        [6] = {pos = {743,715,7}, text = {"City"}},
        [7] = {pos = {741,715,7}, text = {"Trainers"}}
        }

        local effects = {
        --X pos,Y pos, Z pos, text
        [1] = {pos = {743,715,7}, effect = {18}},
        [3] = {pos = {746,712,7}, effect = {21}},
        [4] = {pos = {738,701,7}, effect = {23}},
        [5] = {pos = {745,715,7}, effect = {24}},
        [6] = {pos = {838,701,7}, effect = {25}},
        [7] = {pos = {745,715,7}, effect = {26}},
        [8] = {pos = {741,715,7}, effect = {22}}
        }

function onThink(interval, lastExecution)
        for _, area in pairs(text) do
                doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))
        end
        for _, area in pairs(effects) do
                doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
        end
        return TRUE
end

If you dont understand how to put out the text on the map. Just ask. :)
 
search for this in your config.lua

Code:
spellNameInsteadOfWords = false

Change it to :
Code:
spellNameInsteadOfWords = true

Also how to add etc (+100) when say exura gran or any other healing spell. Theres should be some way to change it in the config to. Have no time to find it atm.
 
Back
Top