EVT: Implement ZONE_CHANGE (#779)

  • Konuyu Başlatan Konuyu Başlatan twostars
  • Başlangıç tarihi Başlangıç tarihi
  • Öne çıkan
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...

..
 

Similar threads

T
Cevaplar
0
Görüntüleme
18
twostars
T
T
Cevaplar
0
Görüntüleme
5
T
T
Cevaplar
0
Görüntüleme
15
twostars
T
T
Cevaplar
0
Görüntüleme
11
twostars
T
K
Cevaplar
0
Görüntüleme
39
kenner2
K
Geri
Üst