![]() |
[Tutorial?][HEX] Adding new crystal_type to itemdata
First, I don't know how you can find that. It is just luck or skill or both. I will just explain what do you need to change and why do you need to change that.
Task: add new crystal_type property value. Just add. Nothing more. Hex is a bit incomplete, ex. if you crush item with new cryst. type you will either get crash or bunch of no-crystal thing. A bit of theory: Server parses all script files and stores them in memory. It stores those in rather... complex format, but most of properties are being saved as word or dword (since c works with numbers faster). There is a function, actually, that converts string assigned to property into numeric value. And it is resided in here : 00567840. So, all we need is to read this function carefully and understand what actually does it do. Consider that as your hometask. I will stop only on moments needed for our task. Practice? First, if you read that one carefuly, you can understand how it works. It checks on appropriate string in table and substitutes it with appropriate numeric value. Also, it makes 80h cycles, meaning that it's for-loop. This: Code:
00567849 |. BE 4C566C00 MOV ESI,L2server.006C564CSecond, what's length of our table item and its structure? Code:
00567850 |> /396E FC /CMP DWORD PTR DS:[ESI-4],EBP ;check if table item is referenced to proerty field we have. Notice [esi-4]!**Which means we increment table item pointer by one. Which means that one table item is 10h = 16 bytes long. Now, let's see to code which is being executed when we got strings matched. Code:
0056787F |> \C1E7 04 SHL EDI,4 ;this actually means "divide EDI by 2^4 and take whole part" = [EDI/16]This means that function returns two values in EAX and EDX. First one is dword value of string. Second... I don't know, but in this context it doesn't matter (if you're curious, look what is that in near of .568CB5. That's where this function is being called and EDI is being used). So, we need 1) add new element to table in format: (int field, PWideChar StringValue, int DwordValue, int Unknown=0) 2) Increase loop count by one. Second is easy. Change Code:
0056786D 81FF 80000000 CMP EDI,80Code:
0056786D 81FF 80000000 CMP EDI,81I just added it at the end of table, like that: Code:
006C5E48: 26000000 585E6C00 06000000 00000000int field = 26h (which is crystal_type) PWideChar StringValue = 6C5E58 = UNICODE 'e' int DwordValue = 6 int Unknown = 0 It is also possible to move table somewhere else, where is more space if you need it. In this case, we did not. Well... I think that's all. Any feedback is welcomed. Software I usually get asked what soft do I use. I always answer, but it gets annoying, so I want to make it clear. I use ollydbg 1.10 for debugging, often hexing, usually to post my hexes here. I use Hex workshop to search for strings and cross-section references. I use hiew to hex fast fixes in different versions of exes. Stop. Nothing more. |
thaks for help to comunity.. nice tutorial..
thanks again :) |
Novice
change item 5789,5790,2369,10,6,2370 to crystal_type=e from crystal_type=none now novice SS can be used only in starting weapons also edit consume |
... Thought I'll bump this thread. Just in case.
166 views and 2 posts... I fear people look and think: "I don't understand a word" and go out. |
woo coollll, thanks livid
|
Quote:
|
Starter weapons use soulshot_none_for_rookie etc. I believe he's trying to allow them to use these or something.
|
Starter weapons use no grade soulshots, the soulshot_none_for_rookie are the same as no grade soulshots, but they just don't weigh as much and you get them with quests. There is no difference in crystal_type on retail; you can use the rookie soulshots with i.e. a comp bow if you'd like. ;)
|
I belive you can use rookie soulshots/spiritshots only with limited ammount of weapons. Specifically with some of weapons that do not use normal soulshots/spss.
And you get rookie SS only for tutorial quest (as a part of tutorial actually) that was the point. |
ty for clarifying
|
wow, nice hex livid
|
For some people this might be useful, just finished a dll to do it automaticly
i dont gurantee the code works :) Code:
//ITEMDATA |
A big thanks to you for your help ^^ Do you guys imagine what would happen if ppl like livid and torune had the c3 source in theri hands.wohooo! Keep up the good work guys
|
Livid and torune, you are the most shared in hexing. Help me if you can :) in full party - should be a bonus 90% of exp for full paty - in my server have bonus too - 7% (i think so :)) question: Where i shold increse parametr for this?
sory for my bad english. rus Пати бонус - должно быть 90% если полная пати говарят что есть 7% как сделать 90%? |
try making a new post instead of going offtopic
|
Tnx for the share Livid !!!
|
Sorry, but i dont find post about novice SS|BSPS...
It deleted ? P.S. Ill try search - dont found =( |
Novice ss/bsps are identical to no graed except for the name.
Could this be used for fishing rods? They all have their own grades and use fishing shots. I know this is for adding a new grade, but what about adding a new wepaon type of ROD? |
Novice ss/bsps are identical to no graed except for the name.
does it mean that any wearpon (not just starter, but any) can be charged with Novice ss/bsps? |
Yes. That's what I've been saying from the start...
|
|
SS for rookie are weaker than normal SS none..
|
Livid, nice Tutorial.
It makes us take courage and start to learn ASM and try to hex L2. |
livid can u add a new crystal higher than S grade (becouse crystal E is lower than D) , i was thinking on use a new crystal H (for example) for hero weapons , and make a new expertise H for hero , so then can use hero weapons and hero sets :)
|
Quote:
http://www.purp.co.uk/temp/clip-nssps.jpg http://www.purp.co.uk/temp/clip-nssps-n.jpg Quote:
|
Quote:
Point was to make do-it-urself tutorial. Have fun. |
| All times are GMT. The time now is 22:52. |