What is wrong with this? Bastok Mission 9-2

Post Reply
Volgin
Posts: 32
Joined: Sun Oct 13, 2013 10:27 pm

What is wrong with this? Bastok Mission 9-2

Post by Volgin » Sat Jan 25, 2014 3:09 pm

I've got Bastok Mission 9-2 all scripted out, and it worked fine step by step, now as a whole the first CS from Iron Eater won't go off and I can't figure out why.

Attaching patch files here...can anyone tell me what I did wrong? I followed the Scripting a Mission and How to Add a BCNM on the wiki.
Attachments
mission 9-2.rar
(3.63 KiB) Downloaded 333 times

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: What is wrong with this? Bastok Mission 9-2

Post by whasf » Sat Jan 25, 2014 4:32 pm

First problem I see is you attached a .rar file, that's as far as I got
-- Whasf

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: What is wrong with this? Bastok Mission 9-2

Post by kjLotus » Sat Jan 25, 2014 4:35 pm

whasf wrote:First problem I see is you attached a .rar file, that's as far as I got
he really hates rar files

i dunno why, 7zip can extract them just like any other archive

Volgin
Posts: 32
Joined: Sun Oct 13, 2013 10:27 pm

Re: What is wrong with this? Bastok Mission 9-2

Post by Volgin » Sat Jan 25, 2014 5:43 pm

kjLotus wrote:
whasf wrote:First problem I see is you attached a .rar file, that's as far as I got
he really hates rar files

i dunno why, 7zip can extract them just like any other archive
Quite. It's what my default zip is, same as my college I attend.

gedads
Developer
Posts: 171
Joined: Fri Jan 04, 2013 7:48 pm

Re: What is wrong with this? Bastok Mission 9-2

Post by gedads » Sun Jan 26, 2014 6:51 am

Hi
did you tried using 0x030c to launch cs instead of 780 ?
and don't look my vars but i think it lacks the city bastok when you get current mission
elseif(player:getCurrentMission(BASTOK)== WHERE_TWO_PATHS_CONVERGE and player:getVar("BASTOK92") ==0)then
player:startEvent(0x030C);
elseif(player:getCurrentMission(BASTOK)== WHERE_TWO_PATHS_CONVERGE and player:getVar("BASTOK92") ==1)then
player:startEvent(0x030D);

and i don't see zeid shadows?
that's what i used when i tried to script it a while ago
function onMobFight(mob,target)
local X = GetMobByID(17453064):getXPos();
local Y = GetMobByID(17453064):getYPos();
local Z = GetMobByID(17453064):getZPos();
local A = GetMobByID(17453068):getXPos();
local B = GetMobByID(17453068):getYPos();
local C = GetMobByID(17453068):getZPos();
local D = GetMobByID(17453072):getXPos();
local E = GetMobByID(17453072):getYPos();
local F = GetMobByID(17453072):getZPos();
if(mob:getID() == 17453064) then
if(mob:getHPP() <= 75) then
SpawnMob(17453065):setPos(X+2,Y,Z+2);
SpawnMob(17453066):setPos(X-2,Y,Z-2);
GetMobByID(17453065):updateEnmity(target);
GetMobByID(17453066):updateEnmity(target);
end
elseif(mob:getID() ==17453068) then
if(mob:getHPP() <= 75) then
SpawnMob(17453069):setPos(A+2,B,C+2);
SpawnMob(17453070):setPos(A-2,B,C-2);
GetMobByID(17453069):updateEnmity(target);
GetMobByID(17453070):updateEnmity(target);
end
elseif(mob:getID() ==17453072) then
if(mob:getHPP() <= 75) then
SpawnMob(17453073):setPos(D+2,E,F+2);
SpawnMob(17453074):setPos(D-2,E,F-2);
GetMobByID(17453073):updateEnmity(target);
GetMobByID(17453074):updateEnmity(target);
end
end
end;
I hope this will help you
But the major problem for this mission is still volker doing nothing.

Volgin
Posts: 32
Joined: Sun Oct 13, 2013 10:27 pm

Re: What is wrong with this? Bastok Mission 9-2

Post by Volgin » Sun Jan 26, 2014 1:00 pm

gedads wrote:Hi
did you tried using 0x030c to launch cs instead of 780 ?
and don't look my vars but i think it lacks the city bastok when you get current mission
elseif(player:getCurrentMission(BASTOK)== WHERE_TWO_PATHS_CONVERGE and player:getVar("BASTOK92") ==0)then
player:startEvent(0x030C);
elseif(player:getCurrentMission(BASTOK)== WHERE_TWO_PATHS_CONVERGE and player:getVar("BASTOK92") ==1)then
player:startEvent(0x030D);

and i don't see zeid shadows?
that's what i used when i tried to script it a while ago
function onMobFight(mob,target)
local X = GetMobByID(17453064):getXPos();
local Y = GetMobByID(17453064):getYPos();
local Z = GetMobByID(17453064):getZPos();
local A = GetMobByID(17453068):getXPos();
local B = GetMobByID(17453068):getYPos();
local C = GetMobByID(17453068):getZPos();
local D = GetMobByID(17453072):getXPos();
local E = GetMobByID(17453072):getYPos();
local F = GetMobByID(17453072):getZPos();
if(mob:getID() == 17453064) then
if(mob:getHPP() <= 75) then
SpawnMob(17453065):setPos(X+2,Y,Z+2);
SpawnMob(17453066):setPos(X-2,Y,Z-2);
GetMobByID(17453065):updateEnmity(target);
GetMobByID(17453066):updateEnmity(target);
end
elseif(mob:getID() ==17453068) then
if(mob:getHPP() <= 75) then
SpawnMob(17453069):setPos(A+2,B,C+2);
SpawnMob(17453070):setPos(A-2,B,C-2);
GetMobByID(17453069):updateEnmity(target);
GetMobByID(17453070):updateEnmity(target);
end
elseif(mob:getID() ==17453072) then
if(mob:getHPP() <= 75) then
SpawnMob(17453073):setPos(D+2,E,F+2);
SpawnMob(17453074):setPos(D-2,E,F-2);
GetMobByID(17453073):updateEnmity(target);
GetMobByID(17453074):updateEnmity(target);
end
end
end;
I hope this will help you
But the major problem for this mission is still volker doing nothing.
Yes, I know I missed the shadows. I was trying to get the BC completely working before adding anything extra.
I have tried using the hex offset, yes.
I do call player:gcm with this:

local currentMission = player:getCurrentMission(BASTOK);
elseif (currentMission == WHERE_TWO_PATHS_CONVERGE) and missionStatus == 0) then

Which is player:getCurrentMission(BASTOK) == WHERE_TWO_PATHS_CONVERGE

....

Oh I see the problem.
There's an extra ")" in there. Of course it's syntax.

Thanks :)

Post Reply