Item Attributes

Discussion about Helbreath Server Files.
Post Reply
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

I need any doc / help related to item attributes and how i can calculate it.

If you wrote any kind of special item calculator, please feel free to send me anything that can help me calculating it the easy way. I don't have enough time to read sources and figure out how it works so... give me infos please !
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
KaoZureS
Regular
Posts: 38
Joined: Thu Feb 23, 2006 1:54 pm

Post by KaoZureS »

<img src='http://personales.ciudad.com.ar/KaoZureS/firma.jpg' border='0' alt='user posted image' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

Thank you but i was looking for how it was working...

I figured it out and added my new attributes... Just had to read some C++ byte to byte operator manuals. Now it works and i know how to add mine !
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

i thin it works like:
first number is weapon style (ancient, sharp and so on) second would be the + rate (+1,+2,...,+15) then third would be special thingy (extra gold, critical increase chance and so on) then third would be how much (15%, 60% 150%) and so on but im not sure :P
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

Tafka12 wrote: i thin it works like:
first number is weapon style (ancient, sharp and so on) second would be the + rate (+1,+2,...,+15) then third would be special thingy (extra gold, critical increase chance and so on) then third would be how much (15%, 60% 150%) and so on but im not sure :P
You're right Tafka, but it uses some strange binary operators before being set to item...

First Type << 20
First Value << 16
Second Type << 12
Second Value << 8

I added my shit in files, so i don't need anymore help about those Attibutes.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

you forgot upgrade:

Attribute >> 28;
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Cleroth
Loyal fan
Posts: 416
Joined: Wed Jun 16, 2004 7:08 pm

Post by Cleroth »

diuuude wrote:
Tafka12 wrote: i thin it works like:
first number is weapon style (ancient, sharp and so on) second would be the + rate (+1,+2,...,+15) then third would be special thingy (extra gold, critical increase chance and so on) then third would be how much (15%, 60% 150%) and so on but im not sure :P
You're right Tafka, but it uses some strange binary operators before being set to item...

First Type << 20
First Value << 16
Second Type << 12
Second Value << 8

I added my shit in files, so i don't need anymore help about those Attibutes.
<< and >> operations are simple... 0x0001 << 8 = 0x0100
<img src='http://ic1.deviantart.com/fs11/i/2006/1 ... leroth.gif' border='0' alt='user posted image' />
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

wikipedia explained it well enough that i learned it within the day i stumbled across item stats when starting to do hg coding

<a href='http://en.wikipedia.org/wiki/Bitwise' target='_blank'>http://en.wikipedia.org/wiki/Bitwise</a>

granted is a little more complicated its still the same concept,
same 4 bits shit == 1 hex char

87654321 = 8 * 4 = 28
itemstat = itemstat | plusvalue <<28

sets the 8th hex value that holds the +x for items to plusvalue, and leaves the other stats alone
-><-
Post Reply