Jump to content
Dan

PKO 2.4 Fairy Poss

Recommended Posts

When I poss, on mordo junior/angela junior/2nd gen pets, it doesn't give bonus + a system in the message displays. 

I checked the fairy scripts and compared it to 1.3x they look the same to me and also the item type is 59, for iteminfo on server/client so I don't know why it's not recognizing the pets when the ID is listed in fairy scripts for poss.

 

Fairy Script:

function SkillCooldown_JLFT( sklv )
	local Cooldown = 180000
	return Cooldown
end

function SkillSp_JLFT ( sklv )										
	local sp_reduce = 5 
	return sp_reduce 
end 

function Skill_JLFT_BEGIN( role , sklv )					 
	local item_elf = GetChaItem(role , 2, 1)
	local item_elf_type = GetItemType ( item_elf )
	local item_elf_maxhp = GetItemAttr(item_elf,ITEMATTR_MAXURE)
	local item_elf_hp = GetItemAttr(item_elf,ITEMATTR_URE)
	local role_hp = GetChaAttr(role, ATTR_HP)
	local role_mxhp = GetChaAttr(role, ATTR_MXHP)
	local Num_JL = GetItemForgeParam ( item_elf , 1 )
	local Part1 = GetNum_Part1 ( Num_JL ) 
		
	if item_elf_type ~= 59 or Part1~=1 then
		SkillUnable(role) 
		CALCULATE_SKILLEFFECT_LUA_000098 = GetResString("CALCULATE_SKILLEFFECT_LUA_000098")
		SystemNotice ( role , CALCULATE_SKILLEFFECT_LUA_000098 )
		return 
	end

	local str = GetItemAttr( item_elf ,ITEMATTR_VAL_STR )
	local con = GetItemAttr( item_elf ,ITEMATTR_VAL_CON ) 
	local agi = GetItemAttr( item_elf ,ITEMATTR_VAL_AGI ) 
	local dex = GetItemAttr( item_elf ,ITEMATTR_VAL_DEX ) 
	local sta = GetItemAttr( item_elf ,ITEMATTR_VAL_STA ) 
	local lv_JL = str + con + agi + dex + sta

	if item_elf_hp < 5000 then
		SkillUnable ( role ) 
		CALCULATE_SKILLEFFECT_LUA_000099 = GetResString("CALCULATE_SKILLEFFECT_LUA_000099")
		SystemNotice ( role , CALCULATE_SKILLEFFECT_LUA_000099 ) 
		return 
	end

	item_elf_hp = item_elf_hp - (6 * lv_JL / sklv) * 50
	SetItemAttr ( item_elf , ITEMATTR_URE , item_elf_hp ) 
end 

function Skill_JLFT_End ( ATKER , DEFER , sklv )
	local statelv = sklv 
	local statetime = 190 - sklv * 10 
	local item_elf = GetChaItem(ATKER , 2, 1)
	local item_elf_type = GetItemType ( item_elf )
	local Item_ID = GetItemID ( item_elf ) 

	if Item_ID==231 then
		 
		AddState( ATKER , ATKER , STATE_JLFT1, statelv , statetime ) 

	elseif Item_ID==232 then
		 
		AddState( ATKER , ATKER , STATE_JLFT2, statelv , statetime ) 

	elseif Item_ID==233 then
		 
		AddState( ATKER , ATKER , STATE_JLFT3, statelv , statetime ) 

	elseif Item_ID==235 then
		 
		AddState( ATKER , ATKER , STATE_JLFT4, statelv , statetime ) 

	elseif Item_ID==234 then
		 
		AddState( ATKER , ATKER , STATE_JLFT5, statelv , statetime ) 

	elseif Item_ID==236 then
		 
		AddState( ATKER , ATKER , STATE_JLFT6, statelv , statetime ) 

	elseif Item_ID==237 then
		 
		AddState( ATKER , ATKER , STATE_JLFT7, statelv , statetime ) 

	elseif Item_ID==681 then
		 
		AddState( ATKER , ATKER , STATE_JLFT8, statelv , statetime )

	elseif Item_ID==206 then
		 
		AddState( ATKER , ATKER , STATE_JLFT8, statelv , statetime ) 
	end
end 

function State_JLFT_Add ( role , sklv )
	local Item_bg = GetChaItem ( role , 2 , 1  ) 
	local Get_Item_Type = GetItemType ( Item_bg ) 
		
	if Get_Item_Type == 59 then 
		local  Item_ID = GetItemID ( Item_bg )	
		local str = GetItemAttr( Item_bg ,ITEMATTR_VAL_STR )
		local con = GetItemAttr( Item_bg ,ITEMATTR_VAL_CON )
		local agi = GetItemAttr( Item_bg ,ITEMATTR_VAL_AGI )
		local dex = GetItemAttr( Item_bg ,ITEMATTR_VAL_DEX )
		local sta = GetItemAttr( Item_bg ,ITEMATTR_VAL_STA )
		local URE = GetItemAttr( Item_bg ,ITEMATTR_URE )
		local MAXURE = GetItemAttr( Item_bg ,ITEMATTR_MAXURE )
		local lv_JL = str + con + agi + dex + sta
		local Num_JL = GetItemForgeParam ( Item_bg , 1 )
		local Part1 = GetNum_Part1 ( Num_JL )
		local Part2 = GetNum_Part2 ( Num_JL )	
		local Part3 = GetNum_Part3 ( Num_JL )
		local Part4 = GetNum_Part4 ( Num_JL )
		local Part5 = GetNum_Part5 ( Num_JL )
		local Part6 = GetNum_Part6 ( Num_JL )
		local Part7 = GetNum_Part7 ( Num_JL )

		if Part1 == 1 then 
			local star = 0
			local statelv = lv_JL * 0.025 * (sklv + 1) * 0.05

			if Item_ID ==232 then 
				local star = lv_JL
				SetCharaAttr(star, role, ATTR_STATEV_STR)
			end
	
			if Item_ID ==233 then 				
				local star = lv_JL
				SetCharaAttr(star, role, ATTR_STATEV_CON)
			end

			if Item_ID ==234 then				
				local star = lv_JL
				SetCharaAttr(star, role, ATTR_STATEV_STA)
			end

			if Item_ID ==235 then 				
				local star = lv_JL
				SetCharaAttr(star, role, ATTR_STATEV_DEX)
			end

			if Item_ID ==236 then 				
				local star = lv_JL
				SetCharaAttr(star ,role , ATTR_STATEV_AGI)
			end

			if Item_ID == 231 or Item_ID == 681 then
				local star1 = GetChaAttr( role , ATTR_BMF )
				local star2 = GetChaAttr( role , ATTR_BMF )*lv_JL*0.02
				local star = star1 + star2
				SetCharaAttr(star ,role , ATTR_STATEV_MF)
			end

			if Item_ID == 681 then 
				if str~=nil and str~=0 then
					SetCharaAttr(str ,role , ATTR_STATEV_STR)
				end
				if con~=nil and con~=0 then
					SetCharaAttr(con ,role , ATTR_STATEV_CON)
				end
				if sta~=nil and sta~=0 then
					SetCharaAttr(sta ,role , ATTR_STATEV_STA)
				end
				if dex~=nil and dex~=0 then
					SetCharaAttr(dex ,role , ATTR_STATEV_DEX)
				end
				if agi~=nil and agi~=0 then
					SetCharaAttr(agi  ,role , ATTR_STATEV_AGI)
				end
			end

			if Item_ID == 206 then
				if str~=nil and str~=0 then
					local star = str*1.2
					SetCharaAttr(star ,role , ATTR_STATEV_STR)
				end
				if con~=nil and con~=0 then
					local star = con*1.2
					SetCharaAttr(star ,role , ATTR_STATEV_CON)
				end
				if sta~=nil and sta~=0 then
					local star = sta*1.2
					SetCharaAttr(star ,role , ATTR_STATEV_STA)
				end
				if dex~=nil and dex~=0 then
					local star = dex*1.2
					SetCharaAttr(star ,role , ATTR_STATEV_DEX)
				end
				if agi~=nil and agi~=0 then
					local star = agi*1.2
					SetCharaAttr(star  ,role , ATTR_STATEV_AGI)
				end
				local star1 = GetChaAttr( role, ATTR_BMF )
				local star2 = GetChaAttr( role, ATTR_BMF ) * lv_JL * 2.5
				local star = star1 + star2
				SetCharaAttr(star ,role , ATTR_STATEV_MF)
				local pr = GetChaAttr( role, ATTR_STATEV_PDEF ) + 3
				SetCharaAttr(pr ,role , ATTR_STATEV_PDEF)
			end
		end	
	end
	ALLExAttrSet(role)
end

function State_JLFT_Rem ( role , sklv )
	SetCharaAttr(0 ,role , ATTR_STATEV_STR)
	SetCharaAttr(0 ,role , ATTR_STATEV_CON)
	SetCharaAttr(0 ,role , ATTR_STATEV_STA)
	SetCharaAttr(0 ,role , ATTR_STATEV_DEX)
	SetCharaAttr(0 ,role , ATTR_STATEV_AGI)
	SetCharaAttr(0 ,role , ATTR_STATEV_MF)
	SetCharaAttr(0 ,role , ATTR_STATEV_PDEF)
	ALLExAttrSet(role)
end

 

dasdasdsadsaads.PNG


Nissan-GT-R.gif

Share this post


Link to post
Share on other sites
4 hours ago, Vang said:

Edit: Fixed.

For future reference (for other members), the message is kinda clear, you need to get the second generation fairy from a marriage or remove that check on functions.

  • Like 1

Share this post


Link to post
Share on other sites

Hi, I have the same problem. I did what I believe Angelix suggested and disabled the functions. So i don't have the error message anymore, the skill is animated and it looks like it's working (just like before with the error message) But the stats aren't changing.  I tryed diferent files of 2.4, 2.5 and 2.7 I still meet the same problem.

On 1/16/2018 at 10:18 PM, ᴡʀx said:

Edit: Fixed.

If you were able to fix it I would love to know how. Or if anyone else have an idea.

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...