wlj
retierd
- Joined
- Jan 7, 2009
- Messages
- 1,201
- Reaction score
- 1
Hiho guys well i think this guy sude put out his script to newbis.
And also i did change some so rep him and might me if you think i need it
Here we go..
start with Globalevents.xml
now to data/globalevents/scripts make a new effect.lua file remember .lua or it will bug!
in the file you need to past this...
And also i did change some so rep him and might me if you think i need it
Here we go..
start with Globalevents.xml
Code:
<globalevent name="tpeffect" interval="1" script="effect.lua"/>
now to data/globalevents/scripts make a new effect.lua file remember .lua or it will bug!
in the file you need to past this...
Lua:
local config = {
positions = {
["Teleports"] = { x = 993, y = 996, z = 7 },
["Deport"] = { x = 1006, y = 996, z = 7 },
["Trainer"] = { x = 993, y = 1000, z = 7 },
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
CONST_ME_MORTAREA,
CONST_ME_FIREWORK_RED,
CONST_ME_YELLOW_RINGS,
CONST_ANI_ENERGYBALL,
CONST_ME_HOLYDAMAGE,
CONST_ME_YELLOWENERGY,
CONST_ME_PURPLEENERGY
},
colors = {
TEXTCOLOR_WHITE,
TEXTCOLOR_PLATINUMBLUE,
TEXTCOLOR_ORANGE,
TEXTCOLOR_GREEN,
TEXTCOLOR_PURPLE,
TEXTCOLOR_BLUE
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
end
return LUA_NO_ERROR
end
Code:
credit Wlj, Rescripter, new effect adder. Chojrak idé and also scripted some of it.
thats all cya guys