#142 LUA Function: transport map useability

닫힘
image3 년 전을 오픈 · 1개의 코멘트
image 코멘트됨, 3 년 전

need the ability to display transport options via LUA scripting

should pull transports, eg.

if(GetTransporterID() > 0)
    GetZone()->GetTransporters(&destinations, client, GetTransporterID());

then display:

if(destinations.size())
    client->ProcessTeleport(this, &destinations, GetTransporterID());
need the ability to display transport options via LUA scripting should pull transports, eg. if(GetTransporterID() > 0) GetZone()->GetTransporters(&destinations, client, GetTransporterID()); then display: if(destinations.size()) client->ProcessTeleport(this, &destinations, GetTransporterID());
image 코멘트됨, 3 년 전
협업자

adding: NPC is a Object, Widget, NPC, Sign Spawn is a 'Player' TransportID is a uint32 to match transporters table id

SendTransporters(NPC, Spawn, TransportID)

you can also override existing transport ids by setting a temporary transport ID BEFORE 'use' command is called. Set to 0 to nullify any existing transport map being displayed.

SetTemporaryTransportID(Spawn, TransportID)

you can check the Players current transport id to see what it is set to.

GetTemporaryTransportID(Spawn)

adding: NPC is a Object, Widget, NPC, Sign Spawn is a 'Player' TransportID is a uint32 to match transporters table id ```SendTransporters(NPC, Spawn, TransportID)``` you can also override existing transport ids by setting a temporary transport ID BEFORE 'use' command is called. Set to 0 to nullify any existing transport map being displayed. ```SetTemporaryTransportID(Spawn, TransportID)``` you can check the Players current transport id to see what it is set to. ```GetTemporaryTransportID(Spawn)```
image 커밋 3 년 전에서 이 이슈 언급
image 3 년 전가 Close
로그인하여 이 대화에 참여
로딩중...
취소
저장
아직 콘텐츠가 없습니다.