quest prior to being able to use his services. Since most likely that quest isn't scripted either.
Well here's the script
\darkstar\scripts\zones\Lower_Jeuno\npcs\Domenic.lua
Code: Select all
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Domenic
-- BCNM/KSNM Teleporter
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/teleports");
csid = 10115;
csidRefuseService = 10116
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
player:startEvent(csid,player:getGil());
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);
if (csid == 10115) then
if (option == 1 and player:getGil() >= 750) then
player:delGil(750);
toGhelsba(player)
elseif (option == 2 and player:getGil() >= 750) then
player:delGil(750);
player:setPos(0, 0, 0, 0, 139);
elseif (option == 3 and player:getGil() >= 750) then
player:delGil(750);
player:setPos(0, 0, 0, 0, 144);
elseif (option == 4 and player:getGil() >= 750) then
player:delGil(750);
player:setPos(0, 0, 0, 0, 146);
elseif (option == 5 and player:getGil() >= 1000) then
player:delGil(1000);
player:setPos(0, 0, 0, 0, 206);
end
end
end;