Notes |
|
(0000978)
|
trinax
|
24-03-11 14:37
|
|
It is possible to add an event to worldgem bit ([typedef t_spawner] i.e.) and use @timer maybe, till a feature is added. |
|
|
|
|
|
(0000981)
|
babidi
|
25-03-11 02:22
|
|
[typedef t_spawn_char]
ON=@timer
serv.b <I.NAME>
//I is the worldgembit
//but tha char!?
//tryed <serv.lastnewchar> but always 0 from script and works if .show serv.lastnewchar from game. new issue? |
|
|
(0000982)
|
trinax
|
25-03-11 11:16
(edited on: 25-03-11 11:24) |
|
on=@timer
local.i <uid>
forchars <moreZ>
if (<memoryfindtype.memory_ispawned.link>==<local.i>)
f_do_things_to_char
endif
endfor
Since lastnewchar does not work, I think typedef timer is called before the npc actually spawns. So the script above probably also won't work.
You could also try what I said at the top, make a custom typedef [t_spawner] and .xevents +t_spawner to the worldgem bits you want to check. I don't think it will work though.
|
|
|
(0000983)
|
babidi
|
25-03-11 11:20
|
|
the char not spawn on 0 distance but in the parameter of his inits, right?
lastnewchar should work always because maybe the timer is called before the npc, but lastnewchar should have the uid of the char before the one i'm trying to catch |
|
|
(0002364)
|
XuN
|
23-07-14 19:37
|
|
@Create works now for spawned NPCs too. |
|