Quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
t4zu
Nivel 3

Nivel 3
Mesaje: 476
Membru din: 16 Iul 2015, 21:31
Server: Doar testez
Regat: Chunjo
Aprecieri: 94  
Mulţumiri: 44  
 Contact:
Medalii

Salut tuturor. Pornind de la questul de mai jos ... ma ajutati va rog mult cu ceva? De fiecare daca dupa ce este folosit, sa trimita automat un log de format .txt in urmatoarea locatie din mysql: "/usr/home/game/share/locale/romania/quest/mod_report" ,si daca se poate sa apara ce bonusuri au fost puse pe item.

SAU (mai simplu) sa ceara o parola inainte de a finaliza actiunea, o parola pusa de mine. Multumesc! Am vazut undeva ca se poate, dar nu stiu quest-ul.

Multumesc mult!

Cod: Selectaţi tot

quest mod_item begin
    state start begin
        when 40002.use with pc . is_gm ( ) begin
            say_title("Iteme mod:")
            say("")
            ---                                                   l
            say("Cu acest item poti creea iteme")
            say("mod.")
            say("")
            say("Nu abuzati de el !")
            say("Pot aparea buguri!")
            say("")
            local s = select("O sa creez modul", "Inchide")
            if s==2 then
                return
            else
                say("Introdu ID-ul playerului:")
                local id = tonumber(input())
                say("Introdu id-ul item-ului:")
                local item = tonumber(input())
                mysql_query("INSERT INTO player.item (owner_id, window, pos, count, vnum)   VALUES  ('".. id .."', 'MALL', '34', '1', '".. item .."')");
                say("Introdu prima piatra:")
                local p1 = tonumber(input())
                mysql_query("UPDATE player.item SET socket0='".. p1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu a doua piatra:")
                local p2 = tonumber(input())
                mysql_query("UPDATE player.item SET socket1='".. p2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu a treia piatra:")
                local p3 = tonumber(input())
                mysql_query("UPDATE player.item SET socket2='".. p3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul primului bonus:")
                local b1 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype0='".. b1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina primul bonus?")
                local vb1 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue0='".. vb1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 2:")
                local b2 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype1='".. b2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 2?")
                local vb2 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue1='".. vb2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 3:")
                local b3 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype2='".. b3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 3?")
                local vb3 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue2='".. vb3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 4:")
                local b4 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype3='".. b4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 4?")
                local vb4 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue3='".. vb4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 5:")
                local b5 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype4='".. b5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 5?")
                local vb5 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue4='".. vb5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 6:")
                local b6 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype5='".. b6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 6?")
                local vb6 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue5='".. vb6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 7:")
                local b7 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype6='".. b7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 7?")
                local vb7 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue6='".. vb7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
            end
            say_title("Item mod:")
            say("")
            ---                                                   l
            say("Item-ul a fost creeat cu succes !")
            say("Uitate in item shop !.")
            say("")
            say("")
            syschat("Uitate in item_shop dupa itemul mod.")
        end
    end
end
Avatar utilizator
Gabon
Nivel 1

Nivel 1
Mesaje: 102
Membru din: 29 Ian 2015, 11:31
Server: MindQuota.com
Regat: Shinsoo
Aprecieri: 3  
Mulţumiri: 2  
 Contact:
Medalii

Cod: Selectaţi tot

quest mod_item begin
    state start begin
        when 40002.use with pc . is_gm ( ) begin
            say_title("Iteme mod:")
            say("")
            ---                                                   l
            say("Cu acest item poti creea iteme")
            say("mod.")
            say("")
            say("Nu abuzati de el !")
            say("Pot aparea buguri!")
            say("")
            local s = select("O sa creez modul", "Inchide")
            if s==2 then
                return
            else
				say("")
				say_gm("Parolã:")
				say("")
				local sname = input()
				if sname == "parola" then
                say("Introdu ID-ul playerului:")
                local id = tonumber(input())
                say("Introdu id-ul item-ului:")
                local item = tonumber(input())
                mysql_query("INSERT INTO player.item (owner_id, window, pos, count, vnum)   VALUES  ('".. id .."', 'MALL', '34', '1', '".. item .."')");
                say("Introdu prima piatra:")
                local p1 = tonumber(input())
                mysql_query("UPDATE player.item SET socket0='".. p1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu a doua piatra:")
                local p2 = tonumber(input())
                mysql_query("UPDATE player.item SET socket1='".. p2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu a treia piatra:")
                local p3 = tonumber(input())
                mysql_query("UPDATE player.item SET socket2='".. p3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul primului bonus:")
                local b1 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype0='".. b1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina primul bonus?")
                local vb1 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue0='".. vb1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 2:")
                local b2 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype1='".. b2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 2?")
                local vb2 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue1='".. vb2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 3:")
                local b3 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype2='".. b3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 3?")
                local vb3 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue2='".. vb3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 4:")
                local b4 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype3='".. b4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 4?")
                local vb4 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue3='".. vb4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 5:")
                local b5 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype4='".. b5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 5?")
                local vb5 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue4='".. vb5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 6:")
                local b6 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype5='".. b6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 6?")
                local vb6 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue5='".. vb6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 7:")
                local b7 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype6='".. b7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 7?")
                local vb7 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue6='".. vb7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
            end
            say_title("Item mod:")
            say("")
            ---                                                   l
            say("Item-ul a fost creeat cu succes !")
            say("Uitate in item shop !.")
            say("")
            say("")
            syschat("Uitate in item_shop dupa itemul mod.")
        end
    end
end
Afișează semnătura
Avatar utilizator
t4zu
Nivel 3

Nivel 3
Mesaje: 476
Membru din: 16 Iul 2015, 21:31
Server: Doar testez
Regat: Chunjo
Aprecieri: 94  
Mulţumiri: 44  
 Contact:
Medalii

Gabon scrie:

Cod: Selectaţi tot

quest mod_item begin
    state start begin
        when 40002.use with pc . is_gm ( ) begin
            say_title("Iteme mod:")
            say("")
            ---                                                   l
            say("Cu acest item poti creea iteme")
            say("mod.")
            say("")
            say("Nu abuzati de el !")
            say("Pot aparea buguri!")
            say("")
            local s = select("O sa creez modul", "Inchide")
            if s==2 then
                return
            else
				say("")
				say_gm("Parolã:")
				say("")
				local sname = input()
				if sname == "parola" then
                say("Introdu ID-ul playerului:")
                local id = tonumber(input())
                say("Introdu id-ul item-ului:")
                local item = tonumber(input())
                mysql_query("INSERT INTO player.item (owner_id, window, pos, count, vnum)   VALUES  ('".. id .."', 'MALL', '34', '1', '".. item .."')");
                say("Introdu prima piatra:")
                local p1 = tonumber(input())
                mysql_query("UPDATE player.item SET socket0='".. p1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu a doua piatra:")
                local p2 = tonumber(input())
                mysql_query("UPDATE player.item SET socket1='".. p2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu a treia piatra:")
                local p3 = tonumber(input())
                mysql_query("UPDATE player.item SET socket2='".. p3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul primului bonus:")
                local b1 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype0='".. b1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina primul bonus?")
                local vb1 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue0='".. vb1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 2:")
                local b2 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype1='".. b2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 2?")
                local vb2 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue1='".. vb2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 3:")
                local b3 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype2='".. b3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 3?")
                local vb3 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue2='".. vb3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 4:")
                local b4 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype3='".. b4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 4?")
                local vb4 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue3='".. vb4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 5:")
                local b5 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype4='".. b5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 5?")
                local vb5 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue4='".. vb5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 6:")
                local b6 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype5='".. b6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 6?")
                local vb6 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue5='".. vb6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Introdu id-ul bonusului 7:")
                local b7 = tonumber(input())
                mysql_query("UPDATE player.item SET attrtype6='".. b7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
                say("Cat sa contina bonusul 7?")
                local vb7 = tonumber(input())
                mysql_query("UPDATE player.item SET attrvalue6='".. vb7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
            end
            say_title("Item mod:")
            say("")
            ---                                                   l
            say("Item-ul a fost creeat cu succes !")
            say("Uitate in item shop !.")
            say("")
            say("")
            syschat("Uitate in item_shop dupa itemul mod.")
        end
    end
end
Salut, e modificat? O sa ceara o parola inainte de finalizarea actiunii?
Avatar utilizator
C.Mihai
Nivel 9

Nivel 9
Mesaje: 1875
Membru din: 26 Mai 2014, 13:57
Server: xGamer
Regat: Chunjo
Aprecieri: 24  
Mulţumiri: 7  
 Contact:
Medalii

Subiect INACTIV !
Arhivat :-h !
Nu iti poti trai viata pentru altii. Trebuie sa faci ceea ce e bine pentru tine, chiar daca astfel ii ranesti pe cei pe care ii iubesti. – Nicholas Sparks
Imagine
Cea mai bună firmă de HOSTING !
Afișează semnătura
Închis

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 78 vizitatori