SphereCommunity
Instant teleport player - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Instant teleport player (/Thread-Instant-teleport-player)

Pages: 1 2


Instant teleport player - artexd - 09-19-2014 05:18 AM

How to instant teleport a player in an event?

When I make this by character creation then it works:
[FUNCTION f_onchar_create]
SRC.p = 2672,1537,1,0

But when I try this in an region event:
[REGIONTYPE r_abc]
ON=@Enter
SRC.P = 4966,5,1,0
Then nothing happens. Just triggers the @enter event of the location: 4966,5,1,0.


RE: Instant teleport player - Extreme - 09-19-2014 06:33 AM

SRC.GO


RE: Instant teleport player - artexd - 09-19-2014 08:26 AM

SRC.GO makes this flame effect, and I don't want this.


RE: Instant teleport player - Extreme - 09-19-2014 08:39 AM

Sphere.ini

// Teleport effect for GMs and players. Setting 0 disables the effect
TeleportEffectNPC=0372a
TeleportEffectPlayers=0372a
TeleportEffectStaff=03709
TeleportSoundNPC=01fe
TeleportSoundPlayers=01fe
TeleportSoundStaff=01f3


RE: Instant teleport player - artexd - 09-19-2014 08:48 AM

O!
Thanks.


RE: Instant teleport player - XuN - 09-19-2014 08:09 PM

Or ... src.p=x,y,z,m and src.update to force the visual update.


RE: Instant teleport player - artexd - 09-19-2014 08:21 PM

That works the same...
Nothing happens or the screen just blinks for a second and I'm still in the first location.
I use it like this:
[REGIONTYPE r_someregion]
ON=@Enter
SRC.GO = Location
And I tryied:
SRC.GO = 1555,1555,1,0
also nothing.
When I type in game .Go Location it works fine!

src.p = 4966,5,15,0
src.update

It also just blinks...
Maybe there is something wrong in the RegionType @Enter event.


RE: Instant teleport player - MrX - 09-19-2014 11:19 PM

src.p and src.update


RE: Instant teleport player - artexd - 09-20-2014 12:42 AM

Like I said, already tryied...
This works in another events but not here


RE: Instant teleport player - Coruja - 09-20-2014 02:06 AM

why are you trying to teleport the player after it enter on the region?
you can simply teleport it directly to the location you want instead make it enter this region and then teleport it to another location

but anyway try using return 1 or return 0
Code:
[REGIONTYPE r_someregion]
ON=@Enter
SRC.GO Location
return 1