Iioris 1 Posted April 15, 2018 como meto a apareçer equipes iniciais no iventario quando alguem liga pela primeira vez no meu servidor? Share this post Link to post Share on other sites
0 Filha 2 Posted April 15, 2018 imples até minha irmanzinha de 6 anos sabe fazer isso nem precisei ensinar ela Respondendo > Basta criar uma quest Share this post Link to post Share on other sites
0 rafaelxte2 38 Posted April 15, 2018 em 2018 e 2018 alguem ainda fazer essa pergunta? Quest give_basic_weapon quest give_basic_weapon begin state start begin when login with pc.getqf("login_weapon") == 0 begin function karakter() local karakter = {'Guerreiro','Ninja','Shura','Shaman','Lycan'} return karakter[pc.get_job()+1] end function bayrak_liste() local bayrak_liste = {'Shinsu','Chunjo','Jinno'} return bayrak_liste[pc.get_empire()] end function cinsiyet() local cinsiyet = {'Masculino','Feminino'} return cinsiyet[pc.get_sex()+1] end if pc.getqf("login_weapon") == 0 then pc.setqf("login_weapon", 1) end local item_vnum = 19 local item_vnum2 = 11209 local item_vnum3 = 12209 local item_vnum4 = 13009 local item_vnum5 = 17009 if pc.get_job() == 1 then item_vnum = 1009 item_vnum2 = 11409 item_vnum3 = 12349 item_vnum4 = 13009 item_vnum5 = 17009 elseif pc.get_job() == 2 then item_vnum2 = 11609 item_vnum3 = 12489 item_vnum4 = 13009 item_vnum5 = 17009 elseif pc.get_job() == 3 then item_vnum = 7009 item_vnum2 = 11809 item_vnum3 = 12629 item_vnum4 = 13009 item_vnum5 = 17009 end pc.give_item2(item_vnum) pc.give_item2(item_vnum2) pc.give_item2(item_vnum3) pc.give_item2(item_vnum4) pc.give_item2(item_vnum5) pc.change_money (500) pc.give_item2(27003, 200) pc.give_item2(27006, 200) pc.give_item2(27100, 200) pc.give_item2(71050, 200) pc.give_item2(70057, 200) pc.give_item2(72701) pc.give_item2(14009) pc.give_item2(15009) pc.give_item2(16009) pc.give_item2(50053) pc.give_item2(71033) pc.give_item2(40004) pc.give_item2(50190) pc.set_skill_level(131, 40) -- Skill Evocação do Cavalo horse . unride ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . advance ( ) horse . ride ( ) notice_all("Novo Personagem -> NOME: "..pc.get_name().." | CLASSE: "..karakter().." | SEXO: "..cinsiyet().." | REINO: "..bayrak_liste().." |") syschat("BEM VINDO AO SEU SERVIDOR ! Fique atento as novidades acessando nosso site: seu site.com") set_state(__COMPLETE__) end end state __COMPLETE__ begin end end 1 Filha reacted to this Share this post Link to post Share on other sites
0 Iioris 1 Posted April 15, 2018 Citar Essa quest não dá.. Share this post Link to post Share on other sites
0 rafaelxte2 38 Posted April 15, 2018 como não? que problema deu ao instalar ela? Share this post Link to post Share on other sites
0 Iioris 1 Posted April 15, 2018 Agora, rafaelxte2 disse: como não? que problema deu ao instalar ela? /usr/home/game/share/locale/romania/quest # ./qc give_basic_weapon begin.lua Segmentation fault (core dumped) Share this post Link to post Share on other sites
0 rafaelxte2 38 Posted April 15, 2018 kkkkk isso nao é erro da quest, isse: Isso o proprio erro ta falando oque é, erro na seguimentação. Nao colocou o cd na frente cd /usr/home/game/share/locale/romania/quest && ./qc give_basic_weapon begin.lua Share this post Link to post Share on other sites
0 Karbust 1,143 Posted April 15, 2018 9 horas atrás, rafaelxte2 disse: kkkkk isso nao é erro da quest, isse: Isso o proprio erro ta falando oque é, erro na seguimentação. Nao colocou o cd na frente cd /usr/home/game/share/locale/romania/quest && ./qc give_basic_weapon begin.lua Porque raio haveria de fazer cd à pasta se já está dentro da pasta? o.O Senão estivesse na pasta nem esse erro... Isso é um erro com a quest... Btw, aqui está a quest resolvida (não a testei ingame, mas compilou, logo deve funcionar): quest quest_give_basic_weapon_test begin state start begin function karakter() local karakter = {'Guerreiro','Ninja','Shura','Shaman','Lycan'} return karakter[pc.get_job()+1] end function bayrak_liste() local bayrak_liste = {'Shinsu','Chunjo','Jinno'} return bayrak_liste[pc.get_empire()] end function cinsiyet() local cinsiyet = {'Masculino','Feminino'} return cinsiyet[pc.get_sex()+1] end when login with pc.getqf("login_weapon") == 0 begin if pc.getqf("login_weapon") == 0 then pc.setqf("login_weapon", 1) end local item_vnum = 19 local item_vnum2 = 11209 local item_vnum3 = 12209 local item_vnum4 = 13009 local item_vnum5 = 17009 if pc.get_job() == 1 then item_vnum = 1009 item_vnum2 = 11409 item_vnum3 = 12349 item_vnum4 = 13009 item_vnum5 = 17009 elseif pc.get_job() == 2 then item_vnum2 = 11609 item_vnum3 = 12489 item_vnum4 = 13009 item_vnum5 = 17009 elseif pc.get_job() == 3 then item_vnum = 7009 item_vnum2 = 11809 item_vnum3 = 12629 item_vnum4 = 13009 item_vnum5 = 17009 end pc.give_item2(item_vnum) pc.give_item2(item_vnum2) pc.give_item2(item_vnum3) pc.give_item2(item_vnum4) pc.give_item2(item_vnum5) pc.change_money(500) pc.give_item2(27003, 200) pc.give_item2(27006, 200) pc.give_item2(27100, 200) pc.give_item2(71050, 200) pc.give_item2(70057, 200) pc.give_item2(72701) pc.give_item2(14009) pc.give_item2(15009) pc.give_item2(16009) pc.give_item2(50053) pc.give_item2(71033) pc.give_item2(40004) pc.give_item2(50190) pc.set_skill_level(131, 40) -- Skill Evocação do Cavalo horse.unride() horse.set_level(21) horse.ride() notice_all("Novo Personagem -> NOME: "..pc.get_name().." | CLASSE: "..quest_give_basic_weapon_test.karakter().." | SEXO: "..quest_give_basic_weapon_test.cinsiyet().." | REINO: "..quest_give_basic_weapon_test.bayrak_liste().." |") syschat("BEM VINDO AO SEU SERVIDOR ! Fique atento as novidades acessando nosso site: seu site.com") set_state(__COMPLETE__) end end state __COMPLETE__ begin end end Share this post Link to post Share on other sites
0 'PACI 2,317 Posted April 16, 2018 Movido para Metin2 - Dúvidas. Share this post Link to post Share on other sites
como meto a apareçer equipes iniciais no iventario quando alguem liga pela primeira vez no meu servidor?
Share this post
Link to post
Share on other sites