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
SPAWN that checks townstone?
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #10
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
SPAWN that checks townstone? - x77x - 01-12-2015, 02:49 AM
RE: SPAWN that checks townstone? - x77x - 01-12-2015, 02:29 PM
RE: SPAWN that checks townstone? - XuN - 01-14-2015, 03:11 AM
RE: SPAWN that checks townstone? - x77x - 01-15-2015, 06:06 AM
RE: SPAWN that checks townstone? - XuN - 01-15-2015, 11:09 PM
RE: SPAWN that checks townstone? - x77x - 01-16-2015, 02:54 AM
RE: SPAWN that checks townstone? - x77x - 01-19-2015, 12:39 AM
RE: SPAWN that checks townstone? - XuN - 01-19-2015, 11:01 PM
RE: SPAWN that checks townstone? - x77x - 01-20-2015, 01:01 AM
RE: SPAWN that checks townstone? - XuN - 01-20-2015 05:02 AM
RE: SPAWN that checks townstone? - x77x - 01-24-2015, 11:19 AM
RE: SPAWN that checks townstone? - XuN - 01-25-2015, 01:19 AM
RE: SPAWN that checks townstone? - x77x - 01-25-2015, 04:11 AM
RE: SPAWN that checks townstone? - x77x - 01-26-2015, 05:08 AM
RE: SPAWN that checks townstone? - Extreme - 01-26-2015, 05:53 AM
RE: SPAWN that checks townstone? - x77x - 01-26-2015, 07:01 AM
RE: SPAWN that checks townstone? - XuN - 01-27-2015, 01:11 AM

Forum Jump:


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