Jump to content
Fajar

Love Line Skill Doesn't Work

Recommended Posts

Can Someone Help me? Why my Love Line Skill Not Work?

This is my script Love Line skill

function Skill_Qlzx_End ( ATKER , DEFER , sklv ) 
local NocLock =	KitbagLock( ATKER, 0 )
	if NocLock == LUA_FALSE then
		SystemNotice( ATKER , "Your inventory is locked!")
		return
	end
	local item_count = CheckBagItem ( ATKER , 7408 )
	if item_count <= 0 then  
		SystemNotice( ATKER , "You must have the marriage certificate in your inventory!" )
		return
	else
		local ring = GetChaItem2 ( ATKER , 2 , 7408 )
		local Num_ATK_JZ = GetItemForgeParam ( ring , 1 )
		local plus = 1000000000
		Num_ATK_JZ = TansferNum ( Num_ATK_JZ )
		local ID_ATK_Num = GetCharID(ATKER) + plus
		local RoleType = GetChaID(ATKER)
		local t = {} 
		t[0] = DEFER 
		t[1] = GetTeamCha(DEFER, 0 )  
		t[2] = GetTeamCha(DEFER, 1 )   
		t[3] = GetTeamCha(DEFER, 2 )    
		t[4] = GetTeamCha(DEFER, 3 )
		local i = 1
		for i = 1 , 4 , 1 do
			if t[i] ~= nil then
				local item_count = CheckBagItem ( t[i] , 7408 )	
				if item_count == 1 then  
					local Item = GetChaItem2 ( t[i] , 2 , 7408 )	
					local Num_JZ = GetItemForgeParam ( Item , 1 )
					Num_JZ = TansferNum ( Num_JZ )
					if Num_JZ == ID_ATK_Num  then
						local ID_Num = GetCharID(t[i]) + plus
						if Num_ATK_JZ==ID_Num then
							local x, y = GetChaPos(t[i])
							local map_name = GetChaMapName (t[i])
							x = math.floor (x*0.01)
							y = math.floor (y*0.01)
							if map_name == "prisonisland" or map_name == "guildwar" or map_name == "guildwar2" or map_name == "darkswamp" or map_name == "puzzleworld" or map_name == "puzzleworld2" or map_name == "abandonedcity" or map_name == "abandonedcity2" or map_name == "abandonedcity3" or map_name == "garner2" or map_name == "deathcircle" or map_name =="bountypk" or map_name =="darkhouse" then
								SystemNotice ( ATKER , "Your partner is in map ["..map_name.."]! You cannot go there" )
								UseItemFailed ( ATKER )
								return
							else
								local map_name2 = GetChaMapName ( ATKER )
								if map_name2 == "prisonisland" or map_name2 == "guildwar" or map_name2 == "guildwar2" or map_name2 == "darkswamp" or map_name2 == "puzzleworld" or map_name2 == "puzzleworld2" or map_name2 == "abandonedcity" or map_name2 == "abandonedcity2" or map_name2 == "abandonedcity3" or map_name2 == "garner2" or map_name2 == "deathcircle" or map_name2 =="bountypk" or map_name2 =="darkhouse" then
									SystemNotice ( ATKER , "You cannot use this skill in ["..map_name2.."]" )
									UseItemFailed ( ATKER )
									return
								end
							end
							GoTo(ATKER, x,y, map_name)
							return
						end
					end
				end
			end
			end
			if i == 4 then
				SystemNotice( ATKER , "Did not find your lover in your party, Failed to use skill!")
				return
			end
		
		
		local Item = GetChaItem2 ( ATKER , 2 , 7408 )	
		local Num_JZ = GetItemForgeParam ( Item , 1 )
		Num_JZ = TansferNum ( Num_JZ )
		local Part1_JZ = GetNum_Part1 ( Num_JZ )	
		local Part2_JZ = GetNum_Part2 ( Num_JZ )	
		local Part3_JZ = GetNum_Part3 ( Num_JZ )
		local Part4_JZ = GetNum_Part4 ( Num_JZ )
		local Part5_JZ = GetNum_Part5 ( Num_JZ )
		local Part6_JZ = GetNum_Part6 ( Num_JZ )
		local Part7_JZ = GetNum_Part7 ( Num_JZ )
		Part1_JZ=1
			Num_JZ = SetNum_Part1 ( Num_JZ , 1 ) 
			SetItemForgeParam ( Item , 1 , Num_JZ )

	end
end

 

Share this post


Link to post
Share on other sites

Show us the error.

And tell me what's is Love Line Skill cause I don't know


“So the problem is not so much to see what nobody has yet seen, as to think what nobody has yet thought concerning that which everybody sees.”


― Arthur Schopenhauer

Share this post


Link to post
Share on other sites
2 hours ago, Methz said:

Show us the error.

And tell me what's is Love Line Skill cause I don't know

"Love Line" is a skill obtained after marriage by a "couple" which lets them instantly teleport themselves to the other player they're married to.

  • Like 1

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