Skip to content

Fixes shops not being able to give jobs#139

Open
SouDescolado wants to merge 41 commits into
rekterakathom:masterfrom
SouDescolado:Shop-Job
Open

Fixes shops not being able to give jobs#139
SouDescolado wants to merge 41 commits into
rekterakathom:masterfrom
SouDescolado:Shop-Job

Conversation

@SouDescolado
Copy link
Copy Markdown

@SouDescolado SouDescolado commented May 17, 2026

Fixes #136
I checked what @hirsja95 mentioned, compared with how resistance members works and checked other things that called to check support levels, and as they mentioned, it was missing the line to define which town that was

I think this is the line of code that is not loading back the OT_xp that is being saved, per rekterakathom#130
Fixes rekterakathom#136
I checked what @hirsja95 mentioned, compared with how resistance members works and checked other things that called to check support levels, and as they mentioned, it was missing the line to define which town that was
Fixes rekterakathom#135
As @hirsja95 mentioned, the logic was flawed.
It was:
Checking if the player dont have a base 
AND
Checking if a player is close to a base.

So if the player neither has a base nor is close to one, would return False, and since the ! is outside the parenthesis, it would make the check return True, making the button visible.

Ironically, it would disable the garrisson button if the player had a base and was close to it
Fixes rekterakathom#111
The function removeWeapon only removes equipped weapons
This makes a check that, if it has the weapon equipped, remove it. Otherwise uses the function removeItem (Checks Uniform -> Vest -> Backpack, in that order)
Enable Garrison button only when it should
Make the delivery jobs actually take the weapon
Fixes shops not being able to give jobs
@SouDescolado
Copy link
Copy Markdown
Author

20260518133820_1

Tested on local. Seems to work (Kore backpack shop in altis)

Seems like the game isnt saving ranks at all. Lets see if this works.
@SouDescolado
Copy link
Copy Markdown
Author

Oh, I didnt notice there was no item listed on the job. May need some additional testing. I just was happy enough to see the job screen pop up

I just grabbed what was in the 'General' category and Surplus category.

Technically, the clothing shop is the only one with a distinct item list (Because it checks the map initVars for it) so it tells you to deliver local clothing instead.
Add items to be delivered for the Shop's Jobs
Everything was borken
@SouDescolado SouDescolado marked this pull request as draft May 18, 2026 21:54
This didnt work before, no reason to keep
Added a sanity check for empty and also removed backpacks from being possible as a deliver thing. It works
@SouDescolado SouDescolado marked this pull request as ready for review May 19, 2026 02:23
@SouDescolado
Copy link
Copy Markdown
Author

Yea. I tried a lot of things. Now its working fine. It removes empty and bags from the list when deciding which item you must deliver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Traders cannot give missions

1 participant