Jump to content
  • 0

R>GM stays in castle


PaqnaN

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   2
  • Joined:  01/06/14
  • Last Seen:  

i just want to ask if its posible for a specific gm will not be warp out from the castle when the emp is broken?

if its posible, can some1 out there help me with this please.

Edited by PaqnaN
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

src/map/script.c#L11520

if(!sd || sd->bl.m != m)
return 0;

add below

if( pc_has_permission(sd, PC_PERM_WARP_ANYWHERE) )  return 0;

every user that have this permission will not warped out by the maprespawnguildid

 

you cant really determine if they are GM or not using source since we are now using Group ID..

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   2
  • Joined:  01/06/14
  • Last Seen:  

thank you sir. it works on my rathena server.

but can you help me also make this works in my eathena server?

thnx in advance

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


if( battle_config.any_warp_GM_min_level < pc_isGM(sd) ) return 0;

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...