T
twostars
EVT: Implement ZONE_CHANGE (#779)
* EVT: Implement ZONE_CHANGE
There's a few cases where no args are supplied.
Official behaviour in this case causes the positions to be 0,
resetting the player to the corner of the map.
We'll just tweak this slightly and override this to /town
to be nice, as this is not intentional behaviour on their part.
Refs #260
* Enforce warps consistently when changing to the same zone
Officially this is only enforced on certain cases (including the "E ZONE_CHANGE" opcode),
but we'll enforce it consistently.
Additionally, add Warp(float x, float y) to avoid the unnecessary internal packet logic.
* Remove now unused variables
Github Commit Görüntüle...
See Commints...
..
* EVT: Implement ZONE_CHANGE
There's a few cases where no args are supplied.
Official behaviour in this case causes the positions to be 0,
resetting the player to the corner of the map.
We'll just tweak this slightly and override this to /town
to be nice, as this is not intentional behaviour on their part.
Refs #260
* Enforce warps consistently when changing to the same zone
Officially this is only enforced on certain cases (including the "E ZONE_CHANGE" opcode),
but we'll enforce it consistently.
Additionally, add Warp(float x, float y) to avoid the unnecessary internal packet logic.
* Remove now unused variables
Github Commit Görüntüle...
See Commints...
..