NPC

This function returns all nearby NPCs and teleporters.

Usage

get_npcs()

Returns

None or an object containing all nearby NPCs and teleporters.

  • The object can be empty.

  • The key in the object is the NPCs ID.

{
	346: {
		'name': 'Magic POP Guide Gori',
		'servername': 'NPC_CH_GACHA_OPERATOR',
		'model': 9252,
		'region': 25000,
		'x': 6433.72802734375,
		'y': 1032.762939453125
	},
	241: {
		'name': 'Grocery Trader Jinjin',
		'servername': 'NPC_CH_ACCESSORY',
		'model': 2008,
		'region': 25000,
		'x': 6501.85498046875,
		'y': 1067.8189697265625
	},
	348: {
		'name': 'Event So-Ok',
		'servername': 'NPC_CH_EVENT_KISAENG1',
		'model': 3861,
		'region': 25000,
		'x': 6446.16796875,
		'y': 1045.4300537109375
	},
	179: {
		'name': 'Storage-Keeper Wangu',
		'servername': 'NPC_CH_WAREHOUSE_M',
		'model': 2013,
		'region': 25000,
		'x': 6434.080078125,
		'y': 1058.9129638671875
	},
	196: {
		'name': 'Storage-Keeper Sansan',
		'servername': 'NPC_CH_WAREHOUSE_W',
		'model': 2014,
		'region': 25000,
		'x': 6434.03515625,
		'y': 1058.9189453125
	},
	347: {
		'name': 'Magic POP',
		'servername': 'NPC_CH_GACHA_MACHINE',
		'model': 9251,
		'region': 25000,
		'x': 6497.296875,
		'y': 1079.300048828125
	},
	10: {
		'name': 'Jangan',
		'servername': 'GATE_CH',
		'model': 2094,
		'region': 25000,
		'x': 6461.39990234375,
		'y': 1097.4000244140625
	},
	273: {
		'name': 'Herbalist Yangyun',
		'servername': 'NPC_CH_POTION',
		'model': 2005,
		'region': 25000,
		'x': 6494.408203125,
		'y': 1100.72900390625
	}
}

NPC Goods

This function returns all of the items associated with the NPC.

Usage

get_npc_goods(model)

Returns

None or a dictionary of NPC goods.

goods = get_npc_goods(7537)
model = goods[0][0]['model'] # model of page 0 / slot 0 (19693)
{
	0: {
		0: {
			'name': 'Blaze Blade',
			'servername': 'ITEM_CH_BLADE_08_A_RARE_HONOR',
			'model': 19693
		},
		1: {
			'name': 'Blaze Blade',
			'servername': 'ITEM_CH_BLADE_08_B_RARE_HONOR',
			'model': 19694
		},
		2: {
			'name': 'Blaze Blade',
			'servername': 'ITEM_CH_BLADE_08_C_RARE_HONOR',
			'model': 19695
		},
		3: {
			'name': 'Moon Bow',
			'servername': 'ITEM_CH_BOW_08_A_RARE_HONOR',
			'model': 19711
		},
		4: {
			'name': 'Moon Bow',
			'servername': 'ITEM_CH_BOW_08_B_RARE_HONOR',
			'model': 19712
		},
		5: {
			'name': 'Moon Bow',
			'servername': 'ITEM_CH_BOW_08_C_RARE_HONOR',
			'model': 19713
		},
		6: {
			'name': 'Iranggjingun Pike',
			'servername': 'ITEM_CH_SPEAR_08_A_RARE_HONOR',
			'model': 19699
		},
		7: {
			'name': 'Iranggjingun Pike',
			'servername': 'ITEM_CH_SPEAR_08_B_RARE_HONOR',
			'model': 19700
		},
		8: {
			'name': 'Iranggjingun Pike',
			'servername': 'ITEM_CH_SPEAR_08_C_RARE_HONOR',
			'model': 19701
		},
		9: {
			'name': 'Devil Sword',
			'servername': 'ITEM_CH_SWORD_08_A_RARE_HONOR',
			'model': 19687
		},
		10: {
			'name': 'Devil Sword',
			'servername': 'ITEM_CH_SWORD_08_B_RARE_HONOR',
			'model': 19688
		},
		11: {
			'name': 'Devil Sword',
			'servername': 'ITEM_CH_SWORD_08_C_RARE_HONOR',
			'model': 19689
		},
		12: {
			'name': 'Polearm',
			'servername': 'ITEM_CH_TBLADE_08_A_RARE_HONOR',
			'model': 19705
		},
		13: {
			'name': 'Polearm',
			'servername': 'ITEM_CH_TBLADE_08_B_RARE_HONOR',
			'model': 19706
		},
		14: {
			'name': 'Polearm',
			'servername': 'ITEM_CH_TBLADE_08_C_RARE_HONOR',
			'model': 19707
		}
	},
	1: {
		0: {
			'name': 'Honor Alchemy Stone (8th degree)',
			'servername': 'ITEM_ETC_ARCHEMY_MAGICSTONE_REPAIR_08',
			'model': 19717
		}
	}
}

Last updated