XuN 
Sphere Developer
    
Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30
![]()
|
RE: SPAWN that checks townstone?
Look at your code:
Code:
[TYPEDEF t_spawn_changan]
ON=@Timer
IF (<UID.040004101.LINK>==01ffd)//caocao
more=c_wei_infantry_light_f
more=c_wei_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fda)//sunquan
more=c_wu_infantry_light_f
more=c_wu_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fd1)//liubei
more=c_shu_infantry_light_f
more=c_shu_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fd5)//yuanshao
more=c_ys_infantry_light_f
more=c_ys_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fc5)//lubu
more=c_lb_infantry_light_f
more=c_lb_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01ff7)//zhangjiao
more=c_yt_infantry_light_f
more=c_yt_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fdc)//menghuo
more=c_mh_infantry_light_f
more=c_mh_infantry_light_c
this looks like:
Code:
[TYPEDEF t_spawn_changan]
ON=@Timer
IF (<UID.040004101.LINK>==01ffd)//caocao
more=c_wei_infantry_light_f
more=c_wei_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fda)//sunquan
more=c_wu_infantry_light_f
more=c_wu_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fd1)//liubei
more=c_shu_infantry_light_f
more=c_shu_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fd5)//yuanshao
more=c_ys_infantry_light_f
more=c_ys_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fc5)//lubu
more=c_lb_infantry_light_f
more=c_lb_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01ff7)//zhangjiao
more=c_yt_infantry_light_f
more=c_yt_infantry_light_c
ELSE
IF (<UID.040004101.LINK>==01fdc)//menghuo
more=c_mh_infantry_light_f
more=c_mh_infantry_light_c
You may not know but elif/elseif are different than else -> if. Try to add a tab or a whitespace between IF and ELSE and/or ELIF and/or ENDIF (and always use ENDIF to close).
Anyway, what's wrong with min,max and range? You are only giving a bit of customization to the spawn... you are not overriding its default behaviour. Try to test things and then ask questions.
|
|
01-20-2015 05:02 AM |
|
|