my server (fantasy world) is at rev 2003 now and players came to me that the san d'oria mission 1-3 couldnt finisch cause the hut door wont give the cutscene at the end.
i have looked in the bugreports and it was there but why didnt it get in with the rev??
i made it work again so players can get a higher rank again in san.
maybe it will be some use to one of you.
Code: Select all
-----------------------------------
-- Area: Ghelsba_Outpost
-- NPC: Hut Door
-- Involved in Quest: The Holy Crest
-- Involved in Mission: Save the children
-- @pos -162 -11 78 140
-------------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/missions");
require("scripts/zones/Ghelsba_Outpost/TextIDs");
---- 0:
---- 1:
---- 2:
---- 3:
---- 4:
---- 5:
---- 6:
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if(TradeBCNM(player,player:getZone(),trade,npc))then
return;
end
end;
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,npc)
if(player:hasKeyItem(ORCISH_HUT_KEY)) then
if(player:hasCompletedMission(SANDORIA,SAVE_THE_CHILDREN)) then
player:startEvent(0x0003);
else
player:startEvent(0x0037);
end
else
if(EventTriggerBCNM(player,npc))then
return;
end
end
end;
-----------------------------------
-- onEventUpdate
-----------------------------------
function onEventUpdate(player,csid,option)
--printf("onUpdate CSID: %u",csid);
--printf("onUpdate RESULT: %u",option);
if(EventUpdateBCNM(player,csid,option))then
return;
end
end;
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player,csid,option)
--printf("onFinish CSID: %u",csid);
--printf("onFinish RESULT: %u",option);
if(csid == 0x0003 or csid == 0x0037) then
player:delKeyItem(ORCISH_HUT_KEY);
player:setVar("MissionStatus",4);
else
if(EventFinishBCNM(player,csid,option))then
return;
end
end
end;
dont know if it was already some where else but let me know if it doesnt add anything new
greetings michael