View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001932SphereServernew feature requestpublic23-03-11 00:3023-07-14 19:37
Reporterbabidi 
Assigned ToXuN 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version20-09-2009, 0.56b Prerelease 
Target VersionFixed in Version0.56c Nightly 
Summary0001932: trigger for char spawning
Descriptionis possible to had a trigger fired when a char is spawning from a worldgembit or had an argument pointing to the worldgem?
TagsNo tags attached.
Nightly VersionNot Available
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000978)
trinax (reporter)
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 (reporter)
24-03-11 15:48

[typedef t_spawn_char]
(0000981)
babidi (reporter)
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 (reporter)
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 (reporter)
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 (developer)
23-07-14 19:37

@Create works now for spawned NPCs too.

- Issue History
Date Modified Username Field Change
23-03-11 00:30 babidi New Issue
24-03-11 14:37 trinax Note Added: 0000978
24-03-11 15:48 Mirravin Note Added: 0000979
25-03-11 02:22 babidi Note Added: 0000981
25-03-11 11:16 trinax Note Added: 0000982
25-03-11 11:16 trinax Note Edited: 0000982 View Revisions
25-03-11 11:20 babidi Note Added: 0000983
25-03-11 11:24 trinax Note Edited: 0000982 View Revisions
07-04-11 03:18 MrSugarCube Severity minor => feature
23-07-14 19:37 XuN Note Added: 0002364
23-07-14 19:37 XuN Status new => resolved
23-07-14 19:37 XuN Fixed in Version => 0.56c Nightly
23-07-14 19:37 XuN Resolution open => fixed
23-07-14 19:37 XuN Assigned To => XuN


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker