x77x
Master
Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -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 |
|
|