|
|
Puppet_Master
Adventuring Hero
Villain
|
posted July 22, 2016 03:44 PM |
|
|
majaczek said: is it doable? if so please do it for me, because I failed...
Sources of Master Of Puppets (just see it):
Quote:
; change of all calls:
165C3 E8320D3400; CALL mop.007572FA
165DE E8170D3400; CALL mop.007572FA
167E8 E80D0B3400; CALL mop.007572FA
16803 E8F20A3400; CALL mop.007572FA
16FB4 E841033400; CALL mop.007572FA
16FCF E826033400; CALL mop.007572FA
1719C E859013400; CALL mop.007572FA
; Change function:
2F22FA 56; PUSH ESI
2F22FB 8BF1; MOV ESI,ECX
2F22FD 83BE2901000003; CMP DWORD PTR DS:[ESI+129],3 - Scouting level
2F2304 52; PUSH EDX
2F2305 53; PUSH EBX
2F2306 7D2A; JGE SHORT 00757332
2F2308 8D8E91000000; LEA ECX,DWORD PTR DS:[ESI+91] - creatures slots
2F230E BA07000000; MOV EDX,7
2F2313 8B19; MOV EBX,DWORD PTR DS:[ECX]
2F2315 83FBFF; CMP EBX,-1
2F2318 7412; JE SHORT mop.0075732C
2F231A 80BB60FF840000; CMP BYTE PTR DS:[EBX+84FF60],0 - check ability
2F2321 B803000000; MOV EAX,3
2F2326 7404; JE SHORT mop.0075732C
2F2328 5B; POP EBX
2F2329 5A; POP EDX
2F232A 5E; POP ESI
2F232B C3; RETN
2F232C 83C104; ADD ECX,4
2F232F 4A; DEC EDX
2F2330 75E1; JNZ SHORT mop.00757313
2F2332 8B8629010000; MOV EAX,DWORD PTR DS:[ESI+129]
2F2338 EBEE; JMP SHORT mop.00757328
84FF60h - table of creatures that have ability. Loaded from configuration file of creatures editor.
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 22, 2016 04:08 PM |
|
Edited by majaczek at 16:14, 22 Jul 2016.
|
screenshoots of olly
the code wouldn't work on ERA the adresses didn't point at instruction
EDIT: Ouch! it seems I have to calculate the adress? okay I'll try :|
|
|
igrik
Promising
Known Hero
|
posted July 22, 2016 04:09 PM |
|
Edited by igrik at 16:23, 22 Jul 2016.
|
orc said:
Edit: I also have another question: how do I change the hero specialty % value? for e.g. how do we make tazar receive 3% bonus to armorer instead of 5% bonus per level? or how do we make christian receive 20% bonus for balistia instead of 5% per 4 levels? and such tweaks (I feel it should be easy)
!?BA52;
!!UN:C6542180/4/1022739087; 3% Bonus Armorer Power
!!UN:C5129673/4/6542180;
|
|
Puppet_Master
Adventuring Hero
Villain
|
posted July 22, 2016 04:13 PM |
|
|
majaczek said: screenshoots of olly
the code wouldn't work on ERA the adresses didn't point at instruction
Quote: Just see it
I can`t make one thing twice. You must do it yourself, differently - for your mod.
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 22, 2016 04:16 PM |
|
Edited by majaczek at 16:41, 22 Jul 2016.
|
Puppet_Master said:
majaczek said: screenshoots of olly
the code wouldn't work on ERA the adresses didn't point at instruction
Quote: Just see it
I can`t make one thing twice. You must do it yourself, differently - for your mod.
Sorry MoP I didn't Understood you then
I hope I do now
something like this:
Quote:
; Change function:
mop_007572FA:
2F22FA 56; PUSH ESI
2F22FB 8BF1; MOV ESI,ECX
2F22FD 83BE2901000003; CMP DWORD PTR DS:[ESI+0x129],3 - Scouting level
2F2304 52; PUSH EDX
2F2305 53; PUSH EBX
2F2306 7D2A; JGE SHORT 00757332
2F2308 8D8E91000000; LEA ECX,DWORD PTR DS:[ESI+0x91] - creatures slots
2F230E BA07000000; MOV EDX,7
mop_00757313:
2F2313 8B19; MOV EBX,DWORD PTR DS:[ECX]
2F2315 83FBFF; CMP EBX,-1
2F2318 7412; JE SHORT mop_0075732C
2F231A 80BB60FF840000; CMP BYTE PTR DS:[EBX+isRogue],0 - check ability
2F2321 B803000000; MOV EAX,3
2F2326 7404; JE SHORT mop_0075732C
mop_00757328:
2F2328 5B; POP EBX
2F2329 5A; POP EDX
2F232A 5E; POP ESI
2F232B C3; RETN
mop_0075732C:
2F232C 83C104; ADD ECX,4
2F232F 4A; DEC EDX
2F2330 75E1; JNZ SHORT mop_00757313
2F2332 8B8629010000; MOV EAX,DWORD PTR DS:[ESI+0x129]
2F2338 EBEE; JMP SHORT mop_00757328
??? if so thanks
PS: should 00757332 be mop_00757332?
rogue is zero or 1?
REALLY THANKS
|
|
Puppet_Master
Adventuring Hero
Villain
|
posted July 22, 2016 04:49 PM |
|
|
majaczek said:
rogue is zero or 1?
CMP BYTE PTR DS:[EBX+84FF60],0
EBX = creature number.
84FF60h - table of 0/1 byte value. 1 - have ability.
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 22, 2016 05:29 PM |
|
|
sorry, but I have a problem
Quote:
all hex
007572FA - 2F22FA = 465000
465000 + 0 = 465000
465000 + 165C3 = 47B5C3
465000 + 165de = 47B5DE ??
465000 + 167e8 = 47B7E8 ??
465000 + 16803 = 47B803 ??
465000 + 16fb4 = 47BFB4 ??
465000 + 16fcf = 47BFCF ??
465000 + 1719c = 47C19C ??
all adresses which are not the first points to some nonsense
first adress points to
CALL 00523450
should I find all "CALL 00523450" in era? or this is also not this what you meant?
|
|
Puppet_Master
Adventuring Hero
Villain
|
posted July 22, 2016 05:34 PM |
|
|
+400000 for Sod-part of the code. Not 465000.
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 22, 2016 05:40 PM |
|
Edited by majaczek at 18:40, 22 Jul 2016.
|
Puppet_Master said: +400000 for Sod-part of the code. Not 465000.
Really thanks
EDIT: now I know how to interprete your code MoP
could you post more creature related snippets? in form you can.
There are finished isRogue (thanks MoP!) Enchanter, Sorcerer, fireball, lichball, regen, isGhost, hell steed firewall, fire shield, rebirth, AFTERCAST_ABILITY, ATTACK_ABILITY, MAGIC_RESISTANCE and more. There is no: wight mana drain and some...
|
|
orc
Famous Hero
|
posted July 23, 2016 07:24 AM |
|
Edited by orc at 08:57, 23 Jul 2016.
|
igrik said:
!?BA52;
!!UN:C6542180/4/1022739087; 3% Bonus Armorer Power
!!UN:C5129673/4/6542180;
could you please explain this script?
I tried it on test map for
Level 10 Neela still resist 30% from armor instead of 26%
level 20 Mephala still resist 40% instead of 32%
and level 30 Tazar still resist 50% instead of 38%???
also, what does BA52 mean? all the examples shown in the link below are:
BA0, BA1, BA50, BA51
http://www.wakeofgods.com/erm_help/receivers/receiver_ba.htm
Edit: wait maybe I fogot to put the ZVSE
lol xD
Edit: ok I have tried it again with this trigger:
ZVSE
!?BA52;
!!UN:C6542180/4/1022739087; 3% Bonus Armorer Power
!!UN:C5129673/4/6542180;
and the game crashed as soon as I started battle with neela
it said, access violation: attempts to access inaccessible data
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted July 24, 2016 11:10 AM |
|
|
I have a quick question.
In ERA Scripts Eng. there is a script called Misfourtune, it gives 5% chance to do more damage per point of luck. Is this chance on top to the normal luck chance which i guess is hardcoded?
And what is the max chance to get luck in original h3?
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 24, 2016 10:21 PM |
|
|
How to disable effects of magic wand?
Please provide UN:C codes
|
|
Orc
Famous Hero
|
posted July 25, 2016 04:08 AM |
|
Edited by Orc at 05:47, 25 Jul 2016.
|
majaczek said: How to disable effects of magic wand?
Please provide UN:C codes
Hello majeczek
Maybe you can find something in erm help link
http://www.wakeofgods.com/erm_help/receivers/receiver_un.htm
http://www.wakeofgods.com/erm_help/other/annexe.htm
I am not sure, but i found all the spell codes there
does this help?
|
|
igrik
Promising
Known Hero
|
posted July 25, 2016 09:31 AM |
|
|
orc said: and the game crashed as soon as I started battle with neela
it said, access violation: attempts to access inaccessible data
I do not know. The script is correct
majaczek said: How to disable effects of magic wand?
Please provide UN:C codes
!!UN:C7661053/4/255;
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted July 25, 2016 10:29 AM |
|
|
orc said: and the game crashed as soon as I started battle with neela
it said, access violation: attempts to access inaccessible data
Works here. You using maybe wog 3.58?
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 25, 2016 06:06 PM |
|
|
I added emerald to my mod for more arts.
I tried to make code to make magic wand a combo artifact.
I failed... Why?
PS: alphase plugin crashes, I disabled it.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted July 25, 2016 06:52 PM |
|
|
|
majaczek
Supreme Hero
Work at Magic Dimmension
|
posted July 25, 2016 08:14 PM |
|
|
Sorry it seems I forgot to save erm file
now I am travelling so I cannot check, but dropbox has old scripts.
I am writting from cell phone.
|
|
Orc
Famous Hero
|
posted July 25, 2016 09:08 PM |
|
Edited by Orc at 21:11, 25 Jul 2016.
|
Salamandre said:
orc said: and the game crashed as soon as I started battle with neela
it said, access violation: attempts to access inaccessible data
Works here. You using maybe wog 3.58?
yea,
I think it is 3.58f
I found update.txt file at documentation directory 3.58 but some scripts said its 3.58f
Edit:
is it because I have 2 triggers in one map? in the same map I have another event trigger to change jeddite specialty from rebuild castle back into resurrection
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted July 25, 2016 09:26 PM |
|
|
No, probably igrik's code is for Era (wog 3.59). You are using an obsolete version.
|
|
|