mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
HOOK_STEAL: add arg4 - quantity of items stolen
This commit is contained in:
@@ -375,6 +375,7 @@
|
||||
Obj arg1 - The target
|
||||
Item arg2 - Item being stolen/planted
|
||||
int arg3 - 0 when stealing, 1 when planting
|
||||
int arg4 - quantity of items being stolen
|
||||
|
||||
int ret0 - overrides hard-coded handler (1 - force success, 0 - force fail, -1 - use engine handler)
|
||||
```
|
||||
|
||||
@@ -478,6 +478,7 @@ Critter arg0 - Thief
|
||||
Obj arg1 - The target
|
||||
Item arg2 - Item being stolen/planted
|
||||
int arg3 - 0 when stealing, 1 when planting
|
||||
int arg4 - quantity of items being stolen
|
||||
|
||||
int ret0 - overrides hard-coded handler (1 - force success, 0 - force fail, -1 - use engine handler)
|
||||
```
|
||||
|
||||
@@ -209,10 +209,11 @@ static void __declspec(naked) StealCheckHook() {
|
||||
mov args[4], edx; // target
|
||||
mov args[8], ebx; // item
|
||||
mov args[12], ecx; // is planting
|
||||
mov args[16], esi; // quantity
|
||||
pushadc;
|
||||
}
|
||||
|
||||
argCount = 4;
|
||||
argCount = 5;
|
||||
RunHookScript(HOOK_STEAL);
|
||||
|
||||
__asm {
|
||||
|
||||
Reference in New Issue
Block a user