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

Globalevent - Teleport effects. please help me...

cremes

New Member
Joined
Oct 12, 2012
Messages
69
Reaction score
2
Hi,

i got [8.60] The Forgotten Server 0.3.6 (Crying Damson) V5 distribution, and Evolera.pl data packs..
i have many tps, and my script doesn work,

its a write up the tp script. i use few script and no1 work.. ;//

first script :
local pozycje = {
{pos = {x=1617, y=1556, z=7}, tekst = "Temple"},
{pos = {x=1000, y=924, z=8}, tekst = "Temple"},
{pos = {x=1006, y=924, z=8}, tekst = "Temple"},
{pos = {x=1057, y=885, z=7}, tekst = "! EXIT !"},
{pos = {x=1003, y=996, z=7}, tekst = "5cc"},
{pos = {x=1009, y=1002, z=7}, tekst = "! WAR !"},
{pos = {x=1199, y=730, z=7}, tekst = "EXP"},
{pos = {x=1034, y=1009, z=7}, tekst = "Bomberman"},
{pos = {x=1134, y=1677, z=7}, tekst = "Temple"},
{pos = {x=1036, y=1007, z=7}, tekst = "! Event !"},
{pos = {x=1036, y=996, z=7}, tekst = "Temple"},
{pos = {x=1038, y=996, z=7}, tekst = "Expowiska"},
{pos = {x=1037, y=996, z=7}, tekst = "Questy"},
{pos = {x=1045, y=1002, z=7}, tekst = "Training"},
{pos = {x=1197, y=732, z=7}, tekst = "Training"},
{pos = {x=1196, y=732, z=7}, tekst = "Back!"},
{pos = {x=1034, y=1008, z=7}, tekst = "City"},
{pos = {x=1127, y=1677, z=7}, tekst = "More EXP"},
{pos = {x=1008, y=993, z=7}, tekst = "Sklepy"},
{pos = {x=1008, y=992, z=7}, tekst = "Depo"},
{pos = {x=1005, y=994, z=7}, tekst = "Expowiska"},
{pos = {x=1005, y=992, z=7}, tekst = "Training"},
{pos = {x=1008, y=994, z=7}, tekst = "Eventy"},
{pos = {x=919, y=1354, z=7}, tekst = "! Exit !"},
{pos = {x=996, y=1206, z=7}, tekst = "! Exit !"},
{pos = {x=843, y=732, z=6}, tekst = "Bomberman"},
{pos = {x=845, y=732, z=6}, tekst = "Tetris"},
{pos = {x=847, y=732, z=6}, tekst = "Football"},
{pos = {x=848, y=722, z=6}, tekst = "! Exit !"},
{pos = {x=887, y=1186, z=7}, tekst = "! Exit !"},
{pos = {x=822, y=1227, z=7}, tekst = "! Exit !"},
{pos = {x=1883, y=1650, z=7}, tekst = "! More !"},
{pos = {x=998, y=999, z=7}, tekst = "Start EXP"},
{pos = {x=843, y=723, z=6}, tekst = "Snake"},
{pos = {x=845, y=723, z=6}, tekst = "Kasyno"},
{pos = {x=996, y=986, z=7}, tekst = "H Boost"},
{pos = {x=996, y=985, z=7}, tekst = "M Boost"},
{pos = {x=1151, y=1243, z=7}, tekst = "EXIT"},
{pos = {x=1158, y=1311, z=7}, tekst = "Witamy!"},
{pos = {x=1613, y=1560, z=7}, tekst = "! NEW !"},
{pos = {x=1919, y=1688, z=7}, tekst = "I ROOM"},
{pos = {x=1920, y=1688, z=7}, tekst = "II ROOM"},
{pos = {x=1921, y=1688, z=7}, tekst = "III ROOM"},
{pos = {x=1005, y=993, z=7}, tekst = "Questy"}
}
function onThink(interval, lastExecution)
local kolor = TEXTCOLOR_TEAL -- Jakim kolorem jest dany napis
for i=1, #pozycje do
doSendMagicEffect(pozycje.pos,37)
doSendMagicEffect(pozycje.pos,31)
doSendAnimatedText(pozycje.pos,pozycje.tekst,kolor)
end
return true
end


second

local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {1617, 1556, 7}, text = {"Temple"}},
[2] = {pos = {1000, 924, 8}, text = {"Temple"}},
[3] = {pos = {1006, 924, 8}, text = {"Temple"}},
[4] = {pos = {1057, 885, 7}, text = {"! EXIT !"}},
[5] = {pos = {1003, 996, 7}, text = {"5cc"}},
[6] = {pos = {1009, 1002, 7}, text = {"! WAR !"}},
[7] = {pos = {1199, 730, 7}, text = {"EXP"}},
[8] = {pos = {1034, 1009, 7}, text = {"Bomberman"}},
[9] = {pos = {1134, 1677, 7}, text = {"Temple"}},
[10] = {pos = {1036, 1007, 7}, text = {"! Event !"}},
[11] = {pos = {1036, 996, 7}, text = {"Temple"}},
[12] = {pos = {1038, 996, 7}, text = {"Expowiska"}},
[13] = {pos = {1037, 996, 7}, text = {"Questy"}},
[14] = {pos = {1045, 1002, 7}, text = {"Training"}},
[15] = {pos = {1197, 732, 7}, text = {"Training"}},
[16] = {pos = {1196, 732, 7}, text = {"Back!"}},
[17] = {pos = {1034, 1008, 7}, text = {"City"}},
[18] = {pos = {1127, 1677, 7}, text = {"More EXP"}},
[19] = {pos = {1008, 993, 7}, text = {"Sklepy"}},
[20] = {pos = {1008, 992, 7}, text = {"Depo"}},
[21] = {pos = {1005, 994, 7}, text = {"Expowiska"}},
[22] = {pos = {1005, 992, 7}, text = {"Training"}},
[23] = {pos = {1008, 994, 7}, text = {"Eventy"}},
[24] = {pos = {919, 1354, 7}, text = {"! Exit !"}},
[25] = {pos = {996, 1206, 7}, text = {"! Exit !"}},
[26] = {pos = {843, 732, 6}, text = {"Bomberman"}},
[27] = {pos = {845, 732, 6}, text = {"Tetris"}},
[28] = {pos = {847, 732, 6}, text = {"Football"}},
[29] = {pos = {848, 722, 6}, text = {"! Exit !"}},
[30] = {pos = {887, 1186, 7}, text = {"! Exit !"}},
[31] = {pos = {822, 1227, 7}, text = {"! Exit !"}},
[32] = {pos = {1883, 1650, 7}, text = {"! More !"}},
[33] = {pos = {998, 999, 7}, text = {"Start EXP"}},
[34] = {pos = {843, 723, 6}, text = {"Snake"}},
[35] = {pos = {845, 723, 6}, text = {"Kasyno"}},
[36] = {pos = {996, 986, 7}, text = {"H Boost"}},
[37] = {pos = {996, 985, 7}, text = {"M Boost"}},
[38] = {pos = {1151, 1243, 7}, text = {"EXIT"}},
[39] = {pos = {1158, 1311, 7}, text = {"Witamy!"}},
[40] = {pos = {1613, 1560, 7}, text = {"! NEW !"}},
[41] = {pos = {1919, 1688, 7}, text = {"I ROOM"}},
[42] = {pos = {1920, 1688, 7}, text = {"II ROOM"}},
[43] = {pos = {1921, 1688, 7}, text = {"III ROOM"}},
[44] = {pos = {1005, 993, 7}, text = {"Questy"}}


}
local effects = {
--X pos,Y pos, Z pos, text

[23] = {pos = {779,808,7}, effect = {30}},


}

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

maybe some1 know why it doesn't work ?? ;//

btw i got this write in globalevents.xml

PLEASE HELP ! for rep++
 
Try this:

Code:
local config = {
positions = {
        ["Carpets!"] = { x = 996, y = 995, z = 7 },
	["Depot!"] = { x = 996, y = 997, z = 7 },
	["Market!"] = { x = 996, y = 996, z = 7 },
	["Trainers!"] = { x = 996, y = 994, z = 7 },
	["Leave!"] = { x = 996, y = 991, z = 7 }
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendAnimatedText(pos, text, math.random(5, 5))
    end
    return TRUE
end

Don't forget to add commas at the end of each pos config line, except in the last one (like in the script)
 
Last edited:
i try this and edit my post.

still doesn't work ;/

local config = {
positions = {
["Temple"] = { x = 1617, y = 1556, z = 7},
["Temple"] = { x = 1000, y = 924, z = 8},
["Temple"] = { x = 1006, y = 924, z = 8},
["! EXIT !"] = { x = 1057, y = 885, z = 7},
["5cc"] = { x = 1003, y = 996, z = 7},
["! WAR !"] = { x = 1009, y = 1002, z = 7},
["EXP"] = { x = 1199, y = 730, z = 7},
["Bomberman"] = { x = 1034, y = 1009, z = 7},
["Temple"] = { x = 1134, y = 1677, z = 7},
["! Event !"] = { x = 1036, y = 1007, z = 7},
["Temple"] = { x = 1036, y = 996, z = 7},
["Expowiska"] = { x = 1038, y = 996, z = 7},
["Questy"] = { x = 1037, y = 996, z = 7},
["Training"] = { x = 1045, y = 1002, z = 7},
["Training"] = { x = 1197, y = 732, z = 7},
["Back!"] = { x = 1196, y = 732, z = 7},
["City"] = { x = 1034, y = 1008, z = 7},
["More EXP"] = { x = 1127, y = 1677, z = 7},
["Sklepy"] = { x = 1008, y = 993, z = 7},
["Depo"] = { x = 1008, y = 992, z = 7},
["Expowiska"] = { x = 1005, y = 994, z = 7},
["Training"] = { x = 1005, y = 992, z = 7},
["Eventy"] = { x = 1008, y = 994, z = 7},
["! Exit !"] = { x = 919, y = 1354, z = 7},
["! Exit !"] = { x = 996, y = 1206, z = 7},
["Bomberman"] = { x = 843, y = 732, z = 6},
["Tetris"] = { x = 845, y = 732, z = 6},
["Football"] = { x = 847, y = 732, z = 6},
["! Exit !"] = { x = 848, y = 722, z = 6},
["! Exit !"] = { x = 887, y = 1186, z = 7},
["! Exit !"] = { x = 822, y = 1227, z = 7},
["! More !"] = { x = 1883, y = 1650, z = 7},
["Start EXP"] = { x = 998, y = 999, z = 7},
["Snake"] = { x = 843, y = 723, z = 6},
["Kasyno"] = { x = 845, y = 723, z = 6},
["H Boost"] = { x = 996, y = 986, z = 7},
["M Boost"] = { x = 996, y = 985, z = 7},
["EXIT"] = { x = 1151, y = 1243, z = 7},
["Witamy!"] = { x = 1158, y = 1311, z = 7},
["! NEW !"] = { x = 1613, y = 1560, z = 7},
["I ROOM"] = { x = 1919, y = 1688, z = 7},
["II ROOM"] = { x = 1920, y = 1688, z = 7},
["III ROOM"] = { x = 1921, y = 1688, z = 7},
["Questy"] = { x = 1005, y = 993, z = 7},
["Hardcore"] = { x = 978, y = 924, z = 8},
["Hardcore"] = { x = 1005, y = 990, z = 7},
["Use Me"] = { x = 1149, y = 1309, z = 8},
["BOSSY"] = { x = 1613, y = 1556, z = 7},
["! Exit !"] = { x = 1131, y = 1304, z = 8},
["! Exit !"] = { x = 979, y = 991, z = 7},
["Use Me"] = { x = 1014, y = 994, z = 7},
["Use Me"] = { x = 997, y = 1001, z = 7},
["100 PKT"] = { x = 993, y = 998, z = 7},
["<<<"] = { x = 1170, y = 1314, z = 6},
["! GO !"] = { x = 1165, y = 1314, z = 6},
["Look"] = { x = 1156, y = 1316, z = 7},
["^"] = { x = 1151, y = 1312, z = 7},
["Escape"] = { x = 1148, y = 1306, z = 7},
["Escape"] = { x = 1149, y = 1306, z = 7},
["SMS SHOOP"] = { x = 995, y = 991, z = 7}
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendAnimatedText(pos, text, math.random(5, 5))
end
return TRUE
end

maybe other distibution ?
 
Last edited:
[16/10/2012 02:23:55] [Error - CreatureScript Interface]
[16/10/2012 02:23:55] data/creaturescripts/scripts/kill.lua
[16/10/2012 02:23:55] Description:
[16/10/2012 02:23:55] cannot open ./GuildWar.lua: No such file or directory
[16/10/2012 02:23:55] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/kill.lua)

[16/10/2012 02:23:55] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/events.lua:5: '}' expected (to close '{' at line 3) near '['
[16/10/2012 02:23:55] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/events.lua)
[16/10/2012 02:23:55] data/creaturescripts/scripts/events.lua:5: '}' expected (to close '{' at line 3) near '['

[16/10/2012 02:24:06] [Warning] NpcSystem:
[16/10/2012 02:24:06] Parameter(s) missing for item:
[16/10/2012 02:24:06] 500


[16/10/2012 02:24:06] [Warning] NpcSystem:
[16/10/2012 02:24:06] Parameter(s) missing for item:
[16/10/2012 02:24:06] 500


[16/10/2012 02:24:06] [Warning] NpcSystem:
[16/10/2012 02:24:06] Parameter(s) missing for item:
[16/10/2012 02:24:06] 500


[16/10/2012 02:24:06] [Warning] NpcSystem:
[16/10/2012 02:24:06] Parameter(s) missing for item:
[16/10/2012 02:24:06] 500

[16/10/2012 02:24:06] [Error - LuaScriptInterface::loadFile] data/npc/scripts/advanceTaskSystem.lua:49: unexpected symbol near ','
[16/10/2012 02:24:06] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/advanceTaskSystem.lua
[16/10/2012 02:24:06] data/npc/scripts/advanceTaskSystem.lua:49: unexpected symbol near ','

its only this "errors"
but i dont see "writes" above teleports... ;/ i dont know why >.<

ss :
its how i see it :
11gluu0.jpg

i dont fcking see this stupid titles...
 
what interval in globalevents.xml = 3 ?
what does mean ?

ohh i see but i got this for my script about titles

<globalevent name="text" interval="2000" script="text.lua"/>
 
I will show you all step by step.

Create a new file in globalevents/scripts: tpe.lua

Lua:
local config = {
positions = {
["Temple"] = { x = 1617, y = 1556, z = 7},
["Temple"] = { x = 1000, y = 924, z = 8},
["Temple"] = { x = 1006, y = 924, z = 8},
["! EXIT !"] = { x = 1057, y = 885, z = 7},
["5cc"] = { x = 1003, y = 996, z = 7},
["! WAR !"] = { x = 1009, y = 1002, z = 7},
["EXP"] = { x = 1199, y = 730, z = 7},
["Bomberman"] = { x = 1034, y = 1009, z = 7},
["Temple"] = { x = 1134, y = 1677, z = 7},
["! Event !"] = { x = 1036, y = 1007, z = 7},
["Temple"] = { x = 1036, y = 996, z = 7},
["Expowiska"] = { x = 1038, y = 996, z = 7},
["Questy"] = { x = 1037, y = 996, z = 7},
["Training"] = { x = 1045, y = 1002, z = 7},
["Training"] = { x = 1197, y = 732, z = 7},
["Back!"] = { x = 1196, y = 732, z = 7},
["City"] = { x = 1034, y = 1008, z = 7},
["More EXP"] = { x = 1127, y = 1677, z = 7},
["Sklepy"] = { x = 1008, y = 993, z = 7},
["Depo"] = { x = 1008, y = 992, z = 7},
["Expowiska"] = { x = 1005, y = 994, z = 7},
["Training"] = { x = 1005, y = 992, z = 7},
["Eventy"] = { x = 1008, y = 994, z = 7},
["! Exit !"] = { x = 919, y = 1354, z = 7},
["! Exit !"] = { x = 996, y = 1206, z = 7},
["Bomberman"] = { x = 843, y = 732, z = 6},
["Tetris"] = { x = 845, y = 732, z = 6},
["Football"] = { x = 847, y = 732, z = 6},
["! Exit !"] = { x = 848, y = 722, z = 6},
["! Exit !"] = { x = 887, y = 1186, z = 7},
["! Exit !"] = { x = 822, y = 1227, z = 7},
["! More !"] = { x = 1883, y = 1650, z = 7},
["Start EXP"] = { x = 998, y = 999, z = 7},
["Snake"] = { x = 843, y = 723, z = 6},
["Kasyno"] = { x = 845, y = 723, z = 6},
["H Boost"] = { x = 996, y = 986, z = 7},
["M Boost"] = { x = 996, y = 985, z = 7}, 
["EXIT"] = { x = 1151, y = 1243, z = 7},
["Witamy!"] = { x = 1158, y = 1311, z = 7},
["! NEW !"] = { x = 1613, y = 1560, z = 7},
["I ROOM"] = { x = 1919, y = 1688, z = 7},
["II ROOM"] = { x = 1920, y = 1688, z = 7},
["III ROOM"] = { x = 1921, y = 1688, z = 7},
["Questy"] = { x = 1005, y = 993, z = 7},
["Hardcore"] = { x = 978, y = 924, z = 8},
["Hardcore"] = { x = 1005, y = 990, z = 7},
["Use Me"] = { x = 1149, y = 1309, z = 8},
["BOSSY"] = { x = 1613, y = 1556, z = 7},
["! Exit !"] = { x = 1131, y = 1304, z = 8},
["! Exit !"] = { x = 979, y = 991, z = 7},
["Use Me"] = { x = 1014, y = 994, z = 7},
["Use Me"] = { x = 997, y = 1001, z = 7},
["100 PKT"] = { x = 993, y = 998, z = 7},
["<<<"] = { x = 1170, y = 1314, z = 6},
["! GO !"] = { x = 1165, y = 1314, z = 6},
["Look"] = { x = 1156, y = 1316, z = 7},
["^"] = { x = 1151, y = 1312, z = 7},
["Escape"] = { x = 1148, y = 1306, z = 7},
["Escape"] = { x = 1149, y = 1306, z = 7},
["SMS SHOOP"] = { x = 995, y = 991, z = 7}
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendAnimatedText(pos, text, math.random(5, 5))
end
return TRUE
end

Add this on globalevents.xml

Code:
<globalevent name="tpe" interval="3" script="tpe.lua"/>
 
ok dude u are my master ^^
all its good :) every 3 sec script do fly titles, but it is posible the "write" titles are stay in position ? not fly 1 per 3 seconds ?
 
Try out my effects.lua

PHP:
local texts =
{
		-- EvoUnline
        --["Teleports"] = {{x=1032, y=995, z=7}, CONST_ME_FIREWORK_YELLOW, TEXTCOLOR_GREEN},
        --["Quests"] = {{x=1035, y=995, z=7}, CONST_ME_FIREWORK_RED, TEXTCOLOR_GREEN},
        --["Trainers"] = {{x=1036, y=995, z=7}, CONST_ME_YELLOW_RINGS, TEXTCOLOR_DARKYELLOW},
		--["Raids"] = {{x=1031, y=995, z=7}, CONST_ME_ENERGYAREA, TEXTCOLOR_LIGHTBLUE},
		{"Easy",{x=273, y=2015, z=7}, CONST_ME_ENERGYAREA, TEXTCOLOR_LIGHTBLUE},
		{"Medium",{x=275, y=2015, z=7}, CONST_ME_ENERGYAREA, TEXTCOLOR_LIGHTBLUE},
		{"Hard",{x=277, y=2015, z=7}, CONST_ME_ENERGYAREA, TEXTCOLOR_LIGHTBLUE},

}
-- [X: 273] [Y: 2015] [Z: 8].

function onThink(interval, lastExecution)
        for _, param in pairs(texts) do
                doSendAnimatedText(param[2], param[1], param[4])
        end
        return true
end


Edit the names so it fits to what u want.

I hoppe it helped u , ;)
 
Back
Top