antiblock
Cyphriun
  • Chatbox

    You don't have permission to chat.
    Load More
NewWars

[Function]Npc.get_Job

4 posts in this topic

Boas Pessoal.


 


Precisei e vi que não existe esta função de origem nem na net pelo que pesquisei, fiz via lua, pois não achei necessidade de fazer via source


 


Aqui têm a função:



function npc_getjob()
locale job = -1

if not npc.is_pc()
return job
end

local oldVID = pc.select(npc.get_vid())
job = pc.get_job()
pc.select(oldVID)

return job
end

Cumprimentos.


Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega
	locale job = -1
locale? local

Share this post


Link to post
Share on other sites

locale? local

So notei isso quando compilei, e esquecime de editar aqui.

E falta o then apos o if not npc.is_pc()

 

Cumprimentos.

Share this post


Link to post
Share on other sites

Só 2 duvidas rápidas.

 

Ainda não percebi bem o que é uma function (É uma função criada para que possa ser utilizada em lua)?

 

Imaginando que eu crio uma Coluna na tabela Account chamada teste, e quero fazer uma quest em que quero que ele vá buscar o valor da coluna teste. É como uma function que tenho que ser eu a criar?

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