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
Problem with summon mobs
Author Message
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: Problem with summon mobs
This is a function I use on one of the mobs

Code:
[function f_wave_1]
serv.newnpc c_zombie_m
new.p=<src.p>
serv.update
serv.newnpc c_zombie_m
new.p=<src.p>
serv.update
serv.newnpc c_zombie_m
new.p=<src.p>
serv.update
serv.newnpc c_zombie_m
new.p=<src.p>
serv.update
serv.newnpc c_zombie_m
new.p=<src.p>
serv.update
serv.newnpc c_spider_giant_m
new.p=<src.p>
serv.update
serv.newnpc c_spider_giant_m
new.p=<src.p>
serv.update
serv.newnpc c_spider_giant_m
new.p=<src.p>
serv.update
serv.newnpc c_spider_giant_m
new.p=<src.p>
serv.update
serv.newnpc c_spider_giant_m
new.p=<src.p>
serv.update
serv.newnpc c_headless_m
new.p=<src.p>
serv.update
serv.newnpc c_headless_m
new.p=<src.p>
serv.update
serv.newnpc c_headless_m
new.p=<src.p>
serv.update
serv.newnpc c_headless_m
new.p=<src.p>
serv.update
serv.newnpc c_headless_m
new.p=<src.p>
serv.update
serv.newnpc c_skeleton_mage
new.p=<src.p>
serv.update
serv.newnpc c_skeleton_mage
new.p=<src.p>
serv.update
serv.newnpc c_skeleton_mage
new.p=<src.p>
serv.update
serv.newnpc c_skeleton_mage
new.p=<src.p>
serv.update
serv.newnpc c_skeleton_mage
new.p=<src.p>
serv.update

and in the move i have this

Code:
...........
..........
if (<hitpoints> <= 24000)
    if (<tag.wave> == 1)
        f_wave_2
            tag.wave=2
            
        return 1
    endif
endif
if (<hitpoints> <= 28000)
    if (<tag.wave> == 0)
        f_wave_1
            tag.wave=1
        return 1
    endif
endif

However I have to mention that this problem arises whenever a mob is created. For example if you want to create a trap, in which from the moment the player passes through a certain area, a mob appears, it will happen the same.
07-17-2017 03:13 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Problem with summon mobs - Van Glan Bloom - 07-12-2017, 08:10 AM
RE: Problem with summon mobs - darksun84 - 07-13-2017, 05:21 AM
RE: Problem with summon mobs - PePs1Man - 07-16-2017, 04:40 AM
RE: Problem with summon mobs - Van Glan Bloom - 07-17-2017 03:13 AM
RE: Problem with summon mobs - PePs1Man - 07-17-2017, 04:34 AM

Forum Jump:


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