-
Activity
-
37
Official Mailbox
Hello guys. I have a problem, if i get a message on the minimap don't show up the mailbox icon until character change or logout, and if i read the message don't disappear until log out or character change, what i do wrong? Thank you in advance for your help. @ Mali -
0
[Request] Underground-MT2 Serverfiles, Database , Homepage & Client
search for the original release in the lzma archive who got the password "Fiona" will be hard to search this one but i have time let me know if you can help out -
0
3 countries 3 phrases
Turkish: 100% Serverfiles Unbugged Romanian: 99.9% Official System Portuguese: Paci please send feet pics -
0
NPC direct item enchant
Download Metin2 Download You can enchant your items directly from the chosen NPC. *You can set the average & skill dmg from the quest. Preview: [Hidden Content] Download: MEGA VirusTotal- 6
-
-
-
-
30
-
0
Origins2 Global | International | A new concept - 10.06.2022
The time for a new adventure has come! After 3 years of uninterrupted involvement and perseverance, a new Origins2 Global server will be opened on 10.06.2022. Website | Discord | Board | Wiki | TikTok | Instagram | Facebook | Youtube ~ German Presentation ~ ~ Romanian Presentation ~ ~ Turkish Presentation ~ -
0
I found a huge bug in the regen function
Hello! I found an old bug related to regen time. Example: A 1m respawn monster appears at 9:20, is killed at 9:20:18, so it will reappear at 9:21. A 1m respawn monster appears at 9:20, killed at 9:36:45, reappears at 9:37. How can this be fixed? I would need it to count the respawn time from death. This is what I need: Example: If I kill it at 12:20:15, it should appear at 12:21:15. -
17
Dynamic Weather
Does the weather change when the player teleports? -
11
-
-
Recently Browsing
- No registered users viewing this page.
Question
TeoDoR 9
Hi, who can tell me how I can change the reward of this quest ?
quest levelup begin
state run begin
when letter begin
local current = pc.getqf("current")
local completed_level = pc.getqf("complete");
if current == 0 and
pc.get_level() > completed_level and
pc.get_level() > 1 and
setstate(start)
end
end
state start begin
when info begin
local lev = pc.getqf("current")
if lev == 0 then return end
setskin(SCROLL)
setbgimage('level_bg.tga')
say("")
say("")
say("")
local s = pc.getqf("select")
if s == 0 then s = 1 end
addimage(20,12,special.levelup_img[special.levelup_quest[lev][s*2-1]])
setcolor(0,0,0)
say(string.format(gameforge.levelup._20_say,mob_name(special.levelup_quest[lev][s*2-1])))
say(string.format(gameforge.levelup._26_say,special.levelup_quest[lev][s*2]))
raw_script(string.format(gameforge.levelup._27_say,special.levelup_quest[lev][5]))
say("")
if lev <= table.getn(special.levelup_reward1) then
raw_script(item_name(special.levelup_reward1[lev][pc.job+1]))
elseif lev> table.getn(special.levelup_reward1) and lev < 26 then
raw_script(locale.levelup.random_item)
e
reward_gold = special.levelup_reward_gold51
end
local max_gold_i = table.getn(reward_gold)
raw_script(reward_gold[1][1].."-"..reward_gold[max_gold_i][1].." "..locale.gold)
end
raw_script(newline)
levelup.show_mob_pos(lev)
select(gameforge.locale.confirm)
clearmapsignal()
setskin(NOWINDOW)
end
when login begin
local lev = pc.getqf("current")
if lev != 0 then
if pc.getqf("remain") <= 0 then
setskin(NOWINDOW)
pc.setqf("buttonstate", 3)
makequestbutton(string.format(gameforge.levelup._30_makequestbutton, lev))
else
setskin(NOWINDOW)
pc.setqf("buttonstate", 1)
makequestbutton(string.format(gameforge.levelup._40_makequestbutton, lev))
end
end
end
when button
say_title(string.format(gameforge.levelup._50_sayTitle, lev))
say(gameforge.levelup._60_say)
say("")
if lev <= 20 then
if lev <= table.getn(special.levelup_reward1) then
pc.give_item(gameforge.levelup._64_give..lev..gameforge.levelup._65_give,
special.levelup_reward1[lev][pc.job+1])
else
local v = number(1,100)
if v <= special.levelup_reward3[1][1] then
pc.give_item(gameforge.levelup._64_give..lev..gameforge.levelup._65_give, special.levelup_reward3[1][2],special.levelup_reward3[1][3])
elseif v <= special.levelup_reward3[2][1] then
pc.give_item(gameforge.levelup._64_give..lev..gameforge.levelup._65_give, special.levelup_reward3[2][2],special.levelup_reward3[2][3])
elseif v <= special.levelup_reward3[3][1] then
pc.give_item(gameforge.levelup._64_give..lev..gameforge.levelup._65_give, special.levelup_reward3[3][2],special.levelup_reward3[3][3])
elseif v <= special.levelup_reward3[4][1] then
pc.give_item(gameforge.levelup._64_give..lev..gameforge.levelup._65_give, special.levelup_reward3[4][2],special.levelup_reward3[4][3])
else
pc.give_item(gameforge.levelup._64_give..lev..gameforge.levelup._65_give, special.levelup_reward3[5][2],special.levelup_reward3[5][3])
end
end
pc.give_exp_perc(gameforge.levelup._64_give..lev..gameforge.levelup._66_give, lev, special.levelup_quest[lev][5])
if lev == 12 or lev == 14 or lev == 16 or lev == 18 or lev == 20 then
pc.give_item2(50083)
say_reward(string.format(gameforge.levelup._70_sayReward, item_name(50083) ))
wait()
end
else
local ll = lev - 20
if lev < 26 then
d_exp21
if lev >= 31 and lev <= 40 then
reward_gold = special.levelup_reward_gold31
reward_exp = special.levelup_reward_exp31
elseif lev >= 41 and lev <= 50 then
reward_gold = special.levelup_reward_gold41
reward_exp = special.levelup_reward_exp41
elseif lev >= 51 and lev <= 83 then
reward_gold = special.levelup_reward_gold51
reward_exp = special.levelup_reward_exp51
elseif lev >= 84 and lev <= 90 then
reward_gold = special.levelup_reward_gold51
reward_exp = special.levelup_reward_exp84
end
n = number(0, 99)
local i = 0
for i = 1, table.getn(reward_gold) do
wait()
end
end
local old_lev = lev
lev = lev + 1
if lev > 1 and lev < 90 and pc.level >= lev then
pc.setqf("buttonstate", 2)
makequestbutton(string.format(gameforge.levelup._130_makequestbutton, lev))
pc.setqf("current", lev)
pc.setqf("select", 1)
pc.setqf("remain",special.levelup_quest[lev][2])
setskin(NOWINDOW)
return
else
pc.setqf("current", 0)
q.done()
end
elseif pc.getqf("buttonstate") == 2 then
local lev = pc.getqf("current")
if lev == 0 then
q.done()
end
st[lev][sel*2]))
say(string.format(gameforge.levelup._27_say,special.levelup_quest[lev][5]))
if lev <= table.getn(special.levelup_reward1) then
raw_script(", "..item_name(special.levelup_reward1[lev][pc.job+1]))
elseif lev> table.getn(special.levelup_reward1) and lev < 26 then
raw_script(", "..locale.levelup.random_item)
end
if lev>=21 then
raw_script(", "..locale.gold)
end
raw_script(newline)
levelup.show_mob_pos(lev)
local s = select(gameforge.levelup._160_select)
if s == 1 then
setskin(NOWINDOW)
pc.setqf("remain",special.levelup_quest[lev][sel*2])
syschat(string.format(gameforge.levelup._170_chat, mob_name(special.levelup_quest[lev][sel*2-1])," ".. special.levelup_quest[lev][sel*2]))
q.set_title(string.format(gameforge.levelup._180_qSetTitle, mob_name(special.levelup_quest[lev][sel*2-1])))
q.set_counter(gameforge.levelup._250_say, pc.getqf("remain"))
q.start()
end
setskin(NOWINDOW)
clearmapsignal()
elseif pc.getqf("buttonstate") == 1 then
local s = pc.getqf("select")
if s == 0 then s = 1 end
local lev = pc.getqf("current")
if lev != 0 then
say_title(gameforge.levelup._140_sayTitle)
say(string.foest[lev][s*2]))
raw_script(string.format(gameforge.levelup._27_say,special.levelup_quest[lev][5]))
say("")
if lev <= table.getn(special.levelup_reward1) then
raw_script(","..item_name(special.levelup_reward1[lev][pc.job+1]))
elseif lev> table.getn(special.levelup_reward1) and lev < 26 then
raw_script(","..locale.levelup.random_item)
end
if lev>=21 then
raw_script(","..locale.gold)
end
raw_script(newline)
select(gameforge.locale.confirm)
setskin(NOWINDOW)
clearmapsignal()
end
setskin(NOWINDOW)
q.set_title(string.format(gameforge.levelup._180_qSetTitle, mob_name(special.levelup_quest[lev][s*2-1])))
q.set_counter(gameforge.levelup._250_say,pc.getqf("remain"))
q.start()
end
end
pc.setqf("buttonstate", -1)
end
when levelup begin
local lev = pc.getqf("current");
if lev == 0 then
lev = pc.level
if lev < 2 or lev > 90 then return end
pc.se
end
local lev = pc.getqf("current")
if lev != 0 and npc.race == (special.levelup_quest[lev][sel*2-1]) and pc.getqf("buttonstate") == -1 then
local remain = pc.getqf("remain") - 1
if remain <= 0 then
pc.setqf("remain", 0)
q.set_counter_value(0)
setskin(NOWINDOW)
makequestbutton(string.format(gameforge.levelup._50_sayTitle, lev))
pc.setqf("buttonstate", 3)
else
pc.setqf("remain", remain)
q.set_counter_value(remain)
end
end
end
function show_mob_pos(lev)
map_index = pc.get_map_index()
if map_index <= 0 then
test_chat(string.format(gameforge.levelup._210_chat, map_index))
return
end
if map_index > table.getn(special.lvq_map) then
test_chat(string.format(gameforge.levelup._220_chat, map_index..") > max("..table.getn(special.lvq_map)))
return
end
lev_quest_list = special.lvq_map[map_index]
if not lev_quest_list then
test_chat(string.format(gameforge.levelup._230_chat, map_index))
return
end
setmapcenterposition(200, 0)
end
end
end
P.S. I solve
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Dec 8
2
Top Posters For This Question
TeoDoR 1 post
dzekon 1 post
Popular Days
Dec 8 2015
2 posts
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now