if ( power >= 350 ) Messagebox "The Crown of Souls rewards you. Your Intelligence, luck, and willpower increase." player -> modintelligence, 1 player -> modwillpower, 1 player -> modluck, 1 endif set temp to ( power - 500 ) set power to tempendif
elseif ( player -> hassoulgem, "Hunger" ) Messagebox "Allow the crown to feed on the soul of the Hunger?" "Yes" "No" set soultype to 8 set state to 2
elseif ( soultype == 8 ) Messagebox, "The crown consumes the soul of the Hunger" player -> removesoulgem, "hunger", 1 set hunger to ( hunger + 145 ) set power to ( power + 250 )
short newintelshort newwillif ( player->GetIntelligence >= 100 ) set newintel to ( player->GetIntelligence + 1 ) player->setintelligence to newintelendifif ( player->GetWillpower >= 100 ) set newwill to ( player->GetWillpower + 1 ) player->setwillpower to newwillendif
player -> removesoulgem, "lich", 1change it to
player -> removesoulgem, "lich"