viewing paste ra_mapguild | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Index: src/map/script.c
===================================================================
--- src/map/script.c    (revision 17418)
+++ src/map/script.c    (working copy)
@@ -11065,6 +11065,7 @@
        return 0;
 }
 
+
 static int buildin_maprespawnguildid_sub_pc(struct map_session_data* sd, va_list ap)
 {
        int16 m=va_arg(ap,int);
@@ -11076,7 +11077,7 @@
        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)      // Warp out players not in guild [Valaris]
+               (sd->status.guild_id == 0 && (flag&8==0))       // Warp out players not in guild
        )
                pc_setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT);
        return 1;
@@ -11092,6 +11093,16 @@
        return 0;
 }
 
+/*
+ * Function to kickout guildies out of a map. (Put them back into thei save point)
+ * (mob are being killed)
+ * m : mapid
+ * g_id : owner guild id
+ * flag & 1 : Warp out owners
+ * flag & 2 : Warp out outsider
+ * flag & 4 : reserved for mob
+ * flag & !8 : Warp out non guildies
+ * */
 BUILDIN_FUNC(maprespawnguildid)
 {
        const char *mapname=script_getstr(st,2);
Viewed 658 times, submitted by lighta.