[LUA] AutoBuffCaster menu

User Tag List

Results 1 to 4 of 4
  1. #1
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] AutoBuffCaster

    Intro:

    I made a small script.

    You need a premade npc for this script. Just change local NPC_ID = to your npc's id. So, if your npc's id is 334 then it should say local NPC_ID = 334

    So what this script does is that it gives any player who come near it some buffs. And it checkes if the player has the buffs already so that it doesnt give it twice.

    Script:

    Lua pastebin - collaborative debugging tool

    [LUA] AutoBuffCaster
  2. #2
    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)
    You don't need the "Caster = pUnit". Your just wasteing memory. Same with the "else" after checking for aura's. Also you should not check every second, rather every 5 seconds or so otherwise it wastes cpu.
    Apart from those few points, looks good. Nice simple script, +Rep if I can.
    Last edited by stoneharry; 12-14-2009 at 02:51 PM.

  3. #3
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    68 views and 1 reply? cmon guys..

  4. #4
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    You don't need the "Caster = pUnit". Your just wasteing memory. Same with the "else" after checking for aura's. Also you should not check every second, rather every 5 seconds or so otherwise it wastes cpu.
    Apart from those few points, looks good. Nice simple script, +Rep if I can.
    he should leave it to 1 second, that wont change anything in cpu stuff, also check if plr haves aura, and yeah Caster= pUnit is pointless and stupid, tho non of those WASTE memory

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
All times are GMT -5. The time now is 08:30 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