henriques. 99 Posted December 2, 2014 Boas pessoal, a minha dúvida é um bocado básica, mas desde já dispenso, off-tópicos. Então é o seguinte. Fiz uma quest, e neste quest dei função a um item. exemplo: quest chagne_name begin state start begin when 71055.use begin Mas quando vou ao jogo (obviamente depois do reload q / reboot) tento clicar no item e ele não tem nenhuma função? Penso que seja do vnum no navicat. Se for do mesmo, agradeço a quem poder, dizer para qual vnum altero. Share this post Link to post Share on other sites
0 APENAS QUERO BAIXAR 0 Posted December 2, 2014 Creio que na linha abaixo tens de colocar o que fazer... tenta por um Say ( "uma mensagem" ) end e vê se dá... Share this post Link to post Share on other sites
0 Guest Origin. Posted December 2, 2014 Já não mexo em quest a muito, mas se a quest for essa ai, é normal não fazer nada.Não meteste a fazer nada, e claramento isso tem de estar em metodo 'click' Share this post Link to post Share on other sites
0 henriques. 99 Posted December 2, 2014 quest chagne_name begin state start begin when 9010.use begin if pc.is_married() then say("Estás casado.") say("Por isso, não podes mudar o teu nome.") say("") return end if pc.is_polymorphed() then say("Estás transformado.") say("Por isso, não podes mudar o teu nome.") say("") return end if pc.has_guild() then say("És membro de uma Guild.") say("Por isso, não podes mudar o teu nome.") say("") return end if party.is_party() then say("Estás num grupo.") say("Por isso, não podes mudar o teu nome.") say("") return end if pc.get_level() < 50 then say("O teu nível é demasiado baixo.") say("Deves ser, pelo menos, nível 50") say("Para mudares o teu nome.") say("") return end if get_time() < pc.getqf("next_time") then say("Não podes usar este item agora.") say("") if is_test_server() == true then say("Since it's test server, you can go") say("") else return end end say("Coloca o teu novo nome:") ; local name = pc.name ; local str = input() ; if string.len(str) > 16 then say("Nome muito extenso, tenta novamente.") say("") return end local ret = pc.change_name(str) ; if ret == 0 then say("Precisas de fazer novo Login") say("para o nome ficar activo.") say("") char_log(0, "CHANGE_NAME", "HAVE NOT RE-LOGIN") elseif ret == 1 then say("Ocorreu um erro durante o uso do item.") say("Por Favor, tenta novamente.") say("") char_log(0, "CHANGE_NAME", "ITEM USE PROBLEM") elseif ret == 2 then say("O Nome que escolheste não está disponível.") say("Por Favor, escolhe outro.") say("") char_log(0, "CHANGE_NAME", "CAN NOT USE NAME") elseif ret == 3 then say("O Nome que escolheste não está disponível.") say("Por Favor, escolhe outro.") say("") char_log(0, "CHANGE_NAME", "ALREADY USING NAME") elseif ret == 4 then say("Alteras-te o teu nome com sucesso.") say("Por Favor, Altera a Personagem.") say("") item.remove() ; pc.setqf("next_time", get_time() + time_hour_to_sec(24*15)) char_log(0, "CHANGE_NAME", "SUCCESS: from "..name.." to "..str) else say("Ocorreu Um Erro Desconhecido.") say("") char_log(0, "CHANGE_NAME", "UNKNOWN NAME") end end end end Está aqui a quest. Share this post Link to post Share on other sites
0 SINVAL o.O 728 Posted December 2, 2014 1º Deve ver si essa função está corrigida no seu gamecore; 2º deeve ver se linha desse item está assim : 9010 "¸test" "ITEM_USE" "USE_SPECIAL" 1 "ANTI_DROP | ANTI_SELL | ANTI_GIVE | ANTI_STACK | ANTI_MYSHOP" "LOG" "NONE" "NONE" 0 0 0 0 0 "LIMIT_NONE" 0 "LIMIT_NONE" 0 "APPLY_NONE" 0 "APPLY_NONE" 0 "APPLY_NONE" 0 0 0 0 0 0 0 0 0 0 3º Se tiver as coisas anteriores funciona! Share this post Link to post Share on other sites
0 ☆♕ CabrinhaSexy ♕☆ 738 Posted December 2, 2014 Peço desculpa se estiver errado Mas... Tu queres mesmo escrever isso, ou é: quest change_name begin ??? Cumprimentos Share this post Link to post Share on other sites
0 henriques. 99 Posted December 2, 2014 1º Deve ver si essa função está corrigida no seu gamecore; 2º deeve ver se linha desse item está assim : 9010 "¸test" "ITEM_USE" "USE_SPECIAL" 1 "ANTI_DROP | ANTI_SELL | ANTI_GIVE | ANTI_STACK | ANTI_MYSHOP" "LOG" "NONE" "NONE" 0 0 0 0 0 "LIMIT_NONE" 0 "LIMIT_NONE" 0 "APPLY_NONE" 0 "APPLY_NONE" 0 "APPLY_NONE" 0 0 0 0 0 0 0 0 0 0 3º Se tiver as coisas anteriores funciona! Vêjo isso em que item proto? cliente ou files? Share this post Link to post Share on other sites
0 тнєℓιƒє 488 Posted December 2, 2014 Vêjo isso em que item proto? cliente ou files? É na parte do Servidor. Nomeadamente nos .txt. Share this post Link to post Share on other sites
Boas pessoal, a minha dúvida é um bocado básica, mas desde já dispenso, off-tópicos.
Então é o seguinte. Fiz uma quest, e neste quest dei função a um item.
Penso que seja do vnum no navicat. Se for do mesmo, agradeço a quem poder, dizer para qual vnum altero.
Share this post
Link to post
Share on other sites