Vanquiser Posted June 16, 2020 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 81 Reputation: 1 Joined: 02/22/12 Last Seen: August 30, 2022 Share Posted June 16, 2020 How can i edit this source? i want to exempted from warping outside castle (GM Level 60+) when the EMP Broke... maprespawnguildid Quote Link to comment Share on other sites More sharing options...
0 Vanquiser Posted June 16, 2020 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 81 Reputation: 1 Joined: 02/22/12 Last Seen: August 30, 2022 Author Share Posted June 16, 2020 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; } Quote Link to comment Share on other sites More sharing options...
Question
Vanquiser
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.