Jump to content
  • 0

Request(rA warper with save function)


Seizure

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   5
  • Joined:  06/17/12
  • Last Seen:  

//===== rAthena Script =======================================

//= Warper

//===== By: ==================================================

//= Euphy

https://rathena.svn....stom/warper.txt

+current location

thanks in advance~

Edited by Seizure
Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/17/17
  • Last Seen:  

I can't click the NPC. Nothing show up

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   5
  • Joined:  06/17/12
  • Last Seen:  

thanks! /thx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

@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;

??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

What do you wanna do greenieken? What do you want changed in the snippet above? o_o I don't really understand what you're trying to ask for changing with o_o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

What i want to do is that, when i click the last warp menu it will warp me to the last map + coordinates that i last went to.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;           <-----------------------------------

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

No. It will warp you in the last map but in the coordinates of the map that is in the script, not your last coordinates after you die. got what i mean?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

NPC doesnt open anymore when i add the script.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

How you add..show it....any error...show it....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  08/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  08/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  92
  • Reputation:   8
  • Joined:  01/11/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  92
  • Reputation:   8
  • Joined:  01/11/13
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...