Index: npcs/Mabebe.lua =================================================================== --- npcs/Mabebe.lua (revision 0) +++ npcs/Mabebe.lua (working copy) @@ -0,0 +1,46 @@ +---------------------------------- +-- Area: Al Zahbi +-- NPC: Mabebe +-- Type: Item Deliverer +-- @zone: 48 +-- @pos: -27.551 0 -141.095 +-- +----------------------------------- + +package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; +require("scripts/zones/Al_Zahbi/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + player:showText(npc, ITEM_DELIVERY_DIALOG); + player:openSendBox(); +end; + +----------------------------------- +-- onEventUpdate +----------------------------------- + +function onEventUpdate(player,csid,option) + -- printf("CSID: %u",csid); + -- printf("RESULT: %u",option); +end; + +----------------------------------- +-- onEventFinish +----------------------------------- + +function onEventFinish(player,csid,option) + -- printf("CSID: %u",csid); + -- printf("RESULT: %u",option); +end; + Index: npcs/Opococo.lua =================================================================== --- npcs/Opococo.lua (revision 0) +++ npcs/Opococo.lua (working copy) @@ -0,0 +1,46 @@ +---------------------------------- +-- Area: Al Zahbi +-- NPC: Opococo +-- Type: Item Deliverer +-- @zone: 48 +-- @pos: -24.702 0 -139.982 +-- +----------------------------------- + +package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; +require("scripts/zones/Al_Zahbi/TextIDs"); + +----------------------------------- +-- onTrade Action +----------------------------------- + +function onTrade(player,npc,trade) +end; + +----------------------------------- +-- onTrigger Action +----------------------------------- + +function onTrigger(player,npc) + player:showText(npc, ITEM_DELIVERY_DIALOG); + player:openSendBox(); +end; + +----------------------------------- +-- onEventUpdate +----------------------------------- + +function onEventUpdate(player,csid,option) + -- printf("CSID: %u",csid); + -- printf("RESULT: %u",option); +end; + +----------------------------------- +-- onEventFinish +----------------------------------- + +function onEventFinish(player,csid,option) + -- printf("CSID: %u",csid); + -- printf("RESULT: %u",option); +end; + Index: TextIDs.lua =================================================================== --- TextIDs.lua (revision 3281) +++ TextIDs.lua (working copy) @@ -6,6 +6,9 @@ GIL_OBTAINED = 6379; -- Obtained gil KEYITEM_OBTAINED = 6381; -- Obtained key item: FISHING_MESSAGE_OFFSET = 6994; -- You can't fish here + +-- Other Texts +ITEM_DELIVERY_DIALOG = 7741; -- Shop Texts ALLARD_SHOP_DIALOG = 7506; -- Hey, how ya doin'?\nWelcome to the armor shop of the Ulthalam Parade's leading star--Allard, in the flesh! -verify-