Algorithms are quite simple. I used A* ( I am using binary tree(map) instead of heap, but it is still log n ). Its implementation should look quite similar to BFS algorithm. Many functions are made...
Type: Posts; User: Noxitu
Algorithms are quite simple. I used A* ( I am using binary tree(map) instead of heap, but it is still log n ). Its implementation should look quite similar to BFS algorithm. Many functions are made...
Well, in memory every value is stored as int (tibia case), so it we don't need it here. But I was getting mad in other cases due to g++ expanding my structures, so I am very thankful for your post....
First of all, move the check if we aren't attacking anything outside this loop.
Then, C# containers have methods that allows to do such operations with one line statement (i write from memory,...
Hi. Maybe someone will be interested in those contests:
It works on windows now, but threads looks quite slow there.
Also there are still few global values - X, Y, Z, W, H that describes minimap position and size for rl tibia. Probably still some...
I will try to post new version (fully object made - as you prefer C# it will be easy to translate) in a few days. But i still didn't manage to compile it on windows - it looks like SDL dislikes...
Hello. I think that most bots still are missing the feature to find way to some place (like depot) no mater where they are. For now I wrote a simple map viewer that can search path without upper...
Code based on old otserv:
First of all, few functions that will shorten the code:
uint32_t Script::popNumber(lua_State* L)
{
lua_pop(L,1);
return (uint32_t)lua_tonumber(L, 0);
#ifdef _VER_854_
#define ADDR_RSA_KEY 0x837b720
#define ADDR_LOGIN01 0x8572ce0
#endif
=> http://en.wikipedia.org/wiki/Modular_exponentiation <=
Actually libraries like gmp used for RSA in otserv already supports such operation. Using pow( a, b )%c probably will end with...
Probably not. It should be easy to find - you can find all calls to fopen( there should be less then 10 :P ) or where code uses constant with tibia.spr filename.
Sprite editor by Trooper is( or was ) open source and I simply looked at right procedures. Actually most things for tibia are already written by someone else and often released as open source. All...
File version( 4 bytes ): 4E FD 44 4A = 0x4a44fd4e;
Number of sprites( 2 bytes ): F1 73 = 0x73f1 = 25201;
Sprites: CA CF 01 00 = 0x1cfca;
CF CF 01 00 = 0xcfcf;
To access certain address use...
On the begining of file there is list of pointers to each sprite. Each sprite is something like { number of transparent pixels, number of coloured pixels, 3 bytes for each coloured pixel }. Fields in...
In Delphi 5 I used component named TBitBtn. And as I am lazy I selected one of predefined types with graphic already( afair it was "kind" ) and then changed graphic. But I never experienced any...
http://www.noxitu.yoyo.pl/Logo.png I am not sure how many people seen these tools. But as I am not planing to work on them any more I am releasing they with full source.
As they are quite old they...
Well, it is nice - now the only thing to do is to make a header with such declaractions that will be ready to include.
But:
Note, that C++ (Tibia is also written in C++) pushes arguments from...
Normal creatures have following outfit structure:
[2 bytes for outfitid]
[4 bytes for colors]
[1 byte for addons]
But if outfitid is equal to 0 then this structure changes into
[2 bytes for...
It allows you to make from any your character something like NPC, that can walk, talk, fight, cast spells, use rope and runes, eat, fish, trade items, change outfit, ... You just give it account with...
Hi. This is my old project, but as I haven't work on it for few month i am sure that only way to make it useful is releasing its source. It is working, but code is quite messy and probably buggy.
...
You can use something like this:
<div style="width: 250px; height: 20px; background-color: red;">
<div style="width: 64%; height: 20px; background-color: lime;">
</div></div>
Well, i am not sure if you should tell it, but i am really wondering how it works. Could you PM me? :P
85 00 0A 02 00 35 03 5B 9D BB AA 21 A0 17 15 3D BF 8A E3 4C 44 4A 80 D3 79 83 7E C4 84 84 81 E6 22 15 99 96 EA A6 41 BF A5 FA 1A3E 82 45 22 A7 78 5F 85 44 1D 5E C9 91 5F BA C4 91 39 62 11 46 BC DD D7...
Thanks for all comments. :D And of couse it is posted on open source board because I wanted to allow all community to use it. :P
Old PC:
OS: XP home 32-bit SP2
Audio: iTunes
Browser: FireFox 2
Messenger: Gadu-Gadu (only inside country)
Programming: Dev-c++, Delphi(windows), installed MSVS .NET
Picture editing: GIMP,...