Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Instant teleport player
Author Message
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #1
Instant teleport player
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.
09-19-2014 05:18 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Instant teleport player
SRC.GO

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-19-2014 06:33 AM
Find all posts by this user Like Post Quote this message in a reply
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #3
RE: Instant teleport player
SRC.GO makes this flame effect, and I don't want this.
09-19-2014 08:26 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Instant teleport player
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

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-19-2014 08:39 AM
Find all posts by this user Like Post Quote this message in a reply
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #5
RE: Instant teleport player
O!
Thanks.
09-19-2014 08:48 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #6
RE: Instant teleport player
Or ... src.p=x,y,z,m and src.update to force the visual update.
09-19-2014 08:09 PM
Find all posts by this user Like Post Quote this message in a reply
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #7
RE: Instant teleport player
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.
(This post was last modified: 09-19-2014 08:25 PM by artexd.)
09-19-2014 08:21 PM
Find all posts by this user Like Post Quote this message in a reply
MrX
Apprentice
*

Posts: 16
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Aug 2014
Reputation: 0



Post: #8
RE: Instant teleport player
src.p and src.update
09-19-2014 11:19 PM
Find all posts by this user Like Post Quote this message in a reply
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #9
RE: Instant teleport player
Like I said, already tryied...
This works in another events but not here
09-20-2014 12:42 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #10
RE: Instant teleport player
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
09-20-2014 02:06 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)