Jump to content
metin2dev
  • 0
Sign in to follow this  
Traceur3RUN

open Need Quest Function get_text from account

Question

hey, i need a new Function to load from account.account field: some_text

 

can someone help? 

 

and use on quest like

local get_text = pc.get_some_text

 

if get_text = "koxmen" then

else

end

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0
3 godziny temu, WeedHex napisał:

Use a query lol

give me code, because i try but this doesn't work

i think need mysql_select db etc im weak on lua

Share this post


Link to post
Share on other sites
  • 0

local ID = pc.get_player_id()

local get_text = mysql_query("SELECT text FROM account.account WHERE 'id' = ID;")

say(tostring(get_text))

 

 

Let's try, i wrote it in 2 min.

Share this post


Link to post
Share on other sites
  • 0
1 godzinę temu, WeedHex napisał:

local ID = pc.get_player_id()

local get_text = mysql_query("SELECT text FROM account.account WHERE 'id' = ID;")

say(tostring(get_text))

 

 

Let's try, i wrote it in 2 min.

error on compile

Share this post


Link to post
Share on other sites
  • 0

Does LUA have mysql_query() function? Or it is a function from a source? I can't find and I've never been using this.

What about this?

Share this post


Link to post
Share on other sites
  • 0
34 minuty temu, Chyu ^^ napisał:

Does LUA have mysql_query() function? Or it is a function from a source? I can't find and I've never been using this.

What about this?

im weak on lua...

i don't know how create it why im asking there lol

Share this post


Link to post
Share on other sites
  • 0
2 godziny temu, Chyu ^^ napisał:

Oh, yea. I found it in functions list.

Post error during compilation.

Ok now no error but this doesnt work. Do you test it? Maybe you have it on questlib.

Share this post


Link to post
Share on other sites
  • 0
Dnia 18.05.2018 o 17:43, Syreldar napisał:

use mysql_direct_query. Works like a charm.

yes if you have a function or edit source....

 

bump

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, Traceur3RUN said:

yes if you have a function or edit source....

 

bump

If you don't edit source in 2018, what do you expect to accomplish? Ofc it's needed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×