Hello
How i can know if the creature is a Monsters or a Npc?
It in Tibia 9.2
Thx
Hello
How i can know if the creature is a Monsters or a Npc?
It in Tibia 9.2
Thx
Study the ID ranges, pretty sure Jo3 posted something about it a while back.
Well the NPC's will generally have lower ID's because they are the first creatures spawned on the map. This is, however, not fully reliable. You will have a large number of monsters around the same ID range as the NPC's at times like server save. Especially in older areas like Thais.
The server now sends a byte in the tileAddThing packet defining the creature type, but it is not stored by the client. Only the flash client uses the ifnormation.
As previously stated, speed is your best bet. As far as I know there are few to no monsters that walk as slow as NPC's, and vice versa.
Also (if you really want to waste your time ), NPCs have the same ID across every server, and they stay the same even after server save. The only thing that would change their ID would be if Cip changed their spawn sequence. So, in theory, you could collect a database of every NPCs ID and use that. You could also check the creature's name in the battle list.
im guessing its basicly the same idea, but its just easier if you find the string of the name of the creature, and include a list such as "npcs" to chekc if it is an npc or not (it can be doen with the ids also)Originally Posted by Jo3Bingham
and you could also set up an npc area, from x position to y in z the npc exist, works for almost every npc exept from that newbie npc that walks all over ankrahmun.. the djinn npc quest <,< god i hate that npc
you cna also find them on battle list, i saw a tutorial here i dont remember who post it.....
Make a program which will watch incoming tileAdd packets for all creatures added with type of NPC and log the id's/names. Loggon in an area with no npc's. Travel to every single town and visit every shop. Visit all other special npc's. Easier than postman quest.Originally Posted by Jo3Bingham
I'd rather shoot myself..Originally Posted by DarkstaR
Haha, very funny!Originally Posted by DarkstaR
Well, the Speed is a good trick, but I prefer to simply don't guess what is a creature and what is a npc.
On the case of my Attacker, it attacks by a list or if something attack you.