Jump to content

KillerSYM

Miembro
  • Contador contenido

    6
  • Ingreso

  • Última visita

  • Días ganados

    2

Mensajes publicados por KillerSYM

  1. Hola Gente. 

     

    Estoy haciendo una quest que involucra matar jefes; queria saber cual es el comando para identificar si el mob al que mataste es de grado Jefe.

     

    quest drop_general begin
           state start begin
                when kill with npc.get_rank () == 5 begin
                   game.drop_item_with_ownership(0000, 0)
                end
           end
    end
     
    seria un comando similar a este-   npc.get_rank () == 5   
    si alguien sabe, se agradece la ayuda. 
  2. quest scroll_update begin
    	state start begin
    		function pc.set_ht(points)
    			mysql_direct_query("UPDATE player.player SET ht = ht + "..points.." WHERE name = '"..pc.get_name().."';")
    		end
    		function pc.set_iq(points)
    			mysql_direct_query("UPDATE player.player SET iq = iq + "..points.." WHERE name = '"..pc.get_name().."';")
    		end
    		function pc.set_st(points)
    			mysql_direct_query("UPDATE player.player SET st = st + "..points.." WHERE name = '"..pc.get_name().."';")
    		end
    		function pc.set_dx(points)
    			mysql_direct_query("UPDATE player.player SET dx = dx + "..points.." WHERE name = '"..pc.get_name().."';")
    		end
    		---------------------
    		---PERGAMINO VIT-----
    		---------------------
    		when 71103.use begin
    			if pc.get_ht() == 100 then
    				syschat("Lo siento, tienes los puntos al maximo")
    				return
    			end
    			if pc.get_ht() < 90 then
    				syschat("Lo siento, no tienes 90 puntos para usar este pergamino")
    				return
    			end
    			pc.set_ht(pc.get_ht()+2)
    			item.remove()
    			syschat("Stat de VIT: Aumentado (+2)")
    		end
    		----------------------
    		---PERGAMINO DE INT---
    		----------------------
    		when 71104.use begin
    			if pc.get_iq() == 100 then
    				syschat("Lo siento, tienes los puntos al maximo")
    				return
    			end
    			if pc.get_iq() < 90 then
    				syschat("Lo siento, no tienes 90 puntos para usar este pergamino")
    				return
    			end
    			pc.set_ht(pc.get_iq()+2)
    			item.remove()
    			syschat("Stat de INT: Aumentado (+2)")
    		end
    		----------------------
    		---PERGAMINO DE STR---
    		----------------------
    		when 71105.use begin
    			if pc.get_st() == 100 then
    				syschat("Lo siento, tienes los puntos al maximo")
    				return
    			end
    			if pc.get_st() < 90 then
    				syschat("Lo siento, no tienes 90 puntos para usar este pergamino")
    				return
    			end
    			pc.set_st(pc.get_st()+2)
    			item.remove()
    			syschat("Stat de STR: Aumentado (+2)")
    		end
    		---------------------
    		---PERGAMINO DE DEX--
    		---------------------
    		when 71106.use begin
    			if pc.get_dx() == 100 then
    				syschat("Lo siento, tienes los puntos al maximo")
    				return
    			end
    			if pc.get_dx() < 90 then
    				syschat("Lo siento, no tienes 90 puntos para usar este pergamino")
    				return
    			end
    			pc.set_dx(pc.get_dx()+2)
    			item.remove()
    			syschat("Stat de DEX: Aumentado (+2)")
    		end
    	end
    end

    thump_9630699sin-ttulo.png

     

    ¿Alguien me puede ayudar? no se si declare mal las funciones... 

×
×
  • Crear nuevo...