Jump to content

Draundenth

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by Draundenth

  1. Hello, i just figure out how disable vending on all map and enable in certain cells by this script:

    -	script	prontera_vending	-1,{
    OnInit:
    setcell "prontera", 0,0,     400,400, cell_novending,1;
    setcell "prontera", 147,170, 147,130, cell_novending,0;
    setcell "prontera", 164,170, 164,130, cell_novending,0;
    end;
    }
    
    prontera	mapflag	nobranch

    now i try to add 4 signs npc:

    1.
    name: Vending Area Start 
    cords: prontera,147, 171, 7
    
    2.
    name: Vending Area Start 
    cords: prontera,164, 171, 7
    
    3.
    name: Vending Area End 
    cords: prontera,147, 130, 7
    
    4.
    name: Vending Area End 
    cords: prontera,164, 130, 7

     

    Just staying sign if somone click it nothing happen, just for info for people where they can vending and where not.

     

    @Edit

     

    Ok i figured out how do that this is script:

    -	script	prontera_vending	-1,{
    OnInit:
    setcell "prontera", 0,0,     400,400, cell_novending,1;
    setcell "prontera", 147,170, 147,130, cell_novending,0;
    setcell "prontera", 164,170, 164,130, cell_novending,0;
    end;
    }
    
    prontera,147,171,5	script	Vending Area Start#01	837,{
    }
    
    prontera,164,171,5	script	Vending Area Start#02	837,{
    }
    
    prontera,147,130,5	script	Vending Area End#01	837,{
    }
    
    prontera,164,130,5	script	Vending Area End#02	837,{
    }
    
    prontera	mapflag	nobranch

     

  2. ok i fix that, i do what Radian said thanks so much for help, and i change this:

    OnInit:
    	.spirit[Job_Alchemist] = SL_ALCHEMIST;
    	.spirit[Job_Monk] = SL_MONK;
    	.spirit[Job_Star_Gladiator] = SL_STAR;
    	.spirit[Job_Sage] = SL_SAGE;
    	.spirit[Job_Crusader] = SL_CRUSADER;
    	.spirit[Job_SuperNovice] = SL_SUPERNOVICE;
    	.spirit[Job_Knight] = SL_KNIGHT;
    	.spirit[Job_Wizard] = SL_WIZARD;
    	.spirit[Job_Priest] = SL_PRIEST;
    	.spirit[Job_Bard] = .spirit[Job_Dancer] = SL_BARDDANCER;
    	.spirit[Job_Rogue] = SL_ROGUE;
    	.spirit[Job_Assassin] = SL_ASSASIN;
    	.spirit[Job_Blacksmith] = SL_BLACKSMITH;
    	.spirit[Job_Hunter] = SL_HUNTER;
    	.spirit[Job_Soul_Linker] = SL_SOULLINKER;
    	end;
    }

    into this:

    OnInit:
    	.spirit[Job_Alchemist] = 445;
    	.spirit[Job_Monk] = 447;
    	.spirit[Job_Star_Gladiator] = 448;
    	.spirit[Job_Sage] = 449;
    	.spirit[Job_Crusader] = 450;
    	.spirit[Job_SuperNovice] = 451;
    	.spirit[Job_Knight] = 452;
    	.spirit[Job_Wizard] = 453;
    	.spirit[Job_Priest] = 454;
    	.spirit[Job_Bard] = .spirit[Job_Dancer] = 455;
    	.spirit[Job_Rogue] = 456;
    	.spirit[Job_Assassin] = 457;
    	.spirit[Job_Blacksmith] = 458;
    	.spirit[Job_Hunter] = 460;
    	.spirit[Job_Soul_Linker] = 461;
    	end;
    }

    now all work perectly ^^

  3. Hello i'm using this warpra script

    //===== rAthena Script ============================================
    //= Quest Warper Script
    //===== By: =======================================================
    //= DZeroX, Darkchild, Neouni
    //===== Current Version: ==========================================
    //= 2.3
    //===== Compatible With: ==========================================
    //= rAthena Project
    //===== Description: ==============================================
    //= Warper that works only after locations are unlocked.
    //===== Additional Comments: ======================================
    //= 1.0 - NPCs created
    //= 1.1 - Add Dungeons by sturm
    //= 1.2 - Add All char in account unlocked by ace_killer
    //= 1.3 - Add new 7 towns and 7 dungeons by escoteiro
    // - Correct bug jawaii town by escoteiro
    // - Remove some excessive warpras by escoteiro
    //= 1.4 - Rewrite of the Warpa system [Neouni]
    // - Corrected some bugs caused by autoconverting the old script
    //= 1.4a - Rewrite of menu to be custom for each player [Neouni]
    // - Dungeon listing rewrite
    // - Town listing rewrite
    // - GameMaster can Customise Main menu
    //= 1.4b - Pricing round [Neouni]
    // - GM menu added for pricing
    // - Town Warp pricing tags added
    // - Dungeon Warp pricing tags added
    //= 1.5 - storage functions pricing [Neouni]
    // - storage pricing added
    // - kafra points setting added
    // - kafra storage code security added
    // - Healing scripts pricing added
    // - Heal Part script added
    //= 1.6 - Dungeon warp [Neouni] (beta only)
    // - added option to add a extra fee for going down deeper into dungeon
    // partly by rebuilding the dungeon warping into variable menu's
    //= 1.6a - alot of fixes for beta release [Neouni] (public release)
    // - fixed syntax problems
    // - fixed missing pyramid gats in @DGat$ array
    // - removed the culver level 5 that didn't exist
    //= 1.7 - Readability of Dungeon menu building increased [Neouni]
    // - Thanatos Tower & Luoyang Dungeon added
    //= 1.8 - changed around unlock variables [Neouni]
    // - Moved warp variables to mark what you have unlocked to an binary array in login based permanent variable
    // (warp variables are saved in login database, so all charservers have these unlocked)
    // - Town Warp unlock array max 21/(unknown max) items used instead of max account #variables 32 !
    // - Dungeon Warp unlock array 28/(unknown max) items used instead of max account #variables 32 !
    // - (max login ##variables = 16, i used 3)
    // - old variables are cleared on next save
    // - Extra Variable clear added for every character, just in case (request by Terces)
    //= 1.8a - Show amount of users on map [Neouni]
    //= 1.8b - Small typo fixed in stampcard script [Neouni]
    //= 1.9 - Making it more edit friendly [Neouni]
    // - Made Dungeon warp arrays more readable & editable (QWS_Darray)
    // - Made town warp arrays more readable & editable (QWS_Tarray)
    //= 2.0 - Special Warp menu added [Neouni]
    // - when all towns and dungeons are collected a new option on the main menu will show
    // - it will only show when you setup the mapname of the warp !
    //= 2.0a - Dungeon Level Limit & Split dungeon fees
    // - Limits dungeon based on Depth, access special setup menu thru GM-Menu
    // - Dungeon fees split up based on  Basic , Advanced & Overseas
    // - Old Dungeon fee system removed, all dungeon fees now set to 0
    //= 2.0b - Special warpname menu option name bug fixed
    //= 2.1 - Updated names to fall within retrictions. [L0ne_W0lf]
    //= 2.2 - #kafra_code is now stored as is. [brianluau]
    //= 2.3 - Added new town maps, cleanup, and removed pre-1.8 backwards fix. [Euphy]
    //=================================================================
    
    //========================Function=&=Script========================
    
    function	script	Q_Warpra	{
    	mes "[Warpra]";
    	mes "Hello,";
    	mes "I can warp you to any town or dungeon, but you need to unlock them first by visiting us.";
    	mes "What do you need?";
    	
    	if(getarg(0) == 0) callfunc "QWS_MMarray",0;
    	if(getarg(0) == 1) callfunc "QWS_MMarray",1;
    	
    	set @MMenu,select(@Mmenulist$[0],@Mmenulist$[1],@Mmenulist$[2],@Mmenulist$[3],@Mmenulist$[4],@Mmenulist$[5],@Mmenulist$[6],@Mmenulist$[7],@Mmenulist$[8],@Mmenulist$[9],@Mmenulist$[10],@Mmenulist$[11]);
    
    	switch(@Mmenuref[@MMenu-1]+1){
    	case 1: goto GM_Menu;
    	case 2:
    		warp $QW_SP_WarpMap$, $QW_SP_WarpX, $QW_SP_WarpY;
    		close2;
    		debugmes "Please check your special warp menu settings on the Warpra.";
    		end;
    	case 3: goto L_town;
    	case 4: goto L_dungeon;
    	case 5: goto L_FewWarps;
    	case 6: goto L_NoUnlock;
    	case 7: goto L_heal_Full;
    	case 8: goto L_heal_Part;
    	case 9: goto L_Storage;
    	case 10: goto L_GStorage;
    	case 11:
    	default:
    		goto L_end;
    	}
    
    //=====================GM-Menu=Functions===========================
    
    GM_Menu:
    	next;
    	mes "Town warping = "+(($QW_TW_OFF)?"^FF0000 Off":"^00FF00 On")+"^000000";
    	mes "Dungeon warping = "+(($QW_DW_OFF)?"^FF0000 Off":"^00FF00 On")+"^000000";
    	mes "Dungeon Depth limit is "+(($QW_DL)?"^00FF00 On":"^FF0000 Off")+"^000000";
    	mes "If on Dungeon Depth limit is set to ^0000FF"+$QW_DDL+"^000000";
    	mes "Show Map Users = "+(($QW_MapUserShow)?"^00FF00 On":"^FF0000 Off")+"^000000";
    
    	if ($QW_HF) mes "Healing full = ^00FF00 On ^000000";
    	if ($QW_HP) mes "Healing partly = ^00FF00 On ^000000";
    	if (!$QW_HF && !$QW_HP) mes "Healing = ^FF0000 Off ^000000";
    
    	mes "Storage = "+(($QW_Stor)?"^00FF00 On":"^FF0000 Off")+"^000000";
    	mes "Guild Storage = "+(($QW_GStor)?"^00FF00 On":"^FF0000 Off")+"^000000";
    	mes "Kafra points collect = "+(($QW_KPoint)?"^00FF00 On":"^FF0000 Off")+"^000000";
    
    	switch(select("Town Warping","Dungeon Warping","Dungeon Level Limit","Show Map Users","Healing full","Healing partly","Storage","Guild Storage","Kafra points collect","Set Prices","Special Warp","Exit")) {
    	case 1: set $QW_TW_OFF,($QW_TW_OFF)?0:1; goto GM_Menu;
    	case 2: set $QW_DW_OFF,($QW_DW_OFF)?0:1; goto GM_Menu;
    	case 3: goto DungeonLevelLimit;
    	case 4: set $QW_MapUserShow,($QW_MapUserShow)?0:1; goto GM_Menu;
    	case 5:
    		if ($QW_HF == 0) {
    			set $QW_HF,1;
    			set $QW_HP,0;
    		}
    		else set $QW_HF,0;
    		goto GM_Menu;
    	case 6:
    		if ($QW_HP == 0) {
    			set $QW_HP,1;
    			set $QW_HF,0;
    		}
    		else set $QW_HP,0;
    		goto GM_Menu;
    	case 7: set $QW_Stor,($QW_Stor)?0:1; goto GM_Menu;
    	case 8: set $QW_GStor,($QW_GStor)?0:1; goto GM_Menu;
    	case 9: set $QW_KPoint,($QW_KPoint)?0:1; goto GM_Menu;
    	case 10: goto Setprice;
    	case 11: goto SpecialWarpMenu;
    	default:
    		close;
    		end;
    	}
    
    //======================GM-Menu=Pricing============================
    
    Setprice:
    	if ($QW_DW_FEE != 0) set $QW_DW_FEE,0;
    	next;
    	mes "Scroll through the list to see all the options.";
    
    	mes "Basic - Warps are = "+(($QW_BW_PRICE)?"^00FF00"+$QW_BW_PRICE:"^FF0000Free")+"^000000";
    	mes "Advanced - Warps are = "+(($QW_AW_PRICE)?"^00FF00"+$QW_AW_PRICE:"^FF0000Free")+"^000000";
    	mes "Overseas - Warps are = "+(($QW_OW_PRICE)?"^00FF00"+$QW_OW_PRICE:"^FF0000Free")+"^000000";
    
    	mes "Basic Dungeon level warp fee = "+(($QW_BW_FEE)?"^00FF00"+$QW_BW_FEE:"^FF0000NO")+"^000000 zeny per level";
    	mes "Advanced Dungeon level warp fee = "+(($QW_AW_FEE)?"^00FF00"+$QW_AW_FEE:"^FF0000NO")+"^000000 zeny per level";
    	mes "Overseas Dungeon level warp fee = "+(($QW_OW_FEE)?"^00FF00"+$QW_OW_FEE:"^FF0000NO")+"^000000 zeny per level";
    
    	mes "Full Healing = "+(($QW_HF_PRICE)?"^00FF00"+$QW_HF_PRICE:"^FF0000Free")+"^000000";
    	mes "^FF0000HP ^000000Part Healing = "+(($QW_HP_H_PRICE)?"^00FF00"+$QW_HP_H_PRICE+"^000000 a point":"^FF0000Free^000000");
    	mes "^FF0000SP ^000000Part Healing = "+(($QW_HP_S_PRICE)?"^00FF00"+$QW_HP_S_PRICE+"^000000 a point":"^FF0000Free^000000");
    
    	if ($QW_S_PRICE && $QW_S_PRICE != 60) mes "Storage = ^00FF00 "+$QW_S_PRICE+" ^000000";
    	if (!$QW_S_PRICE) mes "Storage = ^FF0000 Free ^000000";
    	if ($QW_S_PRICE == 60) mes "Storage = ^0000FF Kafra Mode ^000000";
    	mes "Guild Storage = "+(($QW_GS_PRICE)?"^00FF00"+$QW_GS_PRICE:"^FF0000Free")+"^000000";
    	
    	switch(select("Basic - Warps","Advanced - Warps","Overseas - Warps","Basic Dungeon warp fee","Advanced Dungeon warp fee","Overseas Dungeon warp fee","Full Healing","Part Healing","Storage","Guild Storage","Back","Exit")) {
    	case 1:
    		next;
    		mes "Basic - Warps are = "+(($QW_BW_PRICE)?"^00FF00"+$QW_BW_PRICE:"^FF0000Free")+"^000000";
    		mes "Basic - Warps are starter towns and related dungeons.";
    		input $QW_BW_PRICE;
    		goto Setprice;
    	case 2:
    		next;
    		mes "Advanced - Warps are = "+(($QW_AW_PRICE)?"^00FF00"+$QW_AW_PRICE:"^FF0000Free")+"^000000";
    		mes "Advanced - Warps are towns and dungeons on the same island but not close to any starter town.";
    		input $QW_AW_PRICE;
    		goto Setprice;
    	case 3:
    		next;
    		mes "Overseas - Warps are = "+(($QW_OW_PRICE)?"^00FF00"+$QW_OW_PRICE:"^FF0000Free")+"^000000";
    		mes "Overseas - Warps are towns and dungeons overseas reachable by boat from Alberta.";
    		input $QW_OW_PRICE;
    		goto Setprice;
    	case 4:
    		next;
    		mes "Basic Dungeon level warp fee = "+(($QW_BW_FEE)?"^00FF00"+$QW_BW_FEE:"^FF0000NO")+"^000000 zeny per level";
    		mes "Basic - Warps are starter town related dungeons.";
    		mes "Dungeon warp fees are calculated by maps away from entrance of the dungeon times Dungeon warp fee.";
    		mes "These costs are on top of the regular Warp costs.";
    		input $QW_BW_FEE;
    		goto Setprice;
    	case 5:
    		next;
    		mes "Advanced Dungeon level warp fee = "+(($QW_AW_FEE)?"^00FF00"+$QW_AW_FEE:"^FF0000NO")+"^000000 zeny per level";
    		mes "Advanced - Warps are dungeons not close to any starter town.";
    		mes "Dungeon warp fees are calculated by maps away from entrance of the dungeon times Dungeon warp fee.";
    		mes "These costs are on top of the regular Warp costs.";
    		input $QW_AW_FEE;
    		goto Setprice;
    	case 6:
    		next;
    		mes "Overseas Dungeon level warp fee = "+(($QW_OW_FEE)?"^00FF00"+$QW_OW_FEE:"^FF0000NO")+"^000000 zeny per level";
    		mes "Overseas - Warps are dungeons related to towns overseas reachable by boat from Alberta.";
    		mes "Dungeon warp fees are calculated by maps away from entrance of the dungeon times Dungeon warp fee.";
    		mes "These costs are on top of the regular Warp costs.";
    		input $QW_OW_FEE;
    		goto Setprice;
    	case 7:
    		next;
    		mes "Full Healing = "+(($QW_HF_PRICE)?"^00FF00"+$QW_HF_PRICE:"^FF0000Free")+"^000000";
    		mes "Instant full healing 1 price.";
    		input $QW_HF_PRICE;
    		goto Setprice;
    	case 8:
    		next;
    		mes "^FF0000HP ^000000Part Healing = "+(($QW_HP_H_PRICE)?"^00FF00"+$QW_HP_H_PRICE+"^000000 a point":"^FF0000Free^000000");
    		mes "^FF0000SP ^000000Part Healing = "+(($QW_HP_S_PRICE)?"^00FF00"+$QW_HP_S_PRICE+"^000000 a point":"^FF0000Free^000000");
    		mes "Healing price per 1 HP.";
    		mes "Healing price per 1 SP.";
    		mes "2 inputs, first HP then SP.";
    		input $QW_HP_H_PRICE;
    		input $QW_HP_S_PRICE;
    		goto Setprice;
    	case 9:
    		next;
    		if ($QW_S_PRICE && $QW_S_PRICE != 60) mes "Storage = ^00FF00 "+$QW_S_PRICE+" ^000000";
    		if (!$QW_S_PRICE) mes "Storage = ^FF0000 Free ^000000";
    		if ($QW_S_PRICE == 60) mes "Storage = ^0000FF Kafra Mode ^000000";
    		mes "Storage cost, if set to 60 Kafra pricing will be handled.";
    		input $QW_S_PRICE;
    		goto Setprice;
    	case 10:
    		next;
    		mes "Guild Storage = "+(($QW_GS_PRICE)?"^00FF00"+$QW_GS_PRICE:"^FF0000Free")+"^000000";
    		mes "Guild Storage, free on Guild Kafras.";
    		input $QW_GS_PRICE;
    		goto Setprice;
    	case 11:
    		goto GM_Menu;
    	default:
    		close;
    		end;
    	}
    
    //======================Special=Warp=Menu==========================
    
    SpecialWarpMenu:
    	if ($QW_SP_Warpname$ == "") set $QW_SP_Warpname$,"Special Warp";
    	next;
    	mes "Scroll down to see all the information";
    	mes "The Special warp menu option will show in the main menu when all towns & dungeons are unlocked";
    	mes "And when the map for special warping has been set";
    	mes "menu option name set to ^0000FF"+$QW_SP_Warpname$+"^000000";
    	if ($QW_SP_WarpMap$ == "") mes "map is currently ^FF0000not^000000 set, and Special warp menu is off";
    	if ($QW_SP_WarpMap$ != "") mes "map is currently set to ^0000FF"+$QW_SP_WarpMap$+"^000000 and Special Warp menu is on";
    	mes "coords are set to ^0000FF"+$QW_SP_WarpX+","+$QW_SP_WarpY+"^000000";
    	switch(select("Set Special Warp name to show in menu", "Set WarpMap","Set Coords","Go Back to GM_Menu","Exit")){
    	case 1:
    		next;
    		mes "Set the name to show in the menu as option.";
    		input $QW_SP_Warpname$;
    		goto SpecialWarpMenu;
    	case 2:
    		next;
    		mes "Set the map in the ^0000FFmapname^000000 format.";
    		mes "When this warpmap is set the option for players will show once they meet the requirements.";
    		mes "To disable Special Warp Menu option, clear this!";
    		input $QW_SP_WarpMap$;
    		goto SpecialWarpMenu;
    	case 3:
    		next;
    		mes "First input = Xcoord";
    		mes "Second input = Ycoord";
    		input $QW_SP_WarpX;
    		input $QW_SP_WarpY;
    		goto SpecialWarpMenu;
    	case 4:
    		goto GM_Menu;
    	default:
    		close;
    		end;
    	}
    
    //======================Dungeon=Level=Limit========================
    
    DungeonLevelLimit:
    	next;
    	mes "Dungeon Depth limit is "+(($QW_DL)?"^00FF00On":"^FF0000Off")+"^000000";
    	mes "If^00FF00 On ^000000Dungeon Depth limit is set to ^0000FF"+$QW_DDL+"^000000";
    
    	switch(select("Toggle Dungeon Depth Limit","Set Dungeon Depth Limit","Go Back to GM_Menu","Exit")){
    	case 1: set $QW_DL,($QW_DL)?0:1; goto DungeonLevelLimit;
    	case 2:
    		next;
    		mes "Set limit of Dungeon Depth 0 = entrance";
    		mes "Depth 1 is a map connected to 0 and so on";
    		mes "Shortest Route to map counts as depth";
    		input $QW_DDL;
    		goto DungeonLevelLimit;
    	case 3: goto GM_Menu;
    	default:
    		close;
    		end;
    	}
    
    //===========================Towns=================================
    
    L_town:
    	callfunc "QWS_Tarray";
    	freeloop(1);
    	set .@menu$,"";
    	for(set .@i,0; .@i<35; set .@i,.@i+1)	// Expected maximum is 35
    		set .@menu$,.@menu$+@Tmenulist$[.@i]+":";
    	freeloop(0);
    	set @TWMenu,select(.@menu$);
    
    	if (@Tmenuref[@TWMenu-1] == 57005) goto L_end; // 57005='dead' in hex
    
    	if(Zeny<@pTprice[@Tmenuref[@TWMenu-1]]) callsub L_Short_on_zeny,0;
    	set Zeny, Zeny-@pTprice[@Tmenuref[@TWMenu-1]];
    	if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@pTprice[@Tmenuref[@TWMenu-1]]/16);
    	warp @pTmap$[@Tmenuref[@TWMenu-1]],@pTXcoords[@Tmenuref[@TWMenu-1]],@pTYcoords[@Tmenuref[@TWMenu-1]];
    	close2;
    	set Zeny, Zeny+@pTprice[@Tmenuref[@TWMenu-1]];
    	end;
    
    //=========================Dungeons================================
    
    L_dungeon:
    	callfunc "QWS_Darray";
    	freeloop(1);
    	set .@menu$,"";
    	for(set .@i,0; .@i<35; set .@i,.@i+1)	// Expected maximum is 35
    		set .@menu$,.@menu$+@Dmenulist$[.@i]+":";
    	freeloop(0);
    	set @DWMenu,select(.@menu$);
    
    	if (@Dmenuref[@DWMenu-1] == 57005) goto L_end; // 57005='dead' in hex
    	set @DwarpMenu, (@Dmenuref[@DWMenu-1]);
    	callfunc "QWS_DLarray";
    
    	next;
    	mes "[Warpra]";
    	mes "Please select where you want to go:";
    	freeloop(1);
    	set .@menu$,"";
    	for(set .@i,0; .@i<18; set .@i,.@i+1)	// Expected maximum is 18
    		set .@menu$,.@menu$+@DWLmenulist$[.@i]+":";
    	freeloop(0);
    	set @DWLMenu,select(.@menu$);
    
    	if (@DWLmenuref[@DWLMenu-1] == 57005) goto L_end; // 57005='dead' in hex
    
    	set @Darrayref, @DWLmenuref[@DWLMenu-1];
    	set @warpprice, @pDprice[@Dmenuref[@DWMenu-1]]+(getd(@pDfee$[@Dmenuref[@DWMenu-1]])*(@DDepth[@Darrayref]));
    
    	if(Zeny<@warpprice) callsub L_Short_on_zeny,1;
    	set Zeny, Zeny-(@warpprice);
    	if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@warpprice/16);
    	warp @DGat$[@Darrayref],@DXcoords[@Darrayref],@DYcoords[@Darrayref];
    	close2;
    	set Zeny, Zeny+@pTprice[@Tmenuref[@DWMenu-1]];
    	end;
    
    //=============================Healing=============================
    
    L_heal_Full:
    	set @healfee, $QW_HF_PRICE;
    	if(Zeny<@healfee) callsub L_Short_on_zeny,4;
    	set Zeny, Zeny-@healfee;
    	if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@healfee/500);
    	next;
    	mes "[Warpra]";
    	mes "Close this window and I will heal you.";
    	close2;
    	percentheal 100,100;
    	end;
    
    L_heal_Part:
    	set @healchoice,select("Full heal","Health Points only","Skill Points only","Exit");
    	if (@healchoice == 1) callsub PHeal,1,1;
    	if (@healchoice == 2) callsub PHeal,1,0;
    	if (@healchoice == 3) callsub PHeal,0,1;
    	goto L_end;
    	
    PHeal:
    	next;
    	set @Hp, MaxHp-Hp;
    	set @Sp, MaxSp-Sp;
    	set @HpPrice, @hp*$QW_HP_H_PRICE;
    	set @SpPrice, @sp*$QW_HP_S_PRICE;
    	mes "[Warpra]";
    	if(getarg(0) == 1) mes ""+@HpPrice+" Zeny for "+@Hp+" health points";
    	if(getarg(1) == 1) mes ""+@SpPrice+" Zeny for "+@Sp+" skill points";
    	set @total, @HpPrice+@SpPrice;
    	mes "for a total of "+@total+" zeny";
        	if (select("Heal me","Let me see the choices again")==2) goto L_heal_Part;
        	
        	if(getarg(0) == 1)set @HpPrice, (MaxHp-Hp)*$QW_HP_H_PRICE;
    	if(getarg(1) == 1)set @SpPrice, (MaxSp-Sp)*$QW_HP_S_PRICE;
    	set @healfee, @HpPrice+@SpPrice;
    	if (getarg(0) == 1)&&(getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_Short_Both;
    	if (getarg(0) == 1)&&(Zeny<@healfee) goto Zeny_short_HP;
    	if (getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_short_SP;
    	set Zeny, Zeny-@healfee;
    	if (getarg(0) == 1)&&(getarg(1) == 1) percentheal 100,100;
    	if (getarg(0) == 1) percentheal 100,0;
    	if (getarg(1) == 1) percentheal 0,100;
    	close;
    	end;
    
    Zeny_Short_Both:
    	mes "[Warpra]";
    	mes "Choose another option, you can afford both.";
    	mes "I can heal as much as you can afford, too.";
    	if (select("OK","Exit") == 2) goto L_end;
    	goto PHeal;
    
    Zeny_short_HP:
    	mes "[Warpra]";
    	mes "Do you want me to partly heal your HP?";
    	if (select("Yes","No") == 2) goto L_end;
    	set @Hp, Zeny/$QW_HP_H_PRICE;
        	set @HpPrice, @Hp*$QW_HP_H_PRICE;
        	if (@Hp == 1) mes "You're not worth the effort.";
        	if (@Hp == 1) goto L_end;
        	set Zeny, Zeny-@HpPrice;
    	heal @Hp,0;
    	close;
    	end;
    
    Zeny_short_SP:
    	mes "[Warpra]";
    	mes "Do you want me to partly heal your SP?";
    	if (select("Yes","No") == 2) goto L_end;
    	set @Sp, Zeny/$QW_HP_S_PRICE;
        	set @SpPrice, @Sp*$QW_HP_S_PRICE;
        	if (@Sp == 1) mes "You're not worth the effort.";
        	if (@Sp == 1) goto L_end;
        	set Zeny, Zeny-@SpPrice;
    	heal 0,@Sp;
    	close;
    	end;
    
    //=============================Storage=============================
    
    L_Storage:
    	next;
    	if(!callfunc("F_CanOpenStorage")) goto L_StorageJBlow;
    	set @fee, $QW_S_PRICE;
    	if ($QW_S_PRICE == 60)&&(BaseJob == Job_Novice) set @fee, 30;
    	if ($QW_S_PRICE == 60)&&(BaseJob != Job_Novice) set @fee, 60;
    	if(Zeny<@fee) callsub L_Short_on_zeny,2;
    	set Zeny, Zeny-@fee;
    	if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@fee/5);
    
    	mes "[Warpra]";
    	if(#kafra_code) {
    		mes "Enter your storage password:";
    		set @code_,0;
    		input @code_;
    		if(@code_ != #kafra_code) {
    			dispbottom "Wrong storage password.";
    			close;
    		}
    		set @kafcode_try,0;
    		set @code_,0;
    	}
    	mes "Close this window and I will open your storage.";
    	close2;
    	openstorage;
    	end;
    
    L_StorageJBlow:
    	mes "[Warpra]";
    	mes "I am sorry but you have to be at least Novice level 6 if you want to use the storage.";
    	return;
    
    L_GStorage:
    	if (!@GID) {
    		next;
    		mes "[Warpra]";
    		mes "You are not a part of a guild I can't help you.";
    		close;
    		end;
    	}
    	if (Zeny<$QW_GS_PRICE) callsub L_Short_on_zeny,3;
    	set Zeny, Zeny-$QW_GS_PRICE;
    	if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + ($QW_GS_PRICE/5);
    	next;
    	mes "[Warpra]";
    	mes "Close this window and I will open the ^5533FF" + GetGuildName(@GID) + "^000000 storage.";
    	close2;
    	guildopenstorage;
    	end;
    	
    L_end:
    	close;
    	end;
    
    //============================Few=Warp=============================
    L_FewWarps:
    	next;
    	mes "[Warpra]";
    	mes "You need to unlock locations before they come available to you.";
    	mes "To unlock a location talk to my colleagues all over the world.";
    	mes "Each account has its own stamp card.";
    	mes "Want me to check what stamps you have collected so far?";
    	if (select("Yes","No")==1) callsub stampcard;
    	close;
    	end;
    
    //============================No=Unlock============================
    L_NoUnlock:
    	next;
    	mes "[Warpra]";
    	mes "I don't unlock this location, my assistant deeper in the dungeon will unlock this place.";
    	close;
    	end;
    	
    //=========================Short=On=Zeny===========================
    L_Short_on_zeny:
    	next;
    	switch(getarg(0)) {
    	case 0: mes "You don't seem to have "+@pTprice[@Tmenuref[@TWMenu-1]]+" zeny to pay for the warp to "+@pTmenuitems$[@Tmenuref[@TWMenu-1]]+"."; break;
    	case 1: mes "You don't seem to have "+@warpprice+" zeny to pay for the warp to "+@DLevelName$[@DWLmenuref[@DWLMenu-1]]+" at "+@pDmenuitems$[@Dmenuref[@DWMenu-1]]+"."; break;
    	case 2: mes "You don't seem to have "+@fee+" zeny to pay the storage fee."; break;
    	case 3: mes "You don't seem to have "+$QW_GS_PRICE+" zeny to pay the guild storage fee."; break;
    	case 4: mes "You don't seem to have "+@healfee+" zeny to pay for your healing."; break;
    	}
    	close;
    	end;
    	
    //===========================Stamp=Card============================
    stampcard:
    // Counting of the amount of places you have unlocked
    	next;
    	mes "Let me check what Towns you have.";
    	callfunc "QWS_TownStamps";
    	mes "You collected^00FF00 "+@Tstamp+" of "+@MaxTstamp+" ^000000Towns.";
    	if (@Tstamp == 15) {
    		mes "They say there is an island you can only get to when married...";
    		emotion ET_SMILE;
    	}
    	next;
    	mes "Let me check what dungeons you have.";
    	callfunc "QWS_DungeonStamps";
    	mes "You collected^00FF00 "+@Dstamp+" of "+@MaxDstamp+" ^000000Dungeons.";
    	mes "To unlock a dungeon, search for my colleagues.";
    	mes "You can usually find them near the middle or end of the dungeon.";
    	return;
    }
    
    function	script	QWS_TownStamps	{
    	set @Tstamp,0;
    	set @MaxTstamp,30; //maximum number of towns
    	set @binvalue,1;
    	set @Tstamploop,0;
    	do {
    		if ((@binvalue & ##QWS_T_Unlock) == @binvalue) set @Tstamp,@Tstamp+1;
    		set @binvalue, @binvalue *2;
    		set @Tstamploop, @Tstamploop + 1;
    	} while (@Tstamploop < @MaxTstamp);
    	return;
    }
    
    function	script	QWS_DungeonStamps	{
    	set @Dstamp,0;
    	set @MaxDstamp,29; //maximum number of dungeons
    	set @binvalue,1;
    	set @Dstamploop,0;
    	do {
    		if ((@binvalue & ##QWS_D_Unlock) == @binvalue) set @Dstamp,@Dstamp+1;
    		set @binvalue, @binvalue *2;
    		set @Dstamploop, @Dstamploop + 1;
    	} while (@Dstamploop < @MaxDstamp);
    	return;
    }
    
    //======================Main=Menu=Array============================
    
    function	script	QWS_MMarray	{
    
    	// Currently 9 items
    	setarray @pMmenuitems$[0], "GameMaster Menu", $QW_SP_Warpname$, "Warp to Towns", "Warp to Dungeons", "Why so few warps?", "Why don't you unlock this location?", "Heal", "Heal", "Storage", "Guild Storage", "Cancel";
    	set @Mi,0; // loop counter
    	set @Mj,0; // menu line counter
    
    //----------------GameMaster-Menu
    	if (getgmlevel()>= 80) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Special-Warp
    	callfunc "QWS_TownStamps";
    	callfunc "QWS_DungeonStamps";
    	if (@Tstamp == @MaxTstamp)&&(@Dstamp == @MaxDstamp)&&($QW_SP_WarpMap$ != "") {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Town-Warp
    	if ($QW_TW_OFF == 0) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Dungeon-Warp
    	if ($QW_DW_OFF == 0) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Why-So-Few-Warps
    	set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    	set @Mmenuref[@Mj],@Mi;
    	set @Mj,@Mj+1;
    	set @Mi,@Mi+1;
    //----------------No-Unlock
    	if (getarg(0) == 1) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Healfull
    	if ($QW_HF == 1) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Healpart
    	if ($QW_HP == 1) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Storage
    	if ($QW_Stor == 1) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------GuildStorage
    	if ($QW_GStor == 1) {
    		set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    		set @Mmenuref[@Mj],@Mi;
    		set @Mj,@Mj+1;
    	}
    	set @Mi,@Mi+1;
    //----------------Cancel
    	set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
    	set @Mmenuref[@Mj],@Mi;
    	return;
    }
    
    //======================Town=Menu=Array============================
    // Adding a town:
    //	setarray @pTmenuitems$[@Ti], "Prontera";// Name of Town shown in Town select Menu
    //	setarray @pTprice[@Ti], $QW_BW_PRICE;	// Warp prices: Basic ($QW_BW_PRICE), Advanced ($QW_AW_PRICE), Overseas ($QW_OW_PRICE)
    //
    //	setarray @pTmap$[@Ti], "prontera";	// Map name
    //	setarray @pTXcoords[@Ti], 156;		// X warp coords
    //	setarray @pTYcoords[@Ti], 187;		// Y warp coords
    //
    //	QWS_Make_Town_Menu 0;	// Use a free number (last used is 30, Eclage)
    //
    // Adding a warpra:
    //	map,x,y,facing	script	Warpra#example	811,{
    //		callfunc "QWS_Town_Warpra",<town number>,"Your Town";
    //		close;
    //	}
    //	Town number is the same as "QWS_Make_Town_Menu".
    //==================================================================
    
    function	script	QWS_Tarray	{
    	function QWS_Make_Town_Menu;
    
    	set @Ti,0; // loop counter
    	set @Tj,0; // menu lines counter
    
    //----------------Prontera
    	setarray @pTmenuitems$[@Ti], "Prontera";
    	setarray @pTprice[@Ti], $QW_BW_PRICE;
    
    	setarray @pTmap$[@Ti], "prontera";
    	setarray @pTXcoords[@Ti], 156;
    	setarray @pTYcoords[@Ti], 187;
    
    	QWS_Make_Town_Menu 0;
    //----------------Alberta
    	setarray @pTmenuitems$[@Ti], "Alberta";
    	setarray @pTprice[@Ti], $QW_BW_PRICE;
    
    	setarray @pTmap$[@Ti], "alberta";
    	setarray @pTXcoords[@Ti], 27;
    	setarray @pTYcoords[@Ti], 236;
    
    	QWS_Make_Town_Menu 1;
    //----------------Aldebaran
    	setarray @pTmenuitems$[@Ti], "Aldebaran";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "aldebaran";
    	setarray @pTXcoords[@Ti], 145;
    	setarray @pTYcoords[@Ti], 120;
    
    	QWS_Make_Town_Menu 2;
    //----------------Amatsu:
    	setarray @pTmenuitems$[@Ti], "Amatsu";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "amatsu";
    	setarray @pTXcoords[@Ti], 197;
    	setarray @pTYcoords[@Ti], 86;
    
    	QWS_Make_Town_Menu 3;
    //----------------Ayothaya:
    	setarray @pTmenuitems$[@Ti], "Ayothaya";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "ayothaya";
    	setarray @pTXcoords[@Ti], 150;
    	setarray @pTYcoords[@Ti], 57;
    
    	QWS_Make_Town_Menu 4;
    //----------------Brasilis:
    	setarray @pTmenuitems$[@Ti], "Brasilis";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "brasilis";
    	setarray @pTXcoords[@Ti], 195;
    	setarray @pTYcoords[@Ti], 220;
    
    	QWS_Make_Town_Menu 21;
    //----------------Comodo:
    	setarray @pTmenuitems$[@Ti], "Comodo";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "comodo";
    	setarray @pTXcoords[@Ti], 188;
    	setarray @pTYcoords[@Ti], 161;
    
    	QWS_Make_Town_Menu 5;
    //----------------Dewata:
    	setarray @pTmenuitems$[@Ti], "Dewata";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "dewata";
    	setarray @pTXcoords[@Ti], 199;
    	setarray @pTYcoords[@Ti], 179;
    
    	QWS_Make_Town_Menu 29;
    //----------------Eclage:
    	setarray @pTmenuitems$[@Ti], "Eclage";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "eclage";
    	setarray @pTXcoords[@Ti], 111;
    	setarray @pTYcoords[@Ti], 39;
    
    	QWS_Make_Town_Menu 30;
    //----------------Einbech:
    	setarray @pTmenuitems$[@Ti], "Einbech";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "einbech";
    	setarray @pTXcoords[@Ti], 172;
    	setarray @pTYcoords[@Ti], 126;
    
    	QWS_Make_Town_Menu 6;
    //----------------Einbroch:
    	setarray @pTmenuitems$[@Ti], "Einbroch";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "einbroch";
    	setarray @pTXcoords[@Ti], 230;
    	setarray @pTYcoords[@Ti], 191;
    
    	QWS_Make_Town_Menu 7;
    //----------------El Dicastes:
    	setarray @pTmenuitems$[@Ti], "El Dicastes";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "dicastes01";
    	setarray @pTXcoords[@Ti], 197;
    	setarray @pTYcoords[@Ti], 187;
    
    	QWS_Make_Town_Menu 22;
    //----------------Geffen:
    	setarray @pTmenuitems$[@Ti], "Geffen";
    	setarray @pTprice[@Ti], $QW_BW_PRICE;
    
    	setarray @pTmap$[@Ti], "geffen";
    	setarray @pTXcoords[@Ti], 119;
    	setarray @pTYcoords[@Ti], 66;
    
    	QWS_Make_Town_Menu 8;
    //----------------Kunlun:
    	setarray @pTmenuitems$[@Ti], "Kunlun";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "gonryun";
    	setarray @pTXcoords[@Ti], 150;
    	setarray @pTYcoords[@Ti], 130;
    
    	QWS_Make_Town_Menu 9;
    //----------------Hugel:
    	setarray @pTmenuitems$[@Ti], "Hugel";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "hugel";
    	setarray @pTXcoords[@Ti], 95;
    	setarray @pTYcoords[@Ti], 121;
    
    	QWS_Make_Town_Menu 10;
    //----------------Izlude:
    	setarray @pTmenuitems$[@Ti], "Izlude";
    	setarray @pTprice[@Ti], $QW_BW_PRICE;
    
    	setarray @pTmap$[@Ti], "izlude";
    	setarray @pTXcoords[@Ti], 128;
    	setarray @pTYcoords[@Ti], 111;
    
    	QWS_Make_Town_Menu 11;
    //----------------Jawaii:
    	setarray @pTmenuitems$[@Ti], "Jawaii";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "jawaii";
    	setarray @pTXcoords[@Ti], 243;
    	setarray @pTYcoords[@Ti], 115;
    
    	QWS_Make_Town_Menu 12;
    //----------------Lighthalzen:
    	setarray @pTmenuitems$[@Ti], "Lighthalzen";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "lighthalzen";
    	setarray @pTXcoords[@Ti], 158;
    	setarray @pTYcoords[@Ti], 110;
    
    	QWS_Make_Town_Menu 13;
    //----------------Luoyang:
    	setarray @pTmenuitems$[@Ti], "Luoyang";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "louyang";
    	setarray @pTXcoords[@Ti], 210;
    	setarray @pTYcoords[@Ti], 108;
    
    	QWS_Make_Town_Menu 14;
    //----------------Lutie
    	setarray @pTmenuitems$[@Ti], "Lutie";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "xmas";
    	setarray @pTXcoords[@Ti], 148;
    	setarray @pTYcoords[@Ti], 131;
    
    	QWS_Make_Town_Menu 15;
    //----------------Manuk
    	setarray @pTmenuitems$[@Ti], "Manuk";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "manuk";
    	setarray @pTXcoords[@Ti], 260;
    	setarray @pTYcoords[@Ti], 175;
    
    	QWS_Make_Town_Menu 23;
    //----------------Mora
    	setarray @pTmenuitems$[@Ti], "Mora";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "mora";
    	setarray @pTXcoords[@Ti], 111;
    	setarray @pTYcoords[@Ti], 97;
    
    	QWS_Make_Town_Menu 24;
    //----------------Morocc:
    	setarray @pTmenuitems$[@Ti], "Morocc";
    	setarray @pTprice[@Ti], $QW_BW_PRICE;
    
    	setarray @pTmap$[@Ti], "morocc";
    	setarray @pTXcoords[@Ti], 159;
    	setarray @pTYcoords[@Ti], 93;
    
    	QWS_Make_Town_Menu 16;
    //----------------Moscovia
    	setarray @pTmenuitems$[@Ti], "Moscovia";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "moscovia";
    	setarray @pTXcoords[@Ti], 219;
    	setarray @pTYcoords[@Ti], 193;
    
    	QWS_Make_Town_Menu 25;
    //----------------Niflheim:
    	setarray @pTmenuitems$[@Ti], "Niflheim";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "niflheim";
    	setarray @pTXcoords[@Ti], 195;
    	setarray @pTYcoords[@Ti], 186;
    
    	QWS_Make_Town_Menu 17;
    //----------------Payon:
    	setarray @pTmenuitems$[@Ti], "Payon";
    	setarray @pTprice[@Ti], $QW_BW_PRICE;
    
    	setarray @pTmap$[@Ti], "payon";
    	setarray @pTXcoords[@Ti], 152;
    	setarray @pTYcoords[@Ti], 75;
    
    	QWS_Make_Town_Menu 18;
    //----------------Rachel
    	setarray @pTmenuitems$[@Ti], "Rachel";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "rachel";
    	setarray @pTXcoords[@Ti], 130;
    	setarray @pTYcoords[@Ti], 111;
    
    	QWS_Make_Town_Menu 26;
    //----------------Splendide
    	setarray @pTmenuitems$[@Ti], "Splendide";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "splendide";
    	setarray @pTXcoords[@Ti], 200;
    	setarray @pTYcoords[@Ti], 153;
    
    	QWS_Make_Town_Menu 27;
    //----------------Umbala:
    	setarray @pTmenuitems$[@Ti], "Umbala";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "umbala";
    	setarray @pTXcoords[@Ti], 130;
    	setarray @pTYcoords[@Ti], 130;
    
    	QWS_Make_Town_Menu 19;
    //----------------Veins
    	setarray @pTmenuitems$[@Ti], "Veins";
    	setarray @pTprice[@Ti], $QW_OW_PRICE;
    
    	setarray @pTmap$[@Ti], "veins";
    	setarray @pTXcoords[@Ti], 216;
    	setarray @pTYcoords[@Ti], 123;
    
    	QWS_Make_Town_Menu 28;
    //----------------Juno:
    	setarray @pTmenuitems$[@Ti], "Juno";
    	setarray @pTprice[@Ti], $QW_AW_PRICE;
    
    	setarray @pTmap$[@Ti], "yuno";
    	setarray @pTXcoords[@Ti], 160;
    	setarray @pTYcoords[@Ti], 168;
    
    	QWS_Make_Town_Menu 20;
    //----------------Cancel
    	setarray @pTmenuitems$[@Ti], "Cancel";
    	setarray @pTprice[@Ti], 0;
    
    	set @Tmenulist$[@Tj],@pTmenuitems$[@Ti];
    	set @Tmenuref[@Tj],57005; // 57005='dead' in hex
    	return;
    
    
    //----------------Make Town Menu Function
    
    function	QWS_Make_Town_Menu	{
    	set @temptownmenubin,1;
    	if (getarg(0) == 0) goto menu_item;
    	set @templooptownmenu,0;
    	do {
    		set @temptownmenubin, @temptownmenubin * 2;
    		set @templooptownmenu, @templooptownmenu + 1;
    		}while (getarg(0) > @templooptownmenu);
    // check marker and make menu item
    menu_item:
    	if ((@temptownmenubin & ##QWS_T_Unlock) != @temptownmenubin) {
    		set @Ti,@Ti+1;
    		return;
    	}
    	if (@pTprice[@Ti] != 0)&&($QW_MapUserShow == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
    	if (@pTprice[@Ti] == 0)&&($QW_MapUserShow == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
    	if (@pTprice[@Ti] != 0)&&($QW_MapUserShow == 1) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" ["+getmapusers(@pTmap$[@Ti])+"]"+" -> "+@pTprice[@Ti];
    	if (@pTprice[@Ti] == 0)&&($QW_MapUserShow == 1) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" ["+getmapusers(@pTmap$[@Ti])+"]";
    	set @Tmenuref[@Tj],@Ti;
    	set @Tj,@Tj+1;
    	set @Ti,@Ti+1;
    	return;
    }
    }
    
    //====================Dungeon=Menu=Arrays==========================
    // Adding a dungeon:
    //	setarray @pDmenuitems$[@Di], "Abyss Lake";	// Name of Dungeon shown in Dungeon select Menu
    //	setarray @pDprice[@Di], $QW_AW_PRICE;		// Warp prices: Basic ($QW_BW_PRICE), Advanced ($QW_AW_PRICE), Overseas ($QW_OW_PRICE)
    //	setarray @pDfee$[@Di], "$QW_AW_FEE";		// Identifier for fee caluclation: Basic ("$QW_BW_FEE"), Advanced ("$QW_AW_FEE"), Overseas ("$QW_OW_FEE")
    //	setarray @DLevels[@Di], 3;			// Number of levels in dungeon
    //
    //	setarray @DGat$[@Dref], "abyss_01", "abyss_02", "abyss_03";	// Map names of dungeon levels
    //	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";	// Name of dungeon levels shown in Menu
    //	setarray @DXcoords[@Dref], 265, 275, 116;			// X warp coords
    //	setarray @DYcoords[@Dref], 273, 270, 27;			// Y warp coords
    //	setarray @DDepth[@Dref], 0, 1, 2;				// Relative depth to entrance, to calculate extra warp fee
    //
    //	QWS_Make_Dungeon_Menu 0;	// Use a free number (last used is 28, Kiel Dungeon)
    //
    // Adding a warpra:
    //	map,x,y,facing	script	Warpra Helper#example	112,{
    //		callfunc "QWS_Dungeon_Warpra",<dungeon number>,"Your Dungeon";
    //		close;
    //	}
    //	Dungeon number is the same as "QWS_Make_Dungeon_Menu".
    //==================================================================
    
    function	script	QWS_Darray	{
    	function QWS_Make_Dungeon_Menu;
    
    	set @Di,0;
    	set @Dj,0;
    	set @Dref,0;
    
    //----------------ABYSS LAKE
    	setarray @pDmenuitems$[@Di], "Abyss Lake";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 3;
    
    	setarray @DGat$[@Dref], "abyss_01", "abyss_02", "abyss_03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 265, 275, 116;
    	setarray @DYcoords[@Dref], 273, 270, 27;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 0;
    
    //----------------AMATSU DUNGEON
    	setarray @pDmenuitems$[@Di], "Amatsu Dungeon";
    	setarray @pDprice[@Di], $QW_OW_PRICE;
    	setarray @pDfee$[@Di], "$QW_OW_FEE";
    	setarray @DLevels[@Di], 3;
    
    	setarray @DGat$[@Dref], "ama_dun01", "ama_dun02", "ama_dun03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 227, 32, 119;
    	setarray @DYcoords[@Dref], 10, 43, 15;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 1;
    
    //----------------ANT HELL
    	setarray @pDmenuitems$[@Di], "Ant Hell Dungeon"; 
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[2], 2;
    
    	setarray @DGat$[@Dref], "anthell01", "anthell02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 32, 34;
    	setarray @DYcoords[@Dref], 262, 263;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 2;
    
    //----------------AYOTHAYA
    	setarray @pDmenuitems$[@Di], "Ayothaya Dungeon";
    	setarray @pDprice[@Di], $QW_OW_PRICE;
    	setarray @pDfee$[@Di], "$QW_OW_FEE";
    	setarray @DLevels[3], 2;
    
    	setarray @DGat$[@Dref], "ayo_dun01", "ayo_dun02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 275, 150;
    	setarray @DYcoords[@Dref], 17, 13;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 3;
    
    //----------------BYALAN
    	setarray @pDmenuitems$[@Di], "Byalan Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[4], 5;
    
    	setarray @DGat$[@Dref], "iz_dun00", "iz_dun01", "iz_dun02", "iz_dun03", "iz_dun04";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
    	setarray @DXcoords[@Dref], 168, 41, 236, 32, 26;
    	setarray @DYcoords[@Dref], 168, 37, 204, 63, 27;
    	setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
    
    	QWS_Make_Dungeon_Menu 4;
    
    //----------------CLOCK TOWER
    	setarray @pDmenuitems$[@Di], "Clock Tower Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[5], 8;
    
    	setarray @DGat$[@Dref], "c_tower1", "c_tower2", "c_tower3", "c_tower4", "alde_dun01", "alde_dun02", "alde_dun03", "alde_dun04";
    	setarray @DLevelName$[@Dref], "Clock Tower Level 1", "Clock Tower Level 2", "Clock Tower Level 3", "Clock Tower Level 4", "Basement 1F", "Basement 2F", "Basement 3F", "Basement 4F";
    	setarray @DXcoords[@Dref], 200, 268, 64, 32, 197, 262, 276, 122;
    	setarray @DYcoords[@Dref], 163, 26, 148, 63, 25, 41, 53, 125;
    	setarray @DDepth[@Dref], 0, 1, 2, 3, 1, 2, 3, 4;
    
    	QWS_Make_Dungeon_Menu 5;
    
    //----------------COAL MINE
    	setarray @pDmenuitems$[@Di], "Coal Mine Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[6], 3;
    
    	setarray @DGat$[@Dref], "mjo_dun01", "mjo_dun02", "mjo_dun03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 52, 381, 302;
    	setarray @DYcoords[@Dref], 17, 343, 261;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 6;
    
    //----------------CULVERT
    	setarray @pDmenuitems$[@Di], "Culvert Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[7], 4;
    
    	setarray @DGat$[@Dref], "prt_sewb1", "prt_sewb2", "prt_sewb3", "prt_sewb4";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
    	setarray @DXcoords[@Dref], 132, 19, 180, 100;
    	setarray @DYcoords[@Dref], 248, 19, 169, 92;
    	setarray @DDepth[@Dref], 0, 1, 2, 3;
    
    	QWS_Make_Dungeon_Menu 7;
    
    //----------------EINBECH DUNGEON
    	setarray @pDmenuitems$[@Di], "Einbech Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[8], 2;
    
    	setarray @DGat$[@Dref], "ein_dun01", "ein_dun02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 22, 292;
    	setarray @DYcoords[@Dref], 14, 290;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 8;
    
    //----------------GEFENIA DUNGEON
    	setarray @pDmenuitems$[@Di], "Gefenia Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[9], 4;
    
    	setarray @DGat$[@Dref], "gefenia01", "gefenia02", "gefenia03", "gefenia04";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
    	setarray @DXcoords[@Dref], 59, 201, 264, 33;
    	setarray @DYcoords[@Dref], 167, 35, 236, 270;
    	setarray @DDepth[@Dref], 0, 1, 2, 3;
    
    	QWS_Make_Dungeon_Menu 9;
    
    //----------------GEFFEN DUNGEON
    	setarray @pDmenuitems$[@Di], "Geffen Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 4;
    
    	setarray @DGat$[@Dref], "gef_dun00", "gef_dun01", "gef_dun02", "gef_dun03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
    	setarray @DXcoords[@Dref], 104, 115, 106, 203;
    	setarray @DYcoords[@Dref], 100, 236, 132, 200;
    	setarray @DDepth[@Dref], 0, 1, 2, 3;
    
    	QWS_Make_Dungeon_Menu 10;
    
    //----------------GLAST HEIM
    	setarray @pDmenuitems$[@Di], "Glast Heim Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 17;
    
    	setarray @DGat$[@Dref], "glast_01", "gl_church", "gl_chyard", "gl_in01", "gl_cas01", "gl_cas02", "gl_knt01", "gl_knt02", "gl_prison", "gl_prison1", "gl_step", "gl_sew01", "gl_sew02", "gl_sew03", "gl_sew04", "gl_dun01", "gl_dun02";
    	setarray @DLevelName$[@Dref], "Glast Heim Entrance", "St. Abbey", "Churchyard", "Inside Glast Heim", "Castle 1", "Castle 2", "Chivalry 1", "Chivalry 2", "Prison 1", "Prison 2", "Steps", "Sewers 1", "Sewers 2", "Sewers 3", "Sewers 4", "Lowest Cave 1", "Lowest Cave 2";
    	setarray @DXcoords[@Dref], 370, 156, 147, 121, 199, 104, 150, 157, 14, 150, 117, 258, 108, 171, 68, 133, 224;
    	setarray @DYcoords[@Dref], 300, 8, 15, 59, 29, 25, 10, 287, 70, 14, 124, 255, 291, 273, 277, 271, 274;
    	setarray @DDepth[@Dref], 0, 1, 2, 1, 1, 2, 1, 2, 2, 3, 1, 4, 2, 3, 4, 5, 6;
    
    	QWS_Make_Dungeon_Menu 11;
    
    //----------------KUNLUN DUNGEON
    	setarray @pDmenuitems$[@Di], "Kunlun Dungeon";
    	setarray @pDprice[@Di], $QW_OW_PRICE;
    	setarray @pDfee$[@Di], "$QW_OW_FEE";
    	setarray @DLevels[@Di], 3;
    
    	setarray @DGat$[@Dref], "gon_dun01", "gon_dun02", "gon_dun03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 143, 17, 68;
    	setarray @DYcoords[@Dref], 59, 114, 9;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 12;
    
    //----------------HIDDEN DUNGEON
    	setarray @pDmenuitems$[@Di], "Hidden Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 3;
    
    	setarray @DGat$[@Dref], "prt_maze01", "prt_maze02", "prt_maze03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 176, 94, 23;
    	setarray @DYcoords[@Dref], 6, 19, 8;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 13;
    
    //----------------JUPEROS CAVE
    	setarray @pDmenuitems$[@Di], "Juperos Cave";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "juperos_01", "juperos_02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 53, 36;
    	setarray @DYcoords[@Dref], 247, 60;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 14;
    
    //----------------KIEL DUNGEON
    	setarray @pDmenuitems$[@Di], "Kiel Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "kh_dun01", "kh_dun02";
    	setarray @DLevelName$[@Dref], "1st Floor", "2nd Floor";
    	setarray @DXcoords[@Dref], 63, 42;
    	setarray @DYcoords[@Dref], 10, 197;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 28;
    
    //----------------LIGHTHALZEN BIO LAB
    	setarray @pDmenuitems$[@Di], "Lighthalzen Bio Lab";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 3;
    
    	setarray @DGat$[@Dref], "lhz_dun01", "lhz_dun02", "lhz_dun03";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 150, 150, 140;
    	setarray @DYcoords[@Dref], 287, 18, 137;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 15;
    
    //----------------LOUYANG DUNGEON
    	setarray @pDmenuitems$[@Di], "Luoyang Dungeon";
    	setarray @pDprice[@Di], $QW_OW_PRICE;
    	setarray @pDfee$[@Di], "$QW_OW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "lou_dun02", "lou_dun03";
    	setarray @DLevelName$[@Dref], "Royal Tomb Level 1", "Royal Tomb Level 2";
    	setarray @DXcoords[@Dref], 282, 165;
    	setarray @DYcoords[@Dref], 20, 38;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 16;
    
    //----------------MAGMA DUNGEON
    	setarray @pDmenuitems$[@Di], "Magma Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "mag_dun01", "mag_dun02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 126, 47;
    	setarray @DYcoords[@Dref], 69, 32;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 17;
    
    //----------------ODIN TEMPLE
    	setarray @pDmenuitems$[@Di], "Odin Temple";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 1;
    
    	setarray @DGat$[@Dref], "odin_tem01";
    	setarray @DLevelName$[@Dref], "Level 1";
    	setarray @DXcoords[@Dref], 96;
    	setarray @DYcoords[@Dref], 145;
    	setarray @DDepth[@Dref], 0;
    
    	QWS_Make_Dungeon_Menu 18;
    
    //----------------ORC DUNGEON
    	setarray @pDmenuitems$[@Di], "Orc Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "orcsdun01", "orcsdun02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 32, 21;
    	setarray @DYcoords[@Dref], 169, 185;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 19;
    
    //----------------PAYON DUNGEON
    	setarray @pDmenuitems$[@Di], "Payon Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 5;
    
    	setarray @DGat$[@Dref], "pay_dun00", "pay_dun01", "pay_dun02", "pay_dun03", "pay_dun04";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
    	setarray @DXcoords[@Dref], 22, 19, 19, 155, 201;
    	setarray @DYcoords[@Dref], 180, 33, 63, 159, 204;
    	setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
    
    	QWS_Make_Dungeon_Menu 20;
    
    //----------------PYRAMIDS
    	setarray @pDmenuitems$[@Di], "Pyramids Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 6;
    
    	setarray @DGat$[@Dref], "moc_pryd01", "moc_pryd02", "moc_pryd03", "moc_pryd04", "moc_pryd05", "moc_pryd06";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Basement 1", "Basement 2";
    	setarray @DXcoords[@Dref], 192, 10, 100, 181, 94, 192;
    	setarray @DYcoords[@Dref], 9, 192, 92, 11, 96, 8;
    	setarray @DDepth[@Dref], 0, 1, 2, 3, 1, 2;
    
    	QWS_Make_Dungeon_Menu 21;
    
    //----------------SPHINX
    	setarray @pDmenuitems$[@Di], "Sphinx Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 5;
    
    	setarray @DGat$[@Dref], "in_sphinx1", "in_sphinx2", "in_sphinx3", "in_sphinx4", "in_sphinx5";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
    	setarray @DXcoords[@Dref], 192, 149, 210, 10, 100;
    	setarray @DYcoords[@Dref], 9, 81, 54, 222, 99;
    	setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
    
    	QWS_Make_Dungeon_Menu 22;
    
    //----------------SUNKEN SHIP
    	setarray @pDmenuitems$[@Di], "Sunken Ship Dungeon";
    	setarray @pDprice[@Di], $QW_BW_PRICE;
    	setarray @pDfee$[@Di], "$QW_BW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "treasure01", "treasure02";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2";
    	setarray @DXcoords[@Dref], 69, 102;
    	setarray @DYcoords[@Dref], 24, 27;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 23;
    
    //----------------THANATOS TOWER
    	setarray @pDmenuitems$[@Di], "Thanatos Tower";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 13;
    
    	setarray @DGat$[@Dref], "tha_t01", "tha_t02", "tha_t03", "tha_t04", "tha_t05", "tha_t06", "tha_t07", "tha_t08", "tha_t09", "tha_t10", "tha_t11", "tha_t12", "thana_boss";
    	setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Level 7", "Level 8", "Level 9", "Level 10", "Level 11", "Level 12", "Thanatos Boss";
    	setarray @DXcoords[@Dref], 150, 150, 220, 59, 62, 206, 35, 105, 88, 168, 90, 129, 85;
    	setarray @DYcoords[@Dref], 35, 136, 158, 143, 11, 8, 166, 44, 145, 138, 36, 83, 76;
    	setarray @DDepth[@Dref], 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
    
    	QWS_Make_Dungeon_Menu 24;
    
    //----------------TOY FACTORY
    	setarray @pDmenuitems$[@Di], "Toy Factory Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 2;
    
    	setarray @DGat$[@Dref], "xmas_dun01", "xmas_dun02";
    	setarray @DLevelName$[@Dref], "Factory Warehouse", "Classifying Room";
    	setarray @DXcoords[@Dref], 205, 129;
    	setarray @DYcoords[@Dref], 16, 133;
    	setarray @DDepth[@Dref], 0, 1;
    
    	QWS_Make_Dungeon_Menu 25;
    
    //----------------TURTLE ISTLAND
    	setarray @pDmenuitems$[@Di], "Turtle Island Dungeon";
    	setarray @pDprice[@Di], $QW_AW_PRICE;
    	setarray @pDfee$[@Di], "$QW_AW_FEE";
    	setarray @DLevels[@Di], 4;
    
    	setarray @DGat$[@Dref], "tur_dun01", "tur_dun02", "tur_dun03", "tur_dun04";
    	setarray @DLevelName$[@Dref], "Outside", "Level 1", "Level 2", "Level 3";
    	setarray @DXcoords[@Dref], 161, 148, 132, 100;
    	setarray @DYcoords[@Dref], 34, 256, 190, 192;
    	setarray @DDepth[@Dref], 0, 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 26;
    
    //----------------UMBALA
    	setarray @pDmenuitems$[@Di], "Umbala Dungeon";
    	setarray @pDprice[@Di], $QW_OW_PRICE;
    	setarray @pDfee$[@Di], "$QW_OW_FEE";
    	setarray @DLevels[@Di], 3;
    
    	setarray @DGat$[@Dref], "um_dun01", "um_dun02", "yggdrasil01";
    	setarray @DLevelName$[@Dref], "Carpenter's Shop in The Tree", "Passage to a Foreign World", "Hvergelmir's Fountain";
    	setarray @DXcoords[@Dref], 205, 48, 40;
    	setarray @DYcoords[@Dref], 26, 30, 63;
    	setarray @DDepth[@Dref], 0, 1, 2;
    
    	QWS_Make_Dungeon_Menu 27;
    
    //----------------Cancel
    	setarray @pDmenuitems$[@Di], "Cancel";
    	setarray @pDprice[@Di], 0;
    
    	set @Dmenulist$[@Dj],@pDmenuitems$[@Di];
    	set @Dmenuref[@Dj],57005; // 57005='dead' in hex
    	return;
    
    
    //----------------Make Dungeon Menu Function
    
    function	QWS_Make_Dungeon_Menu	{
    	set @tempdungeonmenubin,1;
    	if (getarg(0) == 0) goto menu_item;
    	set @temploopdungeonmenu,0;
    	do {
    		set @tempdungeonmenubin, @tempdungeonmenubin * 2;
    		set @temploopdungeonmenu, @temploopdungeonmenu + 1;
    		}while (getarg(0) > @temploopdungeonmenu);
    // check marker and make menu item
    menu_item:
    	if ((@tempdungeonmenubin & ##QWS_D_Unlock) != @tempdungeonmenubin) {
    		setarray @DLocRef[@Di], @Dref;
    		set @Dref, @Dref+@DLevels[@Di];
    		set @Di,@Di+1;
    		return;
    	}
    	if ($QW_MapUserShow == 1) {
    		set @tempmapusers,0;
    		set @mapusersloop,0;
    		do {
    			set @tempmapusers,(getmapusers(@DGat$[@Dref+@mapusersloop]) + @tempmapusers);
    			set @mapusersloop, (@mapusersloop + 1);
    		} while (@DLevels[@Di] > @mapusersloop);
    		if (@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" ["+@tempmapusers+"] -> "+@pDprice[@Di];
    		if (@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" ["+@tempmapusers+"]";
    		set @Dmenuref[@Dj],@Di;
    		set @Dj,@Dj+1;
    		setarray @DLocRef[@Di], @Dref;
    		set @Dref, @Dref+@DLevels[@Di];
    		set @Di,@Di+1;
    		return;
    	}
    	if (@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
    	if (@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
    	set @Dmenuref[@Dj],@Di;
    	set @Dj,@Dj+1;
    	setarray @DLocRef[@Di], @Dref;
    	set @Dref, @Dref+@DLevels[@Di];
    	set @Di,@Di+1;
    	return;
    }
    }
    
    function	script	QWS_DLarray	{
    //----------------Start building Menu
    	set @DWref,@DLocRef[@DwarpMenu]; // reference to the arrays with leveldata
    	set @DWi,0;  // loop counter
    	set @DWj,0; // menu lines counter
    	cleararray @DWLmenulist$[0],"",20; // Clearing the array to get rid off ghost items in menu
    	do {
    		if ($QW_DL == 0)||($QW_DDL >= @DDepth[@DWref]) {
    			set @warpprice, (@pDprice[@DwarpMenu]+ (getd(@pDfee$[@DwarpMenu])*@DDepth[@DWref]));
    			if (@warpprice != 0)&&($QW_MapUserShow == 0) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" -> "+@warpprice;
    			if (@warpprice == 0)&&($QW_MapUserShow == 0) set @DWLmenulist$[@DWj], @DLevelName$[@DWref];
    			if (@warpprice != 0)&&($QW_MapUserShow == 1) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" ["+getmapusers(@DGat$[@DWref])+"] -> "+@warpprice;
    			if (@warpprice == 0)&&($QW_MapUserShow == 1) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" ["+getmapusers(@DGat$[@DWref])+"]";
    			set @DWLmenuref[@DWj],@DWref;
    			set @DWj,@DWj+1;
    		}
    		set @DWref, @DWref+1;
    		set @DWi,@DWi+1;
    	} while (@DWi < @DLevels[@DwarpMenu]);
    	set @DWLmenulist$[@DWj], "Exit";
    	set @DWLmenuref[@DWj],57005; // 57005='dead' in hex
    	return;
    }
    
    //================Dungeon=Warpras=That=Only=Unlock=================
    
    function	script	QWS_Dungeon_Warpra	{
    	function QWS_D_getbin;
    	function QWS_D_setbin;
    	
    	if ((QWS_D_getbin(getarg(0)) == 0) && (getarg(1) != "")) {
    		mes "[Warpra]";
    		mes getarg(1)+" unlocked!";
    		QWS_D_setbin(getarg(0));
    		return;
    	} else if (QWS_D_getbin(getarg(0)) == 1) {
    		mes "[Warpra]";
    		mes "Sorry, I can only unlock this location.";
    	} else
    		debugmes "QWS_Dungeon_Warpra error, improper syntax?";
    	return;
    
    
    function	QWS_D_setbin	{
    	set @tempsetbindata,1;
    	if (getarg(0) == 0) goto binset;
    	set @temploopsetbin,0;
    	do {
    		set @tempsetbindata, @tempsetbindata * 2;
    		set @temploopsetbin, @temploopsetbin + 1;
    	} while (getarg(0) > @temploopsetbin);
    binset:
    	set ##QWS_D_Unlock,(##QWS_D_Unlock | @tempsetbindata);
    	return;
    }
    
    function	QWS_D_getbin	{
    	set @tempgetbindata,1;
    	if (getarg(0) == 0) goto binget;
    	set @temploopgetbin,0;
    	do {
    		set @tempgetbindata, @tempgetbindata * 2;
    		set @temploopgetbin, @temploopgetbin + 1;
    	} while (getarg(0) > @temploopgetbin);
    binget:
    	if ((@tempgetbindata & ##QWS_D_Unlock) == @tempgetbindata) return 1;
    	return 0;
    }
    }
    
    //==========================Town=Warpras===========================
    
    function	script	QWS_Town_Warpra	{
    	function QWS_T_getbin;
    	function QWS_T_setbin;
    	
    	if ((QWS_T_getbin(getarg(0)) == 0) && (getarg(1) != "")) {
    		mes "[Warpra]";
    		mes getarg(1)+" unlocked!";
    		QWS_T_setbin(getarg(0));
    		return;
    	} else if (QWS_T_getbin(getarg(0)) == 1) {
    		callfunc "Q_Warpra",0;
    	} else
    		debugmes "QWS_Town_Warpra error, improper syntax ?";
    	return;
    
    function	QWS_T_setbin	{
    	set @tempsetbindata,1;
    	if (getarg(0) == 0) goto binset;
    	set @temploopsetbin,0;
    	do {
    		set @tempsetbindata, @tempsetbindata * 2;
    		set @temploopsetbin, @temploopsetbin + 1;
    	} while (getarg(0) > @temploopsetbin);
    binset:
    	set ##QWS_T_Unlock,(##QWS_T_Unlock | @tempsetbindata);
    	return;
    }
    
    function	QWS_T_getbin	{
    	set @tempgetbindata,1;
    	if (getarg(0) == 0) goto binget;
    	set @temploopgetbin,0;
    	do {
    		set @tempgetbindata, @tempgetbindata * 2;
    		set @temploopgetbin, @temploopgetbin + 1;
    	} while (getarg(0) > @temploopgetbin);
    binget:
    	if ((@tempgetbindata & ##QWS_T_Unlock) == @tempgetbindata) return 1;
    	return 0;
    }
    }
    //============================Warpras==============================
    
    -	script	Warpra#0	-1,{ callfunc "Q_Warpra",1; }
    alb2trea,73,101,4	duplicate(Warpra#0)	Warpra#1	113
    ama_fild01,178,325,1	duplicate(Warpra#0)	Warpra#2	113
    gef_fild10,71,339,4	duplicate(Warpra#0)	Warpra#3	113
    izlu2dun,104,82,4	duplicate(Warpra#0)	Warpra#4	113
    mjolnir_02,85,363,4	duplicate(Warpra#0)	Warpra#5	113
    moc_fild04,207,331,4	duplicate(Warpra#0)	Warpra#6	113
    moc_fild19,106,97,4	duplicate(Warpra#0)	Warpra#7	113
    moc_ruins,64,166,4	duplicate(Warpra#0)	Warpra#8	113
    niflheim,197,192,3	duplicate(Warpra#0)	Warpra#9	113
    pay_arche,39,135,4	duplicate(Warpra#0)	Warpra#10	113
    prt_fild05,273,215,4	duplicate(Warpra#0)	Warpra#11	113
    tur_dun01,148,239,4	duplicate(Warpra#0)	Warpra#12	113
    valkyrie,48,35,8	duplicate(Warpra#0)	Warpra#13	113
    yuno_fild03,37,135,4	duplicate(Warpra#0)	Warpra#14	113
    
    alberta,32,240,4	script	Warpra#15	811,{ callfunc "QWS_Town_Warpra",1,"Alberta Town"; close; }
    aldebaran,146,118,4	script	Warpra#16	811,{ callfunc "QWS_Town_Warpra",2,"Aldebaran Town"; close; }
    ayothaya,216,171,5	script	Warpra#17	811,{ callfunc "QWS_Town_Warpra",4,"Ayothaya Town"; close; }
    amatsu,193,81,1	script	Warpra#18	811,{ callfunc "QWS_Town_Warpra",3,"Amatsu Town"; close; }
    comodo,195,158,4	script	Warpra#19	811,{ callfunc "QWS_Town_Warpra",5,"Comodo Town"; close; }
    einbroch,229,196,5	script	Warpra#20	811,{ callfunc "QWS_Town_Warpra",7,"Einbroch Town"; close; }
    einbech,173,131,5	script	Warpra#21	811,{ callfunc "QWS_Town_Warpra",6,"Einbech Town"; close; }
    geffen,116,66,4	script	Warpra#22	811,{ callfunc "QWS_Town_Warpra",8,"Geffen Town"; close; }
    gonryun,152,130,4	script	Warpra#23	811,{ callfunc "QWS_Town_Warpra",9,"Kunlun Town"; close; }
    hugel,90,127,5	script	Warpra#24	811,{ callfunc "QWS_Town_Warpra",10,"Hugel Town"; close; }
    jawaii,107,182,5	script	Warpra#25	811,{ callfunc "QWS_Town_Warpra",12,"Jawaii Town"; close; }
    izlude,132,116,4	script	Warpra#26	811,{ callfunc "QWS_Town_Warpra",11,"Izlude Town"; close; }
    lighthalzen,153,100,5	script	Warpra#27	811,{ callfunc "QWS_Town_Warpra",13,"Lighthalzen Town"; close; }
    louyang,211,106,4	script	Warpra#28	811,{ callfunc "QWS_Town_Warpra",14,"Luoyang Town"; close; }
    morocc,157,95,4	script	Warpra#29	811,{ callfunc "QWS_Town_Warpra",16,"Morocc Town"; close; }
    nif_fild01,319,77,1	script	Warpra#30	811,{ callfunc "QWS_Town_Warpra",17,"Niflheim Town"; close; }
    payon,183,110,4	script	Warpra#31	811,{ callfunc "QWS_Town_Warpra",18,"Payon Town"; close; }
    prontera,159,192,4	script	Warpra#32	811,{ callfunc "QWS_Town_Warpra",0,"Prontera Town"; close; }
    umbala,133,130,4	script	Warpra#33	811,{ callfunc "QWS_Town_Warpra",19,"Umbala Town"; close; }
    xmas,151,136,4	script	Warpra#34	811,{ callfunc "QWS_Town_Warpra",15,"Lutie Town"; close; }
    yuno,138,162,4	script	Warpra#35	811,{ callfunc "QWS_Town_Warpra",20,"Juno Town"; close; }
    brasilis,201,222,4	script	Warpra#36	811,{ callfunc "QWS_Town_Warpra",21,"Brasilis Town"; close; }
    dicastes01,194,194,6	script	Warpra#37	811,{ callfunc "QWS_Town_Warpra",22,"El Dicastes Town"; close; }
    manuk,262,177,4	script	Warpra#38	811,{ callfunc "QWS_Town_Warpra",23,"Manuk Town"; close; }
    mora,110,100,4	script	Warpra#39	811,{ callfunc "QWS_Town_Warpra",24,"Mora Town"; close; }
    moscovia,216,196,6	script	Warpra#40	811,{ callfunc "QWS_Town_Warpra",25,"Moscovia Town"; close; }
    rachel,135,116,4	script	Warpra#41	811,{ callfunc "QWS_Town_Warpra",26,"Rachel Town"; close; }
    splendide,205,153,4	script	Warpra#42	811,{ callfunc "QWS_Town_Warpra",27,"Splendide Town"; close; }
    veins,214,123,4	script	Warpra#43	811,{ callfunc "QWS_Town_Warpra",28,"Veins Town"; close; }
    dewata,194,178,6	script	Warpra#44	811,{ callfunc "QWS_Town_Warpra",29,"Dewata Town"; close; }
    eclage,107,37,4	script	Warpra#45	811,{ callfunc "QWS_Town_Warpra",30,"Eclage Town"; close; }
    
    abyss_02,274,266,1	script	Warpra Helper#0	112,{ callfunc "QWS_Dungeon_Warpra",0,"Abyss Lake"; close; }
    ama_dun02,192,118,5	script	Warpra Helper#1	112,{ callfunc "QWS_Dungeon_Warpra",1,"Amatsu Dungeon"; close; }
    anthell02,170,165,3	script	Warpra Helper#2	112,{ callfunc "QWS_Dungeon_Warpra",2,"Ant Hell Dungeon"; close; }
    ayo_dun02,258,193,5	script	Warpra Helper#3	112,{ callfunc "QWS_Dungeon_Warpra",3,"Ayothaya Dungeon"; close; }
    ein_dun02,292,282,1	script	Warpra Helper#4	112,{ callfunc "QWS_Dungeon_Warpra",8,"Einbech Dungeon"; close; }
    iz_dun03,202,47,2	script	Warpra Helper#5	112,{ callfunc "QWS_Dungeon_Warpra",4,"Byalan Dungeon"; close; }
    c_tower3,129,106,4	script	Warpra Helper#6	112,{ callfunc "QWS_Dungeon_Warpra",5,"Clock Tower Dungeon"; close; }
    mjo_dun02,39,25,4	script	Warpra Helper#7	112,{ callfunc "QWS_Dungeon_Warpra",6,"Coal Mine Dungeon"; close; }
    prt_sewb2,176,30,3	script	Warpra Helper#8	112,{ callfunc "QWS_Dungeon_Warpra",7,"Culvert Dungeon"; close; }
    gefenia03,137,34,0	script	Warpra Helper#9	112,{ callfunc "QWS_Dungeon_Warpra",9,"Gefenia Dungeon"; close; }
    gef_dun02,218,61,2	script	Warpra Helper#10	112,{ callfunc "QWS_Dungeon_Warpra",10,"Gefen Dungeon"; close; }
    glast_01,371,308,3	script	Warpra Helper#11	112,{ callfunc "QWS_Dungeon_Warpra",11,"Glast Heim Dungeon"; close; }
    gon_dun01,167,273,4	script	Warpra Helper#12	112,{ callfunc "QWS_Dungeon_Warpra",12,"Kunlun Dungeon"; close; }
    juperos_02,127,154,5	script	Warpra Helper#13	112,{ callfunc "QWS_Dungeon_Warpra",14,"Juperos Cave"; close; }
    kh_dun01,14,224,3	script	Warpra Helper#14	112,{ callfunc "QWS_Dungeon_Warpra",28,"Kiel Dungeon"; close; }
    lhz_dun02,156,151,5	script	Warpra Helper#15	112,{ callfunc "QWS_Dungeon_Warpra",15,"Lighthalzen Bio Lab"; close; }
    lou_dun02,168,264,4	script	Warpra Helper#16	112,{ callfunc "QWS_Dungeon_Warpra",16,"Luoyang Dungeon"; close; }
    mag_dun02,46,41,3	script	Warpra Helper#17	112,{ callfunc "QWS_Dungeon_Warpra",17,"Magma Dungeon"; close; }
    odin_tem01,115,148,3	script	Warpra Helper#18	112,{ callfunc "QWS_Dungeon_Warpra",18,"Odin Temple"; close; }
    orcsdun01,185,11,3	script	Warpra Helper#19	112,{ callfunc "QWS_Dungeon_Warpra",19,"Orc Dungeon"; close; }
    pay_dun03,162,143,3	script	Warpra Helper#20	112,{ callfunc "QWS_Dungeon_Warpra",20,"Payon Dungeon"; close; }
    moc_pryd02,101,95,3	script	Warpra Helper#21	112,{ callfunc "QWS_Dungeon_Warpra",21,"Pyramides Dungeon"; close; }
    in_sphinx2,274,268,1	script	Warpra Helper#22	112,{ callfunc "QWS_Dungeon_Warpra",22,"Sphinx Dungeon"; close; }
    tha_t07,111,162,3	script	Warpra Helper#23	112,{ callfunc "QWS_Dungeon_Warpra",24,"Thanatos Tower"; close; }
    treasure02,104,40,3	script	Warpra Helper#24	112,{ callfunc "QWS_Dungeon_Warpra",23,"Sunken Ship Dungeon"; close; }
    xmas_dun02,124,131,3	script	Warpra Helper#25	112,{ callfunc "QWS_Dungeon_Warpra",25,"Toy Factory Dungeon"; close; }
    um_dun02,44,28,3	script	Warpra Helper#26	112,{ callfunc "QWS_Dungeon_Warpra",27,"Umbala Dungeon"; close; }
    tur_dun02,162,23,3	script	Warpra Helper#27	112,{ callfunc "QWS_Dungeon_Warpra",26,"Turtle Island Dungeon"; close; }
    prt_maze02,102,69,4	script	Warpra Helper#28	112,{ callfunc "QWS_Dungeon_Warpra",13,"Hidden Dungeon"; close; }

    all is perfect but i need Last Warp option from default custom warper..txt script:

    //===== rAthena Script ======================================= 
    //= Warper
    //===== Description: ========================================= 
    //= A complete - but very condensed - warper script.
    //===== Additional Comments: =================================
    //= 1.0 Initial script By [Euphy].
    //= 1.1 Added missing duplicates and fixed coordinates.
    //=     Some coordinates written by [Tekno-Kanix] and [ToastOfDoom].
    //= 1.2 Added new episodes and simplified functions.
    //= 1.3 Added Renewal checks and Instances menu.
    //=     Aligned coordinates with @go.
    //= 1.4 Added new Guild Dungeons.
    //= 1.4a Slight edits.
    //= 1.4b Added Wolfchev's Laboratory warp.
    //= 1.5 Added Lasagna ,Para Market ,WOE TE ,Instances and settings [sader1992].
    //= 1.5a Fix Bifrost Tower
    //============================================================
    
    -	script	Warper	-1,{
    function Go; function Disp; function Pick; function Restrict;
    
    // --------------------------------------------------
    //	Main Menu:
    // --------------------------------------------------
    
    menu	"Last Warp ^777777["+lastwarp$+"]^000000",-,
        	" ~ Towns",Towns,
        	" ~ Fields",Fields,
        	" ~ Dungeons",Dungeons,
        	" ~ Guild Castles",Castles,
        	" ~ Guild Dungeons",Guild_Dungeons,
        	" ~ Instances",Instances,
        	" ~ Special Areas",Special;
    
    	if (lastwarp$ == "")
    		message strcharinfo(0),"You haven't warped anywhere yet.";
    	else
    		warp lastwarp$,lastwarpx,lastwarpy;
    	end;
    
    // ------------------- Functions -------------------
    // * Go("<map>",<x>,<y>);
    //	~ Warps directly to a map.
    //
    // * Disp("<Menu Option>",<first option>,<last option>);
    // * Pick("<map_prefix>"{,<index offset>});
    //	~ Dynamic menu and map selection (auto-numbered).
    //	~ Fields and Dungeons must use Disp and Pick Functions.
    //
    // * Disp("<Option 1>:<Option 2>:<etc.>");
    // * Pick("","<map1>","<map2>","<etc.>");
    //	~ Manual menu and map selection (listed).
    //
    // * Restrict("<RE | Pre-RE>"{,<menu option numbers>});
    //	~ Only allows map for Renewal or Pre-Renewal modes.
    //     If menu option numbers are given, only those maps
    //     will be restricted (i.e. not for "Go").
    //
    // Other notes:
    //   ~ Array @c[] holds all (x,y) coordinates.
    //   ~ Use @c[2] EXCEPT when maps begin dynamically
    //	  at 0: use @c[0] and Pick() offset 1.
    // --------------------------------------------------
    
    function Go {
    	set lastwarp$, getarg(0);
    	set lastwarpx, getarg(1,0);
    	set lastwarpy, getarg(2,0);
    	warp getarg(0),getarg(1,0),getarg(2,0);
    	end;
    }
    function Disp {
    	if (getargcount() < 3)
    		set @menu$, getarg(0);
    	else {
    		set @menu$,"";
    		for (set .@i,getarg(1); .@i<=getarg(2); set .@i,.@i+1)
    			set @menu$, @menu$+getarg(0)+" "+.@i+":";
    	}
    	return;
    }
    function Pick {
    	set .@warp_block,@warp_block;
    	set @warp_block,0;
    	if((@f && .OnlyFirstFld) || (@d && .OnlyFirstDun)){
    		set .@select,1;
    		if(.@warp_block){
    			while(.@warp_block & (1<<.@select)){
    				.@select += 1;
    			}
    		}
    	}else{
    		set .@select, select(@menu$);
    	}
    	if (getarg(0) == "") {
    		set .@i, .@select;
    		set .@map$, getarg(.@i);
    	} else {
    		set .@i, .@select-getarg(1,0);
    		set .@map$, getarg(0)+((.@i<10)?"0":"")+.@i;
    	}
    	if (.@warp_block & (1<<.@select)) {
    		message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
    		end;
    	}
    	set .@x, @c[.@i*2];
    	set .@y, @c[.@i*2+1];
    	deletearray @c[0],getarraysize(@c);
    	@f = false; @d = false;
    	Go(.@map$,.@x,.@y);
    }
    function Restrict {
    	if ((getarg(0) == "RE" && !checkre(0)) || (getarg(0) == "Pre-RE" && checkre(0))) {
    		if (getarg(1,0)) {
    			set @warp_block,0;
    			for (set .@i,1; .@i<getargcount(); set .@i,.@i+1)
    				set @warp_block, @warp_block | (1<<getarg(.@i));
    		} else {
    			message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
    			end;
    		}
    	}
    	return;
    }
    
    // --------------------------------------------------
    	Towns:
    // --------------------------------------------------
    menu	"Prontera",T1, "Alberta",T2, "Aldebaran",T3, "Amatsu",T4, "Ayothaya",T5,
        	"Brasilis",T6, "Comodo",T7, "Dewata",T8, "Eclage",T9, "Einbech",T10, 
        	"Einbroch",T11, "El Dicastes",T12, "Geffen",T13, "Kunlun",T14, "Hugel",T15,
        	"Izlude",T16, "Jawaii",T17, "Lasagna",T18, "Lighthalzen",T19, "Luoyang",T20,
    		"Lutie",T21, "Malangdo",T22, "Malaya",T23, "Manuk",T24,
    		"Midgarts Expedition Camp",T25, "Mora",T26, "Morocc",T27, "Moscovia",T28,
    		"Nameless Island",T29, "Niflheim",T30, "Payon",T31, "Rachel",T32, "Splendide",T33,
    		"Thor Camp",T34, "Umbala",T35, "Veins",T36, "Juno",T37;
    
    T1: Go("prontera",155,183);
    T2: Go("alberta",28,234);
    T3: Go("aldebaran",140,131);
    T4: Go("amatsu",198,84);
    T5: Go("ayothaya",208,166);
    T6: Restrict("RE");
    	Go("brasilis",196,217);
    T7: Go("comodo",209,143);
    T8: Restrict("RE");
    	Go("dewata",200,180);
    T9: Restrict("RE");
    	Go("ecl_in01",48,53);
    T10: Go("einbech",63,35);
    T11: Go("einbroch",64,200);
    T12: Restrict("RE");
    	 Go("dicastes01",198,187);
    T13: Go("geffen",119,59);
    T14: Go("gonryun",160,120);
    T15: Go("hugel",96,145);
    T16: Go("izlude",128,(checkre(3)?146:114));
    T17: Go("jawaii",251,132);
    T18: Restrict("RE");
    	 Go("lasagna",193,182);
    T19: Go("lighthalzen",158,92);
    T20: Go("louyang",217,100);
    T21: Go("xmas",147,134);
    T22: Restrict("RE");
    	 Go("malangdo",140,114);
    T23: Restrict("RE");
    	 Go("malaya",231,200);
    T24: Go("manuk",282,138);
    T25: Go("mid_camp",210,288);
    T26: Restrict("RE");
    	 Go("mora",55,146);
    T27: Go("morocc",156,93);
    T28: Go("moscovia",223,184);
    T29: Go("nameless_n",256,215);
    T30: Go("niflheim",202,174);
    T31: Go("payon",179,100);
    T32: Go("rachel",130,110);
    T33: Go("splendide",201,147);
    T34: Go("thor_camp",246,68);
    T35: Go("umbala",97,153);
    T36: Go("veins",216,123);
    T37: Go("yuno",157,51);
    
    // --------------------------------------------------
    	Fields:
    // --------------------------------------------------
    @f = true;
    menu	"Amatsu Fields",F1, "Ayothaya Fields",F2, "Bifrost Fields", F3,
        	"Brasilis Fields",F4, "Comodo Fields",F5, "Dewata Fields",F6,
        	"Eclage Fields",F7, "Einbroch Fields",F8, "El Dicastes Fields",F9,
        	"Geffen Fields",F10, "Kunlun Fields",F11, "Hugel Fields",F12,
    		"Lasagna Fields",F13, "Lighthalzen Fields",F14, "Luoyang Field",F15, 
    		"Lutie Field",F16, "Malaya Fields",F17, "Manuk Fields",F18, 
    		"Mjolnir Fields",F19, "Moscovia Fields",F20, "Niflheim Fields",F21, 
    		"Payon Forests",F22, "Prontera Fields",F23, "Rachel Fields",F24, 
    		"Sograt Deserts",F25, "Splendide Fields",F26, "Umbala Fields",F27, 
    		"Veins Fields",F28, "Juno Fields",F29;
    
    F1: setarray @c[2],190,197;
    	Disp("Amatsu Field",1,1); Pick("ama_fild");
    F2: setarray @c[2],173,134,212,150;
    	Disp("Ayothaya Field",1,2); Pick("ayo_fild");
    F3: Restrict("RE");
    	setarray @c[2],193,220,220,187;
    	Disp("Bifrost Field",1,2); Pick("bif_fild");
    F4: Restrict("RE");
    	setarray @c[2],74,32;
    	Disp("Brasilis Field",1,1); Pick("bra_fild");
    F5: Restrict("Pre-RE",5);
    	setarray @c[2],180,178,231,160,191,172,228,194,224,203,190,223,234,177,194,175,172,172;
    	Disp("Comodo Field",1,9); Pick("cmd_fild");
    F6: Restrict("RE");
    	setarray @c[2],371,212;
    	Disp("Dewata Field",1,1); Pick("dew_fild");
    F7: Restrict("RE");
    	setarray @c[2],97,314;
    	Disp("Eclage Field",1,1); Pick("ecl_fild");
    F8: Restrict("Pre-RE",2,10);
    	setarray @c[2],142,225,182,141,187,228,185,173,216,173,195,148,272,220,173,214,207,174,196,200;
    	Disp("Einbroch Field",1,10); Pick("ein_fild");
    F9: Restrict("RE");
    	setarray @c[2],143,132,143,217;
    	Disp("El Dicastes Field",1,2); Pick("dic_fild");
    F10: Restrict("Pre-RE",13,15);
    	 setarray @c[0],46,199,213,204,195,212,257,192,188,171,166,263,248,158,195,191,186,183,221,117,178,218,136,328,240,181,235,235,211,185;
    	 Disp("Geffen Field",0,14); Pick("gef_fild",1);
    F11: setarray @c[2],220,227;
    	 Disp("Kunlun Field",1,1); Pick("gon_fild");
    F12: Restrict("Pre-RE",3,7);
    	 setarray @c[2],268,101,222,193,232,185,252,189,196,106,216,220,227,197;
    	 Disp("Hugel Field",1,7); Pick("hu_fild");
    F13: Restrict("RE");
    	 setarray @c[2],344,371,20,98;
    	 Disp("Lasagna Field",1,2); Pick("lasa_fild");	 
    F14: setarray @c[2],240,179,185,235,240,226;
    	 Disp("Lighthalzen Field",1,3); Pick("lhz_fild");
    F15: setarray @c[2],229,187;
    	 Disp("Luoyang Field",1,1); Pick("lou_fild");
    F16: setarray @c[2],115,145;
    	 Disp("Lutie Field",1,1); Pick("xmas_fild");
    F17: Restrict("RE");
    	 setarray @c[2],40,272,207,180;
    	 Disp("Malaya Field",1,2); Pick("ma_fild");
    F18: setarray @c[2],35,236,35,262,84,365;
    	 Disp("Manuk Field",1,3); Pick("man_fild");
    F19: setarray @c[2],204,120,175,193,208,213,179,180,181,240,195,270,235,202,188,215,205,144,245,223,180,206,196,208;
    	 Disp("Mjolnir Field",1,12); Pick("mjolnir_");
    F20: setarray @c[2],82,104,131,147;
    	 Disp("Moscovia Field",1,2); Pick("mosk_fild");
    F21: setarray @c[2],215,229,167,234;
    	 Disp("Niflheim Field",1,2); Pick("nif_fild");
    F22: Restrict("Pre-RE",5,11);
    	 setarray @c[2],158,206,151,219,205,148,186,247,134,204,193,235,200,177,137,189,201,224,160,205,194,150;
    	 Disp("Payon Forest",1,11); Pick("pay_fild");
    F23: setarray @c[0],208,227,190,206,240,206,190,143,307,252,239,213,185,188,193,194,187,218,210,183,195,149,198,164;
    	 Disp("Prontera Field",0,11); Pick("prt_fild",1);
    F24: Restrict("Pre-RE",2,7,9,10,11,13);
    	 setarray @c[2],192,162,235,166,202,206,202,208,225,202,202,214,263,196,217,201,87,121,277,181,221,185,175,200,174,197;
    	 Disp("Rachel Field",1,13); Pick("ra_fild");
    F25: if(.Satan_Morocc){
    	 setarray @c[2],219,205,177,206,194,182,224,170,198,216,156,187,185,263,206,228,208,238,209,223,85,97,207,202,31,195,38,195;
    	 Disp("Sograt Desert 1:Sograt Desert 2:Sograt Desert 3:Sograt Desert 7:Sograt Desert 11:Sograt Desert 12:Sograt Desert 13:Sograt Desert 16:Sograt Desert 17:Sograt Desert 18:Sograt Desert 19:Sograt Desert 20:Sograt Desert 21:Sograt Desert 22");
    	 Pick("","moc_fild01","moc_fild02","moc_fild03","moc_fild07","moc_fild11","moc_fild12","moc_fild13","moc_fild16","moc_fild17","moc_fild18","moc_fild19","moc_fild20","moc_fild21","moc_fild22");
    	 }else{
    	 setarray @c[2],219,205,177,206,194,182,146,297,204,197,275,302,224,170,139,123,101,110,341,39,198,216,156,187,185,263,223,222,170,257,206,228,208,238,209,223,85,97;
    	 Disp("Sograt Desert",1,19); Pick("moc_fild");
    	 }
    F26: setarray @c[2],175,186,236,184,188,204;
    	 Disp("Splendide Field",1,3); Pick("spl_fild");
    F27: setarray @c[2],217,206,223,221,237,215,202,197;
    	 Disp("Umbala Field",1,4); Pick("um_fild");
    F28: Restrict("Pre-RE",5);
    	 setarray @c[2],186,175,196,370,222,45,51,250,202,324,150,223,149,307;
    	 Disp("Veins Field",1,7); Pick("ve_fild");
    F29: Restrict("Pre-RE",5,10);
    	 setarray @c[2],189,224,192,207,221,157,226,199,223,177,187,232,231,174,196,203,183,214,200,124,195,226,210,304;
    	 Disp("Juno Field",1,12); Pick("yuno_fild");
    
    // --------------------------------------------------
    	Dungeons:
    // --------------------------------------------------
    @d = true;
    menu	"Abyss Lakes",D1, "Amatsu Dungeon",D2, "Anthell",D3,
        	"Ayothaya Dungeon",D4, "Beach Dungeon",D5, "Bifrost Tower",D42,
        	"Bio Labs",D6, "Brasilis Dungeon",D7, "Byalan Dungeon",D8, "Clock Tower",D9,
        	"Coal Mines",D10, "Culvert",D11, "Cursed Abbey",D12, "Dewata Dungeon",D13,
        	"Einbroch Dungeon",D14, "Gefenia",D15, "Geffen Dungeon",D16,
        	"Glast Heim",D17, "Kunlun Dungeon",D18, "Hidden Dungeon",D19,
        	"Ice Dungeon",D20, "Juperos",D21, "Kiel Dungeon",D22, "Lasagna Dungeon",D23,
    		"Luoyang Dungeon",D24, "Magma Dungeon",D25, "Malangdo Dungeon",D26,
    		"Moscovia Dungeon",D27, "Nidhogg's Dungeon",D28, "Odin Temple",D29,
    		"Orc Dungeon",D30, "Payon Dungeon",D31, "Pyramids",D32, "Rachel Sanctuary",D33,
        	"Scaraba Hole",D34, "Sphinx",D35, "Sunken Ship",D36, "Thanatos Tower",D37,
        	"Thor Volcano",D38, "Toy Factory",D39, "Turtle Dungeon",D40, "Umbala Dungeon",D41;
    
    D1: setarray @c[2],261,272,275,270,116,27;
    	Disp("Abyss Lakes",1,3); Pick("abyss_");
    D2: setarray @c[2],228,11,34,41,119,14;
    	Disp("Amatsu Dungeon",1,3); Pick("ama_dun");
    D3: setarray @c[2],35,262,168,170;
    	Disp("Anthell",1,2); Pick("anthell");
    D4: setarray @c[2],275,19,24,26;
    	Disp("Ancient Shrine Maze:Inside Ancient Shrine"); Pick("ayo_dun");
    D5: setarray @c[2],266,67,255,244,23,260;
    	Disp("Beach Dungeon",1,3); Pick("","beach_dun","beach_dun2","beach_dun3");
    D6: Restrict("RE",4);
    	setarray @c[2],150,288,150,18,140,134,244,52;
    	Disp("Bio Lab",1,4); Pick("lhz_dun");
    D7: Restrict("RE");
    	setarray @c[2],87,47,262,262;
    	Disp("Brasilis Dungeon",1,2); Pick("bra_dun");
    D8: Restrict("RE",6);
    	setarray @c[0],168,168,253,252,236,204,32,63,26,27,141,187;
    	Disp("Byalan Dungeon",1,6); Pick("iz_dun",1);
    D9: setarray @c[2],199,159,148,283,65,147,56,155,297,25,127,169,277,178,268,74;
    	Disp("Clock Tower 1:Clock Tower 2:Clock Tower 3:Clock Tower 4:Basement 1:Basement 2:Basement 3:Basement 4");
    	Pick("","c_tower1","c_tower2","c_tower3","c_tower4","alde_dun01","alde_dun02","alde_dun03","alde_dun04");
    D10: setarray @c[2],52,17,381,343,302,262;
    	 Disp("Coal Mines",1,3); Pick("mjo_dun");
    D11: setarray @c[2],131,247,19,19,180,169,100,92;
    	 Disp("Culvert",1,4); Pick("","prt_sewb1","prt_sewb2","prt_sewb3","prt_sewb4");
    D12: setarray @c[2],51,14,150,11,120,10;
    	 Disp("Cursed Abbey",1,3); Pick("abbey");
    D13: Restrict("RE");
    	 setarray @c[2],285,160,299,29;
    	 Disp("Dewata Dungeon",1,2); Pick("dew_dun");
    D14: setarray @c[2],22,14,292,290;
    	 Disp("Einbroch Dungeon",1,2); Pick("ein_dun");
    D15: setarray @c[2],40,103,203,34,266,168,130,272;
    	 Disp("Gefenia",1,4); Pick("gefenia",0);
    D16: setarray @c[0],104,99,115,236,106,132,203,200;
    	 Disp("Geffen Dungeon",1,4); Pick("gef_dun",1);
    D17: setarray @c[2],370,304,199,29,104,25,150,15,157,287,147,15,258,255,108,291,171,283,68,277,156,7,12,7,133,271,224,274,14,70,150,14;
    	 Disp("Entrance:Castle 1:Castle 2:Chivalry 1:Chivalry 2:Churchyard:Culvert 1:Culvert 2:Culvert 3:Culvert 4:St. Abbey:Staircase Dungeon:Underground Cave 1:Underground Cave 2:Underground Prison 1:Underground Prison 2");
    	 Pick("","glast_01","gl_cas01","gl_cas02","gl_knt01","gl_knt02","gl_chyard","gl_sew01","gl_sew02","gl_sew03","gl_sew04","gl_church","gl_step","gl_dun01","gl_dun02","gl_prison","gl_prison1");
    D18: setarray @c[2],153,53,28,113,68,16;
    	 Disp("Kunlun Dungeon",1,3); Pick("gon_dun");
    D19: setarray @c[2],176,7,93,20,23,8;
    	 Disp("Hidden Dungeon",1,3); Pick("prt_maze");
    D20: setarray @c[2],157,14,151,155,149,22,33,158;
    	 Disp("Ice Dungeon",1,4); Pick("ice_dun");
    D21: setarray @c[2],140,51,53,247,37,63,150,285;
    	 Disp("Entrance:Juperos 1:Juperos 2:Core");
    	 Pick("","jupe_cave","juperos_01","juperos_02","jupe_core");
    D22: setarray @c[2],28,226,41,198;
    	 Disp("Kiel Dungeon",1,2); Pick("kh_dun");
    D23: Restrict("RE");
    	 setarray @c[2],24,143,22,171,190,18;
    	 Disp("Lasagna Dungeon",1,3); Pick("lasa_dun");
    D24: setarray @c[2],218,196,282,20,165,38;
    	 Disp("The Royal Tomb:Inside the Royal Tomb:Suei Long Gon"); Pick("lou_dun");
    D25: setarray @c[2],126,68,47,30;
    	 Disp("Magma Dungeon",1,2); Pick("mag_dun");
    D26: Restrict("RE");
    	 setarray @c[2],33,230;
    	 Disp("Malangdo Dungeon",1,1); Pick("mal_dun");
    D27: setarray @c[2],189,48,165,30,32,135;
    	 Disp("Moscovia Dungeon",1,3); Pick("mosk_dun");
    D28: setarray @c[2],61,239,60,271;
    	 Disp("Nidhogg's Dungeon",1,2); Pick("nyd_dun");
    D29: setarray @c[2],298,167,224,149,266,280;
    	 Disp("Odin Temple",1,3); Pick("odin_tem");
    D30: setarray @c[2],32,170,21,185;
    	 Disp("Orc Dungeon",1,2); Pick("orcsdun");
    D31: setarray @c[0],21,183,19,33,19,63,155,159,201,204;
    	 Disp("Payon Dungeon",1,5); Pick("pay_dun",1);
    D32: Restrict("RE",7,8);
    	 setarray @c[2],192,9,10,192,100,92,181,11,94,96,192,8,94,96,192,8;
    	 Disp("Pyramids 1:Pyramids 2:Pyramids 3:Pyramids 4:Basement 1:Basement 2:Basement 1 - Nightmare Mode:Basement 2 - Nightmare Mode");
    	 Pick("","moc_pryd01","moc_pryd02","moc_pryd03","moc_pryd04","moc_pryd05","moc_pryd06","moc_prydn1","moc_prydn2");
    D33: setarray @c[2],140,11,32,21,8,149,204,218,150,9;
    	 Disp("Rachel Sanctuary",1,5); Pick("ra_san");
    D34: Restrict("RE");
    	 setarray @c[2],364,44,101,141;
    	 Disp("Scaraba Hole",1,2); Pick("dic_dun");
    D35: setarray @c[2],288,9,149,81,210,54,10,222,100,99;
    	 Disp("Sphinx",1,5); Pick("","in_sphinx1","in_sphinx2","in_sphinx3","in_sphinx4","in_sphinx5");
    D36: setarray @c[2],69,24,102,27;
    	 Disp("Sunken Ship",1,2); Pick("treasure");
    D37: setarray @c[2],150,39,150,136,220,158,59,143,62,11,89,221,35,166,93,148,29,107,159,138,19,20,130,52;
    	 Disp("Thanatos Tower",1,12); Pick("tha_t");
    D38: setarray @c[2],21,228,75,205,34,272;
    	 Disp("Thor Volcano",1,3); Pick("thor_v");
    D39: setarray @c[2],205,15,129,133;
    	 Disp("Toy Factory",1,2); Pick("xmas_dun");
    D40: setarray @c[2],154,49,148,261,132,189,100,192;
    	 Disp("Entrance:Turtle Dungeon 1:Turtle Dungeon 2:Turtle Dungeon 3"); Pick("tur_dun");
    D41: Restrict("Pre-RE",1,2);
    	 setarray @c[2],42,31,48,30,204,78;
    	 Disp("Carpenter's Shop in the Tree:Passage to a Foreign World:Hvergermil's Fountain");
    	 Pick("","um_dun01","um_dun02","yggdrasil01");
    D42: Restrict("RE");
    	 setarray @c[2],57,13,64,88,45,14,26,23;
    	 Disp("Bifrost Tower",1,4); Pick("ecl_tdun");
    
    // --------------------------------------------------
    	Castles:
    // --------------------------------------------------
    menu	"[FE] Aldebaran Castles",C1, "[FE] Geffen Castles",C2, "[FE] Payon Castles",C3,
        	"[FE] Prontera Castles",C4, "[SE] Arunafeltz Castles",C5, "[SE] Schwarzwald Castles",C6,
    		"[TE] Aldebaran Castles",C7, "[TE] Prontera Castles",C8;
    
    C1: setarray @c[2],48,83,95,249,142,85,239,242,264,90;
    	Disp("Neuschwanstein:Hohenschwangau:Nuenberg:Wuerzburg:Rothenburg");
    	Pick("","alde_gld","alde_gld","alde_gld","alde_gld","alde_gld");
    C2: setarray @c[2],214,75,308,240,143,240,193,278,305,87;
    	Disp("Repherion:Eeyolbriggar:Yesnelph:Bergel:Mersetzdeitz");
    	Pick("","gef_fild13","gef_fild13","gef_fild13","gef_fild13","gef_fild13");
    C3: setarray @c[2],121,233,295,116,317,293,140,160,204,266;
    	Disp("Bright Arbor:Scarlet Palace:Holy Shadow:Sacred Altar:Bamboo Grove Hill");
    	Pick("","pay_gld","pay_gld","pay_gld","pay_gld","pay_gld");
    C4: setarray @c[2],134,65,240,128,153,137,111,240,208,240;
    	Disp("Kriemhild:Swanhild:Fadhgridh:Skoegul:Gondul");
    	Pick("","prt_gld","prt_gld","prt_gld","prt_gld","prt_gld");
    C5: setarray @c[2],158,272,83,47,68,155,299,345,292,107;
    	Disp("Mardol:Cyr:Horn:Gefn:Banadis");
    	Pick("","aru_gld","aru_gld","aru_gld","aru_gld","aru_gld");
    C6: setarray @c[2],293,100,288,252,97,196,137,90,71,315;
    	Disp("Himinn:Andlangr:Viblainn:Hljod:Skidbladnir");
    	Pick("","sch_gld","sch_gld","sch_gld","sch_gld","sch_gld");
    C7: Restrict("RE");
    	setarray @c[2],48,83,95,249,142,85,239,242,264,90;
    	Disp("Kafragarten 1:Kafragarten 2:Kafragarten 3:Kafragarten 4:Kafragarten 5");
    	Pick("","te_alde_gld","te_alde_gld","te_alde_gld","te_alde_gld","te_alde_gld");
    C8: Restrict("RE");
    	setarray @c[2],134,65,240,128,153,137,111,240,208,240;
    	Disp("Gloria 1:Gloria 2:Gloria 3:Gloria 4:Gloria 5");
    	Pick("","te_prt_gld","te_prt_gld","te_prt_gld","te_prt_gld","te_prt_gld");
    	
    // --------------------------------------------------
    	Guild_Dungeons:
    // --------------------------------------------------
    menu	"Baldur",G1, "Luina",G2, "Valkyrie",G3, "Britoniah",G4,
        	"Arunafeltz",G5, "Schwarzwald",G6, "Kafragarten",G7,
    		"Gloria",G8;
    
    G1: Restrict("RE",2,3);
    	setarray @c[2],119,93,119,93,120,130;
    	Disp("Baldur F1:Baldur F2:Hall of Abyss");
    	Pick("","gld_dun01","gld_dun01_2","gld2_pay");
    G2: Restrict("RE",2,3);
    	setarray @c[2],39,161,39,161,147,155;
    	Disp("Luina F1:Luina F2:Hall of Abyss");
    	Pick("","gld_dun02","gld_dun02_2","gld2_ald");
    G3: Restrict("RE",2,3);
    	setarray @c[2],50,44,50,44,140,132;
    	Disp("Valkyrie F1:Valkyrie F2:Hall of Abyss");
    	Pick("","gld_dun03","gld_dun03_2","gld2_prt");
    G4: Restrict("RE",2,3);
    	setarray @c[2],116,45,116,45,152,118;
    	Disp("Britoniah F1:Britoniah F2:Hall of Abyss");
    	Pick("","gld_dun04","gld_dun04_2","gld2_gef");
    G5: Go("arug_dun01",199,195);
    G6: Go("schg_dun01",200,124);
    G7: Restrict("RE");
    	Go("teg_dun01",42,36);
    G8: Restrict("RE");
    	Go("teg_dun02",26,160);
    
    // --------------------------------------------------
    	Instances:
    // --------------------------------------------------
    menu	"Bakonawa Lake",I1, "Bangungot Hospital 2F",I2, "Buwaya Cave",I3,
    		"Devil Tower",I4, "Eclage Interior",I5, "Endless Tower",I6,
    		"Faceworms Nest",I7, "Geffen Magic Tournament",I8, "Ghost Palace",I9,
    		"Hazy Forest",I10, "Horror Toy Factory",I11, "Malangdo Culvert",I12,
    		"Nidhoggur's Nest",I13, "Octopus Cave",I14, "Old Glast Heim",I15,
    		"Orc's Memory",I16, "Sarah and Fenrir",I17, "Sara Memory",I18,
    		"Sealed Shrine",I19, "Wolfchev's Laboratory",I20;
    
    I1: Restrict("RE");
    	Go("ma_scene01",172,175);
    I2: Restrict("RE");
    	Go("ma_dun01",151,8);
    I3: Restrict("RE");
    	Go("ma_fild02",316,317);
    I4: Restrict("RE");
    	Go("dali02",137,115);
    I5: Restrict("RE");
    	Go("ecl_hub01",129,12);
    I6: Go("e_tower",72,112);
    I7: Restrict("RE");
    	Go("dali",85,64);
    I8: Restrict("RE");
    	Go("dali",94,141);
    I9: Restrict("RE");
    	Go("dali02",46,128);
    I10: Restrict("RE");
    	Go("bif_fild01",161,334);
    I11: Restrict("RE");
    	Go("xmas",234,298);
    I12: Restrict("RE");
    	Go("mal_in01",164,21);
    I13: Go("nyd_dun02",95,193);
    I14: Restrict("RE");
    	Go("mal_dun01",152,230);
    I15: Restrict("RE");
    	Go("glast_01",204,268);
    I16: Go("gef_fild10",240,198);
    I17: Restrict("RE");
    	Go("dali02",92,141);
    I18: Restrict("RE");
    	Go("dali",133,108);
    I19: Go("monk_test",306,143);
    I20: Restrict("RE");
    	Go("lhz_dun04",148,269);
    
    // --------------------------------------------------
    	Special:
    // --------------------------------------------------
    menu	"Auction Hall",S1, "Battlegrounds",S2, "Casino",S3, "Dimensional Rift",S4,
    		"Eden Group Headquarters",S5, "Kunlun Arena",S6, "Izlude Arena",S7, 
    		"Monster Race Arena",S8, "Para Market",S9, "Turbo Track",S10;
    
    S1: Go("auction_01",22,68);
    S2: Go("bat_room",154,150);
    S3: Go("cmd_in02",179,129);
    S4: Restrict("RE");
    	Go("dali",113,82);	
    S5: Restrict("RE");
    	Go("moc_para01",31,14);
    S6: Go("gon_test",48,10);
    S7: Go("arena_room",100,88);
    S8: Go("p_track01",62,41);
    S9: Restrict("RE");
    	Go("paramk",97,17);
    S10: Go("turbo_room",99,114);
    
    OnInit:
    	.Satan_Morocc = true;	//	false will enable moc_fild 4,5,6,8,9,10,14,15 while disable moc_fild 20,21,22 Default is true.
    	.OnlyFirstFld = false;	//	true will teleport to the first level of the Fields  Default is false.
    	.OnlyFirstDun = false;	//	true will teleport to the first level of the Dungeons  Default is false.
    }
    
    // --------------------------------------------------
    //	Duplicates:
    // --------------------------------------------------
    alb2trea,57,70,6	duplicate(Warper)	Warper#tre	811
    alberta,28,240,4	duplicate(Warper)	Warper#alb	811
    aldebaran,145,118,4	duplicate(Warper)	Warper#alde	811
    amatsu,203,87,4	duplicate(Warper)	Warper#ama	811
    ayothaya,209,169,6	duplicate(Warper)	Warper#ayo	811
    comodo,194,158,4	duplicate(Warper)	Warper#com	811
    einbech,59,38,6	duplicate(Warper)	Warper#einbe	811
    einbroch,69,202,4	duplicate(Warper)	Warper#einbr	811
    gef_fild10,71,339,4	duplicate(Warper)	Warper#orc	811
    geffen,124,72,4	duplicate(Warper)	Warper#gef	811
    glast_01,372,308,4	duplicate(Warper)	Warper#glh	811
    gonryun,162,122,4	duplicate(Warper)	Warper#gon	811
    hugel,101,151,4	duplicate(Warper)	Warper#hug	811
    izlu2dun,110,92,4	duplicate(Warper)	Warper#izd	811
    izlude,134,150,4	duplicate(Warper)	Warper#izl	811	//Pre-RE: (132,120)
    jawaii,253,138,4	duplicate(Warper)	Warper#jaw	811
    lighthalzen,162,102,4	duplicate(Warper)	Warper#lhz	811
    louyang,208,103,6	duplicate(Warper)	Warper#lou	811
    manuk,274,146,6	duplicate(Warper)	Warper#man	811
    mid_camp,216,288,4	duplicate(Warper)	Warper#mid	811
    mjolnir_02,85,364,4	duplicate(Warper)	Warper#mjo	811
    moc_ruins,64,164,4	duplicate(Warper)	Warper#moc	811
    morocc,159,97,4	duplicate(Warper)	Warper#mor	811
    moscovia,229,191,4	duplicate(Warper)	Warper#mos	811
    nameless_n,259,213,4	duplicate(Warper)	Warper#nam	811
    niflheim,205,179,4	duplicate(Warper)	Warper#nif	811
    pay_arche,42,134,4	duplicate(Warper)	Warper#arc	811
    payon,182,108,4	duplicate(Warper)	Warper#pay	811
    prontera,159,192,4	duplicate(Warper)	Warper#prt	811
    prt_fild05,279,223,6	duplicate(Warper)	Warper#cul	811
    rachel,135,116,4	duplicate(Warper)	Warper#rac	811
    splendide,205,153,4	duplicate(Warper)	Warper#spl	811
    thor_camp,249,76,4	duplicate(Warper)	Warper#thor	811
    umbala,106,150,3	duplicate(Warper)	Warper#umb	811
    veins,214,123,4	duplicate(Warper)	Warper#ve	811
    xmas,150,136,6	duplicate(Warper)	Warper#xmas	811
    yuno,162,47,4	duplicate(Warper)	Warper#yuno	811
    
    // --------------------------------------------------
    //	Duplicates (Renewal):
    // --------------------------------------------------
    brasilis,201,222,4	duplicate(Warper)	Warper#bra	811
    dewata,204,186,6	duplicate(Warper)	Warper#dew	811
    dicastes01,194,194,6	duplicate(Warper)	Warper#dic	811
    ecl_in01,51,60,4	duplicate(Warper)	Warper#ecl	811
    lasagna,196,187,4	duplicate(Warper)	Warper#las	811
    malangdo,134,117,6	duplicate(Warper)	Warper#mal	811
    malaya,231,204,4	duplicate(Warper)	Warper#ma	811
    mora,57,152,4	duplicate(Warper)	Warper#mora	811

    if somone will help me with that i will be very grateful.

  4. all work good now but i have another problem i forgot to mention, after reload healer i have this errors in mapserv:

    [Status]: NPC file 'npc/custom/healer.txt' was reloaded.
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer at prontera (153,193)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#alb at alberta (25,240)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#alde at aldebaran (135,118)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#ama at amatsu (204,112)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#ayo at ayothaya (144,117)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#com at comodo (184,158)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#einbe at einbech (57,36)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#einbr at einbroch (57,202)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#gef at geffen (115,72)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#gon at gonryun (156,122)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#hug at hugel (89,150)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#izl at izlude (121,150)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#jaw at jawaii (250,139)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#lhz at lighthalzen (152,100)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#lou at louyang (223,120)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#man at manuk (272,144)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#mid at mid_camp (203,289)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#moc at moc_ruins (72,164)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#mor at morocc (153,97)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#mos at moscovia (220,191)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#nif at niflheim (212,182)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#pay at payon (163,226)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#rac at rachel (125,116)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#spl at splendide (201,153)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#thor at thor_camp (249,74)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#umb at umbala (105,148)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#ve at veins (217,121)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#xmas at xmas (143,136)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Error]: get_val_: fatal error ! player not attached!
    [Debug]: Function: setr (2 parameters):
    [Debug]: Data: variable name='.spirit' index=18
    [Debug]: Data: variable name='SL_ALCHEMIST' index=0
    [Debug]: Source (NPC): Healer#yuno at yuno (164,45)
    [Warning]: script:get_val: cannot access player variable 'SL_ALCHEMIST', defaulting to 0
    [Status]: Event 'OnInit' executed with '29' NPCs.

    any fix for that ?

  5. Hello i'm using this healer script on my server:

     

    //===== Hercules Script ======================================
    //= Healer npc
    //===== By: ==================================================
    //= AnnieRuru
    //===== Current Version: =====================================
    //= 1.0
    //===== Compatible With: ===================================== 
    //= Hercules 2015-12-02
    //===== Description: =========================================
    //= my custom healer script used on defunt ComelRO
    //===== Topic ================================================
    //= http://herc.ws/board/topic/11193-edite-my-healer-by-annieruru/?hl=healer#entry66007
    //===== Additional Comments: =================================  
    //= ComelRO was a high rate server ... I posted it on eathena forum when it went down
    //= https://www.eathena.ws/board/index.php?s=&showtopic=274421&view=findpost&p=1504415
    //============================================================
    
    prontera,155,185,5	script	Healer	1_F_MARIA,{
    
    	.@cooldown = 10; // how many seconds before the player can heal again
    
    	if ( @heal_cooldown + .@cooldown > gettimetick(2) ) {
    		dispbottom "You need wait for " + ( @heal_cooldown + .@cooldown - gettimetick(2) ) + " seconds.";
    		end;
    	}
    
    //	disable negative buffs ... I out from RO scene for about 4 years, so this is my only known negative buffs
    	sc_end SC_STONE;
    	sc_end SC_FREEZE;
    	sc_end SC_STUN;
    	sc_end SC_SLEEP;
    	sc_end SC_POISON;
    	sc_end SC_CURSE;
    	sc_end SC_SILENCE;
    	sc_end SC_CONFUSION;
    	sc_end SC_BLIND;
    	sc_end SC_BLOODING;
    	sc_end SC_DPOISON;
    	sc_end SC_FEAR;
    	sc_end SC_COLD;
    	sc_end SC_BURNING;
    	sc_end SC_DEEP_SLEEP;
    	sc_end SC_DEC_AGI;
    	sc_end SC_BROKENARMOR;
    	sc_end SC_BROKENWEAPON;
    	sc_end SC_NOEQUIPWEAPON;
    	sc_end SC_NOEQUIPSHIELD;
    	sc_end SC_NOEQUIPARMOR;
    	sc_end SC_NOEQUIPHELM;
    	sc_end SC__STRIPACCESSARY;
    	sc_end SC_PROPERTYUNDEAD;
    	sc_end SC_ORCISH;
    	sc_end SC_BERSERK;
    	sc_end SC_SKE;
    	sc_end SC_SWOO;
    	sc_end SC_SKA;
    
    //	give players buff ... don't give too much otherwise player wanna spam
    	.@time = 300000; // the buff last 5 minutes
    	sc_start SC_INC_AGI, .@time, 10;
    	sc_start SC_BLESSING, .@time, 10;
    //	sc_start SC_CONCENTRATION, .@time, 10;
    //	sc_start SC_IMPOSITIO, .@time, 5;
    //	sc_start SC_SUFFRAGIUM, .@time, 3;
    //	sc_start SC_KYRIE, .@time, 10;
    //	sc_start SC_MAGNIFICAT, .@time, 5;
    //	sc_start SC_GLORIA, .@time, 5;
    //	sc_start SC_WINDWALK, .@time, 5;
    //	sc_start SC_ANGELUS, .@time, 10;
    
    //	give player's soul link
    	if ( .@spirit = .spirit[BaseJob] );
    	else if ( Upper & 1 && BaseLevel < 70 )
    		.@spirit = SL_HIGH;
    	if ( .@spirit ) {
    		sc_start4 SC_SOULLINK, .@time, 1, .@spirit,0,0;
    		skilleffect .@spirit, 1;
    	}
    
    //	automatically turn all oridecon and elunium stone into pure stone to reduce player's weight
    	.@ori = countitem(Oridecon_Stone);
    	if ( .@ori >= 5 ) {
    		delitem Oridecon_Stone, .@ori / 5 * 5;
    		getitem Oridecon, .@ori / 5;
    		message strcharinfo(0), "Refined "+ ( .@ori / 5 * 5 ) +" Oridecon Stones, got "+ ( .@ori / 5 ) +" Oridecons.";
    	}
    	.@elu = countitem(Elunium_Stone);
    	if ( .@elu >= 5 ) {
    		delitem Elunium_Stone, .@elu / 5 * 5;
    		getitem Elunium, .@elu / 5;
    		message strcharinfo(0), "Refined "+ ( .@elu / 5 * 5 ) +" Elunium Stones, got "+ ( .@elu / 5 ) +" Eluniums.";
    	}
    
    //	repair all player's broken eqiupments
    	repairall;
    
    //	identify all player's equipments
    	getinventorylist;
    	for( .@i = 0; .@i < @inventorylist_count; .@i++ ) {
    		if ( @inventorylist_identify[.@i] == 1 )
    			continue;
    		else if ( getskilllv(MC_IDENTIFY) == 1 && Sp >= 10 )
    			heal 0,0; // lol... this is supposed to reduce their SP by 10, whatever
    		else if ( countitem(Spectacles) )
    			delitem Spectacles,1;
    		else if ( getskilllv(RG_COMPULSION) && Zeny >= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5 )
    			Zeny -= ( 100 - ( 5 + 4 * getskilllv(RG_COMPULSION) ) )* 2/5;
    		else if ( getskilllv(MC_DISCOUNT) && Zeny >= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5 )
    			Zeny -= ( 100 - ( 5 + 2 * getskilllv(MC_DISCOUNT) ) )* 2/5;
    		else if ( Zeny >= 40 )
    			Zeny -= 40;
    		else
    			break;
    		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
    		getitem @inventorylist_id[.@i],1;
    		.@icount++;
    	}
    	if ( .@icount )
    		message strcharinfo(0), "Identified "+ .@icount +" Items.";
    
    //	and last, give players heal
    	percentheal 100,100;
    	skilleffect AL_HEAL, MaxHp;
    	skilleffect MG_SRECOVERY, MaxSp;
    
    	emotion e_lv;
    	@heal_cooldown = gettimetick(2);
    	end;
    
    OnInit:
    	.spirit[Job_Alchemist] = SL_ALCHEMIST;
    	.spirit[Job_Monk] = SL_MONK;
    	.spirit[Job_Star_Gladiator] = SL_STAR;
    	.spirit[Job_Sage] = SL_SAGE;
    	.spirit[Job_Crusader] = SL_CRUSADER;
    	.spirit[Job_SuperNovice] = SL_SUPERNOVICE;
    	.spirit[Job_Knight] = SL_KNIGHT;
    	.spirit[Job_Wizard] = SL_WIZARD;
    	.spirit[Job_Priest] = SL_PRIEST;
    	.spirit[Job_Bard] = .spirit[Job_Dancer] = SL_BARDDANCER;
    	.spirit[Job_Rogue] = SL_ROGUE;
    	.spirit[Job_Assassin] = SL_ASSASIN;
    	.spirit[Job_Blacksmith] = SL_BLACKSMITH;
    	.spirit[Job_Hunter] = SL_HUNTER;
    	.spirit[Job_Soul_Linker] = SL_SOULLINKER;
    	end;
    }

     

    when click it in game he not identify and not change rough elu-ori into elu/ori in mapservr i have this error after clicked npc:

    [Error]: buildin_countitem: Invalid item '0'.
    [Debug]: Source (NPC): Healer at prontera (153,193)
    [Error]: buildin_countitem: Invalid item '0'.
    [Debug]: Source (NPC): Healer at prontera (153,193)
    [Error]: buildin_skilleffect: Invalid skill defined (0)!
    [Debug]: Source (NPC): Healer at prontera (153,193)
    [Error]: buildin_skilleffect: Invalid skill defined (0)!
    [Debug]: Source (NPC): Healer at prontera (153,193)

     

    anyone know how fix that ?

  6. Hello

    Can anybody help me to set map flag for new_1-3 map?

    setmapflag new_1-3, mf_bexp, 100;
    setmapflag new_1-3, mf_jexp, 100;

     

    for now i create traininggroundzone.txt with two map flags from above and add "npc: npc/mapflag/traininggroundzone.txt" type @reloadscript in-game nad poring still give me 150exp where my server xp and base rate is 7500. am i do something wrong ?

     

    @edif

     

    Ok i fix that i just put 1 not 100 because 100 is 100% of my server rate and 1 is 1% =d

  7. still nothing, thats what i done:

     

    1. Launch GRF editor like a admin.

    2.File>Open

    3. Chose data.grf from my client

    4.click RMB on lua files

    5. chose add...

    6.click Dir...

    7. chose folder skillinfoz from my desktop

    8.click Add

    9.click File>Save

    10. Close GRF editor

    11. Launch game> login into character> press alt+S and still have crash...

     

    @edit

    Ok i fix that i just realize that in data.cfg i have:

    [Data]
    1=prere2021.grf
    2=resources2021.grf
    3=data.grf
    4=rdata.grf

     

    so in prere2021.grf i do this same like above:

     

    1. Launch GRF editor like a admin.

    2.File>Open

    3. Chose prere2021.grf from my client

    4.click RMB on lua files

    5. chose add...

    6.click Dir...

    7. chose folder skillinfoz from my desktop

    8.click Add

    9.click File>Save

    10. Close GRF editor

     

    All work now thanks for help =D

     

  8. I know i know this subject whas written multiple times etc. i read all of it but this not fix my problem i put skillinfoz in any single avaible folder in the client

     

    1. Client\data\luafiles514\lua files - Not Working

    2. Client\System\LuaFiles514\lua files - Not Working

    3. Client\Lua Files - Not Working

    4. Client\PatchClient\Lua Files - Not Working

     

    Any other idea where put this skillinfoz folder ?

  9. Hello i have problem, i have latest rathena emulator and emblem not working, i can chose it from emblem list but when click it nothing happen. i play offline right now because i want setup everything before i upload it to vpn. BTW my guild window looks weird or it's just my feelings ?

    indeks.png

     

    1. Number of members looks weird

    2. Castles Owned looks weird

×
×
  • Create New...