• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Talking teleport

matti450

Member
Joined
Apr 13, 2008
Messages
507
Reaction score
24
Hello i saw many servers had teleports that pop out 3 stars so i really want that script to my own server any one that have it?
 
i got that
Code:
local config = {
positions = {
  ["Teleports"] = { x = 994, y = 995, z = 7 },
  ["Trainers"] = { x = 995, y = 995, z = 7 },
  ["Tempel"] = { x = 1035, y = 998, z = 7 },
  ["Tempel"] = { x = 1745, y = 1988, z = 6 },
  ["Tempel"] = { x = 2094, y = 2415, z = 5 },
  ["Tempel"] = { x = 1745, y = 1988, z = 6 },
  ["Shops"] = { x = 1006, y = 995, z = 7 },
  ["Train II"] = { x = 1747, y = 1988, z = 6 },
  ["Temple"] = { x = 1745, y = 1988, z = 6 },
  ["Tempel"] = { x = 1035, y = 998, z = 7 },
  ["Events"] = { x = 999, y = 995, z = 7 },
  ["PvP Arena"] = { x = 1000, y = 995, z = 7 },
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
  for text, pos in pairs(config.positions) do
   doSendMagicEffect(pos, math.random(37,37)) <-----? here or what
  doSendAnimatedText(pos, text, math.random(133, 134))
  end
  return TRUE
end
 
Yes, instead of math.random(37,37), if you want it to send 2 magic effects, you can add another line.
ok ok now i get it but what do i type? in that link you gave me it says Const_me_stun

doSendMagicEffect(pos, math.random(37,37))
doSendMagicEffect(pos, math.random(37,37)) <---- here i want thoose stars so what chould i type in it?
 
ok ok now i get it but what do i type? in that link you gave me it says Const_me_stun

doSendMagicEffect(pos, math.random(37,37))
doSendMagicEffect(pos, math.random(37,37)) <---- here i want thoose stars so what chould i type in it?

Change line to
Code:
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])

And then add random effects to the effects variable, like:
Code:
effects = {
          CONDITION_PARAM_DELAYED,
          CONST_ME_STUN,
          CONST_ME_POFF
}
 
Change line to
Code:
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])

And then add random effects to the effects variable, like:
Code:
effects = {
          CONDITION_PARAM_DELAYED,
          CONST_ME_STUN,
          CONST_ME_POFF
}
can you do one to me so i can see how you did cant really take it in my stupid brain ^^

local config = {
positions = {
["Teleports"] = { x = 994, y = 995, z = 7 },
["Trainers"] = { x = 995, y = 995, z = 7 },
["Tempel"] = { x = 1035, y = 998, z = 7 },
["Tempel"] = { x = 1745, y = 1988, z = 6 },
["Tempel"] = { x = 2094, y = 2415, z = 5 },
["Tempel"] = { x = 1745, y = 1988, z = 6 },
["Shops"] = { x = 1006, y = 995, z = 7 },
["Train II"] = { x = 1747, y = 1988, z = 6 },
["Temple"] = { x = 1745, y = 1988, z = 6 },
["Tempel"] = { x = 1035, y = 998, z = 7 },
["Events"] = { x = 999, y = 995, z = 7 },
["PvP Arena"] = { x = 1000, y = 995, z = 7 },
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(37,37)) <-----? here or what
doSendAnimatedText(pos, text, math.random(133, 134))
end
return TRUE
end
 
Code:
  local config = {
    positions = {
    ["Teleports"] = { x = 994, y = 995, z = 7 },
    ["Trainers"] = { x = 995, y = 995, z = 7 },
    ["Tempel"] = { x = 1035, y = 998, z = 7 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 2094, y = 2415, z = 5 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Shops"] = { x = 1006, y = 995, z = 7 },
    ["Train II"] = { x = 1747, y = 1988, z = 6 },
    ["Temple"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 1035, y = 998, z = 7 },
    ["Events"] = { x = 999, y = 995, z = 7 },
    ["PvP Arena"] = { x = 1000, y = 995, z = 7 },
    },

    effects = {
      CONST_ME_MAGIC_BLUE,
      CONST_ME_MAGIC_GREEN,
      CONST_ME_MORTAREA,
      CONST_ME_STUN
    },

    colors = {
      TEXTCOLOR_WHITE,
      TEXTCOLOR_ORANGE,
      TEXTCOLOR_GREEN,
      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 TRUE
  end

I replaced your positions with my script.
My script has random text color and more effects.
 
Code:
  local config = {
    positions = {
    ["Teleports"] = { x = 994, y = 995, z = 7 },
    ["Trainers"] = { x = 995, y = 995, z = 7 },
    ["Tempel"] = { x = 1035, y = 998, z = 7 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 2094, y = 2415, z = 5 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Shops"] = { x = 1006, y = 995, z = 7 },
    ["Train II"] = { x = 1747, y = 1988, z = 6 },
    ["Temple"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 1035, y = 998, z = 7 },
    ["Events"] = { x = 999, y = 995, z = 7 },
    ["PvP Arena"] = { x = 1000, y = 995, z = 7 },
    },

    effects = {
      CONST_ME_MAGIC_BLUE,
      CONST_ME_MAGIC_GREEN,
      CONST_ME_MORTAREA,
      CONST_ME_STUN
    },

    colors = {
      TEXTCOLOR_WHITE,
      TEXTCOLOR_ORANGE,
      TEXTCOLOR_GREEN,
      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 TRUE
  end

I replaced your positions with my script.
My script has random text color and more effects.

i will test it and see if it works thx alot so far
 
Code:
  local config = {
    positions = {
    ["Teleports"] = { x = 994, y = 995, z = 7 },
    ["Trainers"] = { x = 995, y = 995, z = 7 },
    ["Tempel"] = { x = 1035, y = 998, z = 7 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 2094, y = 2415, z = 5 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Shops"] = { x = 1006, y = 995, z = 7 },
    ["Train II"] = { x = 1747, y = 1988, z = 6 },
    ["Temple"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 1035, y = 998, z = 7 },
    ["Events"] = { x = 999, y = 995, z = 7 },
    ["PvP Arena"] = { x = 1000, y = 995, z = 7 },
    },

    effects = {
      CONST_ME_MAGIC_BLUE,
      CONST_ME_MAGIC_GREEN,
      CONST_ME_MORTAREA,
      CONST_ME_STUN
    },

    colors = {
      TEXTCOLOR_WHITE,
      TEXTCOLOR_ORANGE,
      TEXTCOLOR_GREEN,
      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 TRUE
  end

I replaced your positions with my script.
My script has random text color and more effects.
Nice it works perfect thx alot i have another script that i dont know how to make it work can you maybe take a look repp +++
 
Oh okay, well the scripts are good as they can get with 0.3 :P If you had 1.x, i will be able to optimize them :P
 
Oh okay, well the scripts are good as they can get with 0.3 :p If you had 1.x, i will be able to optimize them :p
it is this one
<globalevent name="heal" interval="8000" event="script" value="heal.lua"/>

--[[
Idea by Pitufo
Script by Shawak
]]--

local config = {

healHP = 1000,
healPlayers = "yes",
healMonsters = "yes",
}

local healthArea = {

fromX = 1001,
fromY = 995,
fromZ = 7,
toX = 1009,
toY = 1002,
toZ = 7,

}

function onThink(cid, interval, lastExecution)
for x = healthArea.fromX, healthArea.toX do
for y = healthArea.fromY, healthArea.toY do
for z = healthArea.fromZ, healthArea.toZ do
local pos = {x=x, y=y, z=z, stackpos = 253}
local thing = getThingfromPos(pos)
doSendMagicEffect(pos, 12)
if thing.itemid > 0 then
if(isPlayer(thing.uid) == TRUE and string.lower(config.healPlayers) == "yes") then
doCreatureAddHealth(thing.uid, config.healHP)
if string.lower(getConfigValue("showHealingDamage")) == "yes" then
doSendAnimatedText(pos, "+"..config.healHP.."", 18)
end
elseif(isMonster(thing.uid) == TRUE and string.lower(config.healMonsters) == "yes") then
doCreatureAddHealth(thing.uid, config.healHP)
if string.lower(getConfigValue("showHealingDamageForMonsters")) == "yes" then
doSendAnimatedText(pos, "+"..config.healHP.."", 18)
end
end
end
end
end
end
return TRUE
end
 
Back
Top