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
no == ?
Author Message
x77x
Master
**

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



Post: #4
RE: no == ?
Code:
[MENU TOWNCONTROL]
WHO OWNS THIS TOWN?
ON=0 Cao Cao [Wei]
TAG.ARMY wei
COLOR color_wei
LINK 01ffd
MORE 3//COLOR FOR WARMAP
SERV.ALLCLIENTS SYSMESSAGE @04 <NAME> is now controlled by Cao Cao [Wei]
foritems 200
    if (<type>==t_spawn_char)
        if (<isevent.t_<tag.cityname>>) || (<isevent.t_<tag.cityname>_BOSS1>) || (<isevent.t_<tag.cityname>_BOSS2>) || (<isevent.t_<tag.cityname>_BOSS3>)
            stop
            start//timer=2
        endif
    endif
endfor
SERV.ALLCLIENTS f_city_change <uid>
//




Code:
[TYPEDEF t_xuchang]
ON=@Timer
tag.cityname xuchang
IF (STRMATCH("*infantry_light_c","<more1>")==1)
tag.spawn=infantry_light_c
ELIF (STRMATCH("*infantry_light_f","<more1>")==1)
tag.spawn=infantry_light_f
ELIF (STRMATCH("*infantry_archer","<more1>")==1)
tag.spawn=infantry_archer
ELIF (STRMATCH("*infantry_ambush_f","<more1>")==1)
tag.spawn=infantry_ambush_f
ELIF (STRMATCH("*infantry_ambush_a","<more1>")==1)
tag.spawn=infantry_ambush_a
ELIF (STRMATCH("*infantry_heavy","<more1>")==1)
tag.spawn=infantry_heavy
ELIF (STRMATCH("*infantry_elite","<more1>")==1)
tag.spawn=infantry_elite
ELIF (STRMATCH("*infantry_commander","<more1>")==1)
tag.spawn=infantry_commander
ELIF (STRMATCH("*calvary_light","<more1>")==1)
tag.spawn=calvary_light
ELIF (STRMATCH("*calvary_heavy","<more1>")==1)
tag.spawn=calvary_heavy
ELIF (STRMATCH("*calvary_elite","<more1>")==1)
tag.spawn=calvary_elite
ELIF (STRMATCH("*calvary_commander","<more1>")==1)
tag.spawn=calvary_commander
ELIF (STRMATCH("*elite_guard","<more1>")==1)
tag.spawn=elite_guard
ELIF (STRMATCH("*general","<more1>")==1)
tag.spawn=general
ENDIF
//
REF1=<UID.040004100.LINK>
IF (<REF1>==01ffd)//townstone owner is cao cao lord of wei
    color=color_wei
    tag.army wei
    more=c_wei_<tag.spawn>
ELSEIF (<REF1>==01fda)//sunquan
    color=color_wu
    tag.army wu
    more=c_wu_<tag.spawn>
ELSEIF (<REF1>==01fd1)//liubei
    color=color_shu
    tag.army shu
    more=c_shu_<tag.spawn>
ELSEIF (<REF1>==01fd5)//yuanshao
    color=color_ys
    tag.army ys
    more=c_ys_<tag.spawn>
ELSEIF (<REF1>==01fc5)//lubu
    color=color_lb
    tag.army lb
    more=c_lb_<tag.spawn>
ELSEIF (<REF1>==01ff7)//zhangjiao
    color=color_yt
    tag.army yt
    more=c_yt_<tag.spawn>
ELSEIF (<REF1>==01fdc)//menghuo
    color=color_mh
    tag.army mh
    more=c_mh_<tag.spawn>
ENDIF

Code:
[TYPEDEF t_xuchang_boss1]
ON=@Timer
tag.cityname xuchang
REF1=<UID.040004100.LINK>
IF (<REF1>==01ffd)//townstone owner is cao cao lord of wei
    color=color_wei
    tag.army wei
    more1=wei_xuchang_BOSS1
ELSEIF (<REF1>==01fda)//sunquan
    color=color_wu
    tag.army wu
    more1=wu_xuchang_BOSS1
ELSEIF (<REF1>==01fd1)//liubei
    tag.army shu
    color=color_shu
    more1=shu_xuchang_BOSS1
ELSEIF (<REF1>==01fd5)//yuanshao
    color=color_ys
    tag.army ys
    more1=ys_xuchang_BOSS1
ELSEIF (<REF1>==01fc5)//lubu
    color=color_lb
    tag.army lb
    more1=lb_xuchang_BOSS1
ELSEIF (<REF1>==01ff7)//zhangjiao
    color=color_yt
    tag.army yt
    more1=yt_xuchang_BOSS1
ELSEIF (<REF1>==01fdc)//menghuo
    color=color_mh
    tag.army mh
    more1=mh_xuchang_BOSS1
ENDIF

[TYPEDEF t_xuchang_boss2]
ON=@Timer
tag.cityname xuchang
REF1=<UID.040004100.LINK>
IF (<REF1>==01ffd)//caocao
    color=color_wei
    tag.army wei
    more1=wei_xuchang_BOSS2
ELSEIF (<REF1>==01fda)//sunquan
    color=color_wu
    tag.army wu
    more1=wu_xuchang_BOSS2
ELSEIF (<REF1>==01fd1)//liubei
    tag.army shu
    color=color_shu
    more1=shu_xuchang_BOSS2
ELSEIF (<REF1>==01fd5)//yuanshao
    color=color_ys
    tag.army ys
    more1=ys_xuchang_BOSS2
ELSEIF (<REF1>==01fc5)//lubu
    color=color_lb
    tag.army lb
    more1=lb_xuchang_BOSS2
ELSEIF (<REF1>==01ff7)//zhangjiao
    color=color_yt
    tag.army yt
    more1=yt_xuchang_BOSS2
ELSEIF (<REF1>==01fdc)//menghuo
    color=color_mh
    tag.army mh
    more1=mh_xuchang_BOSS2
ENDIF

[TYPEDEF t_xuchang_boss3]
ON=@Timer
tag.cityname xuchang
REF1=<UID.040004100.LINK>
IF (<REF1>==01ffd)//caocao
    color=color_wei
    tag.army wei
    more1=wei_xuchang_BOSS3
ELSEIF (<REF1>==01fda)//sunquan
    color=color_wu
    tag.army wu
    more1=wu_xuchang_BOSS3
ELSEIF (<REF1>==01fd1)//liubei
    tag.army shu
    color=color_shu
    more1=shu_xuchang_BOSS3
ELSEIF (<REF1>==01fd5)//yuanshao
    color=color_ys
    tag.army ys
    more1=ys_xuchang_BOSS3
ELSEIF (<REF1>==01fc5)//lubu
    color=color_lb
    tag.army lb
    more1=lb_xuchang_BOSS3
ELSEIF (<REF1>==01ff7)//zhangjiao
    color=color_yt
    tag.army yt
    more1=yt_xuchang_BOSS3
ELSEIF (<REF1>==01fdc)//menghuo
    color=color_mh
    tag.army mh
    more1=mh_xuchang_BOSS3
ENDIF

the spawns changes depending on who owns the town

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 09-28-2016 06:37 AM by x77x.)
09-28-2016 06:11 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
no == ? - x77x - 09-27-2016, 06:06 AM
RE: no == ? - rastrero - 09-27-2016, 07:55 AM
RE: no == ? - Coruja - 09-27-2016, 10:17 AM
RE: no == ? - x77x - 09-28-2016 06:11 AM
RE: no == ? - Kanibal - 09-28-2016, 09:29 PM
RE: no == ? - x77x - 10-02-2016, 05:09 AM
RE: no == ? - n1ghtwish - 10-02-2016, 06:33 PM
RE: no == ? - x77x - 10-03-2016, 07:02 AM
RE: no == ? - x77x - 10-06-2016, 09:13 PM

Forum Jump:


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