<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=PC_Setpos</id>
		<title>PC Setpos - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=PC_Setpos"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=PC_Setpos&amp;action=history"/>
		<updated>2026-05-04T05:47:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=PC_Setpos&amp;diff=66&amp;oldid=prev</id>
		<title>Mysterious: Created page with &quot;==Syntax==  int '''pc_setpos'''(struct map_session_data* sd, unsigned short mapindex, int x, int y, uint8 clrtype);  ==Parameters== {| class=&quot;wikitable&quot; border=&quot;1&quot; !Parameter ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=PC_Setpos&amp;diff=66&amp;oldid=prev"/>
				<updated>2013-01-13T03:24:01Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax==  int &amp;#039;&amp;#039;&amp;#039;pc_setpos&amp;#039;&amp;#039;&amp;#039;(struct map_session_data* sd, unsigned short mapindex, int x, int y, uint8 clrtype);  ==Parameters== {| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot; !Parameter ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Syntax==&lt;br /&gt;
 int '''pc_setpos'''(struct map_session_data* sd, unsigned short mapindex, int x, int y, uint8 clrtype);&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Parameter&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|'''sd'''||Session data of the player to move.&lt;br /&gt;
|-&lt;br /&gt;
|'''mapindex'''||Map index of the target map.&lt;br /&gt;
|-&lt;br /&gt;
|'''x'''||X-coordinate on the target map.&lt;br /&gt;
|-&lt;br /&gt;
|'''y'''||Y-coordinate on the target map.&lt;br /&gt;
|-&lt;br /&gt;
|'''clrtype'''||Visual effect upon removing the player from it's current position (clear type).&lt;br /&gt;
* 0 - Character fades out.&lt;br /&gt;
* 1 - Character will be displayed as dead.&lt;br /&gt;
* 2 - Re-spawn animation.&lt;br /&gt;
* 3 - Teleport animation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Changes position of a player to a given map and coordinates. If the target map is on different server, it will forward the client to it. If x and y are 0 (zero), random coordinates will be chosen.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
 pc_setpos(sd, mapindex_name2id(MAP_PAYON), 0, 0, 0);&lt;br /&gt;
Warps the player ''sd'' to payon on random coordinates without a warp-out effect. Note, that MAP_PAYON is a source define, which resolves to &amp;quot;payon&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Source Functions]]&lt;/div&gt;</summary>
		<author><name>Mysterious</name></author>	</entry>

	</feed>