Anyone have a working Karazhan Tinhead.lua? menu

User Tag List

Results 1 to 7 of 7
  1. #1
    _DEFiANT's Avatar Member
    Reputation
    44
    Join Date
    Aug 2008
    Posts
    240
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anyone have a working Karazhan Tinhead.lua?

    I am trying to fix every single LUA on the repack I compiled and I am working on. I fixed M'uru (Thanks to Kreegoth ), I fixed SunbladeMagister.lua, the last one is "Boss_Karazhan_Tinhead.lua". Does anyone have a working Tinhead LUA file they would be willing to share? +Rep if somone does

    Anyone have a working Karazhan Tinhead.lua?
  2. #2
    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)
    Code:
    function Tinhead_Rust(Unit, event, miscunit, misc)
    	print "Tinhead Rust"
    	Unit:FullCastSpellOnTarget(31086,Unit:GetClosestPlayer())
    	Unit:SendChatMessage(11, 0, "Ho, some rust...")
    end
    
    function Tinhead_Cleave(Unit, event, miscunit, misc)
    	print "Tinhead Cleave"
    	Unit:FullCastSpellOnTarget(39174,Unit:GetClosestPlayer())
    	Unit:SendChatMessage(11, 0, "Cleave...")
    end
    
    function Tinhead(unit, event, miscunit, misc)
    	print "Tinhead"
    	unit:RegisterEvent("Tinhead_Rust",5000,0)
    	unit:RegisterEvent("Tinhead_Cleave",10000,0)
    end
    
    RegisterUnitEvent(17547,1,"Tinhead")

    Try that didnt make this one so lemme know LOL

  3. #3
    _DEFiANT's Avatar Member
    Reputation
    44
    Join Date
    Aug 2008
    Posts
    240
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kreegoth View Post
    Code:
    function Tinhead_Rust(Unit, event, miscunit, misc)
    	print "Tinhead Rust"
    	Unit:FullCastSpellOnTarget(31086,Unit:GetClosestPlayer())
    	Unit:SendChatMessage(11, 0, "Ho, some rust...")
    end
    
    function Tinhead_Cleave(Unit, event, miscunit, misc)
    	print "Tinhead Cleave"
    	Unit:FullCastSpellOnTarget(39174,Unit:GetClosestPlayer())
    	Unit:SendChatMessage(11, 0, "Cleave...")
    end
    
    function Tinhead(unit, event, miscunit, misc)
    	print "Tinhead"
    	unit:RegisterEvent("Tinhead_Rust",5000,0)
    	unit:RegisterEvent("Tinhead_Cleave",10000,0)
    end
    
    RegisterUnitEvent(17547,1,"Tinhead")

    Try that didnt make this one so lemme know LOL
    That's a bit... um... short? Here is the existing one I have.

    Code:
    function Tinhead_Rust(Unit, event, miscunit, misc)
    	print "Tinhead Rust"
    	if Unit:GetHealthPct() < 50 and Didthat == 0 then
    	Unit:FullCastSpellOnTarget(31086,Unit:GetClosestPlayer())
    	Didthat = 1 
    end
    function Tinhead_OnKilledTarget(unit, event, miscunit, misc)
    	print "Tinhead Killed"
    	unit:SendChatMessage(12, 0, "Guess I'm not so rusty, after all.")
    end
    
    function Tinhead_OnDeath(unit, event, miscunit, misc)
    	unit:SendChatMessage(12, 0, "Back to being an old rustbucket.")
    	unit:RemoveEvents()
    end
    
    function Tinhead_Cleave(Unit, event, miscunit, misc)
    	print "Tinhead Cleave"
    	Unit:FullCastSpellOnTarget(39174,Unit:GetClosestPlayer())
    end
    
    function Tinhead(unit, event, miscunit, misc)
    	print "Tinhead"
    	unit:SendChatMessage(12, 0, "I could really use a heart. Say, can I have yours?")
    	unit:RegisterEvent("Tinhead_Rust",5000,0)
    	unit:RegisterEvent("Tinhead_Cleave",10000,0)
    end
    
    RegisterUnitEvent(17547,1,"Tinhead")
    RegisterUnitEvent(17547,3,"Tinhead_OnKilledTarget")
    RegisterUnitEvent(17547,4,"Tinhead_OnDeath")
    I asked to get a working once because in the world.exe, I get this error..


    failed <could not load>
    scriptsBOSS_Karazhan_Tinhead:31: 'end' expected <to close 'function' at linke 1> near '<eof>'
    I asked for one because I couldn't get this one to work.

  4. #4
    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)
    You're missing an 'end'

    Code:
    function Tinhead_Rust(Unit, event, miscunit, misc)
    	print "Tinhead Rust"
    	if Unit:GetHealthPct() < 50 and Didthat == 0 then
    		Unit:FullCastSpellOnTarget(31086,Unit:GetClosestPlayer())
    		Didthat = 1 
    	end
    end

  5. #5
    _DEFiANT's Avatar Member
    Reputation
    44
    Join Date
    Aug 2008
    Posts
    240
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheSpidey View Post
    You're missing an 'end'

    Code:
    function Tinhead_Rust(Unit, event, miscunit, misc)
    	print "Tinhead Rust"
    	if Unit:GetHealthPct() < 50 and Didthat == 0 then
    		Unit:FullCastSpellOnTarget(31086,Unit:GetClosestPlayer())
    		Didthat = 1 
    	end
    end
    Ah my god, Spidey. It worked. +Rep to you! :P

  6. #6
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    =O damn you spidey..I was reading it haha
    Database Evolved Developer:wave:

  7. #7
    _DEFiANT's Avatar Member
    Reputation
    44
    Join Date
    Aug 2008
    Posts
    240
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry Nickelo

    Need help? add me on MSN - [email protected]
    Have questions? email me - [email protected]

Similar Threads

  1. [Bot] Does anyone have a working bot that won't get banned?
    By explained in forum Pokemon GO Hacks|Cheats
    Replies: 8
    Last Post: 10-16-2016, 06:09 PM
  2. PatchDiff2 (IDA 6.3) - Does anyone have this working properly?
    By Tanaris4 in forum WoW Memory Editing
    Replies: 4
    Last Post: 08-30-2012, 09:36 AM
  3. Anyone have a working Disconnect Macro for 4.0.6?
    By vorpox in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 04-03-2011, 03:21 AM
  4. Anyone have a working WoW Model Viewer?
    By Valcon9 in forum World of Warcraft General
    Replies: 3
    Last Post: 03-01-2009, 02:26 AM
  5. Anyone have a working inbox mailer?
    By x0x in forum WoW Scams Help
    Replies: 3
    Last Post: 02-18-2009, 05:37 AM
All times are GMT -5. The time now is 09:50 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