bindo245 Posted February 3, 2008 Share Posted February 3, 2008 Hi I'm new here and I need some help, i want to make a npc appear after a conversation with another NPC . And a script to warp to my module. Link to comment Share on other sites More sharing options...
Marius Fett Posted February 3, 2008 Share Posted February 3, 2008 To spawn your NPC use this script: void main() { float x = x_coord_here; float y = y_coord_here; float z = z_coord_here; float r = orientation_here; vector vCre = Vector(x, y, z); location lCre = Location(r, vCre); object oCre = CreateObject(OBJECT_TYPE_CREATURE, "resref_here", lCre); } Replace the blahblah_here with the relevant co-ordinates and resref... And to go to a new module: void main() { StartNewModule("module_name_here"); } Replace module_name_here with the name of the module eg: danm13 etc... Link to comment Share on other sites More sharing options...
bindo245 Posted February 3, 2008 Author Share Posted February 3, 2008 Thanks a lot Link to comment Share on other sites More sharing options...
Marius Fett Posted February 3, 2008 Share Posted February 3, 2008 Any time! Link to comment Share on other sites More sharing options...
bindo245 Posted February 4, 2008 Author Share Posted February 4, 2008 sorry to be a pain but it gives a error :type mismatch in paremeter 1 in call to location Link to comment Share on other sites More sharing options...
Stream Posted February 4, 2008 Share Posted February 4, 2008 Try this one, it does exactly the same thing but to me it's a simpler way of doing it; void main() { CreateObject(OBJECT_TYPE_CREATURE, "NPC_TAG", Location(Vector(-75.87156, -26.69725, 0.00000), 0.0)); } Just replace those digits with the location you want to spawn the NPC. --Stream Link to comment Share on other sites More sharing options...
bindo245 Posted February 4, 2008 Author Share Posted February 4, 2008 Il try it , Il give a reply tommorow . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.