Salutare , am o problema am introdus un quest modare iteme in joc totul ok am creat in quest fisier modare_item.quest iam dat aprobare 7777 am mers in putty am scris./qc etc totul ok mia scris asta
State : start
WHEN : 40003.use
with pc . is_gm (
unde 40003 ar trb sa fie itemul creat de quest nu dar in joc acel item nu face nimik! un ajutor sunt incepator
Probleme implementare quest
- MariusExygo
-

- Mesaje: 2063
- Membru din: 09 Mar 2014, 15:47
- Server: WildFantasy
- Regat: Jinno
- Aprecieri: 156
- Mulţumiri: 226
- Rezolvări prob.: 4
- Discord: Copiază ID
- Contact:
nu iti trebuie permisiuni pt quest, cum a zis si mai sus, iti trebuie type 18 (proto pe sql) sau ITEM_QUEST (txt)
- MariusExygo
-

- Mesaje: 2063
- Membru din: 09 Mar 2014, 15:47
- Server: WildFantasy
- Regat: Jinno
- Aprecieri: 156
- Mulţumiri: 226
- Rezolvări prob.: 4
- Discord: Copiază ID
- Contact:
In item proto la itemul ala 40003 sau cat qi zis tu acolo
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 0din cate vad tu ai pus aici item din navicat si zici ca nu iti merge, dupa mine zic ca iti citeste din txt
dute in game->locatia unde ai ch-urile->db si acolo ai doua fisiere item_names.txt si item_proto.txt
deschizi item_proto.txt cu editor care vrei tu si inlocuesti toata linia de la item 40004 cu asta
apoi scoti item_names.txt si item_proto.tx din locatia respectiva in locatia unde ai dump_proto, le selectezi pe ambele si le tragi pe acel dump_proto.exe
ce rezulta de la dump_proto copiezi in locale/xx, impachetezi locale la loc locale
dai reboot la server dupa ce ai facut toate astea si la urma cand pornesti server ar trebui sa mearga
dute in game->locatia unde ai ch-urile->db si acolo ai doua fisiere item_names.txt si item_proto.txt
deschizi item_proto.txt cu editor care vrei tu si inlocuesti toata linia de la item 40004 cu asta
Cod: Selectaţi tot
40004 이크의 반지 ITEM_QUEST 0 1 NONE NONE NONE NONE 0 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0ce rezulta de la dump_proto copiezi in locale/xx, impachetezi locale la loc locale
dai reboot la server dupa ce ai facut toate astea si la urma cand pornesti server ar trebui sa mearga
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Google [Bot] și 27 vizitatori




