Fabi Marzan
Well-Known Member
- Joined
- Aug 31, 2020
- Messages
- 135
- Solutions
- 6
- Reaction score
- 67
Good, I have a script that makes you teleport when you kill a monster, but it only teleports one player, what I want to do is if they are in the right area all the players are teleported.
It's a revscript:
As it says here:
When you kill the boss, it teleports you, how can I convert it to an area that teleports them to that same location.
The seen they use from, topos, i tried to do it like this:
From here I don't know how to accommodate it.
It's a revscript:
Lua:
local creatureevent = CreatureEvent("onDeath_teleportKiller")
function creatureevent.onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
killer:teleportTo(Position(10275, 13607, 6))
killer:setDirection(DIRECTION_SOUTH)
killer:popupFYI("Congratulations, you have killed the Amazona to get here we give you a +1 [Boss Points].")
killer:getPosition():sendAnimatedText(TEXTCOLOR_LIGHTGREEN, "+1 Boss")
killer:getPosition():sendMagicEffect(28)
return true
end
creatureevent:register()
As it says here:
Code:
killer:teleportTo(Position(10275, 13607, 6))
When you kill the boss, it teleports you, how can I convert it to an area that teleports them to that same location.
The seen they use from, topos, i tried to do it like this:
Code:
local config = {
[1] = {
from_pos = {x = 1003, y = 1007, z = 6},
to_pos = {x = 1006, y = 1009, z = 6}
}
}
From here I don't know how to accommodate it.