Jump to content
  • 0

[source request] createnpc command


Kurofly

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Hello there!

 

I'd like to know wether it would be possible to use kind of a createnpc command.

Someting like 'createnpc <map name>,<x>,<y>,<facing>%TAB%script%TAB%<NPC Name>%TAB%<sprite id>,{<code>}'

 

I have no idea wether this is possible or not, maybe i should have posted this in the support section. Sorry if that's the case.

 

Thanks in advance /no1

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   19
  • Joined:  04/11/15
  • Last Seen:  

There's really no need for a command like this, you wouldn't really want another GM to have access to something like this normally and if you trusted someone enough to have it you could give them server file access.  But you can write any npc you want while the server is active and just use @reloadscript, creates a very slight delay and your npc is loaded.  

 

What exactly do you want this for?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

It's not easy to explain but I would like to make kind of an interactive place where NPCs could spawn according to items.

If I had the possibility to create a NPC using a command, I wouldn't have to make a lot of them in advance knowing that most of them will be inactive.

 

I expected that answer but I just wanted to make sure ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   19
  • Joined:  04/11/15
  • Last Seen:  

Well you could create them in a singular location and use an @disablenpc and @enablenpc script based on the items?

 

PM me, tell me a bit about what you're trying to do, between the two of us we could work a solid script I'm sure.

Edited by Terrinigma
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Sure but that makes a lot of NPCs to create.

Seems like I don't have choice ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   19
  • Joined:  04/11/15
  • Last Seen:  

Wouldn't have to anyways?  XD you'd have to write them all on the fly bascially?  By the time you reach all outcomes you'd create the same amount of npcs?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...