NPC Menu option
Posted: Sun Dec 10, 2017 9:50 am
I am working on Isakoth Npc in Basktok Markets. How is the option == Menu number calculated? How do I find this number? looking at the Cruor Prospector code, I see 10 items on page one. Isakoth has 15 items on page 1.
Code: Select all
function onEventFinish(player,csid,option)
-- printf("CSID: %u",csid);
-- printf("RESULT: %u",option);
local Price = 0;
local ItemID = 0;
local Quantity = 1;
-- Items Page 1
if (option == 65537) then -- Perle Salade
Price = 4000;
ItemID = 11503;
elseif (option == 131073) then -- Perle Hauberk
Price = 5000;
ItemID = 13759;
elseif (option == 196609) then -- Perle Moufles