insinguild/isintown? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: insinguild/isintown? (/Thread-insinguild-isintown) |
insinguild/isintown? - admin phoenix - 08-11-2012 09:25 PM is there a function out that checks if a player is in a guild or town? thanks for helping me gr phoenix RE: insinguild/isintown? - Extreme - 08-12-2012 01:48 AM <guild> return the guilduid, if dont have guild, return 0 <town> is the same thing I think =D RE: insinguild/isintown? - admin phoenix - 08-12-2012 02:49 AM yes, I am using it ON=@STEP IF (<src.GUILD>) 18:39:ERROR:(sphere_guild_items.scp,99)Can't resolve <src.GUILD> 18:39:ERROR:(sphere_guild_items.scp,99)Undefined symbol '' RE: insinguild/isintown? - Shaklaban - 08-12-2012 06:49 AM it means stepping character is npc, npcs can't have guild. RE: insinguild/isintown? - Extreme - 08-12-2012 07:03 AM (08-12-2012 02:49 AM)admin phoenix Wrote: yes, I am using itIF <SRC.ISPLAYER> IF <SRC.GUILD> ENDIF ENDIF RE: insinguild/isintown? - Mordaunt - 08-12-2012 12:29 PM It's definately <src.guild> I run it in some of my systems though it is usually checking against something. i.e. checking that the person belongs to the guild that the building/object belongs to Code: if (<src.guild>==<obj.tag0.is_guild>) |