Iceknight001's LUA Scripting Service! menu

User Tag List

Page 2 of 5 FirstFirst 12345 LastLast
Results 16 to 30 of 67
  1. #16
    Stabatha's Avatar Contributor
    Reputation
    84
    Join Date
    Dec 2007
    Posts
    345
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will your scripts work with Linux too? Do you have or know where I can get the scripts, to script Black Temple on a Linux server?

    Iceknight001's LUA Scripting Service!
  2. #17
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LUA works on Ascent, regardless of OS.
    For BT i'd recommend a C++ script, try Moon++

  3. #18
    Iceknight001's Avatar Active Member
    Reputation
    21
    Join Date
    Jan 2007
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What he said...


  4. #19
    Juicyz's Avatar Active Member
    Reputation
    34
    Join Date
    Dec 2006
    Posts
    298
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Priest_OnCombat(pUnit, Event)
    	pUnit:RegisterEvent("Priest_Choose", 3000, 0)
    end
    
    function Priest_Choose(pUnit, Event)
    	math.randomseed( os.time() )
    	local choice = math.random(4)
    	if choice == 1 then
    		pUnit:FullCastSpellOnTarget(20695, pUnit:GetMainTank())
    	elseif choice == 2 then
    		pUnit:FullCastSpellOnTarget(23860, pUnit:GetMainTank())
    	elseif choice >= 3 then
    		if pUnit:GetRandomFriend() == nil then
    			pUnit:FullCastSpell(17843)
    		else
    			pUnit:FullCastSpellOnTarget(17843, pUnit:GetRandomFriend())
    		end
    	end
    end
    
    function Priest_OnLeaveCombat(pUnit, Event)
    	pUnit:RemoveEvents()
    end
    
    function Priest_OnDied(pUnit, Event)
    	pUnit:RemoveEvents()
    end
    I am just wondering what does math.randomseed( os.time() )
    local choice = math.random(4) do in the script. I know it has to do somee thing with the picking but what does it do exactly and how do you set it up?

    DA Gift From Mr. Blain

  5. #20
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    local choice <- declares a local variable called choice
    math.random(4) <- generates a random number 1-4
    math.randomseed( os.time() ) <- generates a new seed based on the current time. Read this for more info about random seeds: Random seed - Wikipedia, the free encyclopedia

  6. #21
    Juicyz's Avatar Active Member
    Reputation
    34
    Join Date
    Dec 2006
    Posts
    298
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    O Okay Thank You

    DA Gift From Mr. Blain

  7. #22
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure thing

  8. #23
    St_Anger's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hiho^^

    I need a script for some kinda Brewfest on my server^^ So:

    If a player (or NPC (optionally)) uses an item with ID 2595 (Bourbon) 4 times, he cast's Spell 24839 on himself^^ Could you write a script for me or maybe just tell me how to write this one?

    St_Anger

  9. #24
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not possible with current implementation of LUA

  10. #25
    St_Anger's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hm ok-.-
    But thank you anyway^^

  11. #26
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    errish. i made a lesser script here.. just for the npc, the player cant be done with lua (i thinkz) he casts spell 11009 (the effect from bourbon) 4 times, then uses 24839 on himself.. while in the emotestate of drinking

    function aholic_onSpawn (pUnit, Event)
    pUnit:RemoveEvents();
    pUnit:Emote (EmoteID)
    pUnit:FullCastSpell(11009)
    pUnit:FullCastSpell(11009)
    pUnit:FullCastSpell(11009)
    pUnit:FullCastSpell(11009)
    pUnit:FullCastSpell(24839)
    end
    RegisterUnitEvent (npcid, 6, "aholic_onSpawn")
    RegisterUnitEvent (npcid, 10, "aholic_onSpawn")
    RegisterUnitEvent (npcid, 10, "aholic_onSpawn")


    It makes him drink bourbon 4 times when he spawns.. and again 4 times everytime a player enters range. i dont remember emoteid for drink:b (dont think its neccesary anyways) and ofc cast 24839 on himself after he drank it 4 times. just quickly messed this together so if theres any errors tell me:P tho u probs wont use it^^
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  12. #27
    St_Anger's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow^^ thx dude^^

  13. #28
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nps:P trying to help the community as ive recieved alot of help here, also trying to reach contributer:b
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

  14. #29
    Lilltimmy's Avatar Member
    Reputation
    20
    Join Date
    Jun 2007
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pUnit:SpawnCreature(70015, x, y, z, orientation, faction, duration); duration is in miliseconds btw
    Thanks i'll rep soon.

  15. #30
    b!atch's Avatar Member
    Reputation
    118
    Join Date
    Oct 2007
    Posts
    726
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    np;D fffffffilllllz000rr oh no! now i wrote 2 much;<
    Spectrum-X is win! Rep People That Help You and Candybones Wont Eat Your Brain:>

Page 2 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Lua scripting service
    By trujillo in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-23-2010, 06:39 PM
  2. [Service] Claiver's Lua Scripting Trade
    By Claiver in forum Members Only Gold And Powerleveling Buy Sell
    Replies: 9
    Last Post: 06-23-2009, 04:28 PM
  3. [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
  4. [Service] Bapes LUA Scripting Shop
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 04-22-2008, 09:06 PM
  5. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
All times are GMT -5. The time now is 12:52 PM. 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