dick_traced Newbie cheater
Reputation: 0
Joined: 22 Sep 2011 Posts: 21
|
Posted: Mon Dec 05, 2011 10:29 am Post subject: tutorial request |
|
|
Hi,
i would ask of more exp hackers to make a video tutorial on structure spider and it's features
also, There's something else i would like to ask of you(experienced hackers) about structures.
let's say we have structure of enemy
enemy {
-health
-mana
-damage
}
how can i 'insert' another component in the structure? i mean, i want for every enemy to have an element 'times hit by blade', for example. i have an idea of allocating memory and for every enemy i store the starting structure address and the corresponding 'times hit by blade'. but i want to learn optimal ways to access and store these kind of data.
example:
-we allocate 1024 memory
-we know structure of enemy1 starts at 1234 and structure of enemy2 starts at 4321. so in the allocated memory we would create a little new structure for each enemy, and we would have:
1234; 3; 4321; 8
so we know enemy 1 was hit 3 times with the blade, and enemy2 8 times
ok. now when we want to check how many times enemy7 was hit by blade, we would start from the allocated memory and check the address from 8 to 8 bytes to get to the address of enemy7. problem would be: do we have allocated enough space for all the enemies? how can we eliminate the entry of a killed enemy? (in pascal would be simple, any snippets for assembly??)
also any other solution would be greatly appreciated, since it'n not quite optimal to check all the elements of an array (maybe a method of storing by derrivating from enemy structure address?? some math involved?)
another note: storing and manipulating would have to be very very good, since instead of 'times hit by blade'(that gets manipulated when enemy takes damage from blade), we could have 'time until boom' (where we increase a counter every time health of enemy is READ by the game - like couple hundreds times per second)
so to summarize: how can you efficiently can store and manipulate new elements for enemies structures?
thank you all
|
|