Jump to content
  • 0

Handling spectators


Jensens

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  25
  • Reputation:   0
  • Joined:  07/27/18
  • Last Seen:  

Hello! 

I am developing an instanced combat system, and I would like to have spectators. 

Current problem:

Currently, spectator mode allows to have invisible players in a map, but they occupy one cell in that map cache. This would interrupt the cells where the fighters would need to fight. 

Proposed solution:

Is it possible to load spectators in the same map than fighters, but have two sets of cells overlapped, one for spectators and one for fighters? 

Is it also possible to show fighters in the minimap for that map? 

Any alternative solutions might be considered ?

Thank you?

Jensen. 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

You can try adding a check on the player's status and current map in pc.cpp's pc_setpos() and make sure it does not set the position so the map server will think that the cell is walkable

https://github.com/rathena/rathena/blob/55acdb9863382d8935d9df25e1462d5d1ebd7d54/src/map/pc.cpp#L5470

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...