Jump to content

Recommended Posts

Posted
quest gameover begin
state start begin
when login begin
 
set_state(morir_pj)
 
end
end
 
state morir_pj begin
when letter begin
send_letter("auto morir")
 
end
 
when button or morir_pj begin
 
say_title("auto morir")
say("")
 
local main_set = select ("morir", "cancelar")
 
if main_set == 1 then
pc.kill()
elseif main_set == 2 then
return
 
end
end
end
end
 
 
quiero que al apretar morir mi player se muera
Posted

quest morir begin

state start begin

 when xxx.click begin

 say_title("Vas a morir")

 say("Quieres morir?")

 local muere = select("Si", "No")

 if muere == 1 then

 pc.kill()

 elseif muere == 2 then

 say("Tu te lo pierdes")

return

 end

 end

 end

 end

 

 

Es mediante un item.

Posted

lo de pc.kill() cuando lo puse me lo invente porque no sabia que tenia que poner, y vosotros me decis que funciona? XD

 

entonces que hago para que ami tambien me funcione? xP

 

 

cuando hago el .qc me dice que la quest esta mal cuando pongo pc.kill()

 

si  no lo pongo me dice que en la quest no hay nada mal

Posted

sigue sin irme, pero no da error al cargar la quest

 

quest gameover begin
state start begin
when login begin
 
set_state(morir_pj)
 
end
end
 
state morir_pj begin
when letter begin
send_letter("auto morir")
 
end
 
when button or morir_pj begin
 
say_title("auto morir")
say("")
 
local main_set = select ("morir", "cancelar")
 
if main_set == 1 then
npc.kill()
elseif main_set == 2 then
return
 
end
end
end
end
Posted

Toma con esto te correra perfectamente:

quest auto_morir begin	state start begin		when login begin			set_state(morir)		end	end	state morir begin		when letter begin			send_letter("Suicidarse")		end		when button or info begin			say_title("Suicidarse:")			say("")			say_reward("¿Quieres suicidarte?")		local s = select ("¡Matame!","Prefiero vivir")			if s == 1 then				npc.kill()			elseif s == 2 then				return			end		end	endend
Posted

npc.kill() , la función pc.kill() no existe, tal como tu dijiste, porque "la creaste" dandole solo el nombre, cosa que te da error al hacer .qc.

Verdad verdad es npc.kill()  .. srry xD

Posted

en modo gm la quest tal cual me dio ticco en el juego no me aparece, pero en modo user si, y al usarla no muero

 

 

nisiquiera creo que a vosotros os funcione... porque antes cuando teniais pc envez de npc deciais que os funcionaba ¬¬ os he pillado xD

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.