News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Can't force Small Offensives Mission and Go Kart Minigames to be completed  (Read 1567 times)

0 Members and 1 Guest are viewing this topic.

Offline JustSomeGuy24

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Can't force Small Offensives and Go Kart Minigames to be completed with LUA while I can with other missions/classes/etc. It seems like it has to do with the mission ID not being in quotation marks inside the code. This is the function I made for them. Also can't make passing Shop 4 reward player with a Blue BMX.


Code: [Select]
F_CompleteClassCheat = function()
    if not IsMissionCompleated(70) then -- Small Offenses Mission ID
        MissionForceCompleted(70,true)
MissionSuccessCountInc(70)
Wait(0)
    end
if not IsMissionCompleated("3_R09_N") then
        MissionForceCompleted("3_R09_N",true)
MissionSuccessCountInc("3_R09_N")
Wait(0)
    end
if IsMissionCompleated("C_Chem_1") and not IsMissionCompleated("C_Chem_2") then
MissionForceCompleted("C_Chem_2",true)
MissionSuccessCountInc("C_Chem_2")
Wait(0)
MissionForceCompleted("C_Chem_3",true)
MissionSuccessCountInc("C_Chem_3")
Wait(0)
    MissionForceCompleted("C_Chem_4",true)
MissionSuccessCountInc("C_Chem_4")
Wait(0)
MissionForceCompleted("C_Chem_5",true)
MissionSuccessCountInc("C_Chem_5")
Wait(0)
MissionForceCompleted("C_Chem_5_repeat",true)
MissionSuccessCountInc("C_Chem_5_repeat")
Wait(0)
    end
if not IsMissionCompleated("C_English_1") then
MissionForceCompleted("C_English_1",true)
MissionSuccessCountInc("C_English_1")
Wait(0)
MissionForceCompleted("C_English_2",true)
MissionSuccessCountInc("C_English_2")
Wait(0)
MissionForceCompleted("C_English_3",true)
MissionSuccessCountInc("C_English_3")
Wait(0)
MissionForceCompleted("C_English_4",true)
MissionSuccessCountInc("C_English_4")
Wait(0)
MissionForceCompleted("C_English_5",true)
MissionSuccessCountInc("C_English_5")
Wait(0)
    end
if IsMissionCompleated("1_02B") and not IsMissionCompleated("C_ART_1") then
MissionForceCompleted("C_ART_1",true)
MissionSuccessCountInc("C_ART_1")
Wait(0)
MissionForceCompleted("C_ART_2",true)
MissionSuccessCountInc("C_ART_2")
Wait(0)
MissionForceCompleted("C_ART_3",true)
MissionSuccessCountInc("C_ART_3")
Wait(0)
MissionForceCompleted("C_ART_4",true)
MissionSuccessCountInc("C_ART_4")
Wait(0)
MissionForceCompleted("C_ART_5",true)
MissionSuccessCountInc("C_ART_5")
Wait(0)
MissionForceCompleted("C_Art_5_repeat",true)
MissionSuccessCountInc("C_Art_5_repeat")
Wait(0)
    end
if IsMissionCompleated("Chapt1Trans") and not IsMissionCompleated("C_WRESTLING_1") then
MissionForceCompleted("C_WRESTLING_1",true)
MissionSuccessCountInc("C_WRESTLING_1")
Wait(0)
MissionForceCompleted("C_WRESTLING_2",true)
MissionSuccessCountInc("C_WRESTLING_2")
Wait(0)
MissionForceCompleted("C_WRESTLING_3",true)
MissionSuccessCountInc("C_WRESTLING_3")
Wait(0)
MissionForceCompleted("C_WRESTLING_4",true)
MissionSuccessCountInc("C_WRESTLING_4")
Wait(0)
MissionForceCompleted("C_WRESTLING_5",true)
MissionSuccessCountInc("C_WRESTLING_5")
Wait(0)
end
if IsMissionCompleated("Chapt1Trans") and not IsMissionCompleated("C_Shop_1") then
MissionForceCompleted("C_Shop_1",true)
MissionSuccessCountInc("C_Shop_1")
Wait(0)
MissionForceCompleted("C_Shop_2",true)
MissionSuccessCountInc("C_Shop_2")
Wait(0)
MissionForceCompleted("C_Shop_3",true)
MissionSuccessCountInc("C_Shop_3")
Wait(0)
MissionForceCompleted("C_Shop_4",true)
MissionSuccessCountInc("C_Shop_4") -- Class that should reward Blue BMX
Wait(0)
    end
end

Code: [Select]
main = function()
  Wait(500)
 
  repeat
if IsButtonBeingPressed(0,0) then
F_CompleteClassCheat()
                PedSetWeapon(gplayer, 418)
Wait(1000)
end
        Wait(0)
   until not Alive
end

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: Can't force Small Offensives Mission and Go Kart Minigames to be completed
« Reply #1 on: September 26, 2021, 03:14:07 AM »
Not sure where you got the idea that Small Offences' ID was 70.
That's not how they work. Its ID is "2_S07".

I tried your code and it works. The Shop Classes are all passed except 5.
If you don't get the bike that's probably because it's controlled by the class script. So you need to actually do the class to get the bike, not just pass it.
What you should try is to use the script to pass Classes 1-3 and then attend Class 4.

You didn't put the Go-Kart Minigames in the code, so of course, it doesn't work.
I tried them and the Go-kart gets unlocked, too.

Offline Altamurenza

  • Full Member
  • ***
  • Posts: 118
  • Gender: Male
  • I love cheat, unique, realistic, & expansion mod.
    • View Profile
Re: Can't force Small Offensives Mission and Go Kart Minigames to be completed
« Reply #2 on: September 26, 2021, 03:49:19 AM »
Not sure where you got the idea that Small Offences' ID was 70.
That's not how they work. Its ID is "2_S07".

Mission index is not so popular among Bully modders because they are not quite useful except for launching quest/mission, but they are truly exists. There are 261 mission index available, but some of them are just placeholder, unused, or completely removed mission.

Anyway, he is right about Small Offences mission id, but the requirement of those function he mentioned above are mission code (in String), not a mission index. Just to straighten it out a bit.

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: Can't force Small Offensives Mission and Go Kart Minigames to be completed
« Reply #3 on: September 26, 2021, 08:59:46 AM »
Oh, I see.
Didn't know that.

Offline JustSomeGuy24

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: Can't force Small Offensives Mission and Go Kart Minigames to be completed
« Reply #4 on: September 26, 2021, 10:09:41 AM »
Ah, I see. I’ll try the string id for Small Offences that Simon provided. If it isn’t too much trouble what string id did you use to complete the Go Kart minigames? I got the ids from Altamurenza’s pastebin for his Selector Mod.
« Last Edit: September 26, 2021, 10:24:50 AM by JustSomeGuy24 »

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: Can't force Small Offensives Mission and Go Kart Minigames to be completed
« Reply #5 on: September 26, 2021, 11:26:09 AM »
You can find most (except SE-related) IDs in the RobertoTest.lua file.
The developer used it to pass every mission.

The Go-Kart races are all "GoKart_GPX" and "GoKart_SRX".
(X is any number from 1-3)
« Last Edit: September 26, 2021, 11:31:54 AM by SimonBestia »

Offline JustSomeGuy24

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: Can't force Small Offensives Mission and Go Kart Minigames to be completed
« Reply #6 on: September 26, 2021, 12:24:27 PM »
Thanks man! That’s just what I needed. Also I assume you mean the person who created LUA and if that’s the case nice bit  >:(
« Last Edit: September 26, 2021, 12:33:06 PM by JustSomeGuy24 »