Jump to content
  • 0

Vending Controller Error - Map not found in index list


Dolphin86

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  757
  • Reputation:   17
  • Joined:  01/07/12
  • Last Seen:  

hye guys, well i know this is an old post, but seems i have problem with the same script, here are the error:

[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '1'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '91'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '92'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '93'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '94'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '95'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '96'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '97'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '98'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '99'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '100'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '101'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '102'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '103'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '104'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '105'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '106'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '107'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '108'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '109'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '110'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '111'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '112'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '113'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '114'. Skipping line...
[Debug]: (npc_parsesrcfile) mapindex_name2id: Map "ven_zone" not found in index list!
[Error]: npc_parsesrcfile: Unknown map 'ven_zone' in file 'npc/custom/vendnpc.txt', line '115'. Skipping line...

 

Hye could someone teach me how to setup this script properly, 

Spoiler

5.bmp

Script : 

Spoiler


//===== rAthena Script =====================================
//= Vendor Control
//===== By: ================================================
//= Original by Emistry
//= Rewrite by AnnieRuru
//===== Current Version: ===================================
//= 2.1r
//===== Compatible With: ===================================
//= rAthena 2019-2-10
//===== Description: =======================================
//= Vendors only vend on certain coordinate, looks tidy :P
//===== Topic ==============================================
//= https://rathena.org/board/topic/117737-error-vendinghelp/
//===== Additional Comments: ===============================
//= Revert back to use warp
//==========================================================

ven_zone,94,102,4	script	Vending Helper	4_F_JPN2,{
	mes "["+ strnpcinfo(NPC_NAME_VISIBLE) +"]";
	if ( !getskilllv( "MC_VENDING" ) ) {
		mes "You dont have ^0055FFVending Skill^000000.";
		close;
	}
	mes "Select a slot and start vending.";
	while ( true ) {
		.@menu$ = .@currentpage ? "Previous Page:" : ":";
		.@pageindex = .@currentpage * .slotperpage;
		for ( .@i = 0; .@i < .slotperpage && .@pageindex + .@i < .count; ++.@i ) {
			if ( !getmapxy( .@map$, .@x, .@y, BL_NPC, "#vend_slot"+( .@pageindex + .@i ) ) && getareausers( .map$, .@x, .@y, .@x, .@y ) )
				.@menu$ += "Slot No."+( .@pageindex + .@i +1 )+" - ^FF0000[Unavailable]^000000:";
			else
				.@menu$ += "Slot No."+( .@pageindex + .@i +1 )+" - ^00CC00[Available]^000000:";
		}
		if ( .@currentpage != .maxpage )
			.@menu$ = .@menu$ + "Next Page";
		.@pick = select( .@menu$ ) -1;
		if ( !.@pick )
			{ --.@currentpage; }
		else if ( .@pick == .slotperpage +1 )
			{ ++.@currentpage; }
		else
			break;
	}
	.@s =  .@currentpage * .slotperpage + .@pick -1 ;
	if ( !getmapxy( .@map$, .@x, .@y, BL_NPC, "#vend_slot"+ .@s ) && getareausers( .map$, .@x, .@y, .@x, .@y ) ) {
		mes " ";
		mes "This slot is ^FF0000[UnAvailable]^000000.";
		close;
	}
	warp .@map$, .@x, .@y;
	hideonnpc "#vend_slot"+ .@s;
	donpcevent "#vend_slot"+ .@s +"::OnCheckAvailable";
	end;
OnInit:
	setbattleflag "min_npc_vendchat_distance", 0;
//	======================= Configuration HERE ========================================================================================
	.map$ = "ven_zone"; // map
	setarray .@x, 86,89,92,95,104,107,110,113,; // x coordinates
	setarray .@y, 104,107,110,95,92,89,86; // y coordinates
	.slotperpage = 20; // display how many slots per page (prevent making the menu too long)
//	====================================================================================================================================
	freeloop true;
	setcell .map$, 0,0, 500,500, cell_novending, true;
	.@x_size = getarraysize( .@x );
	.@y_size = getarraysize( .@y );
	for ( .@i = 0; .@i < .@y_size; ++.@i ) {
		for ( .@j = 0; .@j < .@x_size; ++.@j ) {
			if ( checkcell( .map$, .@x[.@j], .@y[.@i], cell_chkpass ) ) {
				movenpc "#vend_slot"+ .count, .@x[.@j], .@y[.@i];
				setcell .map$, .@x[.@j], .@y[.@i], .@x[.@j], .@y[.@i], cell_novending, false;
				if ( getareausers( .map$, .@x[.@j], .@y[.@i], .@x[.@j], .@y[.@i] ) ) {
					hideonnpc "#vend_slot"+ .count;
					donpcevent "#vend_slot"+ .count +"::OnCheckAvailable";
				}
				++.count;
			}
		}
	}
	.maxpage = .count / .slotperpage + ( .count % .slotperpage > 0 ) -1;
//	debugmes "Vendor NPC needed -> "+ .count;
	end;
}

-	script	vend_slot	FAKE_NPC,{
	mes "[Vending Slot]";
	if ( !getskilllv( "MC_VENDING" ) ) {
		mes "You dont have ^0055FFVending Skill^000000.";
		close;
	}
	getmapxy .@map$, .@x, .@y, BL_NPC;
	if ( getareausers( .@map$, .@x, .@y, .@x, .@y ) ) {
		mes "Someone already using this slot";
		close;
	}
//	unitwalk getcharid(3), .@x, .@y;
	warp strcharinfo(3), .@x, .@y;
	mes "Spot : ^777777Available^000000";
	mes "^0055FF[ Vending Area Rules ]^000000";
	mes "^FF0000 ~ Use proper Shop Name.^000000";
	mes "^777777Player who failed to follow these rules will be punished.^000000";
	hideonnpc strnpcinfo(0);
	donpcevent strnpcinfo(0)+"::OnCheckAvailable";
	close;
OnCheckAvailable:
	sleep 10000;
	getmapxy .@map$, .@x, .@y, BL_NPC;
	while ( getareausers( .@map$, .@x, .@y, .@x, .@y ) )
		sleep 10000;
	hideoffnpc strnpcinfo(0);
	end;
}

// Add more if needed.
ven_zone,86,104,4	duplicate(vend_slot)	#vend_slot0	4_BULLETIN_BOARD2
ven_zone,86,107,4	duplicate(vend_slot)	#vend_slot1	4_BULLETIN_BOARD2
ven_zone,86,110,4	duplicate(vend_slot)	#vend_slot2	4_BULLETIN_BOARD2
ven_zone,86,113,4	duplicate(vend_slot)	#vend_slot3	4_BULLETIN_BOARD2
ven_zone,89,113,4	duplicate(vend_slot)	#vend_slot4	4_BULLETIN_BOARD2
ven_zone,92,113,4	duplicate(vend_slot)	#vend_slot5	4_BULLETIN_BOARD2
ven_zone,95,113,4	duplicate(vend_slot)	#vend_slot6	4_BULLETIN_BOARD2
ven_zone,104,113,4	duplicate(vend_slot)	#vend_slot7	4_BULLETIN_BOARD2
ven_zone,107,113,4	duplicate(vend_slot)	#vend_slot8	4_BULLETIN_BOARD2
ven_zone,110,113,4	duplicate(vend_slot)	#vend_slot9	4_BULLETIN_BOARD2
ven_zone,113,113,4	duplicate(vend_slot)	#vend_slot10	4_BULLETIN_BOARD2
ven_zone,113,110,4	duplicate(vend_slot)	#vend_slot11	4_BULLETIN_BOARD2
ven_zone,113,107,4	duplicate(vend_slot)	#vend_slot12	4_BULLETIN_BOARD2
ven_zone,113,104,4	duplicate(vend_slot)	#vend_slot13	4_BULLETIN_BOARD2
ven_zone,113,95,4	duplicate(vend_slot)	#vend_slot14	4_BULLETIN_BOARD2
ven_zone,113,92,4	duplicate(vend_slot)	#vend_slot15	4_BULLETIN_BOARD2
ven_zone,113,89,4	duplicate(vend_slot)	#vend_slot16	4_BULLETIN_BOARD2
ven_zone,113,86,4	duplicate(vend_slot)	#vend_slot17	4_BULLETIN_BOARD2
ven_zone,110,86,4	duplicate(vend_slot)	#vend_slot18	4_BULLETIN_BOARD2
ven_zone,107,86,4	duplicate(vend_slot)	#vend_slot19	4_BULLETIN_BOARD2
ven_zone,104,86,4	duplicate(vend_slot)	#vend_slot20	4_BULLETIN_BOARD2
ven_zone,95,86,4	duplicate(vend_slot)	#vend_slot21	4_BULLETIN_BOARD2
ven_zone,92,86,4	duplicate(vend_slot)	#vend_slot22	4_BULLETIN_BOARD2
ven_zone,86,95,4	duplicate(vend_slot)	#vend_slot23	4_BULLETIN_BOARD2
ven_zone,86,95,4	duplicate(vend_slot)	#vend_slot24	4_BULLETIN_BOARD2

 

Thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

you added a map name  named "vend_zone" but you're using "ven_zone" in your scripts.

no matter what are your arguments are, when map-server said it doesn't exists, then it meant doesn't exists, you have to recheck everything that you have changed/modified.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   63
  • Joined:  02/04/19
  • Last Seen:  

39 minutes ago, dolphincute said:

Hye could someone teach me how to setup this script properly, 

  Hide contents

5.bmp

Script : 

  Reveal hidden contents



//===== rAthena Script =====================================
//= Vendor Control
//===== By: ================================================
//= Original by Emistry
//= Rewrite by AnnieRuru
//===== Current Version: ===================================
//= 2.1r
//===== Compatible With: ===================================
//= rAthena 2019-2-10
//===== Description: =======================================
//= Vendors only vend on certain coordinate, looks tidy :P
//===== Topic ==============================================
//= https://rathena.org/board/topic/117737-error-vendinghelp/
//===== Additional Comments: ===============================
//= Revert back to use warp
//==========================================================

ven_zone,94,102,4	script	Vending Helper	4_F_JPN2,{
	mes "["+ strnpcinfo(NPC_NAME_VISIBLE) +"]";
	if ( !getskilllv( "MC_VENDING" ) ) {
		mes "You dont have ^0055FFVending Skill^000000.";
		close;
	}
	mes "Select a slot and start vending.";
	while ( true ) {
		.@menu$ = .@currentpage ? "Previous Page:" : ":";
		.@pageindex = .@currentpage * .slotperpage;
		for ( .@i = 0; .@i < .slotperpage && .@pageindex + .@i < .count; ++.@i ) {
			if ( !getmapxy( .@map$, .@x, .@y, BL_NPC, "#vend_slot"+( .@pageindex + .@i ) ) && getareausers( .map$, .@x, .@y, .@x, .@y ) )
				.@menu$ += "Slot No."+( .@pageindex + .@i +1 )+" - ^FF0000[Unavailable]^000000:";
			else
				.@menu$ += "Slot No."+( .@pageindex + .@i +1 )+" - ^00CC00[Available]^000000:";
		}
		if ( .@currentpage != .maxpage )
			.@menu$ = .@menu$ + "Next Page";
		.@pick = select( .@menu$ ) -1;
		if ( !.@pick )
			{ --.@currentpage; }
		else if ( .@pick == .slotperpage +1 )
			{ ++.@currentpage; }
		else
			break;
	}
	.@s =  .@currentpage * .slotperpage + .@pick -1 ;
	if ( !getmapxy( .@map$, .@x, .@y, BL_NPC, "#vend_slot"+ .@s ) && getareausers( .map$, .@x, .@y, .@x, .@y ) ) {
		mes " ";
		mes "This slot is ^FF0000[UnAvailable]^000000.";
		close;
	}
	warp .@map$, .@x, .@y;
	hideonnpc "#vend_slot"+ .@s;
	donpcevent "#vend_slot"+ .@s +"::OnCheckAvailable";
	end;
OnInit:
	setbattleflag "min_npc_vendchat_distance", 0;
//	======================= Configuration HERE ========================================================================================
	.map$ = "ven_zone"; // map
	setarray .@x, 86,89,92,95,104,107,110,113,; // x coordinates
	setarray .@y, 104,107,110,95,92,89,86; // y coordinates
	.slotperpage = 20; // display how many slots per page (prevent making the menu too long)
//	====================================================================================================================================
	freeloop true;
	setcell .map$, 0,0, 500,500, cell_novending, true;
	.@x_size = getarraysize( .@x );
	.@y_size = getarraysize( .@y );
	for ( .@i = 0; .@i < .@y_size; ++.@i ) {
		for ( .@j = 0; .@j < .@x_size; ++.@j ) {
			if ( checkcell( .map$, .@x[.@j], .@y[.@i], cell_chkpass ) ) {
				movenpc "#vend_slot"+ .count, .@x[.@j], .@y[.@i];
				setcell .map$, .@x[.@j], .@y[.@i], .@x[.@j], .@y[.@i], cell_novending, false;
				if ( getareausers( .map$, .@x[.@j], .@y[.@i], .@x[.@j], .@y[.@i] ) ) {
					hideonnpc "#vend_slot"+ .count;
					donpcevent "#vend_slot"+ .count +"::OnCheckAvailable";
				}
				++.count;
			}
		}
	}
	.maxpage = .count / .slotperpage + ( .count % .slotperpage > 0 ) -1;
//	debugmes "Vendor NPC needed -> "+ .count;
	end;
}

-	script	vend_slot	FAKE_NPC,{
	mes "[Vending Slot]";
	if ( !getskilllv( "MC_VENDING" ) ) {
		mes "You dont have ^0055FFVending Skill^000000.";
		close;
	}
	getmapxy .@map$, .@x, .@y, BL_NPC;
	if ( getareausers( .@map$, .@x, .@y, .@x, .@y ) ) {
		mes "Someone already using this slot";
		close;
	}
//	unitwalk getcharid(3), .@x, .@y;
	warp strcharinfo(3), .@x, .@y;
	mes "Spot : ^777777Available^000000";
	mes "^0055FF[ Vending Area Rules ]^000000";
	mes "^FF0000 ~ Use proper Shop Name.^000000";
	mes "^777777Player who failed to follow these rules will be punished.^000000";
	hideonnpc strnpcinfo(0);
	donpcevent strnpcinfo(0)+"::OnCheckAvailable";
	close;
OnCheckAvailable:
	sleep 10000;
	getmapxy .@map$, .@x, .@y, BL_NPC;
	while ( getareausers( .@map$, .@x, .@y, .@x, .@y ) )
		sleep 10000;
	hideoffnpc strnpcinfo(0);
	end;
}

// Add more if needed.
ven_zone,86,104,4	duplicate(vend_slot)	#vend_slot0	4_BULLETIN_BOARD2
ven_zone,86,107,4	duplicate(vend_slot)	#vend_slot1	4_BULLETIN_BOARD2
ven_zone,86,110,4	duplicate(vend_slot)	#vend_slot2	4_BULLETIN_BOARD2
ven_zone,86,113,4	duplicate(vend_slot)	#vend_slot3	4_BULLETIN_BOARD2
ven_zone,89,113,4	duplicate(vend_slot)	#vend_slot4	4_BULLETIN_BOARD2
ven_zone,92,113,4	duplicate(vend_slot)	#vend_slot5	4_BULLETIN_BOARD2
ven_zone,95,113,4	duplicate(vend_slot)	#vend_slot6	4_BULLETIN_BOARD2
ven_zone,104,113,4	duplicate(vend_slot)	#vend_slot7	4_BULLETIN_BOARD2
ven_zone,107,113,4	duplicate(vend_slot)	#vend_slot8	4_BULLETIN_BOARD2
ven_zone,110,113,4	duplicate(vend_slot)	#vend_slot9	4_BULLETIN_BOARD2
ven_zone,113,113,4	duplicate(vend_slot)	#vend_slot10	4_BULLETIN_BOARD2
ven_zone,113,110,4	duplicate(vend_slot)	#vend_slot11	4_BULLETIN_BOARD2
ven_zone,113,107,4	duplicate(vend_slot)	#vend_slot12	4_BULLETIN_BOARD2
ven_zone,113,104,4	duplicate(vend_slot)	#vend_slot13	4_BULLETIN_BOARD2
ven_zone,113,95,4	duplicate(vend_slot)	#vend_slot14	4_BULLETIN_BOARD2
ven_zone,113,92,4	duplicate(vend_slot)	#vend_slot15	4_BULLETIN_BOARD2
ven_zone,113,89,4	duplicate(vend_slot)	#vend_slot16	4_BULLETIN_BOARD2
ven_zone,113,86,4	duplicate(vend_slot)	#vend_slot17	4_BULLETIN_BOARD2
ven_zone,110,86,4	duplicate(vend_slot)	#vend_slot18	4_BULLETIN_BOARD2
ven_zone,107,86,4	duplicate(vend_slot)	#vend_slot19	4_BULLETIN_BOARD2
ven_zone,104,86,4	duplicate(vend_slot)	#vend_slot20	4_BULLETIN_BOARD2
ven_zone,95,86,4	duplicate(vend_slot)	#vend_slot21	4_BULLETIN_BOARD2
ven_zone,92,86,4	duplicate(vend_slot)	#vend_slot22	4_BULLETIN_BOARD2
ven_zone,86,95,4	duplicate(vend_slot)	#vend_slot23	4_BULLETIN_BOARD2
ven_zone,86,95,4	duplicate(vend_slot)	#vend_slot24	4_BULLETIN_BOARD2

 

Thanks

You need add this map "ven_zone" in
conf/maps_athena.conf
db/import/map_index.txt and
db/import/map_cache.dat

Edited by KeyMaster
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  757
  • Reputation:   17
  • Joined:  01/07/12
  • Last Seen:  

@KeyMaster i have the map its working, i can warp and walk around the map

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...