Lua and Death state questions menu

User Tag List

Results 1 to 8 of 8
  1. #1
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Lua and Death state questions

    Had a quick search and couldn't find any answers that solved my problems.

    I need to be able to make a npc always be dead, I tried setting it to only have 0 hp, that didn't work. I downloaded ascent database editor and set state to corpse, not sure what it changed but it worked, till a server restart where they were alive again. Anyone know how to do this? (make them always dead)

    My second question is, how in Lua do I create waypoints? I just cant remember the command. I need to know what the command is and if it's x y z o etc.

    Thanks

    Lua and Death state questions
  2. #2
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go to your creature_proto table and set Death_State to 1 ( Not sure, but worth a try ^^)


    Bout the waypoint I think the command is pUnit:CreateWaypoint(x, y, z, o, waitTime, flags, modelID)

  3. #3
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Edude View Post
    Go to your creature_proto table and set Death_State to 1 ( Not sure, but worth a try ^^)


    Bout the waypoint I think the command is pUnit:CreateWaypoint(x, y, z, o, waitTime, flags, modelID)
    I'll go try death state now, but flags and modelid. flags would be 0 or 1 for talking right? or is it like vendor flags etc; Model id? You mean you can change it's displayid in a waypoint command, thats nice. I'll try that out once i get the deathstate working! +Rep after 24 hour cooldown

    Edit: If i put deathstate to 1 they spawn with 1% hp and reset on server restart. If i put it to 3, then they spawn dead but they reset still on server restart
    Edit2: Also need to spread rep found out after cooldown -.-
    Last edited by stoneharry; 10-27-2008 at 11:32 AM.

  4. #4
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I took that comand from Updated Mega Lua guide {all known commands}so all the credit goes to runiker

  5. #5
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Edude View Post
    Well I took that comand from Updated Mega Lua guide {all known commands}so all the credit goes to runiker
    Ah well I see all these on there:

    pUnit:CreateCustomWaypointMap()
    Creates a custom waypoint map.

    pUnit:CreateWaypoint(x, y, z, o, waitTime, flags, modelID)
    Adds a waypoint to the custom waypoint map.

    pUnit:DestroyCustomWaypointMap()
    Destroys a created custom waypoint map.

    pUnit:MoveToWaypoint(waypointID)
    Tells a unit to move to a particular waypoint.
    If somone can explain how the system works would be much apreciated

  6. #6
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One thing I have noticed.

    I searched for "Corpse" at creature_names table, and it gave me like 30 results. I noticed some of the corpses there, dont have a creature_proto record, so maybe the solution is to delete your npc proto record

  7. #7
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Edude View Post
    One thing I have noticed.

    I searched for "Corpse" at creature_names table, and it gave me like 30 results. I noticed some of the corpses there, dont have a creature_proto record, so maybe the solution is to delete your npc proto record
    That will make the npc invisible, sometimes used for triggers. It wont be anything... Litraly... with no proto =P
    I rekon it's something to do with creature_spawns... Trying to figure it out

    Edit: and the other corpse npc's in game are standing up as well. I think it might be core actually... damn
    Last edited by stoneharry; 10-26-2008 at 02:45 PM.

  8. #8
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay Good luck then


    Edit: I think there's another way, you could just edit one of the "Corpses" in the creature_Names table
    Last edited by Edude; 10-26-2008 at 02:37 PM.

Similar Threads

  1. [N00b question] LUA and mangos????
    By jeremy7271 in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 07-04-2009, 06:58 AM
  2. [Question] Lua and Gold
    By AngelSandy in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 05-01-2009, 03:41 PM
  3. [Lua] Make mobs with sound. And a trigger question.
    By sammiboy in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 09-26-2008, 09:04 AM
  4. New to private servers and have a question?
    By zone2424 in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 11-14-2007, 08:04 AM
  5. Replies: 3
    Last Post: 02-04-2007, 03:45 AM
All times are GMT -5. The time now is 08:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search