Jump to content
  • 0
Dolphin86

Vending Controller Error - Map not found in index list

Question

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 ) {
		[email protected]$ = [email protected] ? "Previous Page:" : ":";
		[email protected] = [email protected] * .slotperpage;
		for ( [email protected] = 0; [email protected] < .slotperpage && [email protected] + [email protected] < .count; [email protected] ) {
			if ( !getmapxy( [email protected]$, [email protected], [email protected], BL_NPC, "#vend_slot"+( [email protected] + [email protected] ) ) && getareausers( .map$, [email protected], [email protected], [email protected], [email protected] ) )
				[email protected]$ += "Slot No."+( [email protected] + [email protected] +1 )+" - ^FF0000[Unavailable]^000000:";
			else
				[email protected]$ += "Slot No."+( [email protected] + [email protected] +1 )+" - ^00CC00[Available]^000000:";
		}
		if ( [email protected] != .maxpage )
			[email protected]$ = [email protected]$ + "Next Page";
		[email protected] = select( [email protected]$ ) -1;
		if ( [email protected] )
			{ [email protected]; }
		else if ( [email protected] == .slotperpage +1 )
			{ [email protected]; }
		else
			break;
	}
	[email protected] =  [email protected] * .slotperpage + [email protected] -1 ;
	if ( !getmapxy( [email protected]$, [email protected], [email protected], BL_NPC, "#vend_slot"+ [email protected] ) && getareausers( .map$, [email protected], [email protected], [email protected], [email protected] ) ) {
		mes " ";
		mes "This slot is ^FF0000[UnAvailable]^000000.";
		close;
	}
	warp [email protected]$, [email protected], [email protected];
	hideonnpc "#vend_slot"+ [email protected];
	donpcevent "#vend_slot"+ [email protected] +"::OnCheckAvailable";
	end;
OnInit:
	setbattleflag "min_npc_vendchat_distance", 0;
//	======================= Configuration HERE ========================================================================================
	.map$ = "ven_zone"; // map
	setarray [email protected], 86,89,92,95,104,107,110,113,; // x coordinates
	setarray [email protected], 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;
	[email protected]_size = getarraysize( [email protected] );
	[email protected]_size = getarraysize( [email protected] );
	for ( [email protected] = 0; [email protected] < [email protected]_size; [email protected] ) {
		for ( [email protected] = 0; [email protected] < [email protected]_size; [email protected] ) {
			if ( checkcell( .map$, [email protected][[email protected]], [email protected][[email protected]], cell_chkpass ) ) {
				movenpc "#vend_slot"+ .count, [email protected][[email protected]], [email protected][[email protected]];
				setcell .map$, [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]], cell_novending, false;
				if ( getareausers( .map$, [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]] ) ) {
					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 [email protected]$, [email protected], [email protected], BL_NPC;
	if ( getareausers( [email protected]$, [email protected], [email protected], [email protected], [email protected] ) ) {
		mes "Someone already using this slot";
		close;
	}
//	unitwalk getcharid(3), [email protected], [email protected];
	warp strcharinfo(3), [email protected], [email protected];
	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 [email protected]$, [email protected], [email protected], BL_NPC;
	while ( getareausers( [email protected]$, [email protected], [email protected], [email protected], [email protected] ) )
		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

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
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 ) {
		[email protected]$ = [email protected] ? "Previous Page:" : ":";
		[email protected] = [email protected] * .slotperpage;
		for ( [email protected] = 0; [email protected] < .slotperpage && [email protected] + [email protected] < .count; [email protected] ) {
			if ( !getmapxy( [email protected]$, [email protected], [email protected], BL_NPC, "#vend_slot"+( [email protected] + [email protected] ) ) && getareausers( .map$, [email protected], [email protected], [email protected], [email protected] ) )
				[email protected]$ += "Slot No."+( [email protected] + [email protected] +1 )+" - ^FF0000[Unavailable]^000000:";
			else
				[email protected]$ += "Slot No."+( [email protected] + [email protected] +1 )+" - ^00CC00[Available]^000000:";
		}
		if ( [email protected] != .maxpage )
			[email protected]$ = [email protected]$ + "Next Page";
		[email protected] = select( [email protected]$ ) -1;
		if ( [email protected] )
			{ [email protected]; }
		else if ( [email protected] == .slotperpage +1 )
			{ [email protected]; }
		else
			break;
	}
	[email protected] =  [email protected] * .slotperpage + [email protected] -1 ;
	if ( !getmapxy( [email protected]$, [email protected], [email protected], BL_NPC, "#vend_slot"+ [email protected] ) && getareausers( .map$, [email protected], [email protected], [email protected], [email protected] ) ) {
		mes " ";
		mes "This slot is ^FF0000[UnAvailable]^000000.";
		close;
	}
	warp [email protected]$, [email protected], [email protected];
	hideonnpc "#vend_slot"+ [email protected];
	donpcevent "#vend_slot"+ [email protected] +"::OnCheckAvailable";
	end;
OnInit:
	setbattleflag "min_npc_vendchat_distance", 0;
//	======================= Configuration HERE ========================================================================================
	.map$ = "ven_zone"; // map
	setarray [email protected], 86,89,92,95,104,107,110,113,; // x coordinates
	setarray [email protected], 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;
	[email protected]_size = getarraysize( [email protected] );
	[email protected]_size = getarraysize( [email protected] );
	for ( [email protected] = 0; [email protected] < [email protected]_size; [email protected] ) {
		for ( [email protected] = 0; [email protected] < [email protected]_size; [email protected] ) {
			if ( checkcell( .map$, [email protected][[email protected]], [email protected][[email protected]], cell_chkpass ) ) {
				movenpc "#vend_slot"+ .count, [email protected][[email protected]], [email protected][[email protected]];
				setcell .map$, [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]], cell_novending, false;
				if ( getareausers( .map$, [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]], [email protected][[email protected]] ) ) {
					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 [email protected]$, [email protected], [email protected], BL_NPC;
	if ( getareausers( [email protected]$, [email protected], [email protected], [email protected], [email protected] ) ) {
		mes "Someone already using this slot";
		close;
	}
//	unitwalk getcharid(3), [email protected], [email protected];
	warp strcharinfo(3), [email protected], [email protected];
	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 [email protected]$, [email protected], [email protected], BL_NPC;
	while ( getareausers( [email protected]$, [email protected], [email protected], [email protected], [email protected] ) )
		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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.