Page 1 of 2

Various stuff

PostPosted: Mon Feb 25, 2008 11:42 pm
by Finito
Various notes and stuff on the 1p1 etc.

VariousStuff.rar

Re: Various stuff

PostPosted: Tue Apr 15, 2008 6:25 pm
by Tiffany
Couldn't get one of them working as intended, so added some additional code in second code section.

ASM WITH DEVIL ITEMS
Code: Select all
0045D0F0  /$ 8B4424 04      MOV EAX,DWORD PTR SS:[ESP+4]
0045D0F4  |. 66:8B40 10     MOV AX,WORD PTR DS:[EAX+10]
0045D0F8  |. 66:3D 3A07     CMP AX,73A
0045D0FC  |. 7C 18          JL SHORT Eonepero.0045D116
0045D0FE  |. 66:3D 4907     CMP AX,749
0045D102  |. 66:3D 640F     CMP AX,0F64
0045D106  |. 7C 0E          JL SHORT Eonepero.0045D116
0045D108  |. 66:3D 8C0F     CMP AX,0F8C
0045D10C  |. 7F 08          JG SHORT Eonepero.0045D116
0045D10E  |. B8 01000000    MOV EAX,1
0045D113  |. C2 0400        RETN 4
0045D116  |> 33C0           XOR EAX,EAX
0045D118  \. C2 0400        RETN 4

Above code doesn't work for human hero as they are droppable.

Additional conditional jmp added to make it function as it is wanted. Can alter the values to suit the spare spaces in your db. Hsoma sSid1836-1849 and Dsoma sSid3985-3999 undroppable/untradable hardcoded - Edit(09/05/2010): this is additional to the current Hero Armour and just extends 14more spaces below sSid1850 for Hsoma and a group of 14 for Dsoma. Although this isn't equal it does allow some undroppable/untradable items for Dsoma.
Code: Select all
0045D0F0  /$ 8B4424 04      MOV EAX,DWORD PTR SS:[ESP+4]
0045D0F4  |. 66:8B40 10     MOV AX,WORD PTR DS:[EAX+10]
0045D0F8  |. 66:3D 2C07     CMP AX,72C
0045D0FC  |. 7C 1C          JL SHORT Eonepero.0045D11A
0045D0FE  |. 66:3D 4907     CMP AX,749
0045D102     7C 0E          JL SHORT Eonepero.0045D112
0045D104  |. 90             NOP
0045D105  |. 90             NOP
0045D106  |. 66:3D 910F     CMP AX,0F91
0045D10A  |. 7C 0E          JL SHORT Eonepero.0045D11A
0045D10C  |. 66:3D 9F0F     CMP AX,0F9F
0045D110  |. 7F 08          JG SHORT Eonepero.0045D11A
0045D112  |. B8 01000000    MOV EAX,1
0045D117  |. C2 0400        RETN 4
0045D11A  |> 33C0           XOR EAX,EAX
0045D11C  \. C2 0400        RETN 4
0045D11F     90             NOP
0045D120   $ C2 0400        RETN 4

Didn't really need the extra nop's in the middle but it splits the selections human / devil.

Re: Various stuff

PostPosted: Sun May 09, 2010 1:41 am
by Loki
would this mean that hero armors ssid would need to be changed to fit in these? or is this additional?

Re: Various stuff

PostPosted: Sun May 09, 2010 8:41 am
by Tiffany
Loki wrote:would this mean that hero armors ssid would need to be changed to fit in these? or is this additional?

The group above (Hsoma) falls into the range of the current Hero Armour, sSid1836 to 1849 are additional.

All that was done was to extend this range to allow additional Hsoma Armour and Dsoma Armour + weapons to be fitted into the group which are undroppable/untradable also. This also keeps the assembly code to a manageable level.

Euro Soma Hero Armour was originally BasicItem sSid1850 to sSid 1865.

These were altered to Hsoma sSid1836-1865 which gives 14 more items before the current Hero Armour to add others and/or Hero Weapons/Accs/etc.

Dsoma never had an undroppable set so the ASM code adds this from Dsoma sSid3985-3999.


Looking at the BasicItem table either using MSSQL or the Item tools would have easily have shown that, in general, most DB's have spaces in the locations detailed. However, it is up to the person hexing the 1P1 what sSid's are added since it relies heavily what they have edited in the Database table Basicitem. Therefore, as detailed above, you can hex whatever values you require, although you would need to put them in one range as individual items or groups become more complex to fit in available space spaces in the 1P1.

Re: Various stuff

PostPosted: Tue May 11, 2010 1:02 am
by Loki
Ah I see now
Hsoma sSid1836-1849 and Dsoma sSid3985-3999


This was the part that confused me, I thought the range was entirely changed, thank you for getting back :)

Looking at the BasicItem table either using MSSQL or the Item tools would have easily have shown that, in general, most DB's have spaces in the locations detailed. However, it is up to the person hexing the 1P1 what sSid's are added since it relies heavily what they have edited in the Database table Basicitem. Therefore, as detailed above, you can hex whatever values you require, although you would need to put them in one range as individual items or groups become more complex to fit in available space spaces in the 1P1.


I had spoken to Finito on this part and he told me exactly how it works with the numbers. I'm a bit new to olly so i wasnt sure what exactly it was doing.
Again thank you for the reply and thanks for doing it so quickly :p
You seem to be the best at getting back to people on basically everything! Keep up the awesome work

Re: Various stuff

PostPosted: Sat Jan 14, 2012 5:11 pm
by bashey
downloads broke says corrupted file :(

Re: Various stuff

PostPosted: Sun Mar 10, 2013 3:13 pm
by phoenixgolden
Finito wrote:Various notes and stuff on the 1p1 etc.

VariousStuff.rar


oo

Re: Various stuff

PostPosted: Sun Mar 10, 2013 3:30 pm
by roachee
phoenixgolden wrote:
Finito wrote:Various notes and stuff on the 1p1 etc.

VariousStuff.rar


oo



not sure what that was but i have this its got loads to do with the 1p1

Notes-2012-02-08.zip

Re: Various stuff

PostPosted: Sun Mar 10, 2013 3:39 pm
by phoenixgolden
roachee wrote:
phoenixgolden wrote:
Finito wrote:Various notes and stuff on the 1p1 etc.

VariousStuff.rar


oo



not sure what that was but i have this its got loads to do with the 1p1

Notes-2012-02-08.zip



thank you so much, me wilson playing around with 1p1 learning new stuff already lol really fun too do you lot on this forum should try this sort of stuff :)


dex cap im gonna try do this :)

Re: Various stuff

PostPosted: Sun Mar 10, 2013 3:47 pm
by w1ls0n
Nice share, believe most of this is for a source client? or i'm just reading it wrong :lol: