Jump to content
Billy

Set effect handler

Recommended Posts

Allows easy addition of set glows/effects using tables.

 

eg:

{
				State = STATE_BBRING1,
				Fusable = false,
				AllowApparelGlow = false,
				SpecialCheck = nil,
				Effects = {
					Kylin = false,
					BlackDragon = false,
					Death = true,
					Chaos = false,
				},
				ItemID = nil,
				Slot = nil,
				Equips = {
					Head = nil ,
					Armour = {2817},
					Boots = nil,
					Gloves = nil,
					LeftHand = nil,
					RightHand = nil,
					LeftRing = nil,
					RightRing = {2577},
					Necklace = nil,
				},
				Apparels = {
					Head = nil,
					Armour = nil,
					Gloves = nil,
					Boots  = nil,  
					LeftHand = nil,
					RightHand = nil,
				},
			},

When the player has 2817 (SS death torso) and 2577 (hell feather) , they gain the ss boss ring glow, and the death effect (exp loss reduction).

 

Also supports calling a function to check if the state is valid using SpecialCheck , eg have a state that is only added to VIP members:

 

{
		State = 234,
		Fusable = false,
		AllowApparelGlow = false,
		SpecialCheck = VIP.CheckVIP,
		Effects = {
			Kylin = false,
			BlackDragon = true,
			Death = false,
			Chaos = false,
		},
		ItemID = nil,
		Slot = nil,
		Equips = {
			Head = nil,
			Armour = nil,
			Gloves = nil,
			Boots = nil,
			LeftHand = nil,
			RightHand = nil,
			LeftRing = nil,
			RightRing = nil,
			Necklace =nil,
		},
		Apparels = {
			Head = nil,
			Armour = nil,
			Gloves = nil,
			Boots  = nil,  
			LeftHand = nil,
			RightHand = nil,
		},
	},

 

 

Before using, read the install instructions, and make sure to remove any tables you are not using.

 

Updated:

Added option to only allow glow if certain apparels are used (or item is unfused)

 

Updated Link (12/08/16):

http://pastebin.com/4KR02HLE

 

  • Like 3

Share this post


Link to post
Share on other sites

Does the set effects (Kylin,Death,Chaos...) are working? I tried and ain't working, At least with the hook replacement. It's needed to replace something in original function? And it's possible to add more than a STATE?

Edited by Satan

lelouch_signature_by_vahntheknight-d4uafwj.png

Share this post


Link to post
Share on other sites

It's working, might be an older version though I'll check later.

You shouldn't need to replace anything for kylin bd etc, it just hooks the original functions

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...