<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Warp</title><link>https://sourceforge.net/p/hercules/wiki/Warp/</link><description>Recent changes to Warp</description><atom:link href="https://sourceforge.net/p/hercules/wiki/Warp/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 20 Feb 2023 05:03:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hercules/wiki/Warp/feed" rel="self" type="application/rss+xml"/><item><title>Warp modified by Brynner</title><link>https://sourceforge.net/p/hercules/wiki/Warp/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="syntax"&gt;Syntax&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;warp&lt;/strong&gt; &amp;lt;x&amp;gt;, &amp;lt;y&amp;gt;; &lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;This command places (warps) the &lt;a class="" href="../currently%20attached"&gt;RID#Usage&lt;/a&gt; player on&lt;br/&gt;
given map, at given coordinates. Setting both &lt;em&gt;x&lt;/em&gt; and &lt;em&gt;y&lt;/em&gt; to 0 (zero) will&lt;br/&gt;
cause the player get placed at a random spot. If the target cell is not&lt;br/&gt;
walkable, it will cause an error and random placement. Parameter &lt;em&gt;map name&lt;/em&gt;&lt;br/&gt;
also accepts three magic names, where the &lt;em&gt;x&lt;/em&gt; and &lt;em&gt;y&lt;/em&gt; parameters are ignored:&lt;br/&gt;
"Random" for random placement on current map, "Save" and "SavePoint" will warp&lt;br/&gt;
the character to it's &lt;a class="alink" href="/p/hercules/wiki/Save%20point/"&gt;[Save point]&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Since warping causes all running scripts for the warped character to end, all&lt;br/&gt;
commands that would normally be executed after warp, &lt;strong&gt;will not get executed&lt;/strong&gt;&lt;br/&gt;
, so there should not be any other command after warp, except &lt;a class="alink" href="/p/hercules/wiki/End/"&gt;[End]&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Mes&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"OK, I'll warp you home now."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Close2&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;warp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"SavePoint"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Warps the player to his or her save point after closing the dialog.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;mes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"Thank you for bringing me all"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;mes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"these things, but not get out."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Next&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;warp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"prontera"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;XYZQUEST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;XYZQUEST&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;executed&lt;/span&gt;
&lt;span class="n"&gt;mes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"See you."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;executed&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;either&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Close&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Will warp the player to Prontera at coordinates 150,150. Note, that anything&lt;br/&gt;
past &lt;strong&gt;warp&lt;/strong&gt; will not get executed (hidden bug, because quest progress is not&lt;br/&gt;
updated).&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Category:Script Command]&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brynner</dc:creator><pubDate>Mon, 20 Feb 2023 05:03:55 -0000</pubDate><guid>https://sourceforge.netd8541743a2dabc3d1e9f6a77c0a309062a6c8058</guid></item></channel></rss>