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
Can cast spells under map
Author Message
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #13
RE: Can cast spells under map
It's a live!
Code:
IF (<ARGN>==24) || (<ARGN>==28) || (<ARGN>==39) || (<ARGN>==47) || (<ARGN>==50)
    //Если кастует на земле
    IF !(<SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).TERRAIN.Z>==<SRC.TARGP.Z>) && (<SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).STATICS.1.ID>==0)
    SERV.LOG [<SRC.NAME> <SRC.UID> Z:<SRC.TARGP.Z>] try to cast <SERV.SPELL.<ARGN>.NAME> [to Z: <SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).TERRAIN.Z>]
    SRC.SYSMESSAGE @0486 Вне поля видимости.
    RETURN 1
    ENDIF
    //Если кастует на статике
    IF !(<SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).STATICS.1.Z>==<SRC.TARGP.Z>) && !(<SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).STATICS.1.ID>==0)
    SERV.LOG [<SRC.NAME> <SRC.UID> Z:<SRC.TARGP.Z>] try to cast <SERV.SPELL.<ARGN>.NAME> [to Z: <SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).STATICS.1.Z>]
    SRC.SYSMESSAGE @0486 Вне поля видимости.
    RETURN 1
    ENDIF
ENDIF
Thanks to all! Big thanks to escribano, he said true: !(<SERV.MAP(<SRC.TARGP.X>,<SRC.TARGP.Y>).TERRAIN.Z>==<SRC.TARGP.Z>)


Attached File(s) Thumbnail(s)
   
(This post was last modified: 10-15-2017 05:03 AM by Russian.)
10-14-2017 05:23 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Russian's post
Post Reply 


Messages In This Thread
Can cast spells under map - Russian - 10-13-2017, 04:47 AM
RE: Can cast spells under map - darksun84 - 10-13-2017, 05:34 AM
RE: Can cast spells under map - Russian - 10-13-2017, 10:07 PM
RE: Can cast spells under map - Russian - 10-13-2017, 05:39 AM
RE: Can cast spells under map - darksun84 - 10-13-2017, 10:21 PM
RE: Can cast spells under map - Russian - 10-13-2017, 10:36 PM
RE: Can cast spells under map - darksun84 - 10-13-2017, 11:44 PM
RE: Can cast spells under map - Russian - 10-14-2017, 01:05 AM
RE: Can cast spells under map - darksun84 - 10-14-2017, 01:37 AM
RE: Can cast spells under map - Russian - 10-14-2017, 03:26 AM
RE: Can cast spells under map - Coruja - 10-14-2017, 08:20 AM
RE: Can cast spells under map - escribano - 10-14-2017, 08:45 AM
RE: Can cast spells under map - Russian - 10-14-2017 05:23 PM
RE: Can cast spells under map - escribano - 10-16-2017, 11:01 PM

Forum Jump:


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