I was making a quest with mysql_query, to conect to refine_vnum in item_proto.
Code:
quest melhorar begin
state start begin
when 20091.take with item.vnum() == 169 begin
local a = select("Sírius", "Barão", "Sair")
if a == 1 then
mysql_query("UPDATE player.item_proto SET refine_item='270' WHERE vnum='169'")
elseif a == 2 then
mysql_query("UPDATE player.item_proto SET refine_item='260' WHERE vnum='169'")
end
end
end
end
But, to save the changes, i have to do /reload p ingame, and, i want that it save the changes without /reload p.
I don't know if it's possible to do it. But, maybe i receive an answer for it.
Sorry for my bad english.
Thank you.
Best Regrards.






