Gameobject Spawnt NPC?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Gameobject Spawnt NPC?

      Hallo zusammen ich bin gerade dabei für meine Level Road ein paar Bosse via Object spawnen zu lassen.

      Leider funktioniert es nicht so wie ich es mir erhoffe... Kann mir jemand dabei helfen bitte?


      C Source Code

      1. local GameObjectID = 1000000
      2. local CreatureSpawnID = 72002
      3. function Spawn_Kernhund(pGameObject, pPlayer, event)
      4. if (pPlayer:HasQuest(12)) then
      5. pGameObject:GossipCreateMenu(100, player, 0)
      6. pGameObject:GossipMenuAddItem(1,"Summon Kern Hund",1,0)
      7. pGameObject:GossipMenuAddItem(1,"Ich bin noch nicht Bereit [Beenden]",2,0)
      8. pGameObject:GossipSendMenu(player)
      9. end
      10. if (intid == 1) then
      11. pGameObject:SpawnCreature(CreatureSpawnID, 4501.472168, -2504.377441, 1130.607788, 3.004163, 17, 1800000)
      12. pGameObject:RemoveEvents()
      13. end
      14. if (intid == 31) then
      15. player:GossipComplete()
      16. end
      17. end
      18. RegisterGameObjectEvent(GameObjectID, 18, "Spawn_Kernhund")
      Display All

      SQL-Query

      1. 1000000 10 133 Kernhund Fragment 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 0 0 0 0 0 0
      Die Core gibt mir auch keinen Fehler aus...

      The post was edited 3 times, last by RyffLe ().

    • So hier das Script:

      C Source Code

      1. local GameObjectEntry = 1000000
      2. local CreatureEntry = 72002
      3. function Fragment_OnUse(pGo, event, player)
      4. if (player:HasQuest(12)) then
      5. pGo:GossipObjectCreateMenu(100, player, 0)
      6. pGo:GossipObjectMenuAddItem(1, "Summon Kern Hund", 1, 0)
      7. pGo:GossipObjectMenuAddItem(1, "Ich bin noch nicht Bereit [Beenden]", 2, 0)
      8. pGo:GossipObjectSendMenu(player)
      9. end
      10. end
      11. function FragmentGossip_OnSelect(pGo, event, player, id, intid)
      12. if (intid == 1) then
      13. pGo:GossipObjectCreateMenu(5, player, 0)
      14. pGo:SpawnCreature(CreatureEntry, 4501.472168, -2504.377441, 1130.607788, 3.004163, 17, 1800000)
      15. player:GossipComplete()
      16. end
      17. if(intid == 2) then
      18. player:GossipComplete()
      19. end
      20. end
      21. RegisterGameObjectEvent(GameObjectEntry, 4, "Fragment_OnUse")
      22. RegisterGOGossipEvent(GameObjectEntry, 2, "FragmentGossip_OnSelect")
      Display All

      Dein GameObject muss typ 1 (button) haben.

      Grüße