question->lua mob code. menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    secretdragon008's Avatar Member
    Reputation
    43
    Join Date
    Sep 2007
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    question->lua mob code.

    I wonder is it a way in lua, that when the mob entring combat with you.
    it will leave combat to?
    I mean, it will leave combat, when the entring combat function triggers.

    question->lua mob code.
  2. #2
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is one example:

    Code:
    ction Nightshroud_OnLeaveCombat(Unit)
    	Unit:RemoveEvents()
    end
    RegisterUnitEvent(100246, 2, "Nightshroud_OnLeaveCombat")
    Just change the entryid, and Nightshroud
    Life Puzzler WoW - Website | Forums

  3. #3
    secretdragon008's Avatar Member
    Reputation
    43
    Join Date
    Sep 2007
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hm,i know that 1.
    it wasnt this i did mean. i mean like:
    Code:
    function SandGuard_OnCombat(Unit, Even, pMisc)
                	(some type of leave combat inside the OnCombat function)
                            Unit:RemoveEvents()
    like the mob will do somthing on the OnCombat,then leave combat after the (do somthing).
    Last edited by secretdragon008; 02-13-2008 at 10:51 AM.

  4. #4
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do not think that is possible, but you can change its faction and combat state so it cant attack, nor can it be attacked. But it will still remain in combat.

    pUnit:SetCombatCapable() <- Insert 0 or 1
    pUnit:SetFaction() <- Insert faction
    Life Puzzler WoW - Website | Forums

  5. #5
    secretdragon008's Avatar Member
    Reputation
    43
    Join Date
    Sep 2007
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okey,ty.
    i maybe know a way.
    If its any command that can kill the mob,when OnCombat triggers on the mob,
    and then a command that revive the mob,when its leave Combat,since the mob will leave combat when its get killed.

  6. #6
    Meltoor's Avatar Contributor
    Reputation
    146
    Join Date
    Jan 2007
    Posts
    292
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sadly that's not working gastric, tried it but even with faction 35, it attacks you :/

  7. #7
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Changing the faction only changes the fact that the player wont be able to attack it, but the creature still will (if it is already in combat)
    You need to change combat states aswell. Its working for me in my latest fight (not done)
    Life Puzzler WoW - Website | Forums

Similar Threads

  1. [QUESTION] Aggroing more mobs than wanted/ How to make them yellow?
    By Romis in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-01-2008, 06:44 AM
  2. [Question] About lua files...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-15-2008, 06:26 PM
  3. A simple question about Lua Scripts
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 12-28-2007, 01:57 AM
  4. [Question] My .lua doesnt work
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-20-2007, 07:32 PM
  5. [QUESTION] Compiling NoggIt Source Code
    By DJRehab in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 12-03-2007, 02:42 AM
All times are GMT -5. The time now is 06:39 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