How to make the npc spawn? menu

User Tag List

Results 1 to 9 of 9
  1. #1
    mariobox's Avatar Member
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make the npc spawn?

    Hello i have look about script bosses and i know everything without 1 thing.. how do i make the boss When he die to spawn a npc..

    function Kelamura_OnDied(Unit, Event, Player)
    if Unit:GetHealthPct() <= 60 then
    Unit:SendChatMessage(12, 0, "Come minions! lets end this madness!")
    Unit:SpawnCreature(832312, 204.316, 18.57, 30.9, 2.37, 14, 30000)
    What is those codes? ------>^^^^^^^^^^^^^^^^^^^^^^^
    Are those the gps or what are them? and can i just do like this

    function Kelamura_OnDied(Unit, Event, Player)
    if Unit:GetHealthPct() <= 60 then
    Unit:SendChatMessage(12, 0, "Come minions! lets end this madness!")
    Unit:SpawnCreature(832312)
    ???
    Last edited by mariobox; 09-08-2010 at 12:37 AM.

    How to make the npc spawn?
  2. #2
    Thunderofnl's Avatar Elite User C# / Java / PHP Programmer
    Authenticator enabled
    Reputation
    491
    Join Date
    May 2008
    Posts
    1,032
    Thanks G/R
    20/20
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unit:SpawnCreature(832312, 204.316, 18.57, 30.9, 2.37, 14, 30000)
    Unit:SpawnCreature(ID, X, Y, Z, O, MAPID, Respawntime)
    I'm not a emulator but I think its

  3. #3
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function boss_died_spawn_creature(pUnit, Event)
    pUnit:SpawnCreature(npcid,x,y,z,o,faction,time)
    end
    
    RegisterUnitEvent(npcid, 4, "boss_died_spawn_creature")
    For time, 0 = till restart, 1000 = 1 second.

    edit: You tagged this C++, this is Lua.
    Last edited by stoneharry; 09-07-2010 at 03:58 PM.

  4. #4
    Thunderofnl's Avatar Elite User C# / Java / PHP Programmer
    Authenticator enabled
    Reputation
    491
    Join Date
    May 2008
    Posts
    1,032
    Thanks G/R
    20/20
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Code:
    function boss_died_spawn_creature(pUnit, Event)
    pUnit:SpawnCreature(npcid,x,y,z,o,faction,time)
    end
    
    RegisterUnitEvent(npcid, 4, "boss_died_spawn_creature")
    For time, 0 = till restart, 1000 = 1 second.
    I was nearly right

  5. #5
    mariobox's Avatar Member
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx guys.. this will help me alot!

    but z,o,faction

    What is the o?

    Guys plz help me.. I really need this... you know ther Mimiron are right? ther i gona put a custom version of Mimiron and when he have die. the body gona appear. (spawned/summoned) so.. i really need your help can you plz fix this script for Aremu?

    function Mimiron_OnCombat(Unit, Event)
    Unit:SendChatMessage(14, 0, "hehe This is just the begining!")
    Unit:RegisterEvent("RootSnare", 18000, 0)
    end

    function RootSnare(Unit, Event)
    Unit:FullCastSpellOnTarget(65857, Unit:GetRandomPlayer(0))
    end

    function Mimiron_died_spawn_creature(Unit, Event)
    Unit:SpawnCreature(700006,x,y,z,o,1,3000)
    end

    function Mimiron_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents()
    end

    function Mimiron_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(14, 0, "I can fix that.. or maybe not")
    end

    function Mimiron_OnDied(Unit, Event, Player)
    Unit:SendChatMessage(14, 0, "Why!!!!?")
    Unit:RemoveEvents()
    for k,v in pairs(GetPlayersInWorld()) do
    v:SendBroadcastMessage("" ..Player:GetName().."[" ..Player:GetLevel().. "] has slain " ..Unit:GetName().."!")
    end
    end

    RegisterUnitEvent(1,1,"Mimiron_OnCombat")
    RegisterUnitEvent(1,2,"Mimiron_OnLeaveCombat")
    RegisterUnitEvent(1,3,"Mimiron_OnKilledTarget")
    RegisterUnitEvent(1,4,"Mimiron_OnDied")
    RegisterUnitEvent(1,5,"Mimiron_died_spawn_creature")


    I gona add more Spells to it afther but first you have to help me to make it appear a other npc at the same place His die.
    Last edited by mariobox; 09-08-2010 at 12:48 AM.

  6. #6
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    x,y,z,o are the coorindates of your position. You get them by doing .gps.

    When looking at a 2d grid, X is left and right and Y is up and down. When you add a 3rd dimension, then Z is the depth. O is orientation - the way you face.

  7. #7
    mariobox's Avatar Member
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what cordiante on o To take it look at north?

    if you can logon wow.. plz go to the place hogger are and just add the Gps things plz
    Last edited by mariobox; 09-08-2010 at 08:58 AM.

  8. #8
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Do it yourself, it's not hard.

    Just type .gps.

    0 is north and 3 is south I believe, although I could be wrong... WoW works in radians.

  9. #9
    mariobox's Avatar Member
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok.. sec gona try it

Similar Threads

  1. How to make an NPC walk backwards (as in with the backwards animation)?
    By Jameswow123 in forum World of Warcraft General
    Replies: 1
    Last Post: 03-07-2011, 04:00 PM
  2. How to make custom npc's In the easy way!
    By Synthio in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 05-23-2008, 08:36 AM
  3. {PICS}How to make a NPC Have Armor or a Weapon
    By Dragonscale in forum WoW EMU Guides & Tutorials
    Replies: 20
    Last Post: 12-29-2007, 05:34 AM
  4. [Question] How to make the solo files for model change?
    By TheAussieTroll in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-09-2007, 01:14 PM
  5. How to make the darkmoon card: blue dragon proc without casting
    By Matt in forum World of Warcraft Guides
    Replies: 1
    Last Post: 04-17-2006, 05:17 AM
All times are GMT -5. The time now is 06:34 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search