Quest:
Cerere quest select bonusuri
Buna ziua, as dori completarea questului care-l am, as vrea cand un player ia "cufar arme site" si l deschide, sa poata alege ce arma vrea, ce pietre vrea pe arma si ce bonusuri, as vrea doar bonusul sa poata sa l aleaga, nu ci valoarea, daca puteti sa mi dati doar baza, ca de restu ma ocup eu, mersi anticipat.
Quest:
Quest:
- [Mafia83]
-

- Mesaje: 777
- Membru din: 24 Feb 2016, 20:32
- Server: Metin2KGB
- Regat: Jinno
- Aprecieri: 279
- Mulţumiri: 2287
- Discord: Copiază ID
- Contact:
Salut, vezi dacă te ajuta asta.
Cod: Selectaţi tot
quest bonus_item begin --Crea_item/modare item direct din joc
state start begin
when 40004.use with pc.is_gm() begin
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say_albastru2("Fiind GM poti crea iteme in joc[ENTER] cu ajutorul acestui item[ENTER]. Sa incepem...")
say("")
say("Introdu vnum-ul itemului")
local y2 = tonumber(input())
if y2 == nil or y2 == 0 then
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("")
say_rosu("Nu pot bonusa un item inexistent. INTRODU UN VNUM!!")
say("")
say("")
return
else
r = {
{["p"] = 0, ["k"] = "Fara piatra"},
{["p"] = 28430, ["k"] = "Piatra Patrunzatoare"},
{["p"] = 28431, ["k"] = "Piatra Fatala"},
{["p"] = 28432, ["k"] = "Piatra Repetarii"},
{["p"] = 28433, ["k"] = "Piatra Anti-Razboinic"},
{["p"] = 28434, ["k"] = "Piatra Anti-Ninja"},
{["p"] = 28435, ["k"] = "Piatra Anti-Sura"},
{["p"] = 28436, ["k"] = "Piatra Anti-Saman"},
{["p"] = 28437, ["k"] = "Piatra Monstilor"},
{["p"] = 28438, ["k"] = "Piatra Eschivei"},
{["p"] = 28439, ["k"] = "Piatra Pitularii"},
{["p"] = 28440, ["k"] = "Piatra Magiei"},
{["p"] = 28441, ["k"] = "Piatra Vitalitatii"},
{["p"] = 28442, ["k"] = "Piatra Apararii"},
{["p"] = 28443, ["k"] = "Piatra Grabei"},
}
g = {}
for v in r do
table.insert(g, tostring(r[v]["k"]))
end
table.insert(g, "Renunta")
say_size(350, 385)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_albastru2("Hai sa punem niste pietre. Deci,")
say_albastru2("Alege prima piatra:")
say("")
u = select_table(g)
if u == table.getn(g) then
return
else
l1 = r[u]["p"]
k1 = r[u]["k"]
end
say_size(350, 385)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege a doua piatra:")
say("")
u = select_table(g)
if u == table.getn(g) then
return
else
l2 = r[u]["p"]
k2 = r[u]["k"]
end
say_size(350, 385)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege treia piatra:")
say("")
u = select_table(g)
if u == table.getn(g) then
return
else
l3 = r[u]["p"]
k3 = r[u]["k"]
end
s = {
{["b"] = 0, ["d"] = "Fara bonus"},
{["b"] = 1, ["d"] = "Max PV"},
{["b"] = 3, ["d"] = "Vitalitate (Vit)"},
{["b"] = 4, ["d"] = "Inteligenta (Int)"},
{["b"] = 5, ["d"] = "Putere (STR)"},
{["b"] = 6, ["d"] = "Dexteritate(DEX)"},
{["b"] = 7, ["d"] = "Viteza de atac"},
{["b"] = 8, ["d"] = "Viteza de miscare"},
{["b"] = 9, ["d"] = "Viteza Farmecului"},
{["b"] = 15, ["d"] = "Critica"},
{["b"] = 16, ["d"] = "Patrunzatoare"},
{["b"] = 17, ["d"] = "Tare Semi-Oameni"},
{["b"] = 29, ["d"] = "Aparare Sabie"},
{["b"] = 30, ["d"] = "Aparere doua maini"},
{["b"] = 31, ["d"] = "Aparare Pumnal"},
{["b"] = 32, ["d"] = "Aparare Clopot"},
{["b"] = 33, ["d"] = "Aparare evantai"},
{["b"] = 34, ["d"] = "Rezistenta la sageti"},
{["b"] = 35, ["d"] = "Rezistenta la foc"},
{["b"] = 37, ["d"] = "Rezistenta la Magie"},
{["b"] = 48, ["d"] = "Imun la necunostinta"},
{["b"] = 49, ["d"] = "Imun la incetinire"},
{["b"] = 50, ["d"] = "Imun la cazatura"},
{["b"] = 53, ["d"] = "Valoarea atacului"},
{["b"] = 54, ["d"] = "Aparare"},
{["b"] = 55, ["d"] = "Valoarea atacului magic"},
{["b"] = 56, ["d"] = "Aparare Magica"},
{["b"] = 59, ["d"] = "Tare impotriva razboinicilor"},
{["b"] = 60, ["d"] = "Tare impotriva Ninja"},
{["b"] = 61, ["d"] = "Tare impotriva Sura"},
{["b"] = 62, ["d"] = "Tare impotriva Shaman"},
{["b"] = 63, ["d"] = "Tare Impotriva monstrilor"},
{["b"] = 71, ["d"] = "Paguba competentei"},
{["b"] = 72, ["d"] = "Paguba Medie"},
{["b"] = 73, ["d"] = "Rezistenta la paguba competentei"},
{["b"] = 74, ["d"] = "Rezistenta la paguba medie"},
{["b"] = 78, ["d"] = "Aparare contra Razboinic"},
{["b"] = 79, ["d"] = "Aparare contra Ninja"},
{["b"] = 80, ["d"] = "Aparare contra Sura"},
{["b"] = 81, ["d"] = "Aparare contra Samanilor"},
}
t = {}
for i in s do
table.insert(t, tostring(s[i]["d"]))
end
table.insert(t, "Renunta")
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Si acum bonusurile:")
say_galben("Alege bonusul 1:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m = s[l]["b"]
n = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 1:")
p = tonumber(input())
end
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege bonusul 2:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m1 = s[l]["b"]
n1 = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 2:")
p1 = tonumber(input())
end
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege bonusul 3:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m2 = s[l]["b"]
n2 = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 3:")
p2 = tonumber(input())
end
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege bonusul 4:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m3 = s[l]["b"]
n3 = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 4:")
p3 = tonumber(input())
end
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege bonusul 5:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m4 = s[l]["b"]
n4 = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 5:")
p4 = tonumber(input())
end
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege bonusul 6:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m5 = s[l]["b"]
n5 = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 6:")
p5 = tonumber(input())
end
say_size(350, 375)
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say_galben("Alege bonusul 7:")
say("")
l = select_table(t)
if l == table.getn(t) then
return
else
m6 = s[l]["b"]
n6 = s[l]["d"]
say_title_center(string.format("%s:", item_name(string.format("%d", item.get_vnum()))))
say("")
say("Introdu valoarea bonusului 7:")
p6 = tonumber(input())
end
pc.give_item2_select(y2, 1)
item.set_value(0, m, p)
item.set_value(1, m1, p1)
item.set_value(2, m2, p2)
item.set_value(3, m3, p3)
item.set_value(4, m4, p4)
item.set_value(5, m5, p5)
item.set_value(6, m6, p6)
item.set_socket(0, l1)
item.set_socket(1, l2)
item.set_socket(2, l3)
end
end
end
end
[code] 40004 Inelul lui Eek 18 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 0 0 0 0
Am incercat sa le imbin, dar n am reusit, ma incurca faptul ca acolo alegi vnum-ul, si eu vreau vnum-ul de la item sa l dea direct questul, si sunt mai multe vnum-uri, adica mai multe arme, daca nu poate nimeni o sa mai incerc, mersi frumos
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 8 vizitatori
