Jump to content

About biolog quest


Recommended Posts

Hello community.
I have this quest: https://pastebin.com/L4VXQ1V8
If you check 

local bonuses = {

options 5-6-7-8 at text, have two bonuses at the same option {option 5- int & dex}
If the players selects option 5 it should give, these two bonuses together at the same time, at this option.

Can anyone tell me how can i do this?

 

Thanks for your time.

Link to comment
Share on other sites

  • Forum Moderator

Search for:

  1.                local bonuses = {
  2.                     [1] = {3,40,"Ενέργεια Ζωής "},
  3.                     [2] = {4,40,"Ευφυΐα "},
  4.                     [3] = {5,40,"Δύναμη "},
  5.                     [4] = {6,40,"Ευκινησία "},
  6.                     [5] = {11,20,"Ενέργεια Ζωής & Δύναμη "},
  7.                     [6] = {11,20,"Ευφυΐα & Δύναμη "},
  8.                     [7] = {11,20,"Ευφυΐα & Ευκινησία "},
  9.                     [8] = {11,20,"Δύναμη & Ευκινησία "},
  10.                 }
  11.                 affect.add(567, bonuses[s][1], bonuses[s][2], bonuses[s][3], bonuses[s][4], bonuses[s][5], bonuses[s][6], bonuses[s][7], bonuses[s][8], 60*60*24*365*2)

Replace with:

This is the hidden content, please

  • Metin2 Dev 1
  • Love 7
Link to comment
Share on other sites

  • Premium
3 hours ago, VegaS™ said:

Search for:

  1.                local bonuses = {
  2.                     [1] = {3,40,"Ενέργεια Ζωής "},
  3.                     [2] = {4,40,"Ευφυΐα "},
  4.                     [3] = {5,40,"Δύναμη "},
  5.                     [4] = {6,40,"Ευκινησία "},
  6.                     [5] = {11,20,"Ενέργεια Ζωής & Δύναμη "},
  7.                     [6] = {11,20,"Ευφυΐα & Δύναμη "},
  8.                     [7] = {11,20,"Ευφυΐα & Ευκινησία "},
  9.                     [8] = {11,20,"Δύναμη & Ευκινησία "},
  10.                 }
  11.                 affect.add(567, bonuses[s][1], bonuses[s][2], bonuses[s][3], bonuses[s][4], bonuses[s][5], bonuses[s][6], bonuses[s][7], bonuses[s][8], 60*60*24*365*2)

Replace with:


local bonus_info_table = {
	{{apply.CON, 40, "Ενέργεια Ζωής"}},
	{{apply.INT, 40, "Ευφυΐα"}},
	{{apply.STR, 40, "Δύναμη"}},
	{{apply.DEX, 40, "Ευκινησία"}},
	
	{{apply.CON, 15, "Ενέργεια Ζωής"}, {apply.STR, 15, "Δύναμη"}},		
	{{apply.INT, 15, "Ευφυΐα"}, {apply.STR, 15, "Δύναμη"}},
	{{apply.INT, 15, "Ευφυΐα"}, {apply.DEX, 15, "Ευκινησία"}},
	{{apply.STR, 15, "Δύναμη"}, {apply.DEX, 15, "Ευκινησία"}}
}

for k, v in ipairs(bonus_info_table[s]) do
	local index, value, name = unpack(v)
	affect.add_collect(index, value, 60 * 60 * 24 * 365 * 2)
	chat(string.format("[Biolog] You received +%d%% %s", value, name))
end

Sexy. But I hope the server shuts down before 2 years :kappa:

  • Love 3

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.