am modificat in sql, dar la orice item imi da intre 1-50yang/item

Cod: Selectaţi tot
quest warehouse begin
state start begin
when 9005.click begin
if pc.getqf("pw") == 0 then
say_title ("Administrator depozit:")
say("Vrei sa folosesti depozitul?")
say("Trebuie sa platesti ceva pentru folosirea acestuia.")
say("Azi sunt intr-o pasa buna asa de buna,")
say("asa ca-ti fac o oferta: 50000 de yang. Ce zici?")
wait()
if pc.get_gold() < 50000 then
say_title("Administrator depozit:")
say("Cum asa ? Nu ai destul yang?")
say("Atunci intoarce-te mai tarziu cand ")
say("ai facut rost de destui yang.")
return
end
say_title("Administrator depozit:")
say("Se pare ca ai destui bani pentru a")
say("putea folosi depozitul de iteme.")
local s = select("Confirm", "M-am razgandit")
if s == 2 then
return
end
say_title("Administrator depozit:")
say("Multumesc pentru deschiderea depozitului.")
say("Ca bonus ai primit si un cont bancar unde")
say("iti poti depozita yang-ul. (maxim 2 miliarde).")
say("")
say_reward("Parola este: 000000.")
pc.change_gold(-50000)
game.set_safebox_level(1)
pc.setqf("pw", 1)
elseif pc.getqf("pw") == 1 then
say_title("Administrator depozit:")
say("Cu ce te pot ajuta?")
local f = select ("Deschide depozitul" , "Deschide depozitul magazinului de item-uri", "Cumpara lingouri de Aur sau Argint" , "Cont bancar" , "Inchide")
if f == 1 then
game.open_safebox()
setskin(NOWINDOW)
elseif f == 2 then
game.open_mall()
setskin(NOWINDOW)
elseif f == 3 then
npc.open_shop()
setskin(NOWINDOW)
elseif f == 4 then
say_title("Banca Metin2")
say("Banii tai sunt in siguranta in banca noastra.")
say("Momentan intr-un cont poti tine doar 2kkk yang.")
local str = select("Soldul curent", "Depune bani", "Retrage bani" , "Renunta")
if str == 1 then
if pc.getqf("gold_bank") > 0 then
say_title("Sold curent")
say(string.format("Ai %s yang in banca noastra.", pc.getqf("gold_bank")))
else
say_title("Sold curent")
say("Nu ai yang in banca noastra.")
end
elseif str == 2 then
say_title("Depunere credit")
say(string.format("Ai in inventar %s yang.", pc.get_gold()))
say("Alege cat yang doresti sa depui in contul bancar.")
local yang = tonumber(input(""))
if pc.get_gold() < yang then
say_title("A intervenit o problema")
say("Ne pare rau. Nu aveti suma specificata pentru a face depunerea.")
elseif pc.get_gold() >= yang then
if pc.getqf("gold_bank") + yang < 2000000000 then
pc.change_gold(-yang)
pc.setqf("gold_bank", tonumber(pc.getqf("gold_bank") + yang))
say_title("Tranzactie efectuata cu succes")
say(string.format("%s yang au fost transferati in contul bancar.", yang))
else
say_title("A intervenit o problema")
say("Poti depozita in contul bancar maxim 2.000.000.000 Yang.")
end
end
elseif str == 3 then
if pc.getqf("gold_bank") > 0 then
say_title("Extrage bani din contul bancar")
say("Cat Yang doriti sa extrageti din banca?")
local get_money = tonumber(input(""))
if pc.getqf("gold_bank") < get_money then
say_title("A intervenit o eroare")
say("Nu aveti suma respectiva depozitata.")
else
if pc.get_gold() + get_money < 2000000000 then
say_title("Tranzactie efectuata cu succes")
pc.changegold(get_money)
pc.setqf("gold_bank", tonumber(pc.getqf("gold_bank") - get_money))
say(string.format("Ati extras cu succes %s yang.", get_money))
else
say_title("Tranzactie efectuata cu succes")
say("Pentru a evita Yang bug-ul nu poti face aceasta tranzactie.")
say("Cu suma pe care ai fi extraso ai fi trecut de 2 miliarde de yang.")
end
end
else
say_title("A intervenit o eroare")
say("Nu ai bani depozitati in banca.")
end
end
end
end
end
end
end
Utilizatori ce ce navighează pe acest forum: Baidu [Spider], sanducatalin1 și 38 vizitatori