Jump to content
  • 0

Random spawn duplicate npc


Energy

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

Hi, community!
I need help with random spawn duplicate npc..
 

I found this script:

movenpc strnpcinfo(0),.@rand_x,.@rand_y;

but this working only for main npc.But I do not need it. Main should just as well stay at a static site .

 

How to do that would duplicate a spawn in random coordinates? For expample: event OnInit:/OnClock:  50 identical npc a spawn in random coordirates on map?
Please help, who knows.  /no1
Edited by Energy
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

Yep, i did it on my server, the problem is that there are not a script command, you have to create commands on your source in script.c and moddify npc.c, etc...

i think that somebody did this too but in hercules and publish it for free, you can search it there for npc duplicate

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/25/20
  • Last Seen:  

What was the solution?

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   3
  • Joined:  12/26/11
  • Last Seen:  

Yep, i did it on my server, the problem is that there are not a script command, you have to create commands on your source in script.c and moddify npc.c, etc...

i think that somebody did this too but in hercules and publish it for free, you can search it there for npc duplicate

Hmmm...but i made a script.

Solved, thx all.

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