Jump to content
  • 0

Question about duplicating


Munchkin

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  04/19/12
  • Last Seen:  

Does duplicating NPCs cause too much memory?

Same as an NPC that only gives item and mes?

It does not have permanent variables, only temporary play and npc variables, and a lot of mes "";

Cos in my server, i plan to separate at least 10 headgear quest per NPC... that goes about 20+ NPCs...

and a mall with NPC per job :)))

Just curious because i can read topics in which their server lag cos of many NPCs... if it causes lag then i will just lessen it >.<

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I don't think so, you can safely create/duplicate lots of NPCs.

As far as I know, NPCs only use memory if they're being used by players.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  04/19/12
  • Last Seen:  

Oh i see! That's good news! Thank you :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

Duplicate NPC don't duplicate NPC script/memory.

It just create an object on the map and when you click/touch or run an event on it, it redirect the action to the original script, so you don't duplicate the script, the variables, etc.

(You can compare it to a shortcut icon in your desktop, it don't duplicate the original file).

NPC will not cause problems on your server.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  04/19/12
  • Last Seen:  

Well that's great because I add lots of custom story line quest on my server :) Thanks sir!

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...