Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
insinguild/isintown?
Author Message
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #1
insinguild/isintown?
is there a function out that checks if a player is in a guild or town?

thanks for helping me

gr

phoenix
08-11-2012 09:25 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: insinguild/isintown?
<guild> return the guilduid, if dont have guild, return 0
<town> is the same thing I think =D

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-12-2012 01:48 AM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #3
RE: insinguild/isintown?
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 ''
08-12-2012 02:49 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #4
RE: insinguild/isintown?
it means stepping character is npc, npcs can't have guild.
08-12-2012 06:49 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #5
RE: insinguild/isintown?
(08-12-2012 02:49 AM)admin phoenix Wrote:  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 ''
IF <SRC.ISPLAYER>
IF <SRC.GUILD>
ENDIF
ENDIF

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-12-2012 07:03 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: insinguild/isintown?
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>)
    return 0
else
    src.move <def.access_inhibit>
    src.sysmessage @,,1 This property has been deemed private.
    src.sysmessage @,,1 You may not trespass.
    return 1
endif

[Image: 2nis46r.jpg]
08-12-2012 12:29 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)