+ Reply to Thread
Results 1 to 8 of 8

Thread: Big Bad Wolf

  1. #1
    Rift Disciple DurakBlackaxe's Avatar
    Join Date
    Jan 2011
    Posts
    159

    Default Big Bad Wolf

    The shamble Stick.

    What is the name of the shambler icon so can have it automatically cancelled by bigbadwolf ?

    I know the sheep one is called "pet_sheep_z.dds"

  2. #2
    Sword of Telara DoomSprout's Avatar
    Join Date
    Apr 2011
    Posts
    876

    Default

    I don't know the filename, but if you have the Trion Development Tools addon installed (ftp://ftp.trionworlds.com/rift/addon), and can arrange to get "Shamblered", you can paste the following into the console:

    Code:
    /script dump(Inspect.Buff.Detail("player", Inspect.Buff.List("player")))
    Looking through the output will give you the details (incl. filename) for all buffs on you.

    Gadgets: Unit Frames and Other Stuff for RIFT

  3. #3
    Rift Disciple DurakBlackaxe's Avatar
    Join Date
    Jan 2011
    Posts
    159

    Default

    Okay i downloaded the trion developer kit


    how do i access the console?

  4. #4
    Sword of Telara DoomSprout's Avatar
    Join Date
    Apr 2011
    Posts
    876

    Default

    It's your normal chat window. Sorry, we tend to call it the console when we're talking about code, makes us feel all professional

    Gadgets: Unit Frames and Other Stuff for RIFT

  5. #5
    Rift Disciple DurakBlackaxe's Avatar
    Join Date
    Jan 2011
    Posts
    159

    Default

    pet_shambler.dds


    have it on me editted script. doesnt seem to wish to remove it.


    will keep trying i will get it to work hehe

    this is the code, it just wont stop the shambler working

    Code:
    BBW = {}
    BBW.inFight = false
    
    function BBW.refresh()
    	if BBW.inFight then return end
    	
    	local bufflist = Inspect.Buff.List("player")
    	if not bufflist then return end
      
    	local buffDetails = Inspect.Buff.Detail("player", bufflist)
    	local evilcaster = {}
    	
    	for id, buff in pairs(buffDetails) do
    		
    
    
    		if (string.find(buff.icon, "pet_shambler.dds") then
    			if buff.caster ~= nil then
    				 evilcaster  = Inspect.Unit.Detail(buff.caster)
    				if  evilcaster  ~= nil and  evilcaster.name ~= nil then
    					print( evilcaster.name.." is trying to shambler you! Sending Big Bad Wolf to eradicate it!")
    					Command.Buff.Cancel(id)
    					return
    				end
    			end
    			print "Shambler detected! Sending Big Bad Wolf to eradicate it!"
    			Command.Buff.Cancel(id)
    			return
    		end
    	end
    
    
    	for id, buff in pairs(buffDetails) do
    
    		if (string.find(buff.icon, "pet_sheep_z.dds")  then
    			if buff.caster ~= nil then
    				 evilcaster  = Inspect.Unit.Detail(buff.caster)
    				if  evilcaster  ~= nil and  evilcaster .name ~= nil then
    					print( evilcaster .name.." is trying to sheep you! Sending Big Bad Wolf to eradicate it!")
    					Command.Buff.Cancel(id)
    					return
    				end
    			end
    			print "Sheep detected! Sending Big Bad Wolf to eradicate it!"
    			Command.Buff.Cancel(id)
    			return
    		end
    
    
    
    		 
    	end
    end
    
    table.insert(Event.Buff.Add, {BBW.refresh, "BBW", "refresh"})
    table.insert(Event.System.Secure.Enter, {function () BBW.inFight = true end, "BBW", "combat"})
    table.insert(Event.System.Secure.Leave, {function () BBW.inFight = false end, "BBW", "combat"})
    Last edited by DurakBlackaxe; 07-07-2012 at 06:58 AM.

  6. #6
    Shadowlander Braer's Avatar
    Join Date
    Dec 2011
    Posts
    46

    Default

    (1) Thank you very much for this post. Thanks to this, I was able to modify the code for our guild leader.

    (2) Looking at your code the problem is that, you copied too much. Essentially, you want to copy from the "if (string.find(buff.icon, "pet_sheep_x.dds"" to the "end" of the if statement, and copy it as an additional like within the for loop.

    So...

    Code:
    BBW = {}
    BBW.inFight = false
    
    function BBW.refresh()
    	if BBW.inFight then return end
    	
    	local bufflist = Inspect.Buff.List("player")
    	if not bufflist then return end
      
    	local buffDetails = Inspect.Buff.Detail("player", bufflist)
    	local bastard = {}
    	
    	for id, buff in pairs(buffDetails) do
    		if string.find(buff.icon, "pet_sheep_z.dds") then
    			if buff.caster ~= nil then
    				bastard = Inspect.Unit.Detail(buff.caster)
    				if bastard ~= nil and bastard.name ~= nil then
    					print(bastard.name.." is trying to sheep you! Sending Big Bad Wolf to eradicate it!")
    					Command.Buff.Cancel(id)
    					return
    				end
    			end
    			print "Sheep detected! Sending Big Bad Wolf to eradicate it!"
    			Command.Buff.Cancel(id)
    			return
    		end
    		if string.find(buff.icon, "pet_shambler.dds") then
    			if buff.caster ~= nil then
    				bastard = Inspect.Unit.Detail(buff.caster)
    				if bastard ~= nil and bastard.name ~= nil then
    					print(bastard.name.." is trying to shambler you! Sending Big Bad Wolf to eradicate it!")
    					Command.Buff.Cancel(id)
    					return
    				end
    			end
    			print "Shambler detected! Sending Big Bad Wolf to eradicate it!"
    			Command.Buff.Cancel(id)
    			return
    		end
    	end
    end
    
    table.insert(Event.Buff.Add, {BBW.refresh, "BBW", "refresh"})
    table.insert(Event.System.Secure.Enter, {function () BBW.inFight = true end, "BBW", "combat"})
    table.insert(Event.System.Secure.Leave, {function () BBW.inFight = false end, "BBW", "combat"})
    (3) I have found that when being both sheeped and shamblered, I can cancel the condiftion from the command line:

    /cancelbuff
    Do not use a buff name, and it seems to default to the unnamed sheep buff.

    (4) Thank you again, and good luck.

  7. #7
    Telaran Hulmaster's Avatar
    Join Date
    May 2011
    Posts
    91

    Default

    Would it be possible to add a code where it will check who did it and then say "I know it was @targetname"
    Last edited by Hulmaster; 08-25-2012 at 07:50 PM.

  8. #8
    Sword of Telara DoomSprout's Avatar
    Join Date
    Apr 2011
    Posts
    876

    Default

    I don't know if BBW is still being maintained by the original dev.

    There is another addon Gadget: SS Tracker written by AlexandreaFride that alerts whenever a raid member gets sheeped/shamblered - maybe a combination of the two addons could work if no-one is around to update BBW.
    Last edited by DoomSprout; 08-26-2012 at 05:29 AM.

    Gadgets: Unit Frames and Other Stuff for RIFT

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts