KillerSYM Publicado 26 de Julio del 2016 Reportar Compartir Publicado 26 de Julio del 2016 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 ¿Alguien me puede ayudar? no se si declare mal las funciones... Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
autodesk_metin2 Publicado 10 de Agosto del 2016 Reportar Compartir Publicado 10 de Agosto del 2016 Las funciones que están ahí son de set no de get, entonces si te fijas en el primer if pc.get_ht()En ningún momento te nombra get en las funcione solo para tener el nombre del PJ.Entonces cambia el get por set segun las funciones obtenida de arriba. Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Mensajes recomendados