if game . get_event_flag ( "energy" ) == 1 or pc . is_gm ( ) == 1 then if pc . get_level ( ) < 35 then say_title ( "Alchemist" )
say ( "Du bist noch nicht stark genug, um die Kraft, die" )
say ( "den Energiesplittern innewohnt, zu beherrschen." )
say ( "Komm wieder wenn du mindestens Level 35" )
say ( "erreicht hast." )
return
end
if item . get_type ( ) == 1 or item . get_type ( ) == 2 then
local maxlvl = mysql_query ( "SELECT limitvalue0 FROM player.item_proto WHERE vnum='" .. item . get_vnum ( ) .. "' LIMIT 1;" )
test_chat ( maxlvl [ 1 ] [ 1 ] )
if tonumber ( maxlvl [ 1 ] [ 1 ] ) < 35 then
say_title ( "Alchimista" )
say ( "Questo oggetto non possiede abbastanza energia." )
say ( "Portami uno che abbia almeno il livello 35." )
say ( "Solo così potrò ricavarne dell'energia" )
say ( "applicando la mia tecnica." )
return
end
say_title ( "Alchimista" )
say ( string . trim ( item . get_name ( ) ) )
say ( "Vuoi che io distrugga l'oggetto?" )
if select ( "Si!" , "No, non ancora!" ) == 2 then
return
else
local anzahl = number ( 0 , 15 )
if anzahl > 0 then
say_title ( "Alchimista" )
say ( "Grandioso! Sono riuscito ad estrarre " .. anzahl .. " Scaglie" )
say ( "di Energia. Prego!" )
pc . give_item2 ( 51001 , anzahl )
else
say_title ( "Alchimista" )
say ( "Ho fallito! Purtroppo non sono riuscito ad" )
say ( "estrarre nessuna Scaglia di Energia. Forse ce la" )
say ( "farò al prossimo tentativo." )
return
end
item . remove ( )
end
else
say_title ( "Alchimista" )
say ( "Dieses Item ist nicht geeignet!" )
end
return
end