quest cufar_ucenic begin
state __FUNC__ begin
function check_and_give(tabel, numar)
if pc.getqf("cufar_ucenic") != numar then
syschat(" Nu poti deschide acest cufar.")
return
else
local slots = pc.get_empty_inventory_count()
if slots < table.getn(tabel) then
local slots_dif = math.abs(slots-table.getn(tabel))
local spatii
if slots_dif == 1 then
spatii = "un slot liber"
else
spatii = ""..slots_dif.." sloturi libere"
end
syschat(" Ai nevoie de "..spatii.." in inventar pentru a deschide acest cufar.")
else
item.remove()
for i = 1, table.getn(tabel) do
local vnum = tabel[1]
local count = tabel[2]
pc.give_item2(vnum, count)
end
pc.setqf("cufar_ucenic", numar+1)
end
end
end
end
state start begin
when 50187.use with pc.get_level() >= 1 begin
local cuf_1 = {
{50188, 1},
{72701, 1},
{27105, 40},
{27102, 40},
{71045, 2},
{71044, 2},
}
cufar_ucenic.check_and_give(cuf_1, 0)
end
when 50188.use with pc.get_level() >= 10 begin
local cuf_2 = {
{50189, 1},
{76024, 20},
{71027, 5},
{71029, 5},
{71045, 5},
{71044, 5},
}
cufar_ucenic.check_and_give(cuf_2, 1)
end
when 50189.use with pc.get_level() >= 20 begin
local cuf_3 = {
{50190, 1},
{76024, 30},
{76023, 100},
{71030, 5},
{71028, 5},
{71045, 10},
{71044, 10},
{25040, 30},
}
cufar_ucenic.check_and_give(cuf_3, 2)
end
when 50190.use with pc.get_level() >= 30 begin
local cuf_4 = {
{76024, 40},
{76023, 100},
{70322, 15},
{25042, 5},
{25040, 40},
{70024, 5},
{72724, 10},
{72728, 10},
}
cufar_ucenic.check_and_give(cuf_4, 3)
end
end
end
[Quest]Cufar Ucenic FARA BUG !
- 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:
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 6 vizitatori
