SphereServer BugTracker - SphereServer
View Issue Details
0001932SphereServernew feature requestpublic23-03-11 00:3023-07-14 19:37
babidi 
XuN 
normalfeaturehave not tried
resolvedfixed 
20-09-2009, 0.56b Prerelease 
0.56c Nightly 
Not Available
None
None
0001932: trigger for char spawning
is possible to had a trigger fired when a char is spawning from a worldgembit or had an argument pointing to the worldgem?
No tags attached.
Issue History
23-03-11 00:30babidiNew Issue
24-03-11 14:37trinaxNote Added: 0000978
24-03-11 15:48MirravinNote Added: 0000979
25-03-11 02:22babidiNote Added: 0000981
25-03-11 11:16trinaxNote Added: 0000982
25-03-11 11:16trinaxNote Edited: 0000982bug_revision_view_page.php?bugnote_id=0000982#r194
25-03-11 11:20babidiNote Added: 0000983
25-03-11 11:24trinaxNote Edited: 0000982bug_revision_view_page.php?bugnote_id=0000982#r195
07-04-11 03:18MrSugarCubeSeverityminor => feature
23-07-14 19:37XuNNote Added: 0002364
23-07-14 19:37XuNStatusnew => resolved
23-07-14 19:37XuNFixed in Version => 0.56c Nightly
23-07-14 19:37XuNResolutionopen => fixed
23-07-14 19:37XuNAssigned To => XuN

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.
(0000979)
Mirravin   
24-03-11 15:48   
[typedef t_spawn_char]
(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.