Problema skill-uri, va rog...

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

Membru Club
Mesaje: 2655
Membru din: 12 Dec 2013, 23:37
Server: Miraj2-Online
Regat: Jinno
Aprecieri: 520  
Mulţumiri: 987  
Discord: Copiază ID
 Contact:
Medalii

*Problemă: Nu merg skill-urile
Tipologie server(PvM / PvP):
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:
*Syserr:
Poză:
*Detalii suplimentare: Pai, dau pe invatatori cand apare sageata aia, sageata dispare, mai trebuie sa apas de inca 2 ori si abia apoi apare meniu cu "The education". Dau pe el si nimic ...
Iar in syserr, apare asta :
SYSERR: May 31 20:17:54 :: regen_load: No mob data by vnum 9020
SYSERR: May 31 20:17:54 :: SpawnMob: SpawnMob: no mob data for vnum 9020
SYSERR: May 31 20:18:50 :: RunState: LUA_ERROR: [string "skill_group"]:2: attempt to index global `skill_group_with_wolfjob' (a nil value)
SYSERR: May 31 20:18:50 :: WriteRunningStateToSyserr: LUA_ERROR: quest skill_group.run click
SYSERR: May 31 20:18:52 :: RunState: LUA_ERROR: [string "skill_group"]:2: attempt to index global `skill_group_with_wolfjob' (a nil value)
SYSERR: May 31 20:18:52 :: WriteRunningStateToSyserr: LUA_ERROR: quest skill_group.run click
SYSERR: May 31 20:19:01 :: RunState: LUA_ERROR: [string "skill_group"]:2: attempt to index global `skill_group_with_wolfjob' (a nil value)
SYSERR: May 31 20:19:01 :: WriteRunningStateToSyserr: LUA_ERROR: quest skill_group.run click
SYSERR: May 31 20:19:04 :: SpawnMob: SpawnMob: no mob data for vnum 9020
SYSERR: May 31 20:19:05 :: RunState: LUA_ERROR: [string "skill_group"]:2: attempt to index global `skill_group_with_wolfjob' (a nil value)
SYSERR: May 31 20:19:05 :: WriteRunningStateToSyserr: LUA_ERROR: quest skill_group.run click
SYSERR: May 31 20:20:04 :: SpawnMob: SpawnMob: no mob data for vnum 9020
SYSERR: May 31 20:21:04 :: SpawnMob: SpawnMob: no mob data for vnum 9020
SYSERR: May 31 20:21:32 :: Process: SEQUENCE 42e5a000 mismatch 0xaf != 0x64 header 254
SYSERR: May 31 20:21:32 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
[254 : 0xaf]
Va rog eu mult, stie cineva vreo rezolvare? Sau cumva sa bag de la 0 sistemul, sau alt sistem care sa nu ceara skill-urile de la invatatori...Pls, chiar nu stiu ce sa-i mai fac si e grav daca nu se pot lua skill-urile...
Avatar utilizator
demonika1996
Nivel 2

Nivel 2
Mesaje: 277
Membru din: 31 Oct 2014, 00:07
Server: Nu ms!
Regat: Chunjo
Aprecieri: 85  
Mulţumiri: 8  
Discord: Copiază ID
 Contact:
Medalii

Salut iti recomand sa iei alt quest si dupa care sterge tot din skill_group1_1...respectiv skill_group3_8 acestia sunt invatatorii ai server cu lycan implementat ? vad ca spune despre "skill_group_with_wolfjob" maybe nu ai quest cu skill-uri si pentru lycan daca e
1 e problema la index pentru ca in quest ai index la alt npc(poate nu exista acel npc din quest) pentru skill-uri lycan
2 pune quest-ul aici sa vedem
Avatar utilizator
SkyLine
Membru Club

Membru Club
Mesaje: 2655
Membru din: 12 Dec 2013, 23:37
Server: Miraj2-Online
Regat: Jinno
Aprecieri: 520  
Mulţumiri: 987  
Discord: Copiază ID
 Contact:
Medalii

demonika1996 scrie:Salut iti recomand sa iei alt quest si dupa care sterge tot din skill_group1_1...respectiv skill_group3_8 acestia sunt invatatorii ai server cu lycan implementat ? vad ca spune despre "skill_group_with_wolfjob" maybe nu ai quest cu skill-uri si pentru lycan daca e
1 e problema la index pentru ca in quest ai index la alt npc(poate nu exista acel npc din quest) pentru skill-uri lycan
2 pune quest-ul aici sa vedem

Uite aici quest-ul :
-------------------------------
-- SERVERFILE BY Randy --
-- Platforma : r40k --
-- Skype: alexhacman --
-------------------------------

quest skill_group begin
state start begin
when login or levelup with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin
set_state("run")
end
end

state run begin
when login with pc.get_skill_group() != 0 begin
set_state("start")
end

when letter with pc.get_skill_group() == 0 begin
send_letter("The education")

local job = pc.get_job()
if job == 0 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher1", v, mob_name(20300))
end

local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher2", v, mob_name(20301))
end
elseif job == 1 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher3", v, mob_name(20302))
end

local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher4", v, mob_name(20303))
end
elseif job == 2 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher5", v, mob_name(20304))
end

local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher6", v, mob_name(20305))
end
elseif job == 3 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher7", v, mob_name(20306))
end

local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher8", v, mob_name(20307))
end
elseif job == 4 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher9", v, mob_name(20402))
end
end
end

when leave begin
target.delete("teacher1")
target.delete("teacher2")
target.delete("teacher3")
target.delete("teacher4")
target.delete("teacher5")
target.delete("teacher6")
target.delete("teacher7")
target.delete("teacher8")
target.delete("teacher9")
end

when button or info begin
desc = {
"If you admire a warrior because of his[ENTER]fast and deadly attacks, I recommend the[ENTER]Arahan teacher.[ENTER][ENTER]If you prefer a hard and enduring tanker[ENTER]who can resist the most furious attacks,[ENTER]talk to the Partisan teacher.[ENTER][ENTER]We wait you near the village square![ENTER]",
"If you want to call yourself an outstanding[ENTER]archer, the Archery training.[ENTER][ENTER]If you are ready to carry out different secret[ENTER]missions as a Ninja under the protection of[ENTER]the darkness, then Stealth Combat would be[ENTER]something for you.[ENTER][ENTER]We wait you near the village square![ENTER]",
"Would you like to become a true palladin and rider,[ENTER]that can perform superhuman activity?[ENTER]Then I recommend you the Magic Weaponry teacher.[ENTER][ENTER]However, if you want to be feared as a wizard and[ENTER]inflict pain with your curses, then I recommend[ENTER]the Black Magic teacher.[ENTER][ENTER]We wait you near the village square![ENTER]",
"If you would like to be a mage that controls the[ENTER]use of powerful offensive spells, then go to the[ENTER]teacher of the Dragon Force.[ENTER][ENTER]However, if you want to mitigate the pains and[ENTER]sorrows of others, then I recommend the path[ENTER]of the Light Force.[ENTER][ENTER]We wait you near the village square![ENTER]",
"If you admire Lycans for their unbridled power[ENTER]and heightened instincts they make,[ENTER][ENTER]I recommend the Instinct teacher.[ENTER]"
}

say_title("-- The education --")
say("")
say(desc[pc.get_job()+1])
say("")
end

function chat_end()
if not pc.is_clear_skill_group() then
local point = pc.get_level() - 1
say("")
say("Because of your decision to take a lesson you get")
say(""..point.." skill points. You can use them of any")
say("your combat skills.")
say("")
end

clear_letter()
end

function join(job, group, title, text)
local pc_job = pc.get_job()
if pc_job != job then
say(title)
say("")
say("Wrong discipline!")
if pc_job == 0 then
say("A Warrior can choose between the Arahan")
say("or Partisan paths.")
say("")
elseif pc_job == 1 then
say("An Assassin can choose between the Stealth")
say("or Archery paths.")
say("")
elseif pc_job == 2 then
say("A Sura can choose between the Weaponry")
say("or Black Magic paths")
say("")
elseif pc_job == 3 then
say("A Shaman can choose between the Dragon Force")
say("and Light paths.")
say("")
elseif pc_job == 4 then
say("A Lycans can choose the Instinct.")
end
else
say_title(title)
say("")
say(text)
say("")
local s = select("Learn!", "I have to think.")
if s == 1 then
if pc.get_skill_group() == 0 and pc.get_job() == job then
set_state("start")
pc.set_skill_group(group)

pc.clear_skill()
char_log(0, "CLEAR_SKILL", "Clear skill by teacher.")
return true
end
end
end

return false
end

when teacher1.target.click or skill_group1_1.chat."The education" or skill_group2_1.chat."The education" or skill_group3_1.chat."The education" begin
target.delete("teacher1")
if skill_group_with_wolfjob.join(0, 1, "Arahan training", "The arahan path teaches lightning fast fencing[ENTER]techniques and powerful slashes with either[ENTER]swords or spears.[ENTER]individuale con tecniche base.") then
say_title("-- "..mob_name(20300).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher2.target.click or skill_group1_2.chat."The education" or skill_group2_2.chat."The education" or skill_group3_2.chat."The education" begin
target.delete("teacher2")
if skill_group_with_wolfjob.join(0, 2, "Partisan training", "The partisan path is for attacking the enemy[ENTER]with strong Chi-Attacks and defending[ENTER]yourself from his attacks.") then
say_title("-- "..mob_name(20301).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher3.target.click or skill_group1_3.chat."The education" or skill_group2_3.chat."The education" or skill_group3_3.chat."The education" begin
target.delete("teacher3")
if skill_group_with_wolfjob.join(1, 1, "Stealth combat training", "In the stealth combat the Assassin learn how[ENTER]to blow the enemy in a fast and deadly way,[ENTER]at the enemies weakest spots.") then
say_title("-- "..mob_name(20302).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher4.target.click or skill_group1_4.chat."The education" or skill_group2_4.chat."The education" or skill_group3_4.chat."The education" begin
target.delete("teacher4")
if skill_group_with_wolfjob.join(1, 2, "Distance combat training", "In the distance combat teaching the Assassin[ENTER]learn to handle their arch, to fight the[ENTER]enemies with precision and from the distance.") then
say_title("-- "..mob_name(20303).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher5.target.click or skill_group1_5.chat."The education" or skill_group2_5.chat."The education" or skill_group3_5.chat."The education" begin
target.delete("teacher5")
if skill_group_with_wolfjob.join(2, 1, "Magic weapon training", "In the magic weapon teaching you practices the[ENTER]art of the powerful blow against weakened[ENTER]enemies, whereby cursed blades are used.") then
say_title("-- "..mob_name(20304).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher6.target.click or skill_group1_6.chat."The education" or skill_group2_6.chat."The education" or skill_group3_6.chat."The education" begin
target.delete("teacher6")
if skill_group_with_wolfjob.join(2, 2, "Black magic training", "In the black magic Teaching you learn the, art[ENTER]of curses which is weaken your enemies from a[ENTER]distance.") then
say_title("-- "..mob_name(20305).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher7.target.click or skill_group1_7.chat."The education" or skill_group2_7.chat."The education" or skill_group3_7.chat."The education" begin
target.delete("teacher7")
if skill_group_with_wolfjob.join(3, 1, "Dragon force training", "The teaching of the dragon force uses strong[ENTER]fire attacks from the Dragon God and is using[ENTER]a strengthening magic which can give the[ENTER]group the protection of the Dragon God.") then
say_title("-- "..mob_name(20306).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher8.target.click or skill_group1_8.chat."The education" or skill_group2_8.chat."The education" or skill_group3_8.chat."The education" begin
target.delete("teacher8")
if skill_group_with_wolfjob.join(3, 2, "Healing training", "In the teaching of Healing you learn to[ENTER]anesthetize the enemies with a current[ENTER]blow. You also learn to heal groups[ENTER]members and give them strength.") then
say_title("-- "..mob_name(20307).." --")
skill_group_with_wolfjob.chat_end()
end
end

when teacher9.target.click or skill_group1_9.chat."The education" or skill_group2_9.chat."The education" or skill_group3_9.chat."The education" begin
target.delete("teacher9")
if skill_group_with_wolfjob.join(4, 1, "Instinct training", "In the teaching of Instinct you learn to[ENTER]make exceptional close combat fighters.") then
say_title("-- "..mob_name(20401).." --")
skill_group_with_wolfjob.chat_end()
end
end
end
end
-- >
Iar aici uite ce scrie in skil_group1_1 (ca am intrat in ala, momentan) :
target . delete ( "teacher1" )
if skill_group_with_wolfjob . join ( 0 , 1 , "Arahan training" , "The arahan path teaches lightning fast fencing[ENTER]techniques and powerful slashes with either[ENTER]swords or spears.[ENTER]individuale con tecniche base." ) then
say_title ( "-- " .. mob_name ( 20300 ) .. " --" )
skill_group_with_wolfjob . chat_end ( )
end
Mentionez ca nu, nu am lycan in server. Si nu stiu de unde pot lua alt quest deoarece deja am cautat un altul si tot ce gasesc sunt erori de la altii, nicidecum un quest de la 0 pentru skill-uri de la invatatori.

Tare de folos mi-ar fi un quest sau ceva unde iau skill-urile din Misiuni si apoi le fac P (Sau chiar sa le iau direct P cum erau pe MondialMetin2, le luai P de la depozit, parca :-? )
Avatar utilizator
demonika1996
Nivel 2

Nivel 2
Mesaje: 277
Membru din: 31 Oct 2014, 00:07
Server: Nu ms!
Regat: Chunjo
Aprecieri: 85  
Mulţumiri: 8  
Discord: Copiază ID
 Contact:
Medalii

îți spun din start nu stiu ce cauta
"skill_group_with_wolfjob . chat_end ( )"
la invatatorul de Razboinic respectiv Mental-Corp
Si din quest reiese npc-ul nr 9 adica de lycan
uite eu te pot ajuta momentan doar cu un quest functional ce l-am pus si eu la mine pe server doar ca inca nu l-am modificat

Cod: Selectaţi tot

quest skill_group_level_5 begin
    state start begin
        when login or levelup with pc.level >= 5 begin
            if pc.get_skill_group() == 0 then
                say_title("Alegerea competenþelor:")
                say("Este timpul sã-þi alegi competenþele!")
                say_reward("Misiune -> Alege-þi competenþele.")
                set_state(run)
            end
        end
    end
    state run begin
        when letter begin
            send_letter("+Alege-þi competenþele")
        end
        when button or info begin
            local all = {
                    [0] = {"Body", "Mental"},
                    [1] = {"Dagger", "Archer"},
                    [2] = {"WP", "BM"},
                    [3] = {"Buff", "Cure"},
                    }
                        --------------------------------------------          
                        local skill = {
                                [0]={
                                        [1]={1, 2, 3, 4, 5},
                                        [2]={16, 17, 18, 19, 20},
                                },
                                [1]={
                                        [1]={31, 32, 33, 34, 35},
                                        [2]={46, 47, 48, 49, 50},
                                },
                                [2]={
                                        [1]={61, 62, 63, 64, 65, 66},
                                        [2]={76, 77, 78, 79, 80, 81},
                                },
                                [3]={
                                        [1]={91, 92, 93, 94, 95, 96},
                                        [2]={106, 107, 108, 109, 110, 111}
                                },
                        }
                        ---------------------------------------------
            say_title("Alegerea competenþelor:")
            say("Alege-þi competenþele pe care vrei sã le foloseºti.")
            local a = select(all[pc.get_job()][1], all[pc.get_job()][2], "Voi alege mai târziu")
            if a == 1 or a == 2 then
                say_title("Alegerea competenþelor:")
                say("Felicitãri, þi-ai ales competenþele!")
                pc.set_skill_group(tonumber(a))
                                pc.clear_skill()
                clear_letter()
                                for i = 1, table.getn(skill[pc.get_job()][pc.get_skill_group()]) do
                                        pc.set_skill_level (skill[pc.get_job()][pc.get_skill_group()], 40)
                                end
                set_state(kurwa)
            elseif a == 3 then
                return
            end
        end
    end
    state kurwa begin
    end
end 
este un quest care apare imediat cum ai facut lv 5 iti da sa alegi skill-urile instant fara a mai merge la invatatori
il poti modifica direct de aici sa-ti dea skill-uri M,G,P dar eu am dat copy&paste din serverul meu asa ca e classic nemodificat
Ultima oară modificat 31 Mai 2018, 20:25 de către demonika1996, modificat de 4 ori în total.
Avatar utilizator
SkyLine
Membru Club

Membru Club
Mesaje: 2655
Membru din: 12 Dec 2013, 23:37
Server: Miraj2-Online
Regat: Jinno
Aprecieri: 520  
Mulţumiri: 987  
Discord: Copiază ID
 Contact:
Medalii

demonika1996 scrie:îți spun din start nu stiu ce cauta
"skill_group_with_wolfjob . chat_end ( )"
la invatatorul de Razboinic respectiv Mental-Corp
Si din quest reiese npc-ul nr 9 adica de lycan
uite eu te pot ajuta momentan doar cu un quest functional ce l-am pus si eu la mine pe server doar ca inca nu l-am modificat
  • quest skill_group_level_5 begin
    state start begin
    when login or levelup with pc.level >= 5 begin
    if pc.get_skill_group() == 0 then
    say_title("Alegerea competenþelor:")
    say("Este timpul sã-þi alegi competenþele!")
    say_reward("Misiune -> Alege-þi competenþele.")
    set_state(run)
    end
    end
    end
    state run begin
    when letter begin
    send_letter("+Alege-þi competenþele")
    end
    when button or info begin
    local all = {
    [0] = {"Body", "Mental"},
    [1] = {"Dagger", "Archer"},
    [2] = {"WP", "BM"},
    [3] = {"Buff", "Cure"},
    }
    --------------------------------------------
    local skill = {
    [0]={
    [1]={1, 2, 3, 4, 5},
    [2]={16, 17, 18, 19, 20},
    },
    [1]={
    [1]={31, 32, 33, 34, 35},
    [2]={46, 47, 48, 49, 50},
    },
    [2]={
    [1]={61, 62, 63, 64, 65, 66},
    [2]={76, 77, 78, 79, 80, 81},
    },
    [3]={
    [1]={91, 92, 93, 94, 95, 96},
    [2]={106, 107, 108, 109, 110, 111}
    },
    }
    ---------------------------------------------
    say_title("Alegerea competenþelor:")
    say("Alege-þi competenþele pe care vrei sã le foloseºti.")
    local a = select(all[pc.get_job()][1], all[pc.get_job()][2], "Voi alege mai târziu")
    if a == 1 or a == 2 then
    say_title("Alegerea competenþelor:")
    say("Felicitãri, þi-ai ales competenþele!")
    pc.set_skill_group(tonumber(a))
    pc.clear_skill()
    clear_letter()
    for i = 1, table.getn(skill[pc.get_job()][pc.get_skill_group()]) do
    pc.set_skill_level (skill[pc.get_job()][pc.get_skill_group()], 40)
    end
    set_state(kurwa)
    elseif a == 3 then
    return
    end
    end
    end
    state kurwa begin
    end
    end
este un quest care apare imediat cum ai facut lv 5 iti da sa alegi skill-urile instant fara a mai merge la invatatori
il poti modifica direct de aici sa-ti dea skill-uri M,G,P dar eu am dat copy&paste din serverul meu asa ca e classic nemodificat

Trebuie sa sterg tot sistemul de skill-uri sau doar inlocuiesc quest-urile?
Avatar utilizator
demonika1996
Nivel 2

Nivel 2
Mesaje: 277
Membru din: 31 Oct 2014, 00:07
Server: Nu ms!
Regat: Chunjo
Aprecieri: 85  
Mulţumiri: 8  
Discord: Copiază ID
 Contact:
Medalii

KrYpToNNN scrie:

Trebuie sa sterg tot sistemul de skill-uri sau doar inlocuiesc quest-urile?
Quest-ul acesta nu face reziduri in "object"
quest-ul ce l-ai avut tu trebuie indepartat din skill_group1_1,skill_group3_8
stergi doar continutul din foldere nu si folderele sper ca intelegi :ymhug:
Ultima oară modificat 31 Mai 2018, 20:29 de către demonika1996, modificat 1 dată în total.
Avatar utilizator
SkyLine
Membru Club

Membru Club
Mesaje: 2655
Membru din: 12 Dec 2013, 23:37
Server: Miraj2-Online
Regat: Jinno
Aprecieri: 520  
Mulţumiri: 987  
Discord: Copiază ID
 Contact:
Medalii

demonika1996 scrie:
KrYpToNNN scrie:

Trebuie sa sterg tot sistemul de skill-uri sau doar inlocuiesc quest-urile?

Um...nu stiu, ori nu ai scris nimic, ori e o problema de la forum ... :
Imagine
Avatar utilizator
demonika1996
Nivel 2

Nivel 2
Mesaje: 277
Membru din: 31 Oct 2014, 00:07
Server: Nu ms!
Regat: Chunjo
Aprecieri: 85  
Mulţumiri: 8  
Discord: Copiază ID
 Contact:
Medalii

KrYpToNNN scrie:

Um...nu stiu, ori nu ai scris nimic, ori e o problema de la forum ... :
Imagine
din pacate a fost din cauza mea ca nu mai stiam sa folosesc "" asa ca am facut ditamai pagina cu acel quest..
Avatar utilizator
Crew
Utilizator interzis !

Utilizator interzis !
Mesaje: 113
Membru din: 31 Mar 2018, 08:04
Server: None
Regat: Jinno
Aprecieri: 6  
Mulţumiri: 3  
 Contact:
Medalii

Inactiv
Închis
Răspunsuri
1
Vizualizări
277
Răspunsuri
4
Vizualizări
606
Răspunsuri
3
Vizualizări
367
Răspunsuri
1
Vizualizări
165

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Baidu [Spider], Semrush [Bot] și 97 vizitatori