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
Random Spawn (new map)
Author Message
cele_35
Apprentice
*

Posts: 7
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2019
Reputation: 0



Post: #4
RE: Random Spawn (new map)
.goname (chardef(ID))
e.g.= .goname Llama

but you need to edit the code that coruja threw a little bit, I did something like this, you can do it in another way. by the way, the coordinates I made are for the Ilshenar map

Code:
[FUNCTION f_golden_monster]
SERV.NEWNPC c_golden_dragon
new.timerf 86400,remove
ref2=<new.uid>

FOR 1000
  local.randomloca <R266,1544>
  local.randomloca2 <R228,1262>
  ARGS=<dlocal.randomloca>,<dlocal.randomloca2>,0,2,<P.M>
  //ARGS=<R5000>,<R5000>,0,2,<P.M>
  IF (<SERV.MAP(<ARGS>).REGION>)
    new.P=<ARGS>
       if (!<serv.uid.<ref2>.isneartype t_tree 1>) && (!<serv.uid.<ref2>.isneartype t_water 1>) && (!<serv.uid.<ref2>.isneartype t_rock 1>) && (<serv.uid.<ref2>.isneartype t_grass 1>) && (!<serv.uid.<ref2>.region.guarded>) && (!<serv.uid.<ref2>.region.safe>) && (<serv.uid.<ref2>.region.type>!=t_multi) && (<serv.uid.<ref2>.region.type>!=t_multi_custom) && !(<serv.uid.<ref2>.flags>&statf_indoors)
        ref2.FIX    // move char to ground Z level
      return 1
    ENDIF
  ENDIF
ENDFOR
(This post was last modified: 09-29-2023 07:59 PM by cele_35.)
09-29-2023 07:54 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Random Spawn (new map) - cele_35 - 06-03-2019, 07:53 AM
RE: Random Spawn (new map) - Coruja - 06-03-2019, 11:22 AM
RE: Random Spawn (new map) - [Nores] - 09-26-2023, 02:30 AM
RE: Random Spawn (new map) - cele_35 - 09-29-2023 07:54 PM

Forum Jump:


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