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.
What is wrong with this? Bastok Mission 9-2
What is wrong with this? Bastok Mission 9-2
- Attachments
-
- mission 9-2.rar
- (3.63 KiB) Downloaded 332 times
Re: What is wrong with this? Bastok Mission 9-2
First problem I see is you attached a .rar file, that's as far as I got
-- Whasf
Re: What is wrong with this? Bastok Mission 9-2
he really hates rar fileswhasf wrote:First problem I see is you attached a .rar file, that's as far as I got
i dunno why, 7zip can extract them just like any other archive
Re: What is wrong with this? Bastok Mission 9-2
Quite. It's what my default zip is, same as my college I attend.kjLotus wrote:he really hates rar fileswhasf wrote:First problem I see is you attached a .rar file, that's as far as I got
i dunno why, 7zip can extract them just like any other archive
Re: What is wrong with this? Bastok Mission 9-2
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.
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.
Re: What is wrong with this? Bastok Mission 9-2
Yes, I know I missed the shadows. I was trying to get the BC completely working before adding anything extra.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.
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