cele_35 
Apprentice

Posts: 7
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2019
Reputation: 0
![]()
|
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 |
|
|