[Idea] Scripting spells with LUA menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    blackfang500's Avatar Member
    Reputation
    35
    Join Date
    Apr 2007
    Posts
    491
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Idea] Scripting spells with LUA

    Okay, so first off the idea was to use LUA to script a spell, this is sort of a general concept right now but I'm sure people will be able to think of ways to elaborate it's usage.
    Step 1: Make a spell
    You would copy a spell that summons something, or replace some useless one, but have it summon the dummy unit.
    Step 2:Make a dummy unit
    Simple enough for those what I mean (Mainly from WC3), you make a unit that does absolutely nothing but is spawned when the spell is cast.
    Step 3:Script the dummy
    So now that you have a spell that summons a unit that does nothing, you use LUA! Script it so on spawn it will do what you want your spell to do and when it's done what it's meant for the LUA script will destroy the unit.
    (For example, have your dummy target everyone within X yards and have a 50% chance to cast death touch on them)
    Note: This is an idea so I want your thoughts, it's not a guide.
    Last edited by <iostream>; 03-19-2009 at 02:12 AM.

    [Idea] Scripting spells with LUA
  2. #2
    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)
    For a dummy you could spawn a creature with displayid 4 and a scale of 0.01, on spawn set combat capability to 1 and stop movement, then castspellAoF for visuals, and get target closest target and cast firebolt or whatever.
    To stop this hurting the player as well you would need to set factions, like get the player faction on spawn, if faction == 1 set faction of npc to 1, if faction == 2, set faction 2, but this is just for PvP.
    You would need to experiment and look into it I think it could be possible though.

    A much much easier way would be to use C++, you can edit a spell to do something else much easier!

  3. #3
    blackfang500's Avatar Member
    Reputation
    35
    Join Date
    Apr 2007
    Posts
    491
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, thanks, I didnt know you could edit spells with C++, I may look into this. Can you suggest a good tutorial to get started?

  4. #4
    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)
    People don't tend to make turtorials on C++ i'm afraid Only the 100,000,000 how to compile a server.

Similar Threads

  1. Lua script spell problem
    By bill45 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-13-2008, 01:56 PM
  2. Anyone willing to help with LUA scripting
    By nickeg in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-09-2008, 05:53 PM
  3. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
  4. [Request] Ascent Revision with LUA scripts enabled
    By Greatdrak in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-30-2007, 06:04 PM
  5. Dragonscale Repack With Chrispee's Database FULL Z'AMAN SCRIPTS SPELLS
    By Dragonscale in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-14-2007, 05:29 PM
All times are GMT -5. The time now is 10:07 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