Jump to content

Recommended Posts

Anyone got the full guide including the attachment for "Player Marriage System"? While looking through old server archives from @V3ct0r thread, the attachment from the Player Marriage System no longer downloadable. Can someone please remake the guide(repost with working download attachments rar file and so...)
Old Link: https://serverdev-archive.pko.host/index-619.htm
@Blanquitoh

Share this post


Link to post
Share on other sites
On 24/08/2017 at 2:03 AM, DangThao said:

Anyone got the full guide including the attachment for "Player Marriage System"? While looking through old server archives from @V3ct0r thread, the attachment from the Player Marriage System no longer downloadable. Can someone please remake the guide(repost with working download attachments rar file and so...)
Old Link: https://serverdev-archive.pko.host/index-619.htm
@Blanquitoh

 

i think can do this

 

-------------------
--Marriage Effect--
-------------------
print("Loading Marriage Effect")
function MarriageEffect(role, freq, time)
	Hearts = {}
	Hearts[1] = 355
	Hearts[2] = 370
	Hearts[3] = 354
	Hearts[4] = 355
	Hearts[5] = 356
	
	local x = math.random(1,5)
		
	 local Ring_Num = 0
		local t = {} 
		t[0] = role 
		t[1] = GetTeamCha(role, 0 )  
		t[2] = GetTeamCha(role, 1 )   
		t[3] = GetTeamCha(role, 2 )    
		t[4] = GetTeamCha(role, 3 )
		local i = 1
		local item_count = CheckBagItem ( role , 7408 )
		local item_party = CheckBagItem ( t[i] , 7408)
		local Ring_Num = Ring_Num + item_count
		 if Ring_Num == 1 then
			for i = 1 , 4 , 1 do
				if t[i] ~= nil then
					local statelv = 1
					local statetime = 3600
					if item_count > 0 then
						if item_party > 0 then
						local month = os.date ("%m")
						local day = os.date ("%d")
						local hour = os.date ("%H")
						local minute = os.date ("%M")
						local second = os.date ("%S")
	
						local minutenum = tonumber(minute)
						local hournum = tonumber(hour)
						local secondnum = tonumber(second)
						local monthnum = tonumber(month)
						local daynum = tonumber(day)
						
						if monthnum == 02 and daynum == 14 and minutenum == 05 and secondnum == 00 then
							PlayEffect(role, Hearts[x])
						end
						AddState ( role , role , marriage , statelv , statetime )
						--AddState ( t[i] , t[i] , marriage , statelv , statetime )	
						--SystemNotice( t[i] , "<High Priest>: Marriage Effect Enabled!")
						end
					end
				end	
			end
				if t[i] == nil then
					local statelv_marriage = GetChaStateLv ( role , marriage )
					if statelv_marriage~=0 then			
						RemoveState ( role, marriage )
						
						BickerNotice( role , "<High Priest>: Marriage Effect Disabled!")					
					end

				end
		else
			
		end
end

 

Share this post


Link to post
Share on other sites
1 hour ago, Julio said:

 

...

 

if I'm not wrong, there's something missing. (Guessing he doesn't had it elsewhere either).

What's missing is "marriage" variable standing for its State Number.

I'd add it but idk which number it is.

 

  • Like 1

Share this post


Link to post
Share on other sites

Can someone share it ? i managed to make it work but im having a problem with Love Line skill that it doesnt tele you to the Partner in party... anyone can help or share?

Share this post


Link to post
Share on other sites
9 hours ago, FapFap said:

Can someone share it ? i managed to make it work but im having a problem with Love Line skill that it doesnt tele you to the Partner in party... anyone can help or share?

Take into consideration that "Love Line" skill requires both player to be within the same GameServer to work as far as I know.

Share this post


Link to post
Share on other sites
21 minutes ago, Angelix said:

Take into consideration that "Love Line" skill requires both player to be within the same GameServer to work as far as I know.

They have to be in same map yeah.. but still aint working. also it aint adding stats tho..

Share this post


Link to post
Share on other sites
32 minutes ago, Angelix said:

Uhm, AFAIK, "Love Line" doesn't add stats.

i meant when you get marry and you in pt with ur partner in same map.. it wont give you the stats that it should give, i already added the stats but it wont give and love line skill won't tele to the partner..
I hope someone can make a working guide!

Share this post


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

i meant when you get marry and you in pt with ur partner in same map.. it wont give you the stats that it should give, i already added the stats but it wont give and love line skill won't tele to the partner..
I hope someone can make a working guide!

be sure id of ring match on the skill line. if u missing some part take a look like roso file or some where is already one working marrie system and find functions with ring id and you will find what you are missing...

  • Like 1

Download: Nightmare Demonic Helm

Dimension Pirates Online files: get now

New map Project: Flag PK

Black Skin 3.1.3 for pko 1: Get now

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