[QUOTE="ImpalaPUA, post: 49782, member: 2425"]any chance of getting NPC friendliness added?[/QUOTE]
Try this, pls - Copy/past this code in text editor (notepad++) and save it with .CT extension (use Save as...)
[CODE=xml]
238
"SetNpcRelationship"
008000
Auto Assembler Script
define(address,Pathea.FavorSystemNs:FavorUtility:GetGradeName+17)
define(bytes,48 63 56 2C 48 8B C8)
[ENABLE]
assert(address,bytes)
alloc(newmem,$100,Pathea.FavorSystemNs:FavorUtility:GetGradeName+17)
label(code)
label(return)
globalalloc(setFavorGradeName_ptr,8)
newmem:
mov [setFavorGradeName_ptr],rsi
code:
movsxd rdx,dword ptr [rsi+2C]
mov rcx,rax
jmp return
address:
jmp newmem
nop
nop
return:
[DISABLE]
address:
db bytes
// movsxd rdx,dword ptr [rsi+2C]
// mov rcx,rax
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: Pathea.FavorSystemNs:FavorUtility:GetGradeName+17
4DFF556A: 00 00 - add [rax],al
4DFF556C: 00 00 - add [rax],al
4DFF556E: 00 00 - add [rax],al
4DFF5570: 55 - push rbp
4DFF5571: 48 8B EC - mov rbp,rsp
4DFF5574: 56 - push rsi
4DFF5575: 48 83 EC 08 - sub rsp,08
4DFF5579: 48 8B F1 - mov rsi,rcx
4DFF557C: 48 8B 04 25 40 C3 93 04 - mov rax,[0493C340]
4DFF5584: 83 3E 00 - cmp dword ptr [rsi],00
// ---------- INJECTING HERE ----------
4DFF5587: 48 63 56 2C - movsxd rdx,dword ptr [rsi+2C]
4DFF558B: 48 8B C8 - mov rcx,rax
// ---------- DONE INJECTING ----------
4DFF558E: 48 83 EC 20 - sub rsp,20
4DFF5592: 83 38 00 - cmp dword ptr [rax],00
4DFF5595: 49 BB 40 37 E5 3E 00 00 00 00 - mov r11,Pathea.NpcRepositoryNs:NpcRepository:GetNpcData
4DFF559F: 41 FF D3 - call r11
4DFF55A2: 48 83 C4 20 - add rsp,20
4DFF55A6: 48 63 88 A4 00 00 00 - movsxd rcx,dword ptr [rax+000000A4]
4DFF55AD: 83 3E 00 - cmp dword ptr [rsi],00
4DFF55B0: 48 63 56 38 - movsxd rdx,dword ptr [rsi+38]
4DFF55B4: 48 83 EC 20 - sub rsp,20
4DFF55B8: 49 BB F0 55 FF 4D 00 00 00 00 - mov r11,Pathea.FavorSystemNs:FavorRelationshipUtil:GetGenderRelation
}
239
"BaseAddress"
String
0
0
0
1
setFavorGradeName_ptr
0
240
"NPC_Name"
4000006:Nora
4000008:Gale
4000011:Django
4000033:Sonia
4000035:Phyllis
4000040:Presley
4000052:Mei
4000053:Lucy
4000063:Arlo
4000069:Pinky
4 Bytes
+2C
241
"relationship"
1:Nemesis
2:Adversary
3:Stranger
4:Associate
5:Buddy
6:Friend
7:Good Friend
8:Best Friend
9:BFF
10:Girlfriend/Boyfriend
11:Sweetheart
12:Lover
13:Soulmate
14:Wife/Husband
15:Soulmate
16:Unhappy Wife/Husband
4 Bytes
+38
Once in game, activate the script (be sure Mono features are still activated), then tape keyboard key 'H' to open Social popup window and click on a NPC (in my example here, Sonia) and your values should show up.
[IMG]https://zupimages.net/up/18/26/0k57.png[/IMG]
Change the value under 'relationship' (click on it to open the drop-down list) and save the game (go into the bed). Let's check my new relationship with Sonia again.
[IMG]https://zupimages.net/up/18/26/lydm.png[/IMG]
It works!!! :D
As you can see, you do not have to have full hearts to see your relationship(s) evolving. But if you still want to have an eye on it, then just copy/past 'relationship' pointer and change the offset to 34 and rename it on your convenance. ;)
[IMG]https://zupimages.net/up/18/26/n3mi.png[/IMG]
[ 1 full heart/star = 100 ]
[IMG]https://zupimages.net/up/18/26/kpwa.png[/IMG]
The most important thing is the 'relationship' value - it's that value which will unlock your npc relation perks.
[B][SIZE=6][COLOR=rgb(44, 130, 201)]EDIT:[/COLOR][/SIZE][/B]
From the code above, you'll notice that I didn't put all npc id's values simply because I didn't meet them all yet. So if you meet a Npc which is not in the CT list (you should have something like 4000025), check the list under 'NPC_Name' and add it like I did (right click on the value, then Set/Change dropdown selection options).