Seizure Posted July 11, 2012 Posted July 11, 2012 (edited) //===== rAthena Script ======================================= //= Warper //===== By: ================================================== //= Euphy https://rathena.svn....stom/warper.txt +current location thanks in advance~ Edited July 11, 2012 by Seizure Quote
Euphy Posted July 11, 2012 Posted July 11, 2012 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; 1 Quote
greenieken Posted August 14, 2012 Posted August 14, 2012 @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; ?? Quote
Mystery Posted August 15, 2012 Posted August 15, 2012 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 Quote
greenieken Posted August 15, 2012 Posted August 15, 2012 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. Quote
Emistry Posted August 15, 2012 Posted August 15, 2012 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; <----------------------------------- Quote
greenieken Posted August 15, 2012 Posted August 15, 2012 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? Quote
Emistry Posted August 15, 2012 Posted August 15, 2012 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; Quote
greenieken Posted August 15, 2012 Posted August 15, 2012 NPC doesnt open anymore when i add the script. Quote
Emistry Posted August 15, 2012 Posted August 15, 2012 How you add..show it....any error...show it.... Quote
yanzelph Posted September 1, 2012 Posted September 1, 2012 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 Quote
yanzelph Posted September 3, 2012 Posted September 3, 2012 (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 September 3, 2012 by yanzelph Quote
kamikaze666 Posted February 17, 2013 Posted February 17, 2013 (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 February 17, 2013 by kamikaze666 Quote
kamikaze666 Posted March 6, 2013 Posted March 6, 2013 (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 March 6, 2013 by kamikaze666 1 Quote
Question
Seizure
//===== rAthena Script =======================================
//= Warper
//===== By: ==================================================
//= Euphy
https://rathena.svn....stom/warper.txt
+current location
thanks in advance~
Edited by Seizure15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.