Jump to content
  • 0

Lock Function


MORTE

Question

Somebody help me, I wanted to make a function to block (negotiation, play item on the ground, and buying or selling items) would I enable and disable the function through a quest I can not do more function, can anyone help me?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0
quest blockunblock begin
    state start begin
        when 9005.chat."Block  unBlock" begin
        if game.get_event_flag("blockunblock") == 1 then
        say("Sua conta se encontra bloqueada, deseja")
        say("Desbloquear ?")
        local s = select("Sim", "Não")
            if s == 1 then
            chat("Sua conta foi desbloquada")
            game.set_event_flag("blockunblock", 0)
            command("/o")
            return
        end -- if
        elseif s == 2 then return end --1º if
        if game.get_event_flag("blockunblock") == 0 then
        say("Sua conta encronta se desbloqueada, deseja")
        say("bloquea-la ? isso lhe dará mais segurança...")
        local ss = select("Sim", "Não")
            if ss == 1 then
            chat("Sua conta foi bloqueada com sucesso!")
            game.set_event_flag("blockunblock", 1)
            command("/o")
        return
    end
        elseif ss == 2 then
    return
    end -- if
end --1º if
end
end
says : command not found

https://metin2.download/picture/07bIA62g9YFf83CILDIaA2knu3k3YGVx/.png

and if the GM and do "/ o" appears and if you click that picture out.

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

  • 0
  • Bronze

I read at one post that the command /o is for that,try that

 

/o turn the gm char into watching mode (same as in the watch mode from the guild war)

yes it does do what he want + invisible unable to attack

Link to comment
Share on other sites

  • 0
quest blockunblock begin
    state start begin
        when 9005.chat."Block  unBlock" begin
        if game.get_event_flag("blockunblock") == 1 then
        say("Sua conta se encontra bloqueada, deseja")
        say("Desbloquear ?")
        local s = select("Sim", "Não")
            if s == 1 then
            chat("Sua conta foi desbloquada")
            game.set_event_flag("blockunblock", 0)
            command("/o")
            return
        end -- if
        elseif s == 2 then return end --1º if
        if game.get_event_flag("blockunblock") == 0 then
        say("Sua conta encronta se desbloqueada, deseja")
        say("bloquea-la ? isso lhe dará mais segurança...")
        local ss = select("Sim", "Não")
            if ss == 1 then
            chat("Sua conta foi bloqueada com sucesso!")
            game.set_event_flag("blockunblock", 1)
            command("/o")
        return
    end
        elseif ss == 2 then
    return
    end -- if
end --1º if
end
end
says : command not found

https://metin2.download/picture/07bIA62g9YFf83CILDIaA2knu3k3YGVx/.png

and if the GM and do "/ o" appears and if you click that picture out.

 

Use pc.setqf instead of game.set_event_flag because the game.set_event_flag it's like a global variable

 

 

 

I read at one post that the command /o is for that,try that

 

/o turn the gm char into watching mode (same as in the watch mode from the guild war)

yes it does do what he want + invisible unable to attack

 

So I guess the /o means /observe right? So you need only one little modification in the source to make it work right?

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

  • 0
  • Bronze

 

quest blockunblock begin
    state start begin
        when 9005.chat."Block  unBlock" begin
        if game.get_event_flag("blockunblock") == 1 then
        say("Sua conta se encontra bloqueada, deseja")
        say("Desbloquear ?")
        local s = select("Sim", "Não")
            if s == 1 then
            chat("Sua conta foi desbloquada")
            game.set_event_flag("blockunblock", 0)
            command("/o")
            return
        end -- if
        elseif s == 2 then return end --1º if
        if game.get_event_flag("blockunblock") == 0 then
        say("Sua conta encronta se desbloqueada, deseja")
        say("bloquea-la ? isso lhe dará mais segurança...")
        local ss = select("Sim", "Não")
            if ss == 1 then
            chat("Sua conta foi bloqueada com sucesso!")
            game.set_event_flag("blockunblock", 1)
            command("/o")
        return
    end
        elseif ss == 2 then
    return
    end -- if
end --1º if
end
end
says : command not found

https://metin2.download/picture/07bIA62g9YFf83CILDIaA2knu3k3YGVx/.png

and if the GM and do "/ o" appears and if you click that picture out.

 

Use pc.setqf instead of game.set_event_flag because the game.set_event_flag it's like a global variable

 

 

 

I read at one post that the command /o is for that,try that

 

/o turn the gm char into watching mode (same as in the watch mode from the guild war)

yes it does do what he want + invisible unable to attack

 

So I guess the /o means /observe right? So you need only one little modification in the source to make it work right?

 

 

i think so

a well done modification should do this but its impossible to edit this commend (i think that you already know this)

cz you will creat by this another work for your self (the quest editing)

so making a new commend will be the solution for this it will be like copy past edit (delete more the edit) and here you are done

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

  • 0
  • Bronze

Why he should pay?It could be done in 2-3 minutes just change the rights of the command "observe" in cmd.cpp

 

for ex.

	{ "observer",	do_observer,		0,			POS_DEAD,	GM_IMPLEMENTOR	},

to

	{ "observer",	do_observer,		0,			POS_DEAD,	GM_PLAYER	},

This is too much for 2-3 min

Link to comment
Share on other sites

  • 0
  • Bronze

Hmmmm OK

So with game 2089M isn't possible work with this system?

 

no it is possible however you need to buy it cz no one still use r2089 any more (expect for devloped core and those ppl sure jumped to r40k cz the src is public)

Link to comment
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


×
×
  • 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.