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

Mapping question

Calon

Experienced Member
Joined
Feb 6, 2009
Messages
1,070
Reaction score
21
how i can make up the teleport a word for example a teleport send to Training monks up the tp write (Training monks) that include a different colors ....
in the same time i have a question out of mapping (modern aac)
how i can add a new page called for example Addons?
 
1. I don't understand your question, do you mean:
If you say example "!TP Trainers" you get teleported to trainers.
And when you say "!quit Trainers" you get teleported out from trainers?

2. To add the page addons you have to put it in the folder [/System/pages/addons.php]
 
Tosse, he meant that something is generating a text on a tile.
For example, we have an orb of nature and it "says" "Trainers".
That pop-up text xD
 
AH xD okey
[NOTE:This isn't my script]
Open your script folder in globalevents(Data\globalevents\scripts\effectile.lua)
Create a new file called: effectile.lua and put following code in it:
Lua:
local config = {
positions = {
["Teleports"] = { x = 9976, y = 10000, z = 7 },
["Deport"] = { x = 9978, y = 10000, z = 7 },
["Trainer"] = { x = 9977, y = 9999, z = 7 },
},

effects = {
CONDITION_PARAM_DELAYED



}
}

function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(1, #config.effects))
doSendAnimatedText(pos, text, math.random(1, 255))
end

return TRUE
end
now open up your globalevents.xml file and add this code:
Code:
<globalevent name="EffectTile" interval="1" script="effectile.lua"/>

EXPLANATION: the first code is self explained I think? explaining anyways so you know how to use it to 100%
As you see to change name in this code:
Lua:
["Teleports"] = { x = 9976, y = 10000, z = 7 },
you just have to change the name: teleports to example: Portals, then it will spam portals.
You also have to change the cords (OFC? o_O).

That's should do as the explaination :D

Now, you may want to change the speed of the text to show up over your portal. to do that you have to edit this
Code:
interval="1"
this mean that EVERY second this shall use your script.
 
Back
Top