summaryrefslogtreecommitdiff
path: root/npc/custom/warper.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-28 08:38:28 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-28 08:38:28 +0000
commite9d2315e89adb7610a67d610bb99fd78fd403c37 (patch)
tree55b9666e1a9c5e8739b36f9cdd3ace5576298e0d /npc/custom/warper.txt
parent382f0b77bf009b938e578286b1048ccf8038d443 (diff)
downloadhercules-e9d2315e89adb7610a67d610bb99fd78fd403c37.tar.gz
hercules-e9d2315e89adb7610a67d610bb99fd78fd403c37.tar.bz2
hercules-e9d2315e89adb7610a67d610bb99fd78fd403c37.tar.xz
hercules-e9d2315e89adb7610a67d610bb99fd78fd403c37.zip
* Added a small portion of official Malangdo Episode scripts.
* Updated quest_db with translated Malangdo entries. * Fixed strmobinfo() to output empty strings for 'name' instead of zeros (partly follow-up r17055). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17056 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom/warper.txt')
-rw-r--r--npc/custom/warper.txt19
1 files changed, 12 insertions, 7 deletions
diff --git a/npc/custom/warper.txt b/npc/custom/warper.txt
index f374f9e9a..b0fb07a66 100644
--- a/npc/custom/warper.txt
+++ b/npc/custom/warper.txt
@@ -45,24 +45,29 @@ menu "Last Warp ^777777["+lastwarp$+"]^000000",-,
function Go {
warp getarg(0),getarg(1,0),getarg(2,0);
getmapxy(lastwarp$,lastwarpx,lastwarpy,0);
- close; }
+ close;
+}
function Disp {
set @menu$,"";
if(getarg(0)=="") {
set @menu$,getarg(1);
- return; }
+ return;
+ }
for(set .@i,getarg(1); .@i<=getarg(2); set .@i,.@i+1)
set @menu$, @menu$+getarg(0)+" "+.@i+":";
- return; }
+ return;
+}
function Pick {
if(getarg(0)=="") {
set .@i, select(@menu$);
- warp getarg(.@i),@c[.@i*2],@c[.@i*2+1]; }
- else {
+ warp getarg(.@i),@c[.@i*2],@c[.@i*2+1];
+ } else {
set .@i, select(@menu$)-getarg(1,0);
- warp getarg(0)+((.@i<10)?"0":"")+.@i,@c[.@i*2],@c[.@i*2+1]; }
+ warp getarg(0)+((.@i<10)?"0":"")+.@i,@c[.@i*2],@c[.@i*2+1];
+ }
getmapxy(lastwarp$,lastwarpx,lastwarpy,0);
- close; }
+ close;
+}
// --------------------------------------------------
Towns: