[LUA] Spawn Mobs on Item Use Hmm menu

User Tag List

Results 1 to 8 of 8
  1. #1
    DontCareQQ's Avatar Member
    Reputation
    7
    Join Date
    Jul 2008
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] Spawn Mobs on Item Use Hmm

    Is it possible to like have a item, and when you use it it spawns mobs and a game object on certain locations? like outside every main city?

    Would be a challange for lua scripters I guess...

    /discuss.

    [LUA] Spawn Mobs on Item Use Hmm
  2. #2
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure that's possible,

    I've already come up some solutions in my head,
    I'll most likely start doing some testing when I get back home.

    ~~ Babbaa

  3. #3
    Captain Bunny Killer's Avatar Active Member
    Reputation
    15
    Join Date
    May 2007
    Posts
    118
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah that would be a scripting thing.... you would have to change an item that has a right click ability then change it to do what you want....sorry Im too tired to figure it out... maybe later today I will

  4. #4
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's similar as an Item Teleporter,
    But you'll simply use Spawn functions instead.

  5. #5
    DontCareQQ's Avatar Member
    Reputation
    7
    Join Date
    Jul 2008
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Babbaa View Post
    I'm pretty sure that's possible,

    I've already come up some solutions in my head,
    I'll most likely start doing some testing when I get back home.

    ~~ Babbaa

    Cool thanks, hope you get things figured out, dying to get this on my server - would be some sweet event then, also - is it possible that they auto-despawn in like 4 hours or something?

  6. #6
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's possible to make them despawn after X minutes, Yes.

  7. #7
    DontCareQQ's Avatar Member
    Reputation
    7
    Join Date
    Jul 2008
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woot that's awesome

  8. #8
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heres a list of what is available to be used through LUA

    Code:
    /************************************************** **********************/
    /* SCRIPT FUNCTION TABLES */
    /************************************************** **********************/
    Item Gossip Commands
    "GossipCreateMenu" - Creates a Gossip Menu for an Item.
    "GossipMenuAddItem" - Adds a Gossip Item for an Item. (Something a Player can chose from)
    "GossipSendMenu" - Sends the Menu to the Player.
    "GossipComplete" - Comples the Gossip. (Probably same as RemoveEvents())
    "GossipSendPOI" - [P]oint [o]f [i]nteresting - Set a Mark to your Minimap
    
    Unit Gossip Commands
    "GossipCreateMenu" - Creates a Gossip Menu for an NPC.
    "GossipMenuAddItem" - Adds a Gossip Item for an NPC.
    "GossipSendMenu" - Sends the Menu to the Player.
    "GossipComplete" - Completes the Gossip. (Probably same as RemoveEvents())
    "GossipSendPOI" - [P]oint [o]f [i]nteresting - Set a Mark to your Minimap
    
    Unit Commands
    "GetName" - Gets the Player's name.
    "SendChatMessage" - Send's a Chat Message to the World/Area.
    "MoveTo" - Moves the NPC to the desired location on the same Map.
    "SetMovementType" - Sets the movement type of the NPC.
    "CastSpell" - Casts a Spell on the NPC (Itself)
    "FullCastSpell" - UNUSED.
    "CastSpellOnTarget" - UNUSED.
    "FullCastSpellOnTarget" - Casts a Spell on the desired Target.
    "SpawnCreature" - Spawns creature on the desired Position.
    "SpawnGameObject" - Spawns a GameObject on the desired Position.
    "GetX" - Gets the Position: X
    "GetY" - Gets the Position: Y
    "GetZ" - Gets the Position: Z
    "GetO" - Gets the Position: O
    "IsPlayer" - Returns true if the Unit is a Player. False otherwise.
    "IsCreature" - Returns true if the Unit is a Creature. False otherwise.
    "RegisterEvent" - Registers an Event with the name "" every "" milliseconds, "" times.
    "RemoveEvents" - Removes all Events. (Used at ends of Phases, and on UnitEvents)
    "SendBroadcastMessage" - Sends a Broadcast Message server-wide.
    "SendAreaTriggerMessage" - Sends an AreaTrigger message, player-wide.
    "KnockBack" - Knocks the Player(s) back _____ yards.
    "MarkQuestObjectiveAsComplete" - Marks the Quest Objective "" as complete. (In the Character's Questlog)
    "LearnSpell" - Learns the Spell "" to the Character.
    "UnlearnSpell" - Unlearns the Spell "" to the Character.
    "HasFinishedQuest" - Returns true if the Unit has finished the Quest "". False otherwise.
    "GetItemCount" - Generates the Item Count of Item "" from the Unit.
    "IsInCombat" - Returns true if the Unit is in Combat. False otherwise.
    "GetMainTank" - Targets the main Tank.
    "GetAddTank" - Targets the main Tank. (Bugs may occur)
    "ClearThreatList" - Clears the threat list. (Aggro list, etc.)
    "GetTauntedBy" - UNKOWN. (EDIT IF YOU KNOW)
    "SetTauntedBy" - Sets the Unit the NPC is taunted by.
    "SetSoulLinkedWith" - Sets the Unit the NPC is soullinked with. (SQL-ID)
    "GetSoulLinkedWith" - UNKNOWN. (EDIT IF YOU KNOW)
    "ChangeTarget" - Changes Target (EDIT IF YOU KNOW MORE INFO)
    "GetHealthPct" - Gets the NPC's Health Point (%)
    "SetHealthPct" - Sets the NPC's Health Points (%)
    "GetManaPct" - Gets the NPC's Mana Points (%, bugs may occur)
    "Despawn" - Despawns the NPC in "" milliseconds, respawning in "" milliseconds.
    "GetUnitBySqlId" - Retruns a Unit from the SQL ID.
    "PlaySoundToSet" - Plays a Sound, Server-wide. (Sounds found in DBC)
    "RemoveAura" - Removes a Spell casted by CastSpell.
    "StopMovement" - Stops all movement.
    "Emote" - Performs an Emote found in the Emote C++ File.
    "GetInstanceID" - UNKNOWN. (EDIT IF YOU KNOW)
    "GetClosestPlayer" - Targets the Closest Player to the NPC.
    "GetRandomPlayer" - Targets a Random Player.
    "GetRandomFriend" - Targets a Random Friendly Unit.
    "AddItem" - Adds an Item with the ID "" to the Target.
    "RemoveItem" - Removes an Item with the ID "" from the Target.
    "CreateCustomWaypointMap" - Creates a custom Waypoint Map for the NPC. (Allows Waypoints to be placed)
    "CreateWaypoint" - Creates a Waypoint to the desired Position.
    "MoveToWaypoint" - Moves the NPC to the Waypoint with the ID of "".
    "DestroyCustomWaypointMap" - Destroys the custom Waypoint Map for the NPC. (Deletes all Waypoints)
    "SetCombatCapable" - Sets whether Combat is enabled for the NPC.
    "SetCombatMeleeCapable" - Sets whether Melee Combat is enabled for the NPC.
    "SetCombatRangedCapable" - Sets whether Ranged Combat is enabled for the NPC.
    "SetCombatSpellCapable" - Sets whether Spell Combat is enabled for the NPC.
    "SetCombatTargetingCapable" - Sets whether Targeting is enabled for the NPC. (Makes NPC not look at the Players)
    "SetNPCFlags" - Sets the NPCFlags of the Creature.
    "SetModel" - Sets the Model/Display ID of the NPC.
    "SetScale" - Sets the Scale of the NPC.
    "SetFaction" - Sets the Faction of the NPC.
    "SetStandState" - Sets the Standstate of the NPC.
    "Teleport" - Teleports the NPC to the desired position.
    "GetPlayerClass" - Returns the Class of the targeted Player.
    "ClearThreatList" - Clears the Threat list. (Aggro list)
    "WipeThreatList" - Wipes the Threat list. (Aggro list, same as ClearThreatList?)
    "WipeTargetList" - Wipes the target list.
    "WipeCurrentTarget" - Wipes the current target from the aggro list (Chooses a new Main Tank)
    "GetHealth" - Returns how much Health Points the NPC has. (%)
    "GetMaxHealth" - Returns the max Health Points the NPC has.
    "SetHealth" - Sets the Health Points of the NPC. (%)
    "SetMaxHealth" - Sets the max Health Points the NPC has.
    "SetFieldFlags" - The same as SetUInt32/64Value (Field, Value) 
    
    GameObject Commands
    "GetName" - Returns the name of the Player.
    "Teleport" - Teleports the Player to the desired Position.
    
    GameObject Gossip Commands
    "GossipCreateMenu" - Creatures a Gossip Menu for the GameObject.
    "GossipMenuAddItem" - Creates a Gossip Item to the Menu.
    "GossipSendMenu" - Sends the Menu to the Player. (Allows the Player to see it)
    "GossipComplete" - Completes the Gossip. (Same as RemoveEvents()?)
    "GossipSendPOI" - [P]oint [o]f [i]nteresting - Set a Mark to your Minimap  
    
    Quote:
    RandomFlags
    RANDOM_ANY = 0,
    RANDOM_IN_SHORTRANGE = 1,
    RANDOM_IN_MIDRANGE = 2,
    RANDOM_IN_LONGRANGE = 3,
    RANDOM_WITH_MANA = 4,
    RANDOM_WITH_RAGE = 5,
    RANDOM_WITH_ENERGY = 6,
    RANDOM_NOT_MAINTANK = 7  
    
    These are the RandomFlags for the NPC Command: GetRandomPlayer(#).
    
    
    Quote:
    Creature Events
    CREATURE_EVENT_ON_ENTER_COMBAT = 1,
    CREATURE_EVENT_ON_LEAVE_COMBAT = 2,
    CREATURE_EVENT_ON_KILLED_TARGET = 3,
    CREATURE_EVENT_ON_DIED = 4,
    CREATURE_EVENT_AI_TICK = 5,
    CREATURE_EVENT_ON_SPAWN = 6,
    CREATURE_EVENT_ON_GOSSIP_TALK = 7,
    CREATURE_EVENT_ON_REACH_WP = 8,
    CREATURE_EVENT_ON_LEAVE_LIMBO = 9,
    CREATURE_EVENT_PLAYER_ENTERS_RANGE = 10,  
    
    These are the UnitEvents for Registering the Script to the correct NPC. 
    
    
    Quote:
    GameObject Events
    GAMEOBJECT_EVENT_ON_SPAWN = 1,
    GAMEOBJECT_EVENT_ON_USE = 2,  
    
    These are used for the GameObjectEvents used for Registering the Script to the correct GameObject.
    
    
    Quote:
    Gossip Events
    GOSSIP_EVENT_ON_TALK = 1,
    GOSSIP_EVENT_ON_SELECT_OPTION = 2,
    GOSSIP_EVENT_ON_END = 3,  
    
    These are the GossipEvents used for Registering the Script to the correct Item/NPC/GameObject.
    
    CREDITS
    -- ArcEmu Dev Team (For creating ArcEmu)
    -- Blackboy0 (Editing all Comments)
    -- Kenuvis (SendPOI and FieldFlags)

Similar Threads

  1. LF Quests/items/objects/event scripts that spawn mobs
    By dognip40 in forum World of Warcraft General
    Replies: 0
    Last Post: 01-23-2015, 12:23 AM
  2. LUA, spawned creatures attack tank?
    By CairiFEA in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-16-2008, 04:25 AM
  3. lua guide on spawning mobs after death
    By runiker in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 03-10-2008, 01:57 AM
  4. [Question] Make players spawn with an item in thier bag
    By foamysquirl in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-01-2008, 05:35 PM
  5. [Lua] Make mobs channel spell then cast?
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-18-2008, 03:24 PM
All times are GMT -5. The time now is 05:52 AM. 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