Jump to content
  • 0

Request(rA warper with save function)


Question

15 answers to this question

Recommended Posts

Posted

Edit this part:

menu    "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save,
   " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
   " ~ Guild Castles",Castles, " ~ Special Areas",Special;
   if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
    else warp lastwarp$,lastwarpx,lastwarpy;
   close;
Save:
   getmapxy(.@map$,.@x,.@y,0);
   savepoint .@map$,.@x,.@y;
   dispbottom "Save point changed.";
   close;

  • Upvote 1
Posted

@euphy

should i just change:

menu "Last Warp ^777777["+lastwarp$+"]^000000",-,
" ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
" ~ Guild Castles",Castles, " ~ Special Areas",Special;
if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
 else warp lastwarp$,lastwarpx,lastwarpy;
close;

to:

menu    "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save,
    " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
    " ~ Guild Castles",Castles, " ~ Special Areas",Special;
    if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
		    else warp lastwarp$,lastwarpx,lastwarpy;
    close;
Save:
    getmapxy(.@map$,.@x,.@y,0);
    savepoint .@map$,.@x,.@y;
    dispbottom "Save point changed.";
    close;

??

Posted

isnt the script already got what you want ?

menu "Last Warp ^777777["+lastwarp$+"]^000000",-,      <-----------------------------------
" ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
" ~ Guild Castles",Castles, " ~ Special Areas",Special;
if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
 else warp lastwarp$,lastwarpx,lastwarpy;           <-----------------------------------

Posted

Try this..

and please be specify with what you want next time.



menu    "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save," ~ Died",LastDie,
		    " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
		    " ~ Guild Castles",Castles, " ~ Special Areas",Special;
		    if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
						    else warp lastwarp$,lastwarpx,lastwarpy;
		    close;

LastDie:
if (@diemap$ == "") dispbottom "You have not Died anywhere yet.";
else warp @diemap$,@diex,@diey;
end;

OnPCDieEvent:
getmapxy(@diemap$,@diex,@diey,0);
end;

Posted

Edit this part:

menu "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save,
" ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
" ~ Guild Castles",Castles, " ~ Special Areas",Special;
if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
else warp lastwarp$,lastwarpx,lastwarpy;
close;
Save:
getmapxy(.@map$,.@x,.@y,0);
savepoint .@map$,.@x,.@y;
dispbottom "Save point changed.";
close;

it's not working npc doesnt do anything after applying it need help need this too to save my current position
Posted (edited)

using rathena's default npc warper script

how can i add a save menu to save my current location thanks in advance

up

up

up

any ideas on this

up

Edited by yanzelph
Posted (edited)

Edit this part:

menu    "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save,
    " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
    " ~ Guild Castles",Castles, " ~ Special Areas",Special;
    if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
	    else warp lastwarp$,lastwarpx,lastwarpy;
    close;
Save:
    getmapxy(.@map$,.@x,.@y,0);
    savepoint .@map$,.@x,.@y;
    dispbottom "Save point changed.";
    close;

 not working on my end script is throwing error

 

Earlier (No error)

menu	"Last Warp ^777777["+lastwarp$+"]^000000",-, " ~ Shopping",Shopping, 
	" ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
	" ~ Guild Castles",Castles, " ~ Special Areas",Special;

	if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
		else warp lastwarp$,lastwarpx,lastwarpy;
	close;

After Save Point (script changes)

 

menu    "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save,
    " ~ Shopping",Shopping, " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
    " ~ Guild Castles",Castles, " ~ Special Areas",Special;
    if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
	    else warp lastwarp$,lastwarpx,lastwarpy;
    close;
Save:
    getmapxy(.@map$,.@x,.@y,0);
    savepoint .@map$,.@x,.@y;
    dispbottom "Save point changed.";
    close;

 

 

Error

[Error]: 
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/gefenia.txt
script error on npc/custom/warper.txt line 21
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/glastheim.txt
    need '('
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/gld_dun.txt
    16 : 
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/gld_dunSE.txt
    17 : // --------------------------------------------------
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/gon_dun.txt
    18 : //	Main Menu:
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/ice_dun.txt
    19 : // --------------------------------------------------
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/in_sphinx.txt
    20 : 
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/iz_dun.txt
*   21 : menu    "Last Warp ^777777["+lastwarp$+"]^000000",-," ~ Save",Save','
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/juperos.txt
    22 :     " ~ Shopping",Shopping, " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/kh_dun.txt
    23 :     " ~ Guild Castles",Castles, " ~ Special Areas",Special;
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/lhz_dun.txt
    24 :     if (lastwarp$ == "") dispbottom "You have not warped anywhere yet.";
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/lou_dun.txt
    25 : 	    else warp lastwarp$,lastwarpx,lastwarpy;
[Status]: Loading NPC file: npc/pre-re/mobs/dungeons/mag_dun.txt
    26 :     close;
Edited by kamikaze666
Posted (edited)

works now thanks Euphy

 

changed it a bit to suit my needs

menu	"Last Warp ^777777["+@diemap$+"]^000000",-, " ~ Save",L_Save,
	" ~ Shopping Mall",Shopping, " ~ Towns",Towns, " ~ Fields",Fields, " ~ Dungeons",Dungeons,
	" ~ Guild Castles",Castles, " ~ Special Areas",Special;
	if (@diemap$ == "") dispbottom "You have not died anywhere yet.";
		else warp @diemap$,@diex,@diey;
	OnPCDieEvent:
	getmapxy(@diemap$,@diex,@diey,0);
	close;

L_Save:
    getmapxy(.@map$,.@x,.@y,0);
    savepoint .@map$,.@x,.@y;
    dispbottom "Save point changed.";
    close;

 

 

Edited by kamikaze666
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...