Jump to content

Guild account problem


Recommended Posts

Hey guys i have a problem with this quest

quest gildenkonto begin
state start begin
function get_money()
return tonumber(mysql_query("select gold from player.guild where name = '".. guild.get_name() .."';")[1][1]) or 0
end
when 11000.chat."Gildenkonto" or 11002.chat."Gildenkonto" or 11004.chat."Gildenkonto" with pc.has_guild() begin
say_title("Gildenkonto")
if not pc.is_guild_master() then
say_reward("Nur der Gildenleader kann auf das[ENTER]Konto zugreifen")
say()
return
else
say_reward("Guthaben: ".. gildenkonto.get_money())
say()
local s = select("Geld abheben","Geld einzahlen","Abbrechen")
if s == 3 then return
elseif s == 1 then
say_title("Gildenkonto")
say("Wieviel Geld möchtest du abheben?")
say()
local m = tonumber(input())
if m < 1 or m == nil then return end
if m > gildenkonto.get_money() then
return syschat("Es ist nicht genügend Yang vorhanden")
end
if pc.get_money()+m > 1999999999 then
return syschat("Du hast zu viel Yang bei dir")
end
pc.change_money(m)
mysql_query("update player.guild set gold = gold - ".. m .." where name = '".. guild.get_name() .."';")
else
say_title("Gildenkonto")
say("Wieviel Geld möchtest du einzahlen?")
say()
local m = tonumber(input())
if m < 1 or m == nil then return end
if m > pc.get_money() then
return syschat("Du hast nicht genügend Yang")
end
pc.change_money(-m)
mysql_query("update player.guild set gold = gold - ".. m .. " where name = '".. guild.get_name() .."';")
end
end
end
end
end

if i click on Gildenkonto nothing happens and it just say Gildenkonto and Ok

6PRTP.jpg

 

my syserr says only this

SYSERR: Feb 9 17:40:37 :: RunState: LUA_ERROR: locale/germany/quest/object/state/gildenkonto:1: attempt to index field `?' (a nil value)


SYSERR: Feb 9 17:40:37 :: WriteRunningStateToSyserr: LUA_ERROR: quest gildenkonto.start enter

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.