Jump to content
Sign in to follow this  
Phoenix

Demonic Fruits

Recommended Posts

Hello all,

I'm trying to add a new fairy to the fairy marriage system. I add everything already but when i went to the game. It won't let me insert the custom made Demonic Fruits. Does anyone know why? Thanks.

Share this post


Link to post
Share on other sites
if Item_EMstone_ID ==3535 then ---Custom made Fairy Stone
		local j1 = TakeItem( role, 0,1253, 10 )			       
		local j2 = TakeItem( role, 0,3442, 10 )			
		if j1==0 or j2==0 then
			SystemNotice ( role ,"Deletion of pet fairy reborn tools failed")
			return
		end
		local rad = math.random ( 1, 100 )
		local r1 = 0
		local r2 = 0
		if Item_JLone_ID ==681 or Item_JLother_ID ==681 then
			if Item_JLone_ID==Item_JLother_ID then
				r1,r2 =MakeItem ( role , 255  , 1 , 4 )
			elseif lv_JLone>=20 and lv_JLone<25 and lv_JLother >=20 and lv_JLother<25 and rad>=88 then	--12% 
				r1,r2 =MakeItem ( role , 255  , 1 , 4 )
			elseif lv_JLone>=25 and lv_JLone<35 and lv_JLother >=25 and lv_JLother<35 and rad>=50 then	--50%
				r1,r2 =MakeItem ( role , 255  , 1 , 4 )
			elseif lv_JLone>=35 and lv_JLother >=35 and rad>=10 then	--90% 
				r1,r2 =MakeItem ( role , 255  , 1 , 4 )		
			else
				r1,r2 =MakeItem ( role , 680  , 1 , 4 )	
			end
		else
			r1,r2 =MakeItem ( role , 680 , 1 , 4 )	
		end
		local Item_newJL = GetChaItem ( role , 2 , r2 )			
		local Num_newJL = GetItemForgeParam ( Item_newJL , 1 )
		local Part1_newJL = GetNum_Part1 ( Num_newJL )	--Get Num Part 1 µ½ Part 7
		local Part2_newJL = GetNum_Part2 ( Num_newJL )	
		local Part3_newJL = GetNum_Part3 ( Num_newJL )
		local Part4_newJL = GetNum_Part4 ( Num_newJL )
		local Part5_newJL = GetNum_Part5 ( Num_newJL )
		local Part6_newJL = GetNum_Part6 ( Num_newJL )
		local Part7_newJL = GetNum_Part7 ( Num_newJL )
		if lv_JLone>=20 and lv_JLother >=20 then
			Part2_newJL = 12													 ---------а֮¾«Áé¼¼ÄܱàºÅ
			Part3_newJL = 1													---------³õ¼¶½×¶Î
		end
		if lv_JLone>=25 and lv_JLother >=25 then
			Part2_newJL = 12													 ---------а֮¾«Áé¼¼ÄܱàºÅ
			Part3_newJL = 2													---------Öм¶½×¶Î
		end
		if lv_JLone>=52 and lv_JLother >=52 then
			Part2_newJL = 12													 ---------а֮¾«Áé¼¼ÄܱàºÅ
			Part3_newJL = 3													---------¸ß¼¶½×¶Î
		end
		local rad1 = math.random ( 1, 100 )
		if Part3_newJL==3 then
			GiveItem ( role , 0 , 609  , 1 , 4 )	--Expert Fairy Possession
			GiveItem ( role , 0 , 612  , 1 , 4 )	--Expert Self Destruct
		end
		if Part3_newJL==2 then
			if rad1 <=95 then
				GiveItem ( role , 0 , 608  , 1 , 4 )	--Standard Fairy Possession
				GiveItem ( role , 0 , 611  , 1 , 4 )	--Standard Self Destruct
			elseif rad1 > 95 and rad1 <=100 then
				GiveItem ( role , 0 , 609  , 1 , 4 )	--Expert Fairy Possession
				GiveItem ( role , 0 , 612  , 1 , 4 )	--Expert Self Destruct
			end
		end
		if Part3_newJL==1 then
			if rad1 <=90 then
				GiveItem ( role , 0 , 239  , 1 , 4 )	--Novice Fairy Possession
				GiveItem ( role , 0 , 610  , 1 , 4 )	--Novice Self Destruct
			elseif rad1 > 90 and rad1 <=98 then
				GiveItem ( role , 0 , 608  , 1 , 4 )	--Standard Fairy Possession
				GiveItem ( role , 0 , 611  , 1 , 4 )	--Standard Self Destruct
			elseif rad1 > 98 and rad1 <=100 then
				GiveItem ( role , 0 , 609  , 1 , 4 )	--Expert Fairy Possession
				GiveItem ( role , 0 , 612  , 1 , 4 )	--Expert Self Destruct
			end
		end
		Num_newJL = SetNum_Part1 ( Num_newJL , 1 ) ----------¶þת±ê¼Ç
		Num_newJL = SetNum_Part2 ( Num_newJL , Part2_newJL )
		Num_newJL = SetNum_Part3 ( Num_newJL , Part3_newJL )
		Num_newJL = SetNum_Part4 ( Num_newJL , Part4_newJL )
		Num_newJL = SetNum_Part5 ( Num_newJL , Part5_newJL )
		Num_newJL = SetNum_Part6 ( Num_newJL , Part6_newJL )
		Num_newJL = SetNum_Part7 ( Num_newJL , Part7_newJL )
		SetItemForgeParam ( Item_newJL , 1 , Num_newJL )

		SetItemAttr ( Item_newJL , ITEMATTR_VAL_STR , new_str )
		SetItemAttr ( Item_newJL , ITEMATTR_VAL_DEX , new_dex )	 
		SetItemAttr ( Item_newJL , ITEMATTR_VAL_STA , new_sta )
		SetItemAttr ( Item_newJL , ITEMATTR_VAL_AGI , new_agi )
		SetItemAttr ( Item_newJL , ITEMATTR_VAL_CON , new_con )
		SetItemAttr ( Item_newJL , ITEMATTR_MAXENERGY , new_MAXENERGY ) 	
		SetItemAttr ( Item_newJL , ITEMATTR_MAXURE , new_MAXURE ) 	
	end

 

Share this post


Link to post
Share on other sites

 

local Item_EMstone_ID = GetItemID ( Item_EMstone )
	if Item_EMstone_ID ~= 3918 and Item_EMstone_ID ~= 3919 and Item_EMstone_ID ~= 3920 and Item_EMstone_ID ~= 3921 and Item_EMstone_ID ~= 3922 and Item_EMstone_ID ~= 3924 and Item_EMstone_ID ~= 3925 and (Item_EMstone_ID ~= 3535 and Item_EMstone_ID ~= 3536 and Item_EMstone_ID ~= 3537 and Item_EMstone_ID ~= 3538) then
	SystemNotice( role ,"Demonic Fruit usage error")
		return 0
	end

 

Share this post


Link to post
Share on other sites
11 hours ago, Phoenix said:

Hello all,

I'm trying to add a new fairy to the fairy marriage system. I add everything already but when i went to the game. It won't let me insert the custom made Demonic Fruits. Does anyone know why? Thanks.

Where are you inserting the demonic fruits? Do you receive any errors on system notice? 

Share this post


Link to post
Share on other sites

I'm inserting the demonic fruit to the fairy marriage system. I'm trying to make 2x modo Jr marry to get a new pet but when I'm inserting the demonic fruits I'm getting an error message. " you did not add the demonic fruits. Please reselect " 

Share this post


Link to post
Share on other sites

Hello @Phoenix!

 

I think you should patch Game.exe. Demonic Fruits are hardcoded here


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.

Sign in to follow this  

×
×
  • Create New...