aditional missions, help

Post Reply
geanux
Posts: 15
Joined: Sat Jun 21, 2014 10:49 am

aditional missions, help

Post by geanux » Fri Aug 29, 2014 9:06 am

In missions.lua I am thinking in adding the rank mission in sandy THE_HEIR_TO_THE_LIGHT. If this is absolutely impossible to attempt then this will save me allot of time. I do understand if it is possible to add this, I would then need to add this into the zone lua scripts when undertaking the mission. I wonder what those numbers are, are they IDs? or maybe some sort of dialog link? I am just looking for the right direction, as I am still a novice.
------------------------------------------------------------------------------------------------
if(rank == 9) then
if(player:hasCompletedMission(SANDORIA,BREAKING_BARRIERS) == false and getMissionRankPoints(player,22) == 1) then
-- 9-1
first_mission = first_mission + 4194304;
elseif(player:hasCompletedMission(SANDORIA,BREAKING_BARRIERS) == false and getMissionRankPoints(player,22) == 1 and player:getVar("Cutscenes_8-2") == 2) then
-- 9-2
first_mission = first_mission + 8388608;<---what is this number? is these bytes? That allow to unlock mission?

------------------------------------>>>>>add The_Heir to the light mission

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

Re: aditional missions, help

Post by kjLotus » Fri Aug 29, 2014 2:55 pm

first thing you should do when you see a weird number like that: put it in windows calculator (this one, for example, is just 0x800000. the reason it's written that way is... the original author of that file was probably not very experienced with bits ^^)

geanux
Posts: 15
Joined: Sat Jun 21, 2014 10:49 am

Re: aditional missions, help

Post by geanux » Fri Aug 29, 2014 3:26 pm

Kj is that reading around 16 bits? I no u said get out that calculator, to my surprise i got the same numbers :). I am Trying to figure out what that special number is for rank 10. I am sure the numbers carry on higher maybe 0x900000 or something like that how would i find this data. would i need to get this from the client somehow to link it? If attempting to add the last rank mission?

Post Reply