Magician Posted August 22, 2016 at 04:05 PM Share Posted August 22, 2016 at 04:05 PM quest Luares Begin state start begin when letter with pc.is_gm() begin send_letter("Ativar/desativar") end when button or info begin say("Desejas ativar/desativar Evento Luares?") local B = select("ativar","Desativar") if B == 1 then game.set_event_flag("hidh90dj",1) notice_all("Evento luares ativado") elseif B == 2 then game.set_event_flag("hidh90dj",0) notice_all("evento luares desativado") end end when kill with game.get_event_flag("hidh90dj") == 1 local d = number(1,100) if d <= 25 then -- 25 é a chance de drop game.drop_item_with_ownership(50011) end end when login with game.get_event_flag("hidh90dj") == 1 notice(" Luares Ativo ") end end end Fonte : http://developegames.esy.es Link to comment
moikano22 Posted September 28, 2016 at 08:02 PM Share Posted September 28, 2016 at 08:02 PM quest core dumped... not have begin end clause... desculpa mas a quest não funciona...xD Link to comment
Karbust Posted September 29, 2016 at 08:21 AM Share Posted September 29, 2016 at 08:21 AM muda a 1ª linha por: quest luares begin C++ é case sensitive, logo penso que seja esse o problema... Link to comment
moikano22 Posted December 11, 2016 at 04:56 PM Share Posted December 11, 2016 at 04:56 PM Dont work... Bloqueia a instalacao e nao passa do kill Link to comment
Dynamic Things Posted December 11, 2016 at 05:16 PM Share Posted December 11, 2016 at 05:16 PM Dont work... Bloqueia a instalacao e nao passa do kill Desculpa mas não consegui perceber o erro, explica o porque de não dar detalhadamente sff, postando o syserr, ou alguma mensagem de erro que te apareça ao compilaar a quest_list muda a 1ª linha por: quest luares begin C++ é case sensitive, logo penso que seja esse o problema... "C++ é case sensitive" -> "Lua é case sensitive" Link to comment
moikano22 Posted December 11, 2016 at 05:22 PM Share Posted December 11, 2016 at 05:22 PM O problema eh que nao ten erro... Assim que se faz o ./qc a quest corre mas nao termina apenas para no ultimo kill da quest... Link to comment
Magician Posted January 1, 2017 at 05:03 PM Author Share Posted January 1, 2017 at 05:03 PM O problema eh que nao ten erro... Assim que se faz o ./qc a quest corre mas nao termina apenas para no ultimo kill da quest... testas-te na files rancoroso? Se sim, o erro aparece por aparecer a quest funciona tranquilamente Link to comment
F-Caneiras Posted August 15, 2017 at 11:49 AM Share Posted August 15, 2017 at 11:49 AM (edited) Adicionaste a quest lib verifica o quest function pode la faltar algo. Edited August 15, 2017 at 11:49 AM by Caneiras Link to comment
GODSPEED Posted August 15, 2017 at 01:07 PM Share Posted August 15, 2017 at 01:07 PM Em 11/12/2016 em 17:22, moikano22 disse: O problema eh que nao ten erro... Assim que se faz o ./qc a quest corre mas nao termina apenas para no ultimo kill da quest... falta begin nos ultimos dois whens cumps Link to comment
juniorsilva Posted August 15, 2017 at 11:19 PM Share Posted August 15, 2017 at 11:19 PM 10 horas atrás, Elliot disse: falta begin nos ultimos dois whens cumps yes... Correção: quest luares begin state start begin when letter with pc.is_gm() begin send_letter("Ativar/desativar") end when button or info begin say("Desejas ativar/desativar Evento Luares?") local b = select("ativar","Desativar") if b == 2 then game.set_event_flag("evento_luares",0) notice_all("evento luares desativado") return end game.set_event_flag("evento_luares",1) notice_all("Evento luares ativado") end when kill with game.get_event_flag("evento_luares") == 1 begin local d = number(1,100) if d <= 25 then game.drop_item_with_ownership(50011) end end when login with game.get_event_flag("evento_luares") == 1 begin notice("Luares Ativo") end end -- state end -- quest Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now