Jump to content
  • 0

maprespawnguildid edit


Vanquiser

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   1
  • Joined:  02/22/12
  • Last Seen:  

How can i edit this source? i want to exempted from warping outside castle (GM Level 60+) when the EMP Broke...

maprespawnguildid

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   1
  • Joined:  02/22/12
  • Last Seen:  

NVM i Already did it by self

 

Quote

script.cpp

static int buildin_maprespawnguildid_sub_pc(struct map_session_data* sd, va_list ap)
{
    int16 m=va_arg(ap,int);
    int g_id=va_arg(ap,int);
    int flag=va_arg(ap,int);

    if(!sd || sd->bl.m != m)
        return 0;
    if(
        (sd->status.guild_id == g_id && flag&1) || //Warp out owners
        (sd->status.guild_id != g_id && flag&2) || //Warp out outsiders
        (sd->status.guild_id == 0 && flag&2)    // Warp out players not in guild
    )
     if ( pc_get_group_level(sd) != 99 ) // your group you want to disable
        pc_setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT);        
    return 1;
}
 

 

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