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-nmm6 (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-nmm6 (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-nmm6 (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 ANNOUNCE when an enemy guild enters area?
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
GUILD ANNOUNCE when an enemy guild enters area?
i want it to announce to guild when a enemy guild player enters a town controlled by them...

but remember, the towns change hands to different guilds...


my "townstones" look like this...

[WORLDITEM i_townstone_3kuo]
SERIAL=040004100
NAME=Luo Yang
COLOR=04//guild clothing color
DISPID=0ede
LINK=01ffd//guild owner uid
ATTR=010
MORE1=03//guildcolor for dialogs
P=1423,1693

Dragons of Time 2000-2020
http://dragonsoftime.com
01-28-2015 12:53 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #2
RE: GUILD ANNOUNCE when an enemy guild enters area?
how can you send a message to a certain guild, by guild number?

something like...

Code:
[REGIONTYPE r_luoyang]
ON=@ENTER
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) && (<UID.040004100.LINK>==01ffd)//caocao
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>>040004000) && (<UID.040004100.LINK>==01ffd)//caocao
SRC.SYSMESSAGE You are in enemy territory1...
GUILD.040004000.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
//wu
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004001) && (<UID.040004100.LINK>==01fda)//sunquan
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) || (<SRC.MEMORYFINDTYPE.0400.LINK>>040004001) && (<UID.040004100.LINK>==01fda)//sunquan
SRC.SYSMESSAGE You are in enemy territory2...
GUILD.040004001.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
//shu
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004002) && (<UID.040004100.LINK>==01fd1)//liubei
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004001) || (<SRC.MEMORYFINDTYPE.0400.LINK>>040004002) && (<UID.040004100.LINK>==01fd1)//liubei
SRC.SYSMESSAGE You are in enemy territory3...
GUILD.040004002.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
//ys
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004003) && (<UID.040004100.LINK>==01fd5)//yuanshao
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004001) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004002) || (<SRC.MEMORYFINDTYPE.0400.LINK>>040004003) && (<UID.040004100.LINK>==01fd5)//yuanshao
SRC.SYSMESSAGE You are in enemy territory4...
GUILD.040004003.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
//lb
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004004) && (<UID.040004100.LINK>==01fc5)//lubu
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004001) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004002) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004003) || (<SRC.MEMORYFINDTYPE.0400.LINK>>040004004) && (<UID.040004100.LINK>==01fc5)//lubu
SRC.SYSMESSAGE You are in enemy territory5...
GUILD.040004004.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
//yt
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004005) && (<UID.040004100.LINK>==01ff7)//zhangjiao
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004001) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004002) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004003) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004004) || (<SRC.MEMORYFINDTYPE.0400.LINK>>040004005) && (<UID.040004100.LINK>==01ff7)//zhangjiao
SRC.SYSMESSAGE You are in enemy territory6...
GUILD.040004005.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
//mh
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004006) && (<UID.040004100.LINK>==01fdc)//menghuo
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004001) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004002) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004003) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004004) || (<SRC.MEMORYFINDTYPE.0400.LINK>==040004005) || (<SRC.MEMORYFINDTYPE.0400.LINK>>040004006) && (<UID.040004100.LINK>==01fdc)//menghuo
SRC.SYSMESSAGE You are in enemy territory7...
GUILD.040004006.ALLMEMBERS -1,SYSMESSAGE @0032 An enemy soldier has been spotted in <UID.040004100.NAME>.
ENDIF

you get the idea...

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-29-2015 12:06 AM by x77x.)
01-28-2015 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #3
RE: GUILD ANNOUNCE when an enemy guild enters area?
BAM!!!! YES!


Code:
[REGIONTYPE r_luoyang]
ON=@ENTER
IF (<SRC.MEMORYFINDTYPE.0400.LINK>==040004000) && (<UID.040004100.LINK>==01ffd)//caocao
SRC.SYSMESSAGE There's no place like home...
ELSE
IF (<SRC.MEMORYFINDTYPE.0400.LINK>>040004000) && (<UID.040004100.LINK>==01ffd)//caocao
SRC.SYSMESSAGE You are in enemy territory...
OBJ = <UID.040004000>
OBJ.ALLMEMBERS -1,SYSMESSAGE @032 An enemy soldier has been spotted in <UID.040004100.NAME>.

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-29-2015 01:47 AM by x77x.)
01-29-2015 12:18 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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