The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guild Town Features
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #3
RE: Guild Town Features
(05-18-2016 05:08 AM)richm Wrote:  You might want to consider adding a check to the above, to ensure the GUILDTOWN tag is only given to members of the guild town? Otherwise the raiders will also be able to expel although they can only expel their fellow raiders really.


[FUNCTION expel]
IF !<ISEMPTY <TAG.GUILDTOWN>> && !<FINDID.i_raider> //HAS GUILDTOWN TAG
SYSMESSAGE @,,1 Who do you want to expel?
TARGETF f_expel
RETURN 1
ENDIF
SYSMESSAGE @,,1 You need to be in your own Guild Town to use this command.
RETURN 1

Adding the && !<FINDID.i_raider> should do what you said I guess. Even having the GUILDTOWN tag, they won't be able to expel anyone because they are raiders. Guess it's way easier than trying to check to which guild does someone belong when entering a guild town.

Depending on the case, expelling people automatically through timerf after X time inside the guildtown could possible be a better option than giving the power for someone to do so. Since there are no counters or any other features attached to it, it's just a "had to come here just to kick you out". With automatic expel people would know they wouldnt have to bother with others nearby they place after X time upon doors have been opened.
(This post was last modified: 05-18-2016 06:25 AM by pointhz.)
05-18-2016 06:17 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Guild Town Features - Fronz - 05-18-2016, 01:29 AM
RE: Guild Town Features - richm - 05-18-2016, 05:08 AM
RE: Guild Town Features - pointhz - 05-18-2016 06:17 AM
RE: Guild Town Features - richm - 05-18-2016, 06:35 AM
RE: Guild Town Features - Fronz - 05-28-2016, 02:06 PM

Forum Jump:


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