- Mesaj
- 394
- Çözümler
- 11
- Beğeni
- 131
- Puan
- 499
- Ticaret Puanı
- 0
Lua (Quest):
quest goldbar begin
state start begin
function check_item(vnum)
if pc.count_item(vnum) < 1 then return false end
return true
end
function check_pc()
if pc.is_busy() == true then return false end
return true
end
function check_gold(value)
if pc.get_gold() + value >= 2000000000 then return false end
return true
end
when 80003.use or 80004.use or 80005.use or 80006.use or 80007.use or 80009.use or 80010.use begin
if goldbar.check_item(item.get_vnum()) == false then
syschat("Envanterinde yeterli miktarda külçe bulamadım.")
elseif goldbar.check_pc() == false then
syschat("Şu anda meşgul görünüyorsun.")
elseif item.get_value(0) < 0 then
syschat("Bilinmeyen bir hata oluştu lütfen yöneticiye bildirin.")
elseif goldbar.check_gold(item.get_value(0)) == false then
syschat("Envanterinde çok fazla Yang taşıyorsun.")
else
pc.give_gold(item.get_value(0))
if item.get_count() > 1 then
item.set_count(item.get_count()-1)
else
item.remove()
end
end
end
end
end
merhaba arkadaşlar bu queste herhangi bir item kodu olur sağ tıklandığında won vermesini istiyorum aynı şekil yapabilcek birisi varmı questlerle alakam hiç yokturda