Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicDungeons MythicDungeons
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 90
    • Issues 90
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicDungeonsMythicDungeons
  • Issues
  • #406

Closed
Open
Created Jul 23, 2024 by Samuele@imBuzz

FunctionSpawnNPC.class Bug

Hey! Today i tried to work a bit with FunctionSpawnNPC; as you can see from the code of MythicDungeons when you create a new npc by cloning a premade one, you use the same ID, but this will make some errors using other plugins. I'm here to ask if you can remove this, so when you clone a NPC, generate him with a random int (and please make sure no other npcs has the same id) - this could fix tons of problem that could come further.

And also i have another suggestion, in order to be able to get the "original" id, you can add a listener to the NPCCloneEvent or something like this and make it similar to: image

Issue Location: image

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking