mattyx14 / otxserver

OTX Server from:
https://docs.opentibiabr.com
GNU General Public License v2.0
228 stars 194 forks source link

TP to templo If no free sqm OTX2 - Codename: (LORD ZEDD) #728

Closed tdp157 closed 1 year ago

tdp157 commented 1 year ago

My server is otx 2 - 0.7 Codename: (LORD ZEDD) .... And it is not giving TP to the city when there is no place to spawn. The player spawns on the table, pot, other players... I want it to be like it was in 7.4 if there is no place to spawn, it goes back to the temple. Can someone help me? please...

mattyx14 commented 1 year ago

from what I can understand that cannot be done because it is a function inherited from a new version that if you are in the same spot you cannot be teleported

mattyx14 commented 1 year ago

https://otland.net/threads/tp-to-templo-if-no-free-sqm.283131/

tdp157 commented 1 year ago

I solved the problem by changing line 192 of the map.cpp file

from: uint32_t flags = FLAG_IGNOREBLOCKITEM;

to: uint32_t flags = TILESTATE_BLOCKSOLID;

mattyx14 commented 1 year ago

The problem is that the OTx 2 code for 7x is not available. It would be seen in the future if that is implemented again.