Erori Questuri

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

Nivel 3
Mesaje: 378
Membru din: 27 Sep 2015, 20:02
Server: Al meu
Regat: Shinsoo
Aprecieri: 92  
Mulţumiri: 2  
 Contact:
Medalii

Salut. Am vrut sa bag un quest pentru magii G si P si apare urmatoarea eroare:

Acesta este questul:

Cod: Selectaţi tot

quest skill begin
       state start begin   
          when 20094.chat."Skilluri" begin
             say_title(mob_name(npc.get_race())..":")
             say("Buna "..pc.name)
             say("Te rog sa alegi ce abilitati doresti....[ENTER][ENTER][ENTER][ENTER]")
             local s = select ("M","G","P","Secundare","Iesire")
             if s==1 then
                sk=20
                skill = "M"
                limita=10
                bani=1000000
             elseif s==2 then
                sk=30
                skill = "G"
                limita=30
                bani=10000000
             elseif s==3 then
                sk=59
                skill = "P"
                limita=60
                bani=50000000
             elseif s==4 then
                sk=59
                skill = "Secundare"
                limita=90
                bani=50000000
             end
             say_title(mob_name(npc.get_race())..":")
             say("Buna "..pc.name)
             say("Tiai ales skilluri "..skill.."")
             say("Pentru a continua ai nevoie de ")
             say("Nivelul: "..limita.."[ENTER]Yang:"..bani.."")
             say("Doresti sa continui?[ENTER](c) Cruel")
             if select("Da","Nu")==1 then
                if pc.get_level() >=limita and pc.get_gold() >=  bani then
                   pc.changegold ( -bani )   
                   if skill=="Secundare" then
                      pc.set_skill_level(121 ,59)
                      pc.set_skill_level(122 ,2)
                      pc.set_skill_level(123 ,59)
                      pc.set_skill_level(124 ,59)
                      pc.set_skill_level(125 ,59)
                      pc.set_skill_level(126 ,59)
                      pc.set_skill_level(127 ,59)
                      pc.set_skill_level(128 ,59)
                      pc.set_skill_level(129 ,59)
                      pc.set_skill_level(130 ,30)
                      pc.set_skill_level(131 ,59)
                      pc.set_skill_level(132 ,59)
                      pc.set_skill_level(133 ,59)
                      pc.set_skill_level(134 ,59)
                      pc.set_skill_level(135 ,59)
                      pc.set_skill_level(136 ,59)
                      pc.set_skill_level(137 ,59)
                   elseif skill=="G" or skill=="M" or skill=="P" then
                      table.foreachi(special.active_skill_list[pc.get_job()+1][pc.get_skill_group()],function(r,skill) pc.set_skill_level(skill,sk) end)
                   end
                end
             elseif pc.get_level() < limita then
                say_title(mob_name(npc.get_race())..":")
                say("Buna "..pc.name)
                say("Tiai ales skilluri "..skill.."")
                say("Insa nu ai atins nivelul necesar ("..limita..")")
                say("Te rog sa te intorci cand atingi nivelul necesar.")
             elseif pc.get_gold() < bani then
                say_title(mob_name(npc.get_race())..":")
                say("Buna "..pc.name)
                say("Tiai ales skilluri "..skill.."")
                say("Insa nu ai suma necesara ("..bani..")")
                say("Te rog sa te intorci cand o sa ai suma necesara.")
             end
          end
       end
	end
Al doilea quest este unu cu creat iteme mod, la care tot la fel da eroare.
Poza:
Questul:

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
    state __COMPLETE__ begin
    end
end
Stie cineva sa le rezolve?
:-bd :-bd Chips :-bd :-bd
Afișează semnătura
Avatar utilizator
JustChips
Nivel 3

Nivel 3
Mesaje: 378
Membru din: 27 Sep 2015, 20:02
Server: Al meu
Regat: Shinsoo
Aprecieri: 92  
Mulţumiri: 2  
 Contact:
Medalii

Up. Careva ?

[ Postat de pe Android ] Imagine
:-bd :-bd Chips :-bd :-bd
Afișează semnătura
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

JustChips scrie:Salut. Am vrut sa bag un quest pentru magii G si P si apare urmatoarea eroare:

Acesta este questul:

Cod: Selectaţi tot

quest skill begin
       state start begin   
          when 20094.chat."Skilluri" begin
             say_title(mob_name(npc.get_race())..":")
             say("Buna "..pc.name)
             say("Te rog sa alegi ce abilitati doresti....[ENTER][ENTER][ENTER][ENTER]")
             local s = select ("M","G","P","Secundare","Iesire")
             if s==1 then
                sk=20
                skill = "M"
                limita=10
                bani=1000000
             elseif s==2 then
                sk=30
                skill = "G"
                limita=30
                bani=10000000
             elseif s==3 then
                sk=59
                skill = "P"
                limita=60
                bani=50000000
             elseif s==4 then
                sk=59
                skill = "Secundare"
                limita=90
                bani=50000000
             end
             say_title(mob_name(npc.get_race())..":")
             say("Buna "..pc.name)
             say("Tiai ales skilluri "..skill.."")
             say("Pentru a continua ai nevoie de ")
             say("Nivelul: "..limita.."[ENTER]Yang:"..bani.."")
             say("Doresti sa continui?[ENTER](c) Cruel")
             if select("Da","Nu")==1 then
                if pc.get_level() >=limita and pc.get_gold() >=  bani then
                   pc.changegold ( -bani )   
                   if skill=="Secundare" then
                      pc.set_skill_level(121 ,59)
                      pc.set_skill_level(122 ,2)
                      pc.set_skill_level(123 ,59)
                      pc.set_skill_level(124 ,59)
                      pc.set_skill_level(125 ,59)
                      pc.set_skill_level(126 ,59)
                      pc.set_skill_level(127 ,59)
                      pc.set_skill_level(128 ,59)
                      pc.set_skill_level(129 ,59)
                      pc.set_skill_level(130 ,30)
                      pc.set_skill_level(131 ,59)
                      pc.set_skill_level(132 ,59)
                      pc.set_skill_level(133 ,59)
                      pc.set_skill_level(134 ,59)
                      pc.set_skill_level(135 ,59)
                      pc.set_skill_level(136 ,59)
                      pc.set_skill_level(137 ,59)
                   elseif skill=="G" or skill=="M" or skill=="P" then
                      table.foreachi(special.active_skill_list[pc.get_job()+1][pc.get_skill_group()],function(r,skill) pc.set_skill_level(skill,sk) end)
                   end
                end
             elseif pc.get_level() < limita then
                say_title(mob_name(npc.get_race())..":")
                say("Buna "..pc.name)
                say("Tiai ales skilluri "..skill.."")
                say("Insa nu ai atins nivelul necesar ("..limita..")")
                say("Te rog sa te intorci cand atingi nivelul necesar.")
             elseif pc.get_gold() < bani then
                say_title(mob_name(npc.get_race())..":")
                say("Buna "..pc.name)
                say("Tiai ales skilluri "..skill.."")
                say("Insa nu ai suma necesara ("..bani..")")
                say("Te rog sa te intorci cand o sa ai suma necesara.")
             end
          end
       end
	end
Al doilea quest este unu cu creat iteme mod, la care tot la fel da eroare.
Poza:
Questul:

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
    state __COMPLETE__ begin
    end
end
Stie cineva sa le rezolve?
Mod_item:

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
    state __COMPLETE__ begin
    end
end
Skill:

Cod: Selectaţi tot

quest skill begin
	state start begin   
		when 20094.chat."Skilluri" begin
            say_title(mob_name(npc.get_race())..":")
            say("Buna "..pc.name)
            say("Te rog sa alegi ce abilitati doresti....[ENTER][ENTER][ENTER][ENTER]")
            local s = select ("M","G","P","Secundare","Iesire")
            if s==1 then
               sk=20
               skill = "M"
               limita=10
               bani=1000000
            elseif s==2 then
               sk=30
               skill = "G"
               limita=30
               bani=10000000
            elseif s==3 then
               sk=59
               skill = "P"
               limita=60
               bani=50000000
            elseif s==4 then
               sk=59
               skill = "Secundare"
               limita=90
               bani=50000000
            end
            say_title(mob_name(npc.get_race())..":")
            say("Buna "..pc.name)
            say("Tiai ales skilluri "..skill.."")
            say("Pentru a continua ai nevoie de ")
            say("Nivelul: "..limita.."[ENTER]Yang:"..bani.."")
            say("Doresti sa continui?[ENTER](c) Cruel")
            if select("Da","Nu")==1 then
				if pc.get_level() >=limita and pc.get_gold() >=  bani then
					pc.changegold ( -bani )   
					if skill=="Secundare" then
						pc.set_skill_level(121 ,59)
						pc.set_skill_level(122 ,2)
						pc.set_skill_level(123 ,59)
						pc.set_skill_level(124 ,59)
						pc.set_skill_level(125 ,59)
						pc.set_skill_level(126 ,59)
						pc.set_skill_level(127 ,59)
						pc.set_skill_level(128 ,59)
						pc.set_skill_level(129 ,59)
						pc.set_skill_level(130 ,30)
						pc.set_skill_level(131 ,59)
						pc.set_skill_level(132 ,59)
						pc.set_skill_level(133 ,59)
						pc.set_skill_level(134 ,59)
						pc.set_skill_level(135 ,59)
						pc.set_skill_level(136 ,59)
						pc.set_skill_level(137 ,59)
					elseif skill=="G" or skill=="M" or skill=="P" then
						table.foreachi(special.active_skill_list[pc.get_job()+1][pc.get_skill_group()],function(r,skill) pc.set_skill_level(skill,sk) end)
					end
				end
            elseif pc.get_level() < limita then
               say_title(mob_name(npc.get_race())..":")
               say("Buna "..pc.name)
               say("Tiai ales skilluri "..skill.."")
               say("Insa nu ai atins nivelul necesar ("..limita..")")
               say("Te rog sa te intorci cand atingi nivelul necesar.")
            elseif pc.get_gold() < bani then
               say_title(mob_name(npc.get_race())..":")
               say("Buna "..pc.name)
               say("Tiai ales skilluri "..skill.."")
               say("Insa nu ai suma necesara ("..bani..")")
               say("Te rog sa te intorci cand o sa ai suma necesara.")
            end
        end
    end
end
Pentru acest mesaj, [RaffaeL] for the post:
JustChips
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
JustChips
Nivel 3

Nivel 3
Mesaje: 378
Membru din: 27 Sep 2015, 20:02
Server: Al meu
Regat: Shinsoo
Aprecieri: 92  
Mulţumiri: 2  
 Contact:
Medalii

Mersi . O sa le încerc și revin cu edit.

[ Postat de pe Android ] Imagine EDIT: L-am incercat iar primul cu mod inca nu merge... Bag id-ul contului, bag codu itemului si dupa se inchide. (la id cont am bagat atat id,account_id,nume player,id logare ) dar nu vrea cu nimic si se inchide.
Oare de ce?
:-bd :-bd Chips :-bd :-bd
Afișează semnătura
Avatar utilizator
bogdilord123
Utilizator interzis !

Utilizator interzis !
Mesaje: 113
Membru din: 16 Sep 2015, 16:25
Server: Metin2 Tradition
Regat: Jinno
Aprecieri: 6  
Mulţumiri: 2  
Medalii

a mers?
Imagine
Afișează semnătura
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

JustChips scrie:Mersi . O sa le încerc și revin cu edit.

[ Postat de pe Android ] Imagine EDIT: L-am incercat iar primul cu mod inca nu merge... Bag id-ul contului, bag codu itemului si dupa se inchide. (la id cont am bagat atat id,account_id,nume player,id logare ) dar nu vrea cu nimic si se inchide.
Oare de ce?
Iti trebuie functia "mysql_query".
Adauga in questlib.lua:

Cod: Selectaţi tot

mysql_query = function(query) 
    local rt = io.open('CONFIG','r'):read('*all') 
    local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') 
    math.randomseed(os.time()) 
    local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} 
    os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi)   
    for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi); 
    for i = 2, table.getn(t) do table.foreach(t[i],function(a,b) 
        out[i-1]        = out[i-1] or {} 
        out[i-1][a]        = b 
        out[t[1][a]]    = out[t[1][a]] or {} 
        out[t[1][a]][i-1]    = b 
    end) end 
    return out 
end
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
Hades ✔
Utilizatorul Lunii Noiembrie

Utilizatorul Lunii Noiembrie
Mesaje: 3363
Membru din: 22 Aug 2016, 18:35
Server: Hades World
Aprecieri: 104  
Mulţumiri: 824  
Discord: Copiază ID
 Contact:
Medalii

Subiect Inactiv! Mutat în "Arhivă".
Hades World
(New) 2023 Version for Selling!
Discord: hades_97
Server Discord: https://discord.gg/YF27nkC

:flag_gb: :flag_ro: :flag_de: :flag_tr: :flag_pl: :flag_cz: :flag_fr: :flag_pt: :flag_nl: :flag_gr: :flag_hu: :flag_it: :flag_es:

Imagine
Afișează semnătura
Închis
Răspunsuri
5
Vizualizări
2044
Răspunsuri
1
Vizualizări
352
Răspunsuri
9
Vizualizări
667
Răspunsuri
6
Vizualizări
307

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

  • Informaţie
  • Cine este conectat

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