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...